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 OCAMLC
757 OCAMLOPT
758 OCAMLDEP
759 OCAMLDOC
760 GAS
761 HAVE_LINK_VERSION_SCRIPT
762 EGREP
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 NO_MAYBE_UNINITIALIZED
767 NO_UNINITIALIZED
768 PYTHON
769 HAVE_DLOPEN
770 HAVE_TERMINFO
771 USE_OPROFILE
772 USE_INTEL_JITEVENTS
773 XML2CONFIG
774 LIBXML2_LIBS
775 LIBXML2_INC
776 CXXCPP
777 HAVE_PTHREAD
778 HAVE_LIBZ
779 HUGE_VAL_SANITY
780 MMAP_FILE
781 SHLIBEXT
782 LLVM_PREFIX
783 LLVM_BINDIR
784 LLVM_DATADIR
785 LLVM_DOCSDIR
786 LLVM_ETCDIR
787 LLVM_INCLUDEDIR
788 LLVM_INFODIR
789 LLVM_MANDIR
790 LLVM_CONFIGTIME
791 BINDINGS_TO_BUILD
792 OCAML_LIBDIR
793 ENABLE_VISIBILITY_INLINES_HIDDEN
794 RPATH
795 RDYNAMIC
796 program_prefix
797 LIBOBJS
798 LTLIBOBJS'
799 ac_subst_files=''
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 CPPFLAGS
807 CXX
808 CXXFLAGS
809 CCC
810 CPP
811 CXXCPP'
812 ac_subdirs_all='projects/test-suite
813 projects/llvm-test
814 projects/poolalloc
815 projects/llvm-poolalloc
816 projects/safecode
817 tools/polly'
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
874 fi
876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
904 --config-cache | -C)
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1135 -with-* | --with-*)
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1174 ;;
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1193 esac
1194 done
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1200 fi
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1207 do
1208 eval ac_val=\$$ac_var
1209 case $ac_val in
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 esac
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1215 done
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233 fi
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282 else
1283 ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1294 pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
1319 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1328 Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 [PREFIX]
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1372 _ACEOF
1374 cat <<\_ACEOF
1376 System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1386 esac
1387 cat <<\_ACEOF
1389 Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-polly Use polly if available (default is YES)
1393 --enable-libcpp Use libc++ if available (default is NO)
1394 --enable-compiler-version-checks
1395 Check the version of the host compiler (default is
1396 YES)
1397 --enable-cxx1y Use c++1y if available (default is NO)
1398 --enable-split-dwarf Use split-dwarf if available (default is NO)
1399 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1400 --enable-clang-plugin-support
1401 Enable plugin support in clang (default is YES)
1402 --enable-clang-static-analyzer
1403 Enable building of clang Static Analyzer (default is
1404 YES)
1405 --enable-optimized Compile with optimizations enabled (default is NO)
1406 --enable-profiling Compile with profiling enabled (default is NO)
1407 --enable-assertions Compile with assertion checks enabled (default is
1408 YES)
1409 --enable-werror Compile with -Werror enabled (default is NO)
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 NO)
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-keep-symbols Do not strip installed executables)
1418 --enable-jit Enable Just In Time Compiling (default is YES)
1419 --enable-docs Build documents (default is YES)
1420 --enable-doxygen Build doxygen documentation (default is NO)
1421 --enable-threads Use threads if available (default is YES)
1422 --enable-pthreads Use pthreads if available (default is YES)
1423 --enable-zlib Use zlib for compression/decompression if available
1424 (default is YES)
1425 --enable-pic Build LLVM with Position Independent Code (default
1426 is YES)
1427 --enable-shared Build a shared library and link tools against it
1428 (default is NO)
1429 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1430 Win32 DLL (default is NO)
1431 --enable-timestamps Enable embedding timestamp information in build
1432 (default is YES)
1433 --enable-backtraces Enable embedding backtraces on crash (default is
1434 YES)
1435 --enable-crash-overrides
1436 Enable crash handling overrides (default is YES)
1437 --enable-targets Build specific host targets: all or
1438 target1,target2,... Valid targets are: host, x86,
1439 x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1440 hexagon, xcore, msp430, nvptx, systemz, r600, and
1441 cpp (default=all)
1442 --enable-experimental-targets
1443 Build experimental host targets: disable or
1444 target1,target2,... (default=disable)
1445 --enable-bindings Build specific language bindings:
1446 all,auto,none,{binding-name} (default=auto)
1447 --enable-terminfo Query the terminfo database if available (default is
1448 YES)
1449 --enable-libedit Use libedit if available (default is YES)
1450 --enable-libffi Check for the presence of libffi (default is NO)
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
1461 --with-clang-srcdir Directory to the out-of-tree Clang source
1462 --with-clang-resource-dir
1463 Relative directory from the Clang binary for
1464 resource files
1465 --with-c-include-dirs Colon separated list of directories clang will
1466 search for headers
1467 --with-gcc-toolchain Directory where gcc is installed.
1468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1469 --with-binutils-include Specify path to binutils/include/ containing
1470 plugin-api.h file for gold plugin.
1471 --with-bug-report-url Specify the URL where bug reports should be
1472 submitted (default=http://llvm.org/bugs/)
1473 --with-internal-prefix Installation directory for internal files
1474 --with-python path to python
1475 --with-oprofile=<prefix>
1476 Tell OProfile >= 0.9.4 how to symbolize JIT output
1477 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1489 CPP C preprocessor
1490 CXXCPP C++ preprocessor
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <http://llvm.org/bugs/>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1504 ac_builddir=.
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 LLVM configure 3.6.0svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1565 _ACEOF
1566 exit
1567 fi
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by LLVM $as_me 3.6.0svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1575 $ $0 $@
1577 _ACEOF
1578 exec 5>>config.log
1579 {
1580 cat <<_ASUNAME
1581 ## --------- ##
1582 ## Platform. ##
1583 ## --------- ##
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1602 _ASUNAME
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1606 do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1610 done
1611 IFS=$as_save_IFS
1613 } >&5
1615 cat >&5 <<_ACEOF
1618 ## ----------- ##
1619 ## Core tests. ##
1620 ## ----------- ##
1622 _ACEOF
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_configure_args=
1631 ac_configure_args0=
1632 ac_configure_args1=
1633 ac_must_keep_next=false
1634 for ac_pass in 1 2
1635 do
1636 for ac_arg
1637 do
1638 case $ac_arg in
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1642 continue ;;
1643 *\'*)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645 esac
1646 case $ac_pass in
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648 2)
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1652 else
1653 case $ac_arg in
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 esac
1661 ;;
1662 -* ) ac_must_keep_next=true ;;
1663 esac
1664 fi
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1666 ;;
1667 esac
1668 done
1669 done
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1680 {
1681 echo
1683 cat <<\_ASBOX
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1687 _ASBOX
1688 echo
1689 # The following way of writing the cache mishandles newlines in values,
1690 (
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1693 case $ac_val in #(
1694 *${as_nl}*)
1695 case $ac_var in #(
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698 esac
1699 case $ac_var in #(
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1702 esac ;;
1703 esac
1704 done
1705 (set) 2>&1 |
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1708 sed -n \
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 ;; #(
1712 *)
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714 ;;
1715 esac |
1716 sort
1717 )
1718 echo
1720 cat <<\_ASBOX
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1724 _ASBOX
1725 echo
1726 for ac_var in $ac_subst_vars
1727 do
1728 eval ac_val=\$$ac_var
1729 case $ac_val in
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 esac
1732 echo "$ac_var='\''$ac_val'\''"
1733 done | sort
1734 echo
1736 if test -n "$ac_subst_files"; then
1737 cat <<\_ASBOX
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1741 _ASBOX
1742 echo
1743 for ac_var in $ac_subst_files
1744 do
1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
1750 done | sort
1751 echo
1752 fi
1754 if test -s confdefs.h; then
1755 cat <<\_ASBOX
1756 ## ----------- ##
1757 ## confdefs.h. ##
1758 ## ----------- ##
1759 _ASBOX
1760 echo
1761 cat confdefs.h
1762 echo
1763 fi
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1767 } >&5
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770 exit $exit_status
1771 ' 0
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 done
1775 ac_signal=0
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 _ACEOF
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 _ACEOF
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 _ACEOF
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 _ACEOF
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 else
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1816 fi
1817 shift
1818 for ac_site_file
1819 do
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1824 . "$ac_site_file"
1825 fi
1826 done
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1834 case $cache_file in
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1837 esac
1838 fi
1839 else
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1842 >$cache_file
1843 fi
1845 # Check that the precious variables saved in the cache have kept the same
1846 # value.
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1854 set,)
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1858 ,set)
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1862 ,);;
1863 *)
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883 esac
1884 fi
1885 done
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1892 fi
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 LLVM_VERSION_MAJOR=3
1927 LLVM_VERSION_MINOR=6
1928 LLVM_VERSION_PATCH=0
1929 LLVM_VERSION_SUFFIX=svn
1932 cat >>confdefs.h <<_ACEOF
1933 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1934 _ACEOF
1937 cat >>confdefs.h <<_ACEOF
1938 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1939 _ACEOF
1942 cat >>confdefs.h <<_ACEOF
1943 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1944 _ACEOF
1952 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1960 ac_aux_dir=
1961 for ac_dir in autoconf "$srcdir"/autoconf; do
1962 if test -f "$ac_dir/install-sh"; then
1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1965 break
1966 elif test -f "$ac_dir/install.sh"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1969 break
1970 elif test -f "$ac_dir/shtool"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1973 break
1974 fi
1975 done
1976 if test -z "$ac_aux_dir"; then
1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1979 { (exit 1); exit 1; }; }
1980 fi
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992 if test ${srcdir} != "." ; then
1993 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1994 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1995 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1996 { (exit 1); exit 1; }; }
1997 fi
1998 fi
2000 : ${CFLAGS=}
2001 : ${CXXFLAGS=}
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 for ac_prog in clang gcc
2010 do
2011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2048 test -n "$CC" && break
2049 done
2050 fi
2051 if test -z "$CC"; then
2052 ac_ct_CC=$CC
2053 for ac_prog in clang gcc
2054 do
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_ac_ct_CC="$ac_prog"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2075 fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2080 fi
2081 fi
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6; }
2086 else
2087 { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2089 fi
2092 test -n "$ac_ct_CC" && break
2093 done
2095 if test "x$ac_ct_CC" = x; then
2096 CC=""
2097 else
2098 case $cross_compiling:$ac_tool_warned in
2099 yes:)
2100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet. If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&5
2103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2104 whose name does not start with the host triplet. If you think this
2105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2106 ac_tool_warned=yes ;;
2107 esac
2108 CC=$ac_ct_CC
2109 fi
2110 fi
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO: checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (ac_try="$ac_compiler --version >&5"
2123 case "(($ac_try" in
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler --version >&5") 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -v >&5"
2133 case "(($ac_try" in
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -v >&5") 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2142 { (ac_try="$ac_compiler -V >&5"
2143 case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146 esac
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_compiler -V >&5") 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2153 cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h. */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2160 int
2161 main ()
2162 {
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2172 # of exeext.
2173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176 #
2177 # List of possible output files, starting from the most likely.
2178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2179 # only as a last resort. b.out is created by i960 compilers.
2180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2181 #
2182 # The IRIX 6 linker writes into existing files which may not be
2183 # executable, retaining their permissions. Remove them first so a
2184 # subsequent execution test works.
2185 ac_rmfiles=
2186 for ac_file in $ac_files
2187 do
2188 case $ac_file in
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2191 esac
2192 done
2193 rm -f $ac_rmfiles
2195 if { (ac_try="$ac_link_default"
2196 case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2199 esac
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201 (eval "$ac_link_default") 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; then
2205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2208 # so that the user can short-circuit this test for compilers unknown to
2209 # Autoconf.
2210 for ac_file in $ac_files
2211 do
2212 test -f "$ac_file" || continue
2213 case $ac_file in
2214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2215 ;;
2216 [ab].out )
2217 # We found the default executable, but exeext='' is most
2218 # certainly right.
2219 break;;
2220 *.* )
2221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2222 then :; else
2223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224 fi
2225 # We set ac_cv_exeext here because the later test for it is not
2226 # safe: cross compilers may not add the suffix if given an `-o'
2227 # argument, so we may need to know it at that point already.
2228 # Even if this section looks crufty: it has the advantage of
2229 # actually working.
2230 break;;
2231 * )
2232 break;;
2233 esac
2234 done
2235 test "$ac_cv_exeext" = no && ac_cv_exeext=
2237 else
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&2;}
2245 { (exit 77); exit 77; }; }
2246 fi
2248 ac_exeext=$ac_cv_exeext
2249 { echo "$as_me:$LINENO: result: $ac_file" >&5
2250 echo "${ECHO_T}$ac_file" >&6; }
2252 # Check that the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257 # If not cross compiling, check that we can run a simple program.
2258 if test "$cross_compiling" != yes; then
2259 if { ac_try='./$ac_file'
2260 { (case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263 esac
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265 (eval "$ac_try") 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2269 cross_compiling=no
2270 else
2271 if test "$cross_compiling" = maybe; then
2272 cross_compiling=yes
2273 else
2274 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&2;}
2280 { (exit 1); exit 1; }; }
2281 fi
2282 fi
2283 fi
2284 { echo "$as_me:$LINENO: result: yes" >&5
2285 echo "${ECHO_T}yes" >&6; }
2287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2288 ac_clean_files=$ac_clean_files_save
2289 # Check that the compiler produces executables we can run. If not, either
2290 # the compiler is broken, or we cross compile.
2291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2294 echo "${ECHO_T}$cross_compiling" >&6; }
2296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2298 if { (ac_try="$ac_link"
2299 case "(($ac_try" in
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2302 esac
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304 (eval "$ac_link") 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; then
2308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2310 # work properly (i.e., refer to `conftest.exe'), while it won't with
2311 # `rm'.
2312 for ac_file in conftest.exe conftest conftest.*; do
2313 test -f "$ac_file" || continue
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317 break;;
2318 * ) break;;
2319 esac
2320 done
2321 else
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2327 fi
2329 rm -f conftest$ac_cv_exeext
2330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2335 ac_exeext=$EXEEXT
2336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2338 if test "${ac_cv_objext+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h. */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2348 int
2349 main ()
2350 {
2352 ;
2353 return 0;
2354 }
2355 _ACEOF
2356 rm -f conftest.o conftest.obj
2357 if { (ac_try="$ac_compile"
2358 case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361 esac
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_compile") 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; then
2367 for ac_file in conftest.o conftest.obj conftest.*; do
2368 test -f "$ac_file" || continue;
2369 case $ac_file in
2370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372 break;;
2373 esac
2374 done
2375 else
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2384 fi
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387 fi
2388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6; }
2390 OBJEXT=$ac_cv_objext
2391 ac_objext=$OBJEXT
2392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h. */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2404 int
2405 main ()
2406 {
2407 #ifndef __GNUC__
2408 choke me
2409 #endif
2411 ;
2412 return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (ac_try="$ac_compile"
2417 case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_compile") 2>conftest.er1
2423 ac_status=$?
2424 grep -v '^ *+' conftest.er1 >conftest.err
2425 rm -f conftest.er1
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; } &&
2439 { ac_try='test -s conftest.$ac_objext'
2440 { (case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_try") 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2449 ac_compiler_gnu=yes
2450 else
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2454 ac_compiler_gnu=no
2455 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2460 fi
2461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2463 GCC=`test $ac_compiler_gnu = yes && echo yes`
2464 ac_test_CFLAGS=${CFLAGS+set}
2465 ac_save_CFLAGS=$CFLAGS
2466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_cc_g+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 ac_save_c_werror_flag=$ac_c_werror_flag
2472 ac_c_werror_flag=yes
2473 ac_cv_prog_cc_g=no
2474 CFLAGS="-g"
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h. */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2482 int
2483 main ()
2484 {
2486 ;
2487 return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.$ac_objext
2491 if { (ac_try="$ac_compile"
2492 case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495 esac
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_compile") 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2524 ac_cv_prog_cc_g=yes
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 CFLAGS=""
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h. */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2537 int
2538 main ()
2539 {
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (ac_try="$ac_compile"
2547 case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_compile") 2>conftest.er1
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_try") 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 :
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 ac_c_werror_flag=$ac_save_c_werror_flag
2585 CFLAGS="-g"
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2593 int
2594 main ()
2595 {
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2603 case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2609 ac_status=$?
2610 grep -v '^ *+' conftest.er1 >conftest.err
2611 rm -f conftest.er1
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_prog_cc_g=yes
2636 else
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 fi
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 fi
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 ac_c_werror_flag=$ac_save_c_werror_flag
2651 fi
2652 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2654 if test "$ac_test_CFLAGS" = set; then
2655 CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657 if test "$GCC" = yes; then
2658 CFLAGS="-g -O2"
2659 else
2660 CFLAGS="-g"
2661 fi
2662 else
2663 if test "$GCC" = yes; then
2664 CFLAGS="-O2"
2665 else
2666 CFLAGS=
2667 fi
2668 fi
2669 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2670 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_c89+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 ac_cv_prog_cc_c89=no
2675 ac_save_CC=$CC
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 #include <stdarg.h>
2683 #include <stdio.h>
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2690 char **p;
2691 int i;
2692 {
2693 return p[i];
2694 }
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2696 {
2697 char *s;
2698 va_list v;
2699 va_start (v,p);
2700 s = g (p, va_arg (v,int));
2701 va_end (v);
2702 return s;
2703 }
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2706 function prototypes and stuff, but not '\xHH' hex character constants.
2707 These don't provoke an error unfortunately, instead are silently treated
2708 as 'x'. The following induces an error, until -std is added to get
2709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2710 array size at least. It's necessary to write '\x00'==0 to get something
2711 that's true only with -std. */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2715 inside strings and character constants. */
2716 #define FOO(x) 'x'
2717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2719 int test (int i, double x);
2720 struct s1 {int (*f) (int a);};
2721 struct s2 {int (*f) (double a);};
2722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2723 int argc;
2724 char **argv;
2725 int
2726 main ()
2727 {
2728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2729 ;
2730 return 0;
2731 }
2732 _ACEOF
2733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 do
2736 CC="$ac_save_CC $ac_arg"
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_try") 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_prog_cc_c89=$ac_arg
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2777 fi
2779 rm -f core conftest.err conftest.$ac_objext
2780 test "x$ac_cv_prog_cc_c89" != "xno" && break
2781 done
2782 rm -f conftest.$ac_ext
2783 CC=$ac_save_CC
2785 fi
2786 # AC_CACHE_VAL
2787 case "x$ac_cv_prog_cc_c89" in
2788 x)
2789 { echo "$as_me:$LINENO: result: none needed" >&5
2790 echo "${ECHO_T}none needed" >&6; } ;;
2791 xno)
2792 { echo "$as_me:$LINENO: result: unsupported" >&5
2793 echo "${ECHO_T}unsupported" >&6; } ;;
2794 *)
2795 CC="$CC $ac_cv_prog_cc_c89"
2796 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2798 esac
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 ac_ext=cpp
2808 ac_cpp='$CXXCPP $CPPFLAGS'
2809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2812 if test -z "$CXX"; then
2813 if test -n "$CCC"; then
2814 CXX=$CCC
2815 else
2816 if test -n "$ac_tool_prefix"; then
2817 for ac_prog in clang++ g++
2818 do
2819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826 if test -n "$CXX"; then
2827 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2844 fi
2845 fi
2846 CXX=$ac_cv_prog_CXX
2847 if test -n "$CXX"; then
2848 { echo "$as_me:$LINENO: result: $CXX" >&5
2849 echo "${ECHO_T}$CXX" >&6; }
2850 else
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2856 test -n "$CXX" && break
2857 done
2858 fi
2859 if test -z "$CXX"; then
2860 ac_ct_CXX=$CXX
2861 for ac_prog in clang++ g++
2862 do
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870 if test -n "$ac_ct_CXX"; then
2871 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_ac_ct_CXX="$ac_prog"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2888 fi
2889 fi
2890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2891 if test -n "$ac_ct_CXX"; then
2892 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2893 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2894 else
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2897 fi
2900 test -n "$ac_ct_CXX" && break
2901 done
2903 if test "x$ac_ct_CXX" = x; then
2904 CXX="g++"
2905 else
2906 case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet. If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&5
2911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2912 whose name does not start with the host triplet. If you think this
2913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2914 ac_tool_warned=yes ;;
2915 esac
2916 CXX=$ac_ct_CXX
2917 fi
2918 fi
2920 fi
2921 fi
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2924 ac_compiler=`set X $ac_compile; echo $2`
2925 { (ac_try="$ac_compiler --version >&5"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler --version >&5") 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -v >&5"
2936 case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -v >&5") 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2945 { (ac_try="$ac_compiler -V >&5"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compiler -V >&5") 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2956 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961 cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h. */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2968 int
2969 main ()
2970 {
2971 #ifndef __GNUC__
2972 choke me
2973 #endif
2975 ;
2976 return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
2993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_try") 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3013 ac_compiler_gnu=yes
3014 else
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 ac_compiler_gnu=no
3019 fi
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3024 fi
3025 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3026 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3027 GXX=`test $ac_compiler_gnu = yes && echo yes`
3028 ac_test_CXXFLAGS=${CXXFLAGS+set}
3029 ac_save_CXXFLAGS=$CXXFLAGS
3030 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3031 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_cxx_g+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3036 ac_cxx_werror_flag=yes
3037 ac_cv_prog_cxx_g=no
3038 CXXFLAGS="-g"
3039 cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h. */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3046 int
3047 main ()
3048 {
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3056 case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3062 ac_status=$?
3063 grep -v '^ *+' conftest.er1 >conftest.err
3064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } &&
3068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; } &&
3078 { ac_try='test -s conftest.$ac_objext'
3079 { (case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_try") 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_prog_cxx_g=yes
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 CXXFLAGS=""
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3101 int
3102 main ()
3103 {
3105 ;
3106 return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 :
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3149 CXXFLAGS="-g"
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3157 int
3158 main ()
3159 {
3161 ;
3162 return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 ac_cv_prog_cxx_g=yes
3200 else
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3205 fi
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3215 fi
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3218 if test "$ac_test_CXXFLAGS" = set; then
3219 CXXFLAGS=$ac_save_CXXFLAGS
3220 elif test $ac_cv_prog_cxx_g = yes; then
3221 if test "$GXX" = yes; then
3222 CXXFLAGS="-g -O2"
3223 else
3224 CXXFLAGS="-g"
3225 fi
3226 else
3227 if test "$GXX" = yes; then
3228 CXXFLAGS="-O2"
3229 else
3230 CXXFLAGS=
3231 fi
3232 fi
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3245 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3248 CPP=
3249 fi
3250 if test -z "$CPP"; then
3251 if test "${ac_cv_prog_CPP+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 # Double quotes because CPP needs to be expanded
3255 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3256 do
3257 ac_preproc_ok=false
3258 for ac_c_preproc_warn_flag in '' yes
3259 do
3260 # Use a header file that comes with gcc, so configuring glibc
3261 # with a fresh cross-compiler works.
3262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263 # <limits.h> exists even on freestanding compilers.
3264 # On the NeXT, cc -E runs the code through the compiler's parser,
3265 # not just through cpp. "Syntax error" is here to catch this case.
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h. */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #ifdef __STDC__
3273 # include <limits.h>
3274 #else
3275 # include <assert.h>
3276 #endif
3277 Syntax error
3278 _ACEOF
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295 else
3296 ac_cpp_err=
3297 fi
3298 else
3299 ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302 :
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 # Broken: fails on valid input.
3308 continue
3309 fi
3311 rm -f conftest.err conftest.$ac_ext
3313 # OK, works on sane cases. Now check whether nonexistent headers
3314 # can be detected and how.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3321 #include <ac_nonexistent.h>
3322 _ACEOF
3323 if { (ac_try="$ac_cpp conftest.$ac_ext"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } >/dev/null; then
3336 if test -s conftest.err; then
3337 ac_cpp_err=$ac_c_preproc_warn_flag
3338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3339 else
3340 ac_cpp_err=
3341 fi
3342 else
3343 ac_cpp_err=yes
3344 fi
3345 if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3347 continue
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 # Passes both tests.
3353 ac_preproc_ok=:
3354 break
3355 fi
3357 rm -f conftest.err conftest.$ac_ext
3359 done
3360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3361 rm -f conftest.err conftest.$ac_ext
3362 if $ac_preproc_ok; then
3363 break
3364 fi
3366 done
3367 ac_cv_prog_CPP=$CPP
3369 fi
3370 CPP=$ac_cv_prog_CPP
3371 else
3372 ac_cv_prog_CPP=$CPP
3373 fi
3374 { echo "$as_me:$LINENO: result: $CPP" >&5
3375 echo "${ECHO_T}$CPP" >&6; }
3376 ac_preproc_ok=false
3377 for ac_c_preproc_warn_flag in '' yes
3378 do
3379 # Use a header file that comes with gcc, so configuring glibc
3380 # with a fresh cross-compiler works.
3381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382 # <limits.h> exists even on freestanding compilers.
3383 # On the NeXT, cc -E runs the code through the compiler's parser,
3384 # not just through cpp. "Syntax error" is here to catch this case.
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #ifdef __STDC__
3392 # include <limits.h>
3393 #else
3394 # include <assert.h>
3395 #endif
3396 Syntax error
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414 else
3415 ac_cpp_err=
3416 fi
3417 else
3418 ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421 :
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 # Broken: fails on valid input.
3427 continue
3428 fi
3430 rm -f conftest.err conftest.$ac_ext
3432 # OK, works on sane cases. Now check whether nonexistent headers
3433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h. */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <ac_nonexistent.h>
3441 _ACEOF
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458 else
3459 ac_cpp_err=
3460 fi
3461 else
3462 ac_cpp_err=yes
3463 fi
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3466 continue
3467 else
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Passes both tests.
3472 ac_preproc_ok=:
3473 break
3474 fi
3476 rm -f conftest.err conftest.$ac_ext
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482 :
3483 else
3484 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }
3489 fi
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test "$CXX" = "clang++" ; then
3499 { echo "$as_me:$LINENO: checking whether clang works" >&5
3500 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3501 ac_ext=cpp
3502 ac_cpp='$CXXCPP $CPPFLAGS'
3503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <limits>
3515 #if __has_include (<cxxabi.h>)
3516 #include <cxxabi.h>
3517 #endif
3518 #if __has_include (<unwind.h>)
3519 #include <unwind.h>
3520 #endif
3522 int
3523 main ()
3524 {
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_compile") 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; } &&
3554 { ac_try='test -s conftest.$ac_objext'
3555 { (case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_try") 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3565 { echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6; }
3568 else
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3573 { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3575 { { 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
3576 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;}
3577 { (exit 1); exit 1; }; }
3579 fi
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588 fi
3590 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3591 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3592 ac_ext=cpp
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3598 llvm_cv_cxx_compiler=unknown
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 #if ! __clang__
3606 #error
3607 #endif
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_compile") 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3625 { (case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_try") 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest.$ac_objext'
3635 { (case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 llvm_cv_cxx_compiler=clang
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 #if ! __GNUC__
3656 #error
3657 #endif
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_try") 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 llvm_cv_cxx_compiler=gcc
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3700 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 fi
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3713 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3717 if test -d ${srcdir}/projects/test-suite ; then
3718 subdirs="$subdirs projects/test-suite"
3720 fi
3722 if test -d ${srcdir}/projects/llvm-test ; then
3723 subdirs="$subdirs projects/llvm-test"
3725 fi
3727 if test -d ${srcdir}/projects/poolalloc ; then
3728 subdirs="$subdirs projects/poolalloc"
3730 fi
3732 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3733 subdirs="$subdirs projects/llvm-poolalloc"
3735 fi
3737 for i in `ls ${srcdir}/projects`
3738 do
3739 if test -d ${srcdir}/projects/${i} ; then
3740 case ${i} in
3741 safecode) subdirs="$subdirs projects/safecode"
3742 ;;
3743 compiler-rt) ;;
3744 test-suite) ;;
3745 llvm-test) ;;
3746 poolalloc) ;;
3747 llvm-poolalloc) ;;
3748 *)
3749 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3750 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3751 ;;
3752 esac
3753 fi
3754 done
3756 # Check whether --enable-polly was given.
3757 if test "${enable_polly+set}" = set; then
3758 enableval=$enable_polly;
3759 else
3760 enableval=default
3761 fi
3763 case "$enableval" in
3764 yes) ENABLE_POLLY=1
3765 ;;
3766 no) ENABLE_POLLY=0
3767 ;;
3768 default) ENABLE_POLLY=1
3769 ;;
3770 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3771 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3772 { (exit 1); exit 1; }; } ;;
3773 esac
3776 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3777 LLVM_HAS_POLLY=1
3779 subdirs="$subdirs tools/polly"
3781 fi
3784 # Make sure we can run config.sub.
3785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3786 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3787 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3788 { (exit 1); exit 1; }; }
3790 { echo "$as_me:$LINENO: checking build system type" >&5
3791 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3792 if test "${ac_cv_build+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 ac_build_alias=$build_alias
3796 test "x$ac_build_alias" = x &&
3797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3798 test "x$ac_build_alias" = x &&
3799 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3800 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3801 { (exit 1); exit 1; }; }
3802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3803 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3804 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3805 { (exit 1); exit 1; }; }
3807 fi
3808 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3809 echo "${ECHO_T}$ac_cv_build" >&6; }
3810 case $ac_cv_build in
3811 *-*-*) ;;
3812 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3813 echo "$as_me: error: invalid value of canonical build" >&2;}
3814 { (exit 1); exit 1; }; };;
3815 esac
3816 build=$ac_cv_build
3817 ac_save_IFS=$IFS; IFS='-'
3818 set x $ac_cv_build
3819 shift
3820 build_cpu=$1
3821 build_vendor=$2
3822 shift; shift
3823 # Remember, the first character of IFS is used to create $*,
3824 # except with old shells:
3825 build_os=$*
3826 IFS=$ac_save_IFS
3827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830 { echo "$as_me:$LINENO: checking host system type" >&5
3831 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3832 if test "${ac_cv_host+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 if test "x$host_alias" = x; then
3836 ac_cv_host=$ac_cv_build
3837 else
3838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3839 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3840 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3841 { (exit 1); exit 1; }; }
3842 fi
3844 fi
3845 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3846 echo "${ECHO_T}$ac_cv_host" >&6; }
3847 case $ac_cv_host in
3848 *-*-*) ;;
3849 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3850 echo "$as_me: error: invalid value of canonical host" >&2;}
3851 { (exit 1); exit 1; }; };;
3852 esac
3853 host=$ac_cv_host
3854 ac_save_IFS=$IFS; IFS='-'
3855 set x $ac_cv_host
3856 shift
3857 host_cpu=$1
3858 host_vendor=$2
3859 shift; shift
3860 # Remember, the first character of IFS is used to create $*,
3861 # except with old shells:
3862 host_os=$*
3863 IFS=$ac_save_IFS
3864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867 { echo "$as_me:$LINENO: checking target system type" >&5
3868 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3869 if test "${ac_cv_target+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872 if test "x$target_alias" = x; then
3873 ac_cv_target=$ac_cv_host
3874 else
3875 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3876 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3877 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3878 { (exit 1); exit 1; }; }
3879 fi
3881 fi
3882 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3883 echo "${ECHO_T}$ac_cv_target" >&6; }
3884 case $ac_cv_target in
3885 *-*-*) ;;
3886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3887 echo "$as_me: error: invalid value of canonical target" >&2;}
3888 { (exit 1); exit 1; }; };;
3889 esac
3890 target=$ac_cv_target
3891 ac_save_IFS=$IFS; IFS='-'
3892 set x $ac_cv_target
3893 shift
3894 target_cpu=$1
3895 target_vendor=$2
3896 shift; shift
3897 # Remember, the first character of IFS is used to create $*,
3898 # except with old shells:
3899 target_os=$*
3900 IFS=$ac_save_IFS
3901 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3904 # The aliases save the names the user supplied, while $host etc.
3905 # will get canonicalized.
3906 test -n "$target_alias" &&
3907 test "$program_prefix$program_suffix$program_transform_name" = \
3908 NONENONEs,x,x, &&
3909 program_prefix=${target_alias}-
3911 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3912 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3913 if test "${llvm_cv_os_type+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 case $host in
3917 *-*-aix*)
3918 llvm_cv_link_all_option="-Wl,--whole-archive"
3919 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3920 llvm_cv_os_type="AIX"
3921 llvm_cv_platform_type="Unix" ;;
3922 *-*-irix*)
3923 llvm_cv_link_all_option="-Wl,--whole-archive"
3924 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3925 llvm_cv_os_type="IRIX"
3926 llvm_cv_platform_type="Unix" ;;
3927 *-*-cygwin*)
3928 llvm_cv_link_all_option="-Wl,--whole-archive"
3929 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3930 llvm_cv_os_type="Cygwin"
3931 llvm_cv_platform_type="Unix" ;;
3932 *-*-darwin*)
3933 llvm_cv_link_all_option="-Wl,-all_load"
3934 llvm_cv_no_link_all_option="-Wl,-noall_load"
3935 llvm_cv_os_type="Darwin"
3936 llvm_cv_platform_type="Unix" ;;
3937 *-*-minix*)
3938 llvm_cv_link_all_option="-Wl,-all_load"
3939 llvm_cv_no_link_all_option="-Wl,-noall_load"
3940 llvm_cv_os_type="Minix"
3941 llvm_cv_platform_type="Unix" ;;
3942 *-*-freebsd*)
3943 llvm_cv_link_all_option="-Wl,--whole-archive"
3944 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3945 llvm_cv_os_type="FreeBSD"
3946 llvm_cv_platform_type="Unix" ;;
3947 *-*-kfreebsd-gnu)
3948 llvm_cv_link_all_option="-Wl,--whole-archive"
3949 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3950 llvm_cv_os_type="GNU/kFreeBSD"
3951 llvm_cv_platform_type="Unix" ;;
3952 *-*-openbsd*)
3953 llvm_cv_link_all_option="-Wl,--whole-archive"
3954 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3955 llvm_cv_os_type="OpenBSD"
3956 llvm_cv_platform_type="Unix" ;;
3957 *-*-netbsd*)
3958 llvm_cv_link_all_option="-Wl,--whole-archive"
3959 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3960 llvm_cv_os_type="NetBSD"
3961 llvm_cv_platform_type="Unix" ;;
3962 *-*-dragonfly*)
3963 llvm_cv_link_all_option="-Wl,--whole-archive"
3964 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3965 llvm_cv_os_type="DragonFly"
3966 llvm_cv_platform_type="Unix" ;;
3967 *-*-hpux*)
3968 llvm_cv_link_all_option="-Wl,--whole-archive"
3969 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3970 llvm_cv_os_type="HP-UX"
3971 llvm_cv_platform_type="Unix" ;;
3972 *-*-interix*)
3973 llvm_cv_link_all_option="-Wl,--whole-archive"
3974 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3975 llvm_cv_os_type="Interix"
3976 llvm_cv_platform_type="Unix" ;;
3977 *-*-linux*)
3978 llvm_cv_link_all_option="-Wl,--whole-archive"
3979 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3980 llvm_cv_os_type="Linux"
3981 llvm_cv_platform_type="Unix" ;;
3982 *-*-gnu*)
3983 llvm_cv_link_all_option="-Wl,--whole-archive"
3984 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3985 llvm_cv_os_type="GNU"
3986 llvm_cv_platform_type="Unix" ;;
3987 *-*-solaris*)
3988 llvm_cv_link_all_option="-Wl,-z,allextract"
3989 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3990 llvm_cv_os_type="SunOS"
3991 llvm_cv_platform_type="Unix" ;;
3992 *-*-win32*)
3993 llvm_cv_link_all_option="-Wl,--whole-archive"
3994 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3995 llvm_cv_os_type="Win32"
3996 llvm_cv_platform_type="Win32" ;;
3997 *-*-mingw*)
3998 llvm_cv_link_all_option="-Wl,--whole-archive"
3999 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4000 llvm_cv_os_type="MingW"
4001 llvm_cv_platform_type="Win32" ;;
4002 *-*-haiku*)
4003 llvm_cv_link_all_option="-Wl,--whole-archive"
4004 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4005 llvm_cv_os_type="Haiku"
4006 llvm_cv_platform_type="Unix" ;;
4007 *-unknown-eabi*)
4008 llvm_cv_link_all_option="-Wl,--whole-archive"
4009 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4010 llvm_cv_os_type="Freestanding"
4011 llvm_cv_platform_type="Unix" ;;
4012 *-unknown-elf*)
4013 llvm_cv_link_all_option="-Wl,--whole-archive"
4014 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4015 llvm_cv_os_type="Freestanding"
4016 llvm_cv_platform_type="Unix" ;;
4017 *)
4018 llvm_cv_link_all_option=""
4019 llvm_cv_no_link_all_option=""
4020 llvm_cv_os_type="Unknown"
4021 llvm_cv_platform_type="Unknown" ;;
4022 esac
4023 fi
4024 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4025 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4027 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4028 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4029 if test "${llvm_cv_target_os_type+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032 case $target in
4033 *-*-aix*)
4034 llvm_cv_target_os_type="AIX" ;;
4035 *-*-irix*)
4036 llvm_cv_target_os_type="IRIX" ;;
4037 *-*-cygwin*)
4038 llvm_cv_target_os_type="Cygwin" ;;
4039 *-*-darwin*)
4040 llvm_cv_target_os_type="Darwin" ;;
4041 *-*-minix*)
4042 llvm_cv_target_os_type="Minix" ;;
4043 *-*-freebsd*)
4044 llvm_cv_target_os_type="FreeBSD" ;;
4045 *-*-kfreebsd-gnu)
4046 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4047 *-*-openbsd*)
4048 llvm_cv_target_os_type="OpenBSD" ;;
4049 *-*-netbsd*)
4050 llvm_cv_target_os_type="NetBSD" ;;
4051 *-*-dragonfly*)
4052 llvm_cv_target_os_type="DragonFly" ;;
4053 *-*-hpux*)
4054 llvm_cv_target_os_type="HP-UX" ;;
4055 *-*-interix*)
4056 llvm_cv_target_os_type="Interix" ;;
4057 *-*-linux*)
4058 llvm_cv_target_os_type="Linux" ;;
4059 *-*-gnu*)
4060 llvm_cv_target_os_type="GNU" ;;
4061 *-*-solaris*)
4062 llvm_cv_target_os_type="SunOS" ;;
4063 *-*-win32*)
4064 llvm_cv_target_os_type="Win32" ;;
4065 *-*-mingw*)
4066 llvm_cv_target_os_type="MingW" ;;
4067 *-*-haiku*)
4068 llvm_cv_target_os_type="Haiku" ;;
4069 *-*-rtems*)
4070 llvm_cv_target_os_type="RTEMS" ;;
4071 *-*-nacl*)
4072 llvm_cv_target_os_type="NativeClient" ;;
4073 *-unknown-eabi*)
4074 llvm_cv_target_os_type="Freestanding" ;;
4075 *)
4076 llvm_cv_target_os_type="Unknown" ;;
4077 esac
4078 fi
4079 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4080 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4082 if test "$llvm_cv_os_type" = "Unknown" ; then
4083 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4084 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4085 { (exit 1); exit 1; }; }
4086 fi
4088 OS=$llvm_cv_os_type
4090 HOST_OS=$llvm_cv_os_type
4092 TARGET_OS=$llvm_cv_target_os_type
4095 LINKALL=$llvm_cv_link_all_option
4097 NOLINKALL=$llvm_cv_no_link_all_option
4100 case $llvm_cv_platform_type in
4101 Unix)
4103 cat >>confdefs.h <<\_ACEOF
4104 #define LLVM_ON_UNIX 1
4105 _ACEOF
4107 LLVM_ON_UNIX=1
4109 LLVM_ON_WIN32=0
4111 ;;
4112 Win32)
4114 cat >>confdefs.h <<\_ACEOF
4115 #define LLVM_ON_WIN32 1
4116 _ACEOF
4118 LLVM_ON_UNIX=0
4120 LLVM_ON_WIN32=1
4122 ;;
4123 esac
4125 { echo "$as_me:$LINENO: checking target architecture" >&5
4126 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4127 if test "${llvm_cv_target_arch+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 case $target in
4131 i?86-*) llvm_cv_target_arch="x86" ;;
4132 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4133 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4134 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4135 arm64*-*) llvm_cv_target_arch="AArch64" ;;
4136 arm*-*) llvm_cv_target_arch="ARM" ;;
4137 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4138 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4139 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4140 xcore-*) llvm_cv_target_arch="XCore" ;;
4141 msp430-*) llvm_cv_target_arch="MSP430" ;;
4142 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4143 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4144 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4145 *) llvm_cv_target_arch="Unknown" ;;
4146 esac
4147 fi
4148 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4149 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4151 if test "$llvm_cv_target_arch" = "Unknown" ; then
4152 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4153 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4154 fi
4156 case "$llvm_cv_target_arch" in
4157 x86) LLVM_NATIVE_ARCH="X86" ;;
4158 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4159 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4160 esac
4162 ARCH=$llvm_cv_target_arch
4164 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4167 case $host in
4168 i?86-*) host_arch="x86" ;;
4169 amd64-* | x86_64-*) host_arch="x86_64" ;;
4170 sparc*-*) host_arch="Sparc" ;;
4171 powerpc*-*) host_arch="PowerPC" ;;
4172 arm64*-*) host_arch="AArch64" ;;
4173 arm*-*) host_arch="ARM" ;;
4174 aarch64*-*) host_arch="AArch64" ;;
4175 mips-* | mips64-*) host_arch="Mips" ;;
4176 mipsel-* | mips64el-*) host_arch="Mips" ;;
4177 xcore-*) host_arch="XCore" ;;
4178 msp430-*) host_arch="MSP430" ;;
4179 hexagon-*) host_arch="Hexagon" ;;
4180 s390x-*) host_arch="SystemZ" ;;
4181 *) host_arch="Unknown" ;;
4182 esac
4184 if test "$host_arch" = "Unknown" ; then
4185 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4186 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4187 fi
4189 HOST_ARCH=$host_arch
4192 if test "$cross_compiling" = yes; then
4193 LLVM_CROSS_COMPILING=1
4196 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4197 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4198 if test "${ac_cv_build_exeext+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4202 ac_cv_build_exeext=.exe
4203 else
4204 ac_build_prefix=${build_alias}-
4206 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4207 set dummy ${ac_build_prefix}gcc; ac_word=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213 if test -n "$BUILD_CC"; then
4214 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4226 fi
4227 done
4228 done
4229 IFS=$as_save_IFS
4231 fi
4232 fi
4233 BUILD_CC=$ac_cv_prog_BUILD_CC
4234 if test -n "$BUILD_CC"; then
4235 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4236 echo "${ECHO_T}$BUILD_CC" >&6; }
4237 else
4238 { echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6; }
4240 fi
4243 if test -z "$BUILD_CC"; then
4244 # Extract the first word of "gcc", so it can be a program name with args.
4245 set dummy gcc; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 if test -n "$BUILD_CC"; then
4252 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_BUILD_CC="gcc"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4269 fi
4270 fi
4271 BUILD_CC=$ac_cv_prog_BUILD_CC
4272 if test -n "$BUILD_CC"; then
4273 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4274 echo "${ECHO_T}$BUILD_CC" >&6; }
4275 else
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4278 fi
4281 if test -z "$BUILD_CC"; then
4282 # Extract the first word of "cc", so it can be a program name with args.
4283 set dummy cc; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 if test -n "$BUILD_CC"; then
4290 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4291 else
4292 ac_prog_rejected=no
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4301 ac_prog_rejected=yes
4302 continue
4303 fi
4304 ac_cv_prog_BUILD_CC="cc"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4307 fi
4308 done
4309 done
4310 IFS=$as_save_IFS
4312 if test $ac_prog_rejected = yes; then
4313 # We found a bogon in the path, so make sure we never use it.
4314 set dummy $ac_cv_prog_BUILD_CC
4315 shift
4316 if test $# != 0; then
4317 # We chose a different compiler from the bogus one.
4318 # However, it has the same basename, so the bogon will be chosen
4319 # first if we set BUILD_CC to just the basename; use the full file name.
4320 shift
4321 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4322 fi
4323 fi
4324 fi
4325 fi
4326 BUILD_CC=$ac_cv_prog_BUILD_CC
4327 if test -n "$BUILD_CC"; then
4328 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4329 echo "${ECHO_T}$BUILD_CC" >&6; }
4330 else
4331 { echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6; }
4333 fi
4336 fi
4337 fi
4338 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4339 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4340 { (exit 1); exit 1; }; }
4341 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4342 rm -f conftest*
4343 echo 'int main () { return 0; }' > conftest.$ac_ext
4344 ac_cv_build_exeext=
4345 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4346 (eval $ac_build_link) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; then
4350 for file in conftest.*; do
4351 case $file in
4352 *.c | *.o | *.obj | *.dSYM) ;;
4353 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4354 esac
4355 done
4356 else
4357 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4358 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4359 { (exit 1); exit 1; }; }
4360 fi
4361 rm -f conftest*
4362 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4363 fi
4364 fi
4366 BUILD_EXEEXT=""
4367 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4368 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4369 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4370 ac_build_exeext=$BUILD_EXEEXT
4372 ac_build_prefix=${build_alias}-
4373 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4374 set dummy ${ac_build_prefix}g++; ac_word=$2
4375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4377 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 if test -n "$BUILD_CXX"; then
4381 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4398 fi
4399 fi
4400 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4401 if test -n "$BUILD_CXX"; then
4402 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4403 echo "${ECHO_T}$BUILD_CXX" >&6; }
4404 else
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4407 fi
4410 if test -z "$BUILD_CXX"; then
4411 # Extract the first word of "g++", so it can be a program name with args.
4412 set dummy g++; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 if test -n "$BUILD_CXX"; then
4419 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_BUILD_CXX="g++"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4436 fi
4437 fi
4438 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4439 if test -n "$BUILD_CXX"; then
4440 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4441 echo "${ECHO_T}$BUILD_CXX" >&6; }
4442 else
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4445 fi
4448 if test -z "$BUILD_CXX"; then
4449 # Extract the first word of "c++", so it can be a program name with args.
4450 set dummy c++; ac_word=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 if test -n "$BUILD_CXX"; then
4457 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4458 else
4459 ac_prog_rejected=no
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4468 ac_prog_rejected=yes
4469 continue
4470 fi
4471 ac_cv_prog_BUILD_CXX="c++"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4474 fi
4475 done
4476 done
4477 IFS=$as_save_IFS
4479 if test $ac_prog_rejected = yes; then
4480 # We found a bogon in the path, so make sure we never use it.
4481 set dummy $ac_cv_prog_BUILD_CXX
4482 shift
4483 if test $# != 0; then
4484 # We chose a different compiler from the bogus one.
4485 # However, it has the same basename, so the bogon will be chosen
4486 # first if we set BUILD_CXX to just the basename; use the full file name.
4487 shift
4488 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4489 fi
4490 fi
4491 fi
4492 fi
4493 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4494 if test -n "$BUILD_CXX"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4496 echo "${ECHO_T}$BUILD_CXX" >&6; }
4497 else
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4500 fi
4503 fi
4504 fi
4505 else
4506 LLVM_CROSS_COMPILING=0
4508 fi
4510 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4511 cvsbuild="yes"
4512 optimize="no"
4513 CVSBUILD=CVSBUILD=1
4515 else
4516 cvsbuild="no"
4517 optimize="yes"
4518 fi
4521 # Check whether --enable-libcpp was given.
4522 if test "${enable_libcpp+set}" = set; then
4523 enableval=$enable_libcpp;
4524 else
4525 enableval=default
4526 fi
4528 case "$enableval" in
4529 yes) ENABLE_LIBCPP=1
4530 ;;
4531 no) ENABLE_LIBCPP=0
4532 ;;
4533 default) ENABLE_LIBCPP=0
4534 ;;
4535 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4536 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4537 { (exit 1); exit 1; }; } ;;
4538 esac
4540 # Check whether --enable-compiler-version-checks was given.
4541 if test "${enable_compiler_version_checks+set}" = set; then
4542 enableval=$enable_compiler_version_checks;
4543 else
4544 enableval=default
4545 fi
4547 case "$enableval" in
4548 no)
4549 ;;
4550 yes|default)
4551 ac_ext=cpp
4552 ac_cpp='$CXXCPP $CPPFLAGS'
4553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4557 case "$llvm_cv_cxx_compiler" in
4558 clang)
4559 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4560 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4568 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4569 #error This version of Clang is too old to build LLVM
4570 #endif
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_compile") 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_try") 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 { echo "$as_me:$LINENO: result: yes" >&5
4608 echo "${ECHO_T}yes" >&6; }
4609 else
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4615 { { echo "$as_me:$LINENO: error:
4616 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4617 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4618 bypass these sanity checks." >&5
4619 echo "$as_me: error:
4620 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4621 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4622 bypass these sanity checks." >&2;}
4623 { (exit 1); exit 1; }; }
4624 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 if test "$ENABLE_LIBCPP" -eq 0 ; then
4629 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4630 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4631 llvm_cv_old_cxxflags="$CXXFLAGS"
4632 CXXFLAGS="$CXXFLAGS -std=c++0x"
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4640 #include <atomic>
4641 std::atomic<float> x(0.0f);
4642 int main() { return (float)x; }
4644 _ACEOF
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_link") 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4660 { (case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665 (eval "$ac_try") 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest$ac_exeext'
4670 { (case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_try") 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4681 else
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 { { echo "$as_me:$LINENO: error:
4688 We detected a missing feature in the standard C++ library that was known to be
4689 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4690 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4691 than 4.7. You will need to update your system and ensure Clang uses the newer
4692 standard library.
4694 If this error is incorrect or you need to force things to work, you may pass
4695 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4696 echo "$as_me: error:
4697 We detected a missing feature in the standard C++ library that was known to be
4698 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4699 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4700 than 4.7. You will need to update your system and ensure Clang uses the newer
4701 standard library.
4703 If this error is incorrect or you need to force things to work, you may pass
4704 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4705 { (exit 1); exit 1; }; }
4706 fi
4708 rm -f core conftest.err conftest.$ac_objext \
4709 conftest$ac_exeext conftest.$ac_ext
4710 CXXFLAGS="$llvm_cv_old_cxxflags"
4711 fi
4712 ;;
4713 gcc)
4714 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4715 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4723 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4724 #error This version of GCC is too old to build LLVM
4725 #endif
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4730 case "(($ac_try" in
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4733 esac
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_compile") 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4743 { (case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_try") 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; } &&
4752 { ac_try='test -s conftest.$ac_objext'
4753 { (case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756 esac
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758 (eval "$ac_try") 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 { echo "$as_me:$LINENO: result: yes" >&5
4763 echo "${ECHO_T}yes" >&6; }
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4770 { { echo "$as_me:$LINENO: error:
4771 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4772 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4773 bypass these sanity checks." >&5
4774 echo "$as_me: error:
4775 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4776 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4777 bypass these sanity checks." >&2;}
4778 { (exit 1); exit 1; }; }
4779 fi
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 ;;
4783 unknown)
4784 ;;
4785 esac
4786 ac_ext=c
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4792 ;;
4793 *)
4794 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4795 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4796 { (exit 1); exit 1; }; }
4797 ;;
4798 esac
4800 # Check whether --enable-cxx1y was given.
4801 if test "${enable_cxx1y+set}" = set; then
4802 enableval=$enable_cxx1y;
4803 else
4804 enableval=default
4805 fi
4807 case "$enableval" in
4808 yes) ENABLE_CXX1Y=1
4809 ;;
4810 no) ENABLE_CXX1Y=0
4811 ;;
4812 default) ENABLE_CXX1Y=0
4813 ;;
4814 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4815 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4816 { (exit 1); exit 1; }; } ;;
4817 esac
4819 # Check whether --enable-split-dwarf was given.
4820 if test "${enable_split_dwarf+set}" = set; then
4821 enableval=$enable_split_dwarf;
4822 else
4823 enableval=default
4824 fi
4826 case "$enableval" in
4827 yes) ENABLE_SPLIT_DWARF=1
4828 ;;
4829 no) ENABLE_SPLIT_DWARF=0
4830 ;;
4831 default) ENABLE_SPLIT_DWARF=0
4832 ;;
4833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4835 { (exit 1); exit 1; }; } ;;
4836 esac
4838 clang_arcmt="yes"
4839 # Check whether --enable-clang-arcmt was given.
4840 if test "${enable_clang_arcmt+set}" = set; then
4841 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4842 else
4843 enableval="yes"
4844 fi
4846 case "$enableval" in
4847 yes) ENABLE_CLANG_ARCMT=1
4848 ;;
4849 no) ENABLE_CLANG_ARCMT=0
4850 ;;
4851 default) ENABLE_CLANG_ARCMT=1
4852 ;;
4853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
4856 esac
4858 clang_plugin_support="yes"
4859 # Check whether --enable-clang-plugin-support was given.
4860 if test "${enable_clang_plugin_support+set}" = set; then
4861 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4862 else
4863 enableval="yes"
4864 fi
4866 case "$enableval" in
4867 yes) CLANG_PLUGIN_SUPPORT=1
4868 ;;
4869 no) CLANG_PLUGIN_SUPPORT=0
4870 ;;
4871 default) CLANG_PLUGIN_SUPPORT=1
4872 ;;
4873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4876 esac
4878 clang_static_analyzer="yes"
4879 # Check whether --enable-clang-static-analyzer was given.
4880 if test "${enable_clang_static_analyzer+set}" = set; then
4881 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4882 else
4883 enableval="yes"
4884 fi
4886 case "$enableval" in
4887 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4888 ;;
4889 no)
4890 if test ${clang_arcmt} != "no" ; then
4891 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4892 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4893 { (exit 1); exit 1; }; }
4894 fi
4895 ENABLE_CLANG_STATIC_ANALYZER=0
4897 ;;
4898 default) ENABLE_CLANG_STATIC_ANALYZER=1
4899 ;;
4900 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4901 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4902 { (exit 1); exit 1; }; } ;;
4903 esac
4905 # Check whether --enable-optimized was given.
4906 if test "${enable_optimized+set}" = set; then
4907 enableval=$enable_optimized;
4908 else
4909 enableval=$optimize
4910 fi
4912 if test ${enableval} = "no" ; then
4913 ENABLE_OPTIMIZED=
4915 else
4916 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4918 fi
4920 # Check whether --enable-profiling was given.
4921 if test "${enable_profiling+set}" = set; then
4922 enableval=$enable_profiling;
4923 else
4924 enableval="no"
4925 fi
4927 if test ${enableval} = "no" ; then
4928 ENABLE_PROFILING=
4930 else
4931 ENABLE_PROFILING=ENABLE_PROFILING=1
4933 fi
4935 # Check whether --enable-assertions was given.
4936 if test "${enable_assertions+set}" = set; then
4937 enableval=$enable_assertions;
4938 else
4939 enableval="yes"
4940 fi
4942 if test ${enableval} = "yes" ; then
4943 DISABLE_ASSERTIONS=
4945 else
4946 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4948 fi
4950 # Check whether --enable-werror was given.
4951 if test "${enable_werror+set}" = set; then
4952 enableval=$enable_werror;
4953 else
4954 enableval="no"
4955 fi
4957 case "$enableval" in
4958 yes) ENABLE_WERROR=1
4959 ;;
4960 no) ENABLE_WERROR=0
4961 ;;
4962 default) ENABLE_WERROR=0
4963 ;;
4964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4965 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4966 { (exit 1); exit 1; }; } ;;
4967 esac
4969 # Check whether --enable-expensive-checks was given.
4970 if test "${enable_expensive_checks+set}" = set; then
4971 enableval=$enable_expensive_checks;
4972 else
4973 enableval="no"
4974 fi
4976 if test ${enableval} = "yes" ; then
4977 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4979 EXPENSIVE_CHECKS=yes
4981 else
4982 ENABLE_EXPENSIVE_CHECKS=
4984 EXPENSIVE_CHECKS=no
4986 fi
4988 # Check whether --enable-debug-runtime was given.
4989 if test "${enable_debug_runtime+set}" = set; then
4990 enableval=$enable_debug_runtime;
4991 else
4992 enableval=no
4993 fi
4995 if test ${enableval} = "no" ; then
4996 DEBUG_RUNTIME=
4998 else
4999 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5001 fi
5003 # Check whether --enable-debug-symbols was given.
5004 if test "${enable_debug_symbols+set}" = set; then
5005 enableval=$enable_debug_symbols;
5006 else
5007 enableval=no
5008 fi
5010 if test ${enableval} = "no" ; then
5011 DEBUG_SYMBOLS=
5013 else
5014 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5016 fi
5018 # Check whether --enable-keep-symbols was given.
5019 if test "${enable_keep_symbols+set}" = set; then
5020 enableval=$enable_keep_symbols;
5021 else
5022 enableval=no
5023 fi
5025 if test ${enableval} = "no" ; then
5026 KEEP_SYMBOLS=
5028 else
5029 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5031 fi
5033 # Check whether --enable-jit was given.
5034 if test "${enable_jit+set}" = set; then
5035 enableval=$enable_jit;
5036 else
5037 enableval=default
5038 fi
5040 if test ${enableval} = "no"
5041 then
5042 JIT=
5044 else
5045 case "$llvm_cv_target_arch" in
5046 x86) TARGET_HAS_JIT=1
5047 ;;
5048 Sparc) TARGET_HAS_JIT=0
5049 ;;
5050 PowerPC) TARGET_HAS_JIT=1
5051 ;;
5052 x86_64) TARGET_HAS_JIT=1
5053 ;;
5054 ARM) TARGET_HAS_JIT=1
5055 ;;
5056 Mips) TARGET_HAS_JIT=1
5057 ;;
5058 XCore) TARGET_HAS_JIT=0
5059 ;;
5060 MSP430) TARGET_HAS_JIT=0
5061 ;;
5062 Hexagon) TARGET_HAS_JIT=0
5063 ;;
5064 NVPTX) TARGET_HAS_JIT=0
5065 ;;
5066 SystemZ) TARGET_HAS_JIT=1
5067 ;;
5068 *) TARGET_HAS_JIT=0
5069 ;;
5070 esac
5071 fi
5073 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5074 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5077 # Check whether --enable-docs was given.
5078 if test "${enable_docs+set}" = set; then
5079 enableval=$enable_docs;
5080 else
5081 enableval=default
5082 fi
5084 case "$enableval" in
5085 yes) ENABLE_DOCS=1
5086 ;;
5087 no) ENABLE_DOCS=0
5088 ;;
5089 default) ENABLE_DOCS=1
5090 ;;
5091 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5092 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5093 { (exit 1); exit 1; }; } ;;
5094 esac
5096 # Check whether --enable-doxygen was given.
5097 if test "${enable_doxygen+set}" = set; then
5098 enableval=$enable_doxygen;
5099 else
5100 enableval=default
5101 fi
5103 case "$enableval" in
5104 yes) ENABLE_DOXYGEN=1
5105 ;;
5106 no) ENABLE_DOXYGEN=0
5107 ;;
5108 default) ENABLE_DOXYGEN=0
5109 ;;
5110 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5111 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5112 { (exit 1); exit 1; }; } ;;
5113 esac
5115 # Check whether --enable-threads was given.
5116 if test "${enable_threads+set}" = set; then
5117 enableval=$enable_threads;
5118 else
5119 enableval=default
5120 fi
5122 case "$enableval" in
5123 yes) LLVM_ENABLE_THREADS=1
5124 ;;
5125 no) LLVM_ENABLE_THREADS=0
5126 ;;
5127 default) LLVM_ENABLE_THREADS=1
5128 ;;
5129 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5130 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5131 { (exit 1); exit 1; }; } ;;
5132 esac
5134 cat >>confdefs.h <<_ACEOF
5135 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5136 _ACEOF
5139 # Check whether --enable-pthreads was given.
5140 if test "${enable_pthreads+set}" = set; then
5141 enableval=$enable_pthreads;
5142 else
5143 enableval=default
5144 fi
5146 case "$enableval" in
5147 yes) ENABLE_PTHREADS=1
5148 ;;
5149 no) ENABLE_PTHREADS=0
5150 ;;
5151 default) ENABLE_PTHREADS=1
5152 ;;
5153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5156 esac
5158 # Check whether --enable-zlib was given.
5159 if test "${enable_zlib+set}" = set; then
5160 enableval=$enable_zlib;
5161 else
5162 enableval=default
5163 fi
5165 case "$enableval" in
5166 yes) LLVM_ENABLE_ZLIB=1
5167 ;;
5168 no) LLVM_ENABLE_ZLIB=0
5169 ;;
5170 default) LLVM_ENABLE_ZLIB=1
5171 ;;
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5175 esac
5177 cat >>confdefs.h <<_ACEOF
5178 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5179 _ACEOF
5182 # Check whether --enable-pic was given.
5183 if test "${enable_pic+set}" = set; then
5184 enableval=$enable_pic;
5185 else
5186 enableval=default
5187 fi
5189 case "$enableval" in
5190 yes) ENABLE_PIC=1
5191 ;;
5192 no) ENABLE_PIC=0
5193 ;;
5194 default) ENABLE_PIC=1
5195 ;;
5196 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5199 esac
5201 cat >>confdefs.h <<_ACEOF
5202 #define ENABLE_PIC $ENABLE_PIC
5203 _ACEOF
5206 # Check whether --enable-shared was given.
5207 if test "${enable_shared+set}" = set; then
5208 enableval=$enable_shared;
5209 else
5210 enableval=default
5211 fi
5213 case "$enableval" in
5214 yes) ENABLE_SHARED=1
5215 ;;
5216 no) ENABLE_SHARED=0
5217 ;;
5218 default) ENABLE_SHARED=0
5219 ;;
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5223 esac
5225 # Check whether --enable-embed-stdcxx was given.
5226 if test "${enable_embed_stdcxx+set}" = set; then
5227 enableval=$enable_embed_stdcxx;
5228 else
5229 enableval=default
5230 fi
5232 case "$enableval" in
5233 yes) ENABLE_EMBED_STDCXX=1
5234 ;;
5235 no) ENABLE_EMBED_STDCXX=0
5236 ;;
5237 default) ENABLE_EMBED_STDCXX=0
5238 ;;
5239 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5242 esac
5244 # Check whether --enable-timestamps was given.
5245 if test "${enable_timestamps+set}" = set; then
5246 enableval=$enable_timestamps;
5247 else
5248 enableval=default
5249 fi
5251 case "$enableval" in
5252 yes) ENABLE_TIMESTAMPS=1
5253 ;;
5254 no) ENABLE_TIMESTAMPS=0
5255 ;;
5256 default) ENABLE_TIMESTAMPS=1
5257 ;;
5258 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5259 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5261 esac
5263 cat >>confdefs.h <<_ACEOF
5264 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5265 _ACEOF
5268 # Check whether --enable-backtraces was given.
5269 if test "${enable_backtraces+set}" = set; then
5270 enableval=$enable_backtraces; case "$enableval" in
5271 yes) llvm_cv_enable_backtraces="yes" ;;
5272 no) llvm_cv_enable_backtraces="no" ;;
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5276 esac
5277 else
5278 llvm_cv_enable_backtraces="yes"
5279 fi
5281 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5283 cat >>confdefs.h <<\_ACEOF
5284 #define ENABLE_BACKTRACES 1
5285 _ACEOF
5287 fi
5289 # Check whether --enable-crash-overrides was given.
5290 if test "${enable_crash_overrides+set}" = set; then
5291 enableval=$enable_crash_overrides; case "$enableval" in
5292 yes) llvm_cv_enable_crash_overrides="yes" ;;
5293 no) llvm_cv_enable_crash_overrides="no" ;;
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5297 esac
5298 else
5299 llvm_cv_enable_crash_overrides="yes"
5300 fi
5302 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5304 cat >>confdefs.h <<\_ACEOF
5305 #define ENABLE_CRASH_OVERRIDES 1
5306 _ACEOF
5308 fi
5310 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5311 ALL_TARGETS=$ALL_TARGETS
5314 TARGETS_TO_BUILD=""
5315 # Check whether --enable-targets was given.
5316 if test "${enable_targets+set}" = set; then
5317 enableval=$enable_targets;
5318 else
5319 enableval=all
5320 fi
5322 if test "$enableval" = host-only ; then
5323 enableval=host
5324 fi
5325 case "$enableval" in
5326 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5327 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5328 case "$a_target" in
5329 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5335 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5336 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5340 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5342 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5343 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5344 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5345 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5346 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5347 host) case "$llvm_cv_target_arch" in
5348 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5350 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5351 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5352 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5353 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5354 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5355 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5356 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5357 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5358 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5359 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5360 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5361 echo "$as_me: error: Can not set target to build" >&2;}
5362 { (exit 1); exit 1; }; } ;;
5363 esac ;;
5364 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5365 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5366 { (exit 1); exit 1; }; } ;;
5367 esac
5368 done
5369 ;;
5370 esac
5372 # Check whether --enable-experimental-targets was given.
5373 if test "${enable_experimental_targets+set}" = set; then
5374 enableval=$enable_experimental_targets;
5375 else
5376 enableval=disable
5377 fi
5380 if test ${enableval} != "disable"
5381 then
5382 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5383 fi
5385 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5388 for a_target in $TARGETS_TO_BUILD; do
5389 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5393 _ACEOF
5395 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5396 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5397 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5398 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5400 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5401 fi
5402 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5404 fi
5406 cat >>confdefs.h <<_ACEOF
5407 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5408 _ACEOF
5411 cat >>confdefs.h <<_ACEOF
5412 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5413 _ACEOF
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5418 _ACEOF
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5423 _ACEOF
5425 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5429 _ACEOF
5431 fi
5432 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5436 _ACEOF
5438 fi
5439 fi
5440 done
5442 LLVM_ENUM_TARGETS=""
5443 LLVM_ENUM_ASM_PRINTERS=""
5444 LLVM_ENUM_ASM_PARSERS=""
5445 LLVM_ENUM_DISASSEMBLERS=""
5446 for target_to_build in $TARGETS_TO_BUILD; do
5447 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5448 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5449 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5450 fi
5451 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5452 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5453 fi
5454 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5455 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5456 fi
5457 done
5464 # Check whether --with-optimize-option was given.
5465 if test "${with_optimize_option+set}" = set; then
5466 withval=$with_optimize_option;
5467 else
5468 withval=default
5469 fi
5471 { echo "$as_me:$LINENO: checking optimization flags" >&5
5472 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5473 case "$withval" in
5474 default)
5475 case "$llvm_cv_os_type" in
5476 FreeBSD) optimize_option=-O2 ;;
5477 MingW) optimize_option=-O2 ;;
5478 *) optimize_option=-O3 ;;
5479 esac ;;
5480 *) optimize_option="$withval" ;;
5481 esac
5482 OPTIMIZE_OPTION=$optimize_option
5484 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5485 echo "${ECHO_T}$optimize_option" >&6; }
5488 # Check whether --with-extra-options was given.
5489 if test "${with_extra_options+set}" = set; then
5490 withval=$with_extra_options;
5491 else
5492 withval=default
5493 fi
5495 case "$withval" in
5496 default) EXTRA_OPTIONS= ;;
5497 *) EXTRA_OPTIONS=$withval ;;
5498 esac
5499 EXTRA_OPTIONS=$EXTRA_OPTIONS
5503 # Check whether --with-extra-ld-options was given.
5504 if test "${with_extra_ld_options+set}" = set; then
5505 withval=$with_extra_ld_options;
5506 else
5507 withval=default
5508 fi
5510 case "$withval" in
5511 default) EXTRA_LD_OPTIONS= ;;
5512 *) EXTRA_LD_OPTIONS=$withval ;;
5513 esac
5514 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5517 # Check whether --enable-bindings was given.
5518 if test "${enable_bindings+set}" = set; then
5519 enableval=$enable_bindings;
5520 else
5521 enableval=default
5522 fi
5524 BINDINGS_TO_BUILD=""
5525 case "$enableval" in
5526 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5527 all ) BINDINGS_TO_BUILD="ocaml" ;;
5528 none | no) BINDINGS_TO_BUILD="" ;;
5529 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5530 case "$a_binding" in
5531 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5532 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5533 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5534 { (exit 1); exit 1; }; } ;;
5535 esac
5536 done
5537 ;;
5538 esac
5541 # Check whether --with-ocaml-libdir was given.
5542 if test "${with_ocaml_libdir+set}" = set; then
5543 withval=$with_ocaml_libdir;
5544 else
5545 withval=auto
5546 fi
5548 case "$withval" in
5549 auto) with_ocaml_libdir="$withval" ;;
5550 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5551 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5552 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5553 { (exit 1); exit 1; }; } ;;
5554 esac
5557 # Check whether --with-clang-srcdir was given.
5558 if test "${with_clang_srcdir+set}" = set; then
5559 withval=$with_clang_srcdir;
5560 else
5561 withval="-"
5562 fi
5564 case "$withval" in
5565 -) clang_src_root="" ;;
5566 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5567 *) clang_src_root="$ac_pwd/$withval" ;;
5568 esac
5569 CLANG_SRC_ROOT=$clang_src_root
5573 # Check whether --with-clang-resource-dir was given.
5574 if test "${with_clang_resource_dir+set}" = set; then
5575 withval=$with_clang_resource_dir;
5576 else
5577 withval=""
5578 fi
5581 cat >>confdefs.h <<_ACEOF
5582 #define CLANG_RESOURCE_DIR "$withval"
5583 _ACEOF
5587 # Check whether --with-c-include-dirs was given.
5588 if test "${with_c_include_dirs+set}" = set; then
5589 withval=$with_c_include_dirs;
5590 else
5591 withval=""
5592 fi
5595 cat >>confdefs.h <<_ACEOF
5596 #define C_INCLUDE_DIRS "$withval"
5597 _ACEOF
5600 # Clang normally uses the system c++ headers and libraries. With this option,
5601 # clang will use the ones provided by a gcc installation instead. This option should
5602 # be passed the same value that was used with --prefix when configuring gcc.
5604 # Check whether --with-gcc-toolchain was given.
5605 if test "${with_gcc_toolchain+set}" = set; then
5606 withval=$with_gcc_toolchain;
5607 else
5608 withval=""
5609 fi
5612 cat >>confdefs.h <<_ACEOF
5613 #define GCC_INSTALL_PREFIX "$withval"
5614 _ACEOF
5618 # Check whether --with-default-sysroot was given.
5619 if test "${with_default_sysroot+set}" = set; then
5620 withval=$with_default_sysroot;
5621 else
5622 withval=""
5623 fi
5626 cat >>confdefs.h <<_ACEOF
5627 #define DEFAULT_SYSROOT "$withval"
5628 _ACEOF
5632 # Check whether --with-binutils-include was given.
5633 if test "${with_binutils_include+set}" = set; then
5634 withval=$with_binutils_include;
5635 else
5636 withval=default
5637 fi
5639 case "$withval" in
5640 default) WITH_BINUTILS_INCDIR=default ;;
5641 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5642 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5643 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5644 { (exit 1); exit 1; }; } ;;
5645 esac
5646 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5647 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5649 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5650 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5651 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5652 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5653 { (exit 1); exit 1; }; };
5654 fi
5655 fi
5658 # Check whether --with-bug-report-url was given.
5659 if test "${with_bug_report_url+set}" = set; then
5660 withval=$with_bug_report_url;
5661 else
5662 withval="http://llvm.org/bugs/"
5663 fi
5666 cat >>confdefs.h <<_ACEOF
5667 #define BUG_REPORT_URL "$withval"
5668 _ACEOF
5671 # Check whether --enable-terminfo was given.
5672 if test "${enable_terminfo+set}" = set; then
5673 enableval=$enable_terminfo; case "$enableval" in
5674 yes) llvm_cv_enable_terminfo="yes" ;;
5675 no) llvm_cv_enable_terminfo="no" ;;
5676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5677 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5678 { (exit 1); exit 1; }; } ;;
5679 esac
5680 else
5681 llvm_cv_enable_terminfo="yes"
5682 fi
5684 case "$llvm_cv_enable_terminfo" in
5685 yes) ENABLE_TERMINFO=1
5686 ;;
5687 no) ENABLE_TERMINFO=0
5688 ;;
5689 esac
5691 # Check whether --enable-libedit was given.
5692 if test "${enable_libedit+set}" = set; then
5693 enableval=$enable_libedit; case "$enableval" in
5694 yes) llvm_cv_enable_libedit="yes" ;;
5695 no) llvm_cv_enable_libedit="no" ;;
5696 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5697 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5698 { (exit 1); exit 1; }; } ;;
5699 esac
5700 else
5701 llvm_cv_enable_libedit="yes"
5702 fi
5705 # Check whether --enable-libffi was given.
5706 if test "${enable_libffi+set}" = set; then
5707 enableval=$enable_libffi; case "$enableval" in
5708 yes) llvm_cv_enable_libffi="yes" ;;
5709 no) llvm_cv_enable_libffi="no" ;;
5710 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5711 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5712 { (exit 1); exit 1; }; } ;;
5713 esac
5714 else
5715 llvm_cv_enable_libffi=no
5716 fi
5720 # Check whether --with-internal-prefix was given.
5721 if test "${with_internal_prefix+set}" = set; then
5722 withval=$with_internal_prefix;
5723 else
5724 withval=""
5725 fi
5727 INTERNAL_PREFIX=$withval
5731 { echo "$as_me:$LINENO: checking for GNU make" >&5
5732 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5733 if test "${llvm_cv_gnu_make_command+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 llvm_cv_gnu_make_command=''
5737 for a in "$MAKE" make gmake gnumake ; do
5738 if test -z "$a" ; then continue ; fi ;
5739 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5740 then
5741 llvm_cv_gnu_make_command=$a ;
5742 break;
5743 fi
5744 done
5745 fi
5746 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5747 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5748 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5749 ifGNUmake='' ;
5750 else
5751 ifGNUmake='#' ;
5752 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5753 echo "${ECHO_T}\"Not found\"" >&6; };
5754 fi
5757 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5758 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5759 LN_S=$as_ln_s
5760 if test "$LN_S" = "ln -s"; then
5761 { echo "$as_me:$LINENO: result: yes" >&5
5762 echo "${ECHO_T}yes" >&6; }
5763 else
5764 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5765 echo "${ECHO_T}no, using $LN_S" >&6; }
5766 fi
5768 # Extract the first word of "nm", so it can be a program name with args.
5769 set dummy nm; ac_word=$2
5770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5772 if test "${ac_cv_path_NM+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 case $NM in
5776 [\\/]* | ?:[\\/]*)
5777 ac_cv_path_NM="$NM" # Let the user override the test with a path.
5778 ;;
5779 *)
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5790 fi
5791 done
5792 done
5793 IFS=$as_save_IFS
5795 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5796 ;;
5797 esac
5798 fi
5799 NM=$ac_cv_path_NM
5800 if test -n "$NM"; then
5801 { echo "$as_me:$LINENO: result: $NM" >&5
5802 echo "${ECHO_T}$NM" >&6; }
5803 else
5804 { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5806 fi
5809 # Extract the first word of "cmp", so it can be a program name with args.
5810 set dummy cmp; ac_word=$2
5811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5813 if test "${ac_cv_path_CMP+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 case $CMP in
5817 [\\/]* | ?:[\\/]*)
5818 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5819 ;;
5820 *)
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5836 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5837 ;;
5838 esac
5839 fi
5840 CMP=$ac_cv_path_CMP
5841 if test -n "$CMP"; then
5842 { echo "$as_me:$LINENO: result: $CMP" >&5
5843 echo "${ECHO_T}$CMP" >&6; }
5844 else
5845 { echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6; }
5847 fi
5850 # Extract the first word of "cp", so it can be a program name with args.
5851 set dummy cp; ac_word=$2
5852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854 if test "${ac_cv_path_CP+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 case $CP in
5858 [\\/]* | ?:[\\/]*)
5859 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5860 ;;
5861 *)
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5869 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5877 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5878 ;;
5879 esac
5880 fi
5881 CP=$ac_cv_path_CP
5882 if test -n "$CP"; then
5883 { echo "$as_me:$LINENO: result: $CP" >&5
5884 echo "${ECHO_T}$CP" >&6; }
5885 else
5886 { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5888 fi
5891 # Extract the first word of "date", so it can be a program name with args.
5892 set dummy date; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_path_DATE+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898 case $DATE in
5899 [\\/]* | ?:[\\/]*)
5900 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5901 ;;
5902 *)
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914 done
5915 done
5916 IFS=$as_save_IFS
5918 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5919 ;;
5920 esac
5921 fi
5922 DATE=$ac_cv_path_DATE
5923 if test -n "$DATE"; then
5924 { echo "$as_me:$LINENO: result: $DATE" >&5
5925 echo "${ECHO_T}$DATE" >&6; }
5926 else
5927 { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5932 # Extract the first word of "find", so it can be a program name with args.
5933 set dummy find; ac_word=$2
5934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5936 if test "${ac_cv_path_FIND+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939 case $FIND in
5940 [\\/]* | ?:[\\/]*)
5941 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5942 ;;
5943 *)
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955 done
5956 done
5957 IFS=$as_save_IFS
5959 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5960 ;;
5961 esac
5962 fi
5963 FIND=$ac_cv_path_FIND
5964 if test -n "$FIND"; then
5965 { echo "$as_me:$LINENO: result: $FIND" >&5
5966 echo "${ECHO_T}$FIND" >&6; }
5967 else
5968 { echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6; }
5970 fi
5973 # Extract the first word of "grep", so it can be a program name with args.
5974 set dummy grep; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_path_GREP+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 case $GREP in
5981 [\\/]* | ?:[\\/]*)
5982 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5983 ;;
5984 *)
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996 done
5997 done
5998 IFS=$as_save_IFS
6000 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6001 ;;
6002 esac
6003 fi
6004 GREP=$ac_cv_path_GREP
6005 if test -n "$GREP"; then
6006 { echo "$as_me:$LINENO: result: $GREP" >&5
6007 echo "${ECHO_T}$GREP" >&6; }
6008 else
6009 { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6011 fi
6014 # Extract the first word of "mkdir", so it can be a program name with args.
6015 set dummy mkdir; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_path_MKDIR+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 case $MKDIR in
6022 [\\/]* | ?:[\\/]*)
6023 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6024 ;;
6025 *)
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037 done
6038 done
6039 IFS=$as_save_IFS
6041 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6042 ;;
6043 esac
6044 fi
6045 MKDIR=$ac_cv_path_MKDIR
6046 if test -n "$MKDIR"; then
6047 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6048 echo "${ECHO_T}$MKDIR" >&6; }
6049 else
6050 { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6052 fi
6055 # Extract the first word of "mv", so it can be a program name with args.
6056 set dummy mv; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_path_MV+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 case $MV in
6063 [\\/]* | ?:[\\/]*)
6064 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6065 ;;
6066 *)
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6077 fi
6078 done
6079 done
6080 IFS=$as_save_IFS
6082 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6083 ;;
6084 esac
6085 fi
6086 MV=$ac_cv_path_MV
6087 if test -n "$MV"; then
6088 { echo "$as_me:$LINENO: result: $MV" >&5
6089 echo "${ECHO_T}$MV" >&6; }
6090 else
6091 { echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6; }
6093 fi
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_RANLIB+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 if test -n "$RANLIB"; then
6105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6122 fi
6123 fi
6124 RANLIB=$ac_cv_prog_RANLIB
6125 if test -n "$RANLIB"; then
6126 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6127 echo "${ECHO_T}$RANLIB" >&6; }
6128 else
6129 { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6131 fi
6134 fi
6135 if test -z "$ac_cv_prog_RANLIB"; then
6136 ac_ct_RANLIB=$RANLIB
6137 # Extract the first word of "ranlib", so it can be a program name with args.
6138 set dummy ranlib; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 if test -n "$ac_ct_RANLIB"; then
6145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_ac_ct_RANLIB="ranlib"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6157 fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6162 fi
6163 fi
6164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165 if test -n "$ac_ct_RANLIB"; then
6166 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6167 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6168 else
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6171 fi
6173 if test "x$ac_ct_RANLIB" = x; then
6174 RANLIB=":"
6175 else
6176 case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet. If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&5
6181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6182 whose name does not start with the host triplet. If you think this
6183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6184 ac_tool_warned=yes ;;
6185 esac
6186 RANLIB=$ac_ct_RANLIB
6187 fi
6188 else
6189 RANLIB="$ac_cv_prog_RANLIB"
6190 fi
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}ar; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_AR+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 if test -n "$AR"; then
6201 ac_cv_prog_AR="$AR" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_AR="${ac_tool_prefix}ar"
6211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6218 fi
6219 fi
6220 AR=$ac_cv_prog_AR
6221 if test -n "$AR"; then
6222 { echo "$as_me:$LINENO: result: $AR" >&5
6223 echo "${ECHO_T}$AR" >&6; }
6224 else
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6227 fi
6230 fi
6231 if test -z "$ac_cv_prog_AR"; then
6232 ac_ct_AR=$AR
6233 # Extract the first word of "ar", so it can be a program name with args.
6234 set dummy ar; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240 if test -n "$ac_ct_AR"; then
6241 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_AR="ar"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6258 fi
6259 fi
6260 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6261 if test -n "$ac_ct_AR"; then
6262 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6263 echo "${ECHO_T}$ac_ct_AR" >&6; }
6264 else
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6269 if test "x$ac_ct_AR" = x; then
6270 AR="false"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet. If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&5
6277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6278 whose name does not start with the host triplet. If you think this
6279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6280 ac_tool_warned=yes ;;
6281 esac
6282 AR=$ac_ct_AR
6283 fi
6284 else
6285 AR="$ac_cv_prog_AR"
6286 fi
6288 # Extract the first word of "rm", so it can be a program name with args.
6289 set dummy rm; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_path_RM+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 case $RM in
6296 [\\/]* | ?:[\\/]*)
6297 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6298 ;;
6299 *)
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311 done
6312 done
6313 IFS=$as_save_IFS
6315 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6316 ;;
6317 esac
6318 fi
6319 RM=$ac_cv_path_RM
6320 if test -n "$RM"; then
6321 { echo "$as_me:$LINENO: result: $RM" >&5
6322 echo "${ECHO_T}$RM" >&6; }
6323 else
6324 { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6326 fi
6329 # Extract the first word of "sed", so it can be a program name with args.
6330 set dummy sed; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_path_SED+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 case $SED in
6337 [\\/]* | ?:[\\/]*)
6338 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6339 ;;
6340 *)
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6351 fi
6352 done
6353 done
6354 IFS=$as_save_IFS
6356 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6357 ;;
6358 esac
6359 fi
6360 SED=$ac_cv_path_SED
6361 if test -n "$SED"; then
6362 { echo "$as_me:$LINENO: result: $SED" >&5
6363 echo "${ECHO_T}$SED" >&6; }
6364 else
6365 { echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6; }
6367 fi
6370 # Extract the first word of "tar", so it can be a program name with args.
6371 set dummy tar; ac_word=$2
6372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374 if test "${ac_cv_path_TAR+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 case $TAR in
6378 [\\/]* | ?:[\\/]*)
6379 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6380 ;;
6381 *)
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6397 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6398 ;;
6399 esac
6400 fi
6401 TAR=$ac_cv_path_TAR
6402 if test -n "$TAR"; then
6403 { echo "$as_me:$LINENO: result: $TAR" >&5
6404 echo "${ECHO_T}$TAR" >&6; }
6405 else
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6408 fi
6411 # Extract the first word of "pwd", so it can be a program name with args.
6412 set dummy pwd; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_path_BINPWD+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418 case $BINPWD in
6419 [\\/]* | ?:[\\/]*)
6420 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6421 ;;
6422 *)
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6438 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6439 ;;
6440 esac
6441 fi
6442 BINPWD=$ac_cv_path_BINPWD
6443 if test -n "$BINPWD"; then
6444 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6445 echo "${ECHO_T}$BINPWD" >&6; }
6446 else
6447 { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6449 fi
6453 # Extract the first word of "dot", so it can be a program name with args.
6454 set dummy dot; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_path_DOT+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 case $DOT in
6461 [\\/]* | ?:[\\/]*)
6462 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6463 ;;
6464 *)
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476 done
6477 done
6478 IFS=$as_save_IFS
6480 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6481 ;;
6482 esac
6483 fi
6484 DOT=$ac_cv_path_DOT
6485 if test -n "$DOT"; then
6486 { echo "$as_me:$LINENO: result: $DOT" >&5
6487 echo "${ECHO_T}$DOT" >&6; }
6488 else
6489 { echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6; }
6491 fi
6494 if test "$DOT" != "echo dot" ; then
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_DOT 1
6498 _ACEOF
6500 if test "$llvm_cv_os_type" = "MingW" ; then
6501 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6502 fi
6504 cat >>confdefs.h <<_ACEOF
6505 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6506 _ACEOF
6508 fi
6510 # Find a good install program. We prefer a C program (faster),
6511 # so one script is as good as another. But avoid the broken or
6512 # incompatible versions:
6513 # SysV /etc/install, /usr/sbin/install
6514 # SunOS /usr/etc/install
6515 # IRIX /sbin/install
6516 # AIX /bin/install
6517 # AmigaOS /C/install, which installs bootblocks on floppy discs
6518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6521 # OS/2's system install, which has a completely different semantic
6522 # ./install, which can be erroneously created by make from ./install.sh.
6523 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6524 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6525 if test -z "$INSTALL"; then
6526 if test "${ac_cv_path_install+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 # Account for people who put trailing slashes in PATH elements.
6535 case $as_dir/ in
6536 ./ | .// | /cC/* | \
6537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6538 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6539 /usr/ucb/* ) ;;
6540 *)
6541 # OSF1 and SCO ODT 3.0 have their own names for install.
6542 # Don't use installbsd from OSF since it installs stuff as root
6543 # by default.
6544 for ac_prog in ginstall scoinst install; do
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6547 if test $ac_prog = install &&
6548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6549 # AIX install. It has an incompatible calling convention.
6550 :
6551 elif test $ac_prog = install &&
6552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6553 # program-specific install script used by HP pwplus--don't use.
6554 :
6555 else
6556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6557 break 3
6558 fi
6559 fi
6560 done
6561 done
6562 ;;
6563 esac
6564 done
6565 IFS=$as_save_IFS
6568 fi
6569 if test "${ac_cv_path_install+set}" = set; then
6570 INSTALL=$ac_cv_path_install
6571 else
6572 # As a last resort, use the slow shell script. Don't cache a
6573 # value for INSTALL within a source directory, because that will
6574 # break other packages using the cache if that directory is
6575 # removed, or if the value is a relative name.
6576 INSTALL=$ac_install_sh
6577 fi
6578 fi
6579 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6580 echo "${ECHO_T}$INSTALL" >&6; }
6582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6583 # It thinks the first close brace ends the variable substitution.
6584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6590 case "$INSTALL" in
6591 [\\/$]* | ?:[\\/]* ) ;;
6592 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6593 esac
6595 # Extract the first word of "bzip2", so it can be a program name with args.
6596 set dummy bzip2; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_path_BZIP2+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602 case $BZIP2 in
6603 [\\/]* | ?:[\\/]*)
6604 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6605 ;;
6606 *)
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6622 ;;
6623 esac
6624 fi
6625 BZIP2=$ac_cv_path_BZIP2
6626 if test -n "$BZIP2"; then
6627 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6628 echo "${ECHO_T}$BZIP2" >&6; }
6629 else
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6632 fi
6635 # Extract the first word of "cat", so it can be a program name with args.
6636 set dummy cat; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_path_CAT+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642 case $CAT in
6643 [\\/]* | ?:[\\/]*)
6644 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6645 ;;
6646 *)
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6657 fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6662 ;;
6663 esac
6664 fi
6665 CAT=$ac_cv_path_CAT
6666 if test -n "$CAT"; then
6667 { echo "$as_me:$LINENO: result: $CAT" >&5
6668 echo "${ECHO_T}$CAT" >&6; }
6669 else
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6672 fi
6675 # Extract the first word of "doxygen", so it can be a program name with args.
6676 set dummy doxygen; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682 case $DOXYGEN in
6683 [\\/]* | ?:[\\/]*)
6684 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6685 ;;
6686 *)
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6702 ;;
6703 esac
6704 fi
6705 DOXYGEN=$ac_cv_path_DOXYGEN
6706 if test -n "$DOXYGEN"; then
6707 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6708 echo "${ECHO_T}$DOXYGEN" >&6; }
6709 else
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6712 fi
6715 # Extract the first word of "groff", so it can be a program name with args.
6716 set dummy groff; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_path_GROFF+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 case $GROFF in
6723 [\\/]* | ?:[\\/]*)
6724 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6725 ;;
6726 *)
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6742 ;;
6743 esac
6744 fi
6745 GROFF=$ac_cv_path_GROFF
6746 if test -n "$GROFF"; then
6747 { echo "$as_me:$LINENO: result: $GROFF" >&5
6748 echo "${ECHO_T}$GROFF" >&6; }
6749 else
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6755 # Extract the first word of "gzip", so it can be a program name with args.
6756 set dummy gzip; ac_word=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762 case $GZIPBIN in
6763 [\\/]* | ?:[\\/]*)
6764 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6765 ;;
6766 *)
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6782 ;;
6783 esac
6784 fi
6785 GZIPBIN=$ac_cv_path_GZIPBIN
6786 if test -n "$GZIPBIN"; then
6787 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6788 echo "${ECHO_T}$GZIPBIN" >&6; }
6789 else
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6795 # Extract the first word of "pdfroff", so it can be a program name with args.
6796 set dummy pdfroff; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_PDFROFF+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802 case $PDFROFF in
6803 [\\/]* | ?:[\\/]*)
6804 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6805 ;;
6806 *)
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6822 ;;
6823 esac
6824 fi
6825 PDFROFF=$ac_cv_path_PDFROFF
6826 if test -n "$PDFROFF"; then
6827 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6828 echo "${ECHO_T}$PDFROFF" >&6; }
6829 else
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6832 fi
6835 # Extract the first word of "zip", so it can be a program name with args.
6836 set dummy zip; ac_word=$2
6837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6839 if test "${ac_cv_path_ZIP+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842 case $ZIP in
6843 [\\/]* | ?:[\\/]*)
6844 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6845 ;;
6846 *)
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6862 ;;
6863 esac
6864 fi
6865 ZIP=$ac_cv_path_ZIP
6866 if test -n "$ZIP"; then
6867 { echo "$as_me:$LINENO: result: $ZIP" >&5
6868 echo "${ECHO_T}$ZIP" >&6; }
6869 else
6870 { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6872 fi
6875 # Extract the first word of "go", so it can be a program name with args.
6876 set dummy go; ac_word=$2
6877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6879 if test "${ac_cv_path_GO+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 case $GO in
6883 [\\/]* | ?:[\\/]*)
6884 ac_cv_path_GO="$GO" # Let the user override the test with a path.
6885 ;;
6886 *)
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6902 ;;
6903 esac
6904 fi
6905 GO=$ac_cv_path_GO
6906 if test -n "$GO"; then
6907 { echo "$as_me:$LINENO: result: $GO" >&5
6908 echo "${ECHO_T}$GO" >&6; }
6909 else
6910 { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6912 fi
6915 for ac_prog in ocamlc
6916 do
6917 # Extract the first word of "$ac_prog", so it can be a program name with args.
6918 set dummy $ac_prog; ac_word=$2
6919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6921 if test "${ac_cv_path_OCAMLC+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 case $OCAMLC in
6925 [\\/]* | ?:[\\/]*)
6926 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6927 ;;
6928 *)
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6939 fi
6940 done
6941 done
6942 IFS=$as_save_IFS
6944 ;;
6945 esac
6946 fi
6947 OCAMLC=$ac_cv_path_OCAMLC
6948 if test -n "$OCAMLC"; then
6949 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6950 echo "${ECHO_T}$OCAMLC" >&6; }
6951 else
6952 { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6954 fi
6957 test -n "$OCAMLC" && break
6958 done
6960 for ac_prog in ocamlopt
6961 do
6962 # Extract the first word of "$ac_prog", so it can be a program name with args.
6963 set dummy $ac_prog; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 case $OCAMLOPT in
6970 [\\/]* | ?:[\\/]*)
6971 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6972 ;;
6973 *)
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6989 ;;
6990 esac
6991 fi
6992 OCAMLOPT=$ac_cv_path_OCAMLOPT
6993 if test -n "$OCAMLOPT"; then
6994 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6995 echo "${ECHO_T}$OCAMLOPT" >&6; }
6996 else
6997 { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
6999 fi
7002 test -n "$OCAMLOPT" && break
7003 done
7005 for ac_prog in ocamldep
7006 do
7007 # Extract the first word of "$ac_prog", so it can be a program name with args.
7008 set dummy $ac_prog; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014 case $OCAMLDEP in
7015 [\\/]* | ?:[\\/]*)
7016 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7017 ;;
7018 *)
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7029 fi
7030 done
7031 done
7032 IFS=$as_save_IFS
7034 ;;
7035 esac
7036 fi
7037 OCAMLDEP=$ac_cv_path_OCAMLDEP
7038 if test -n "$OCAMLDEP"; then
7039 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7040 echo "${ECHO_T}$OCAMLDEP" >&6; }
7041 else
7042 { echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6; }
7044 fi
7047 test -n "$OCAMLDEP" && break
7048 done
7050 for ac_prog in ocamldoc
7051 do
7052 # Extract the first word of "$ac_prog", so it can be a program name with args.
7053 set dummy $ac_prog; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 case $OCAMLDOC in
7060 [\\/]* | ?:[\\/]*)
7061 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7062 ;;
7063 *)
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7079 ;;
7080 esac
7081 fi
7082 OCAMLDOC=$ac_cv_path_OCAMLDOC
7083 if test -n "$OCAMLDOC"; then
7084 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7085 echo "${ECHO_T}$OCAMLDOC" >&6; }
7086 else
7087 { echo "$as_me:$LINENO: result: no" >&5
7088 echo "${ECHO_T}no" >&6; }
7089 fi
7092 test -n "$OCAMLDOC" && break
7093 done
7095 for ac_prog in gas as
7096 do
7097 # Extract the first word of "$ac_prog", so it can be a program name with args.
7098 set dummy $ac_prog; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_GAS+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104 case $GAS in
7105 [\\/]* | ?:[\\/]*)
7106 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7107 ;;
7108 *)
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7124 ;;
7125 esac
7126 fi
7127 GAS=$ac_cv_path_GAS
7128 if test -n "$GAS"; then
7129 { echo "$as_me:$LINENO: result: $GAS" >&5
7130 echo "${ECHO_T}$GAS" >&6; }
7131 else
7132 { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7134 fi
7137 test -n "$GAS" && break
7138 done
7141 { echo "$as_me:$LINENO: checking for linker version" >&5
7142 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7143 if test "${llvm_cv_link_version+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7147 version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7149 # Check for ld64.
7150 if (echo "$version_string" | grep -q "ld64"); then
7151 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7152 else
7153 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7154 fi
7156 fi
7157 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7158 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7160 cat >>confdefs.h <<_ACEOF
7161 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7162 _ACEOF
7167 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7168 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7169 if test "${llvm_cv_link_use_r+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 ac_ext=c
7173 ac_cpp='$CPP $CPPFLAGS'
7174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7178 oldcflags="$CFLAGS"
7179 CFLAGS="$CFLAGS -Wl,-R."
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7187 int
7188 main ()
7189 {
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (ac_try="$ac_link"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_link") 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7210 { (case "(($ac_try" in
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7213 esac
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 (eval "$ac_try") 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try='test -s conftest$ac_exeext'
7220 { (case "(($ac_try" in
7221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7223 esac
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225 (eval "$ac_try") 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 llvm_cv_link_use_r=yes
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 llvm_cv_link_use_r=no
7235 fi
7237 rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7239 CFLAGS="$oldcflags"
7240 ac_ext=c
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7247 fi
7248 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7249 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7250 if test "$llvm_cv_link_use_r" = yes ; then
7252 cat >>confdefs.h <<\_ACEOF
7253 #define HAVE_LINK_R 1
7254 _ACEOF
7256 fi
7259 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7260 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7261 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264 ac_ext=c
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270 oldcflags="$CFLAGS"
7271 CFLAGS="$CFLAGS -rdynamic"
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7279 int
7280 main ()
7281 {
7283 ;
7284 return 0;
7285 }
7286 _ACEOF
7287 rm -f conftest.$ac_objext conftest$ac_exeext
7288 if { (ac_try="$ac_link"
7289 case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292 esac
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_link") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } &&
7301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7302 { (case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7305 esac
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307 (eval "$ac_try") 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest$ac_exeext'
7312 { (case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_try") 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 llvm_cv_link_use_export_dynamic=yes
7322 else
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7326 llvm_cv_link_use_export_dynamic=no
7327 fi
7329 rm -f core conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331 CFLAGS="$oldcflags"
7332 ac_ext=c
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339 fi
7340 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7341 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7342 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7344 cat >>confdefs.h <<\_ACEOF
7345 #define HAVE_LINK_EXPORT_DYNAMIC 1
7346 _ACEOF
7348 fi
7351 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7352 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7353 if test "${llvm_cv_link_use_version_script+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356 ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7362 oldcflags="$CFLAGS"
7364 # The following code is from the autoconf manual,
7365 # "11.13: Limitations of Usual Tools".
7366 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7367 # Use mktemp if possible; otherwise fall back on mkdir,
7368 # with $RANDOM to make collisions less likely.
7369 : ${TMPDIR=/tmp}
7370 {
7371 tmp=`
7372 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7373 ` &&
7374 test -n "$tmp" && test -d "$tmp"
7375 } || {
7376 tmp=$TMPDIR/foo$$-$RANDOM
7377 (umask 077 && mkdir "$tmp")
7378 } || exit $?
7380 echo "{" > "$tmp/export.map"
7381 echo " global: main;" >> "$tmp/export.map"
7382 echo " local: *;" >> "$tmp/export.map"
7383 echo "};" >> "$tmp/export.map"
7385 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7393 int
7394 main ()
7395 {
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (ac_try="$ac_link"
7403 case "(($ac_try" in
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_link") 2>conftest.er1
7409 ac_status=$?
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } &&
7415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7416 { (case "(($ac_try" in
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7419 esac
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_try") 2>&5
7422 ac_status=$?
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; } &&
7425 { ac_try='test -s conftest$ac_exeext'
7426 { (case "(($ac_try" in
7427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428 *) ac_try_echo=$ac_try;;
7429 esac
7430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431 (eval "$ac_try") 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 llvm_cv_link_use_version_script=yes
7436 else
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 llvm_cv_link_use_version_script=no
7441 fi
7443 rm -f core conftest.err conftest.$ac_objext \
7444 conftest$ac_exeext conftest.$ac_ext
7445 rm "$tmp/export.map"
7446 rmdir "$tmp"
7447 CFLAGS="$oldcflags"
7448 ac_ext=c
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455 fi
7456 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7457 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7458 if test "$llvm_cv_link_use_version_script" = yes ; then
7459 HAVE_LINK_VERSION_SCRIPT=1
7461 fi
7465 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7466 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_GREP+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 # Extract the first word of "grep ggrep" to use in msg output
7471 if test -z "$GREP"; then
7472 set dummy grep ggrep; ac_prog_name=$2
7473 if test "${ac_cv_path_GREP+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 ac_path_GREP_found=false
7477 # Loop through the user's path and test for each of PROGNAME-LIST
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7480 do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_prog in grep ggrep; do
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7486 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7487 # Check for GNU ac_path_GREP and select it if it is found.
7488 # Check for GNU $ac_path_GREP
7489 case `"$ac_path_GREP" --version 2>&1` in
7490 *GNU*)
7491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7492 *)
7493 ac_count=0
7494 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7495 while :
7496 do
7497 cat "conftest.in" "conftest.in" >"conftest.tmp"
7498 mv "conftest.tmp" "conftest.in"
7499 cp "conftest.in" "conftest.nl"
7500 echo 'GREP' >> "conftest.nl"
7501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7503 ac_count=`expr $ac_count + 1`
7504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7505 # Best one so far, save it but keep looking for a better one
7506 ac_cv_path_GREP="$ac_path_GREP"
7507 ac_path_GREP_max=$ac_count
7508 fi
7509 # 10*(2^10) chars as input seems more than enough
7510 test $ac_count -gt 10 && break
7511 done
7512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7513 esac
7516 $ac_path_GREP_found && break 3
7517 done
7518 done
7520 done
7521 IFS=$as_save_IFS
7524 fi
7526 GREP="$ac_cv_path_GREP"
7527 if test -z "$GREP"; then
7528 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7529 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7530 { (exit 1); exit 1; }; }
7531 fi
7533 else
7534 ac_cv_path_GREP=$GREP
7535 fi
7538 fi
7539 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7540 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7541 GREP="$ac_cv_path_GREP"
7544 { echo "$as_me:$LINENO: checking for egrep" >&5
7545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7546 if test "${ac_cv_path_EGREP+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7550 then ac_cv_path_EGREP="$GREP -E"
7551 else
7552 # Extract the first word of "egrep" to use in msg output
7553 if test -z "$EGREP"; then
7554 set dummy egrep; ac_prog_name=$2
7555 if test "${ac_cv_path_EGREP+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 ac_path_EGREP_found=false
7559 # Loop through the user's path and test for each of PROGNAME-LIST
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7562 do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_prog in egrep; do
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7568 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7569 # Check for GNU ac_path_EGREP and select it if it is found.
7570 # Check for GNU $ac_path_EGREP
7571 case `"$ac_path_EGREP" --version 2>&1` in
7572 *GNU*)
7573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7574 *)
7575 ac_count=0
7576 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7577 while :
7578 do
7579 cat "conftest.in" "conftest.in" >"conftest.tmp"
7580 mv "conftest.tmp" "conftest.in"
7581 cp "conftest.in" "conftest.nl"
7582 echo 'EGREP' >> "conftest.nl"
7583 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7585 ac_count=`expr $ac_count + 1`
7586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7587 # Best one so far, save it but keep looking for a better one
7588 ac_cv_path_EGREP="$ac_path_EGREP"
7589 ac_path_EGREP_max=$ac_count
7590 fi
7591 # 10*(2^10) chars as input seems more than enough
7592 test $ac_count -gt 10 && break
7593 done
7594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7595 esac
7598 $ac_path_EGREP_found && break 3
7599 done
7600 done
7602 done
7603 IFS=$as_save_IFS
7606 fi
7608 EGREP="$ac_cv_path_EGREP"
7609 if test -z "$EGREP"; then
7610 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7612 { (exit 1); exit 1; }; }
7613 fi
7615 else
7616 ac_cv_path_EGREP=$EGREP
7617 fi
7620 fi
7621 fi
7622 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7623 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7624 EGREP="$ac_cv_path_EGREP"
7627 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7628 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7629 if test "${ac_cv_header_stdc+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h. */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7638 #include <stdlib.h>
7639 #include <stdarg.h>
7640 #include <string.h>
7641 #include <float.h>
7643 int
7644 main ()
7645 {
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7653 case "(($ac_try" in
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7656 esac
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658 (eval "$ac_compile") 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7666 { (case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_try") 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; } &&
7675 { ac_try='test -s conftest.$ac_objext'
7676 { (case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679 esac
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_try") 2>&5
7682 ac_status=$?
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; }; then
7685 ac_cv_header_stdc=yes
7686 else
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 ac_cv_header_stdc=no
7691 fi
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 if test $ac_cv_header_stdc = yes; then
7696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 #include <string.h>
7705 _ACEOF
7706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 $EGREP "memchr" >/dev/null 2>&1; then
7708 :
7709 else
7710 ac_cv_header_stdc=no
7711 fi
7712 rm -f conftest*
7714 fi
7716 if test $ac_cv_header_stdc = yes; then
7717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 #include <stdlib.h>
7726 _ACEOF
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728 $EGREP "free" >/dev/null 2>&1; then
7729 :
7730 else
7731 ac_cv_header_stdc=no
7732 fi
7733 rm -f conftest*
7735 fi
7737 if test $ac_cv_header_stdc = yes; then
7738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7739 if test "$cross_compiling" = yes; then
7740 :
7741 else
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h. */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748 #include <ctype.h>
7749 #include <stdlib.h>
7750 #if ((' ' & 0x0FF) == 0x020)
7751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7753 #else
7754 # define ISLOWER(c) \
7755 (('a' <= (c) && (c) <= 'i') \
7756 || ('j' <= (c) && (c) <= 'r') \
7757 || ('s' <= (c) && (c) <= 'z'))
7758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7759 #endif
7761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7762 int
7763 main ()
7764 {
7765 int i;
7766 for (i = 0; i < 256; i++)
7767 if (XOR (islower (i), ISLOWER (i))
7768 || toupper (i) != TOUPPER (i))
7769 return 2;
7770 return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest$ac_exeext
7774 if { (ac_try="$ac_link"
7775 case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_link") 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7784 { (case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_try") 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 :
7794 else
7795 echo "$as_me: program exited with status $ac_status" >&5
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7799 ( exit $ac_status )
7800 ac_cv_header_stdc=no
7801 fi
7802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7803 fi
7806 fi
7807 fi
7808 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7809 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7810 if test $ac_cv_header_stdc = yes; then
7812 cat >>confdefs.h <<\_ACEOF
7813 #define STDC_HEADERS 1
7814 _ACEOF
7816 fi
7818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7828 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7829 inttypes.h stdint.h unistd.h
7830 do
7831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h. */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 $ac_includes_default
7845 #include <$ac_header>
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7849 case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852 esac
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7862 { (case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_try") 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; } &&
7871 { ac_try='test -s conftest.$ac_objext'
7872 { (case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875 esac
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_try") 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 eval "$as_ac_Header=yes"
7882 else
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 eval "$as_ac_Header=no"
7887 fi
7889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 fi
7891 ac_res=`eval echo '${'$as_ac_Header'}'`
7892 { echo "$as_me:$LINENO: result: $ac_res" >&5
7893 echo "${ECHO_T}$ac_res" >&6; }
7894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7895 cat >>confdefs.h <<_ACEOF
7896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7897 _ACEOF
7899 fi
7901 done
7905 for ac_header in errno.h
7906 do
7907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 fi
7914 ac_res=`eval echo '${'$as_ac_Header'}'`
7915 { echo "$as_me:$LINENO: result: $ac_res" >&5
7916 echo "${ECHO_T}$ac_res" >&6; }
7917 else
7918 # Is the header compilable?
7919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 $ac_includes_default
7928 #include <$ac_header>
7929 _ACEOF
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7932 case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7945 { (case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_try") 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; } &&
7954 { ac_try='test -s conftest.$ac_objext'
7955 { (case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7958 esac
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_try") 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 ac_header_compiler=yes
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 ac_header_compiler=no
7970 fi
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7974 echo "${ECHO_T}$ac_header_compiler" >&6; }
7976 # Is the header present?
7977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 #include <$ac_header>
7986 _ACEOF
7987 if { (ac_try="$ac_cpp conftest.$ac_ext"
7988 case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } >/dev/null; then
8000 if test -s conftest.err; then
8001 ac_cpp_err=$ac_c_preproc_warn_flag
8002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8003 else
8004 ac_cpp_err=
8005 fi
8006 else
8007 ac_cpp_err=yes
8008 fi
8009 if test -z "$ac_cpp_err"; then
8010 ac_header_preproc=yes
8011 else
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 ac_header_preproc=no
8016 fi
8018 rm -f conftest.err conftest.$ac_ext
8019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8020 echo "${ECHO_T}$ac_header_preproc" >&6; }
8022 # So? What about this header?
8023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8024 yes:no: )
8025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8029 ac_header_preproc=yes
8030 ;;
8031 no:yes:* )
8032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8044 ( cat <<\_ASBOX
8045 ## ------------------------------------ ##
8046 ## Report this to http://llvm.org/bugs/ ##
8047 ## ------------------------------------ ##
8048 _ASBOX
8049 ) | sed "s/^/$as_me: WARNING: /" >&2
8050 ;;
8051 esac
8052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057 eval "$as_ac_Header=\$ac_header_preproc"
8058 fi
8059 ac_res=`eval echo '${'$as_ac_Header'}'`
8060 { echo "$as_me:$LINENO: result: $ac_res" >&5
8061 echo "${ECHO_T}$ac_res" >&6; }
8063 fi
8064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8065 cat >>confdefs.h <<_ACEOF
8066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8067 _ACEOF
8069 fi
8071 done
8074 case "$llvm_cv_os_type" in
8075 Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8076 Darwin) llvm_shlib_ext=.dylib ;;
8077 *) llvm_shlib_ext=.so ;;
8078 esac
8081 cat >>confdefs.h <<_ACEOF
8082 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8083 _ACEOF
8086 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8087 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8089 ICC=no
8090 IXX=no
8091 case $CC in
8092 icc*|icpc*)
8093 ICC=yes
8094 IXX=yes
8095 ;;
8096 *)
8097 ;;
8098 esac
8100 if test "$GCC" != "yes" && test "$ICC" != "yes"
8101 then
8102 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8103 echo "$as_me: error: gcc|icc required but not found" >&2;}
8104 { (exit 1); exit 1; }; }
8105 fi
8107 if test "$GXX" != "yes" && test "$IXX" != "yes"
8108 then
8109 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8110 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8111 { (exit 1); exit 1; }; }
8112 fi
8114 if test "$GCC" = "yes"
8115 then
8116 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8124 #if !defined(__GNUC__) || __GNUC__ < 3
8125 #error Unsupported GCC version
8126 #endif
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 :
8165 else
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8170 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8171 { (exit 1); exit 1; }; }
8172 fi
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 fi
8177 if test -z "$llvm_cv_gnu_make_command"
8178 then
8179 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8180 echo "$as_me: error: GNU Make required but not found" >&2;}
8181 { (exit 1); exit 1; }; }
8182 fi
8184 { echo "$as_me:$LINENO: result: ok" >&5
8185 echo "${ECHO_T}ok" >&6; }
8187 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8188 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8189 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8191 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8193 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8196 NO_UNINITIALIZED=
8197 NO_MAYBE_UNINITIALIZED=
8198 if test "$GXX" = "yes"
8199 then
8200 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8202 if test -z "$NO_MAYBE_UNINITIALIZED"
8203 then
8204 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8206 fi
8207 fi
8208 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8209 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8212 # Check whether --with-python was given.
8213 if test "${with_python+set}" = set; then
8214 withval=$with_python; PYTHON="$withval"
8215 fi
8218 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8219 { echo "$as_me:$LINENO: checking for python" >&5
8220 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8221 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8222 echo "${ECHO_T}user defined: $with_python" >&6; }
8223 else
8224 if test -n "$PYTHON" ; then
8225 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8226 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8227 fi
8229 # Extract the first word of "python python2 python26", so it can be a program name with args.
8230 set dummy python python2 python26; ac_word=$2
8231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8233 if test "${ac_cv_path_PYTHON+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236 case $PYTHON in
8237 [\\/]* | ?:[\\/]*)
8238 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8239 ;;
8240 *)
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252 done
8253 done
8254 IFS=$as_save_IFS
8256 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8257 echo "${ECHO_T}not found" >&6; }
8258 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8259 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8260 { (exit 1); exit 1; }; }"
8261 ;;
8262 esac
8263 fi
8264 PYTHON=$ac_cv_path_PYTHON
8265 if test -n "$PYTHON"; then
8266 { echo "$as_me:$LINENO: result: $PYTHON" >&5
8267 echo "${ECHO_T}$PYTHON" >&6; }
8268 else
8269 { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8271 fi
8274 fi
8276 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8277 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8278 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8279 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8280 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8281 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8282 if test "$ac_python_version_major" -gt "2" || \
8283 (test "$ac_python_version_major" -eq "2" && \
8284 test "$ac_python_version_minor" -ge "5") ; then
8285 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8286 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8287 else
8288 { echo "$as_me:$LINENO: result: not found" >&5
8289 echo "${ECHO_T}not found" >&6; }
8290 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8291 See \`config.log' for more details." >&5
8292 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8293 See \`config.log' for more details." >&2;}
8294 { (exit 1); exit 1; }; }
8295 fi
8299 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8300 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8301 if test "${ac_cv_lib_m_sin+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304 ac_check_lib_save_LIBS=$LIBS
8305 LIBS="-lm $LIBS"
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8313 /* Override any GCC internal prototype to avoid an error.
8314 Use char because int might match the return type of a GCC
8315 builtin and then its argument prototype would still apply. */
8316 #ifdef __cplusplus
8317 extern "C"
8318 #endif
8319 char sin ();
8320 int
8321 main ()
8322 {
8323 return sin ();
8324 ;
8325 return 0;
8326 }
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (ac_try="$ac_link"
8330 case "(($ac_try" in
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8333 esac
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335 (eval "$ac_link") 2>conftest.er1
8336 ac_status=$?
8337 grep -v '^ *+' conftest.er1 >conftest.err
8338 rm -f conftest.er1
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8343 { (case "(($ac_try" in
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_try") 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 ac_cv_lib_m_sin=yes
8363 else
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 ac_cv_lib_m_sin=no
8368 fi
8370 rm -f core conftest.err conftest.$ac_objext \
8371 conftest$ac_exeext conftest.$ac_ext
8372 LIBS=$ac_check_lib_save_LIBS
8373 fi
8374 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8375 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8376 if test $ac_cv_lib_m_sin = yes; then
8377 cat >>confdefs.h <<_ACEOF
8378 #define HAVE_LIBM 1
8379 _ACEOF
8381 LIBS="-lm $LIBS"
8383 fi
8385 if test "$llvm_cv_os_type" = "MingW" ; then
8387 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8388 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8389 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392 ac_check_lib_save_LIBS=$LIBS
8393 LIBS="-limagehlp $LIBS"
8394 cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h. */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8402 int
8403 main ()
8404 {
8405 return main ();
8406 ;
8407 return 0;
8408 }
8409 _ACEOF
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (ac_try="$ac_link"
8412 case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8415 esac
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_link") 2>conftest.er1
8418 ac_status=$?
8419 grep -v '^ *+' conftest.er1 >conftest.err
8420 rm -f conftest.er1
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8425 { (case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_try") 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; } &&
8434 { ac_try='test -s conftest$ac_exeext'
8435 { (case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_try") 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_lib_imagehlp_main=yes
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_lib_imagehlp_main=no
8450 fi
8452 rm -f core conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 LIBS=$ac_check_lib_save_LIBS
8455 fi
8456 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8457 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8458 if test $ac_cv_lib_imagehlp_main = yes; then
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_LIBIMAGEHLP 1
8461 _ACEOF
8463 LIBS="-limagehlp $LIBS"
8465 fi
8468 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8469 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8470 if test "${ac_cv_lib_psapi_main+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473 ac_check_lib_save_LIBS=$LIBS
8474 LIBS="-lpsapi $LIBS"
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h. */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8483 int
8484 main ()
8485 {
8486 return main ();
8487 ;
8488 return 0;
8489 }
8490 _ACEOF
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (ac_try="$ac_link"
8493 case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_link") 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } &&
8505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8506 { (case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_try") 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; } &&
8515 { ac_try='test -s conftest$ac_exeext'
8516 { (case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_try") 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 ac_cv_lib_psapi_main=yes
8526 else
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8530 ac_cv_lib_psapi_main=no
8531 fi
8533 rm -f core conftest.err conftest.$ac_objext \
8534 conftest$ac_exeext conftest.$ac_ext
8535 LIBS=$ac_check_lib_save_LIBS
8536 fi
8537 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8538 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8539 if test $ac_cv_lib_psapi_main = yes; then
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_LIBPSAPI 1
8542 _ACEOF
8544 LIBS="-lpsapi $LIBS"
8546 fi
8549 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8550 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8551 if test "${ac_cv_lib_shell32_main+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554 ac_check_lib_save_LIBS=$LIBS
8555 LIBS="-lshell32 $LIBS"
8556 cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h. */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8564 int
8565 main ()
8566 {
8567 return main ();
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (ac_try="$ac_link"
8574 case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_link") 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest$ac_exeext'
8597 { (case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_try") 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_cv_lib_shell32_main=yes
8607 else
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_cv_lib_shell32_main=no
8612 fi
8614 rm -f core conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 LIBS=$ac_check_lib_save_LIBS
8617 fi
8618 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8619 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8620 if test $ac_cv_lib_shell32_main = yes; then
8621 cat >>confdefs.h <<_ACEOF
8622 #define HAVE_LIBSHELL32 1
8623 _ACEOF
8625 LIBS="-lshell32 $LIBS"
8627 fi
8629 fi
8631 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8632 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8633 if test "${ac_cv_search_dlopen+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 ac_func_search_save_LIBS=$LIBS
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h. */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char dlopen ();
8651 int
8652 main ()
8653 {
8654 return dlopen ();
8655 ;
8656 return 0;
8657 }
8658 _ACEOF
8659 for ac_lib in '' dl; do
8660 if test -z "$ac_lib"; then
8661 ac_res="none required"
8662 else
8663 ac_res=-l$ac_lib
8664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8665 fi
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8668 case "(($ac_try" in
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8671 esac
8672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8673 (eval "$ac_link") 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8681 { (case "(($ac_try" in
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_try") 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest$ac_exeext'
8691 { (case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696 (eval "$ac_try") 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_cv_search_dlopen=$ac_res
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8706 fi
8708 rm -f core conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext
8710 if test "${ac_cv_search_dlopen+set}" = set; then
8711 break
8712 fi
8713 done
8714 if test "${ac_cv_search_dlopen+set}" = set; then
8715 :
8716 else
8717 ac_cv_search_dlopen=no
8718 fi
8719 rm conftest.$ac_ext
8720 LIBS=$ac_func_search_save_LIBS
8721 fi
8722 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8723 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8724 ac_res=$ac_cv_search_dlopen
8725 if test "$ac_res" != no; then
8726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8729 cat >>confdefs.h <<\_ACEOF
8730 #define HAVE_DLOPEN 1
8731 _ACEOF
8733 HAVE_DLOPEN='1'
8736 else
8737 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8738 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8739 fi
8742 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8743 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8744 if test "${ac_cv_search_clock_gettime+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 ac_func_search_save_LIBS=$LIBS
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8755 /* Override any GCC internal prototype to avoid an error.
8756 Use char because int might match the return type of a GCC
8757 builtin and then its argument prototype would still apply. */
8758 #ifdef __cplusplus
8759 extern "C"
8760 #endif
8761 char clock_gettime ();
8762 int
8763 main ()
8764 {
8765 return clock_gettime ();
8766 ;
8767 return 0;
8768 }
8769 _ACEOF
8770 for ac_lib in '' rt; do
8771 if test -z "$ac_lib"; then
8772 ac_res="none required"
8773 else
8774 ac_res=-l$ac_lib
8775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8776 fi
8777 rm -f conftest.$ac_objext conftest$ac_exeext
8778 if { (ac_try="$ac_link"
8779 case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782 esac
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_link") 2>conftest.er1
8785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8792 { (case "(($ac_try" in
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8795 esac
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_try") 2>&5
8798 ac_status=$?
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; } &&
8801 { ac_try='test -s conftest$ac_exeext'
8802 { (case "(($ac_try" in
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8805 esac
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_try") 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_cv_search_clock_gettime=$ac_res
8812 else
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8817 fi
8819 rm -f core conftest.err conftest.$ac_objext \
8820 conftest$ac_exeext
8821 if test "${ac_cv_search_clock_gettime+set}" = set; then
8822 break
8823 fi
8824 done
8825 if test "${ac_cv_search_clock_gettime+set}" = set; then
8826 :
8827 else
8828 ac_cv_search_clock_gettime=no
8829 fi
8830 rm conftest.$ac_ext
8831 LIBS=$ac_func_search_save_LIBS
8832 fi
8833 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8834 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8835 ac_res=$ac_cv_search_clock_gettime
8836 if test "$ac_res" != no; then
8837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8839 fi
8842 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8843 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8844 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8845 if test "${ac_cv_search_setupterm+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 ac_func_search_save_LIBS=$LIBS
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 char setupterm ();
8863 int
8864 main ()
8865 {
8866 return setupterm ();
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8872 if test -z "$ac_lib"; then
8873 ac_res="none required"
8874 else
8875 ac_res=-l$ac_lib
8876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8877 fi
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (ac_try="$ac_link"
8880 case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883 esac
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_link") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8893 { (case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_try") 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (case "(($ac_try" in
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8906 esac
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908 (eval "$ac_try") 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_search_setupterm=$ac_res
8913 else
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8918 fi
8920 rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext
8922 if test "${ac_cv_search_setupterm+set}" = set; then
8923 break
8924 fi
8925 done
8926 if test "${ac_cv_search_setupterm+set}" = set; then
8927 :
8928 else
8929 ac_cv_search_setupterm=no
8930 fi
8931 rm conftest.$ac_ext
8932 LIBS=$ac_func_search_save_LIBS
8933 fi
8934 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8935 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8936 ac_res=$ac_cv_search_setupterm
8937 if test "$ac_res" != no; then
8938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8941 cat >>confdefs.h <<\_ACEOF
8942 #define HAVE_TERMINFO 1
8943 _ACEOF
8945 HAVE_TERMINFO='1'
8948 fi
8950 fi
8952 if test "$llvm_cv_enable_libedit" = "yes" ; then
8953 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8954 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8955 if test "${ac_cv_search_el_init+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 else
8958 ac_func_search_save_LIBS=$LIBS
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 /* Override any GCC internal prototype to avoid an error.
8967 Use char because int might match the return type of a GCC
8968 builtin and then its argument prototype would still apply. */
8969 #ifdef __cplusplus
8970 extern "C"
8971 #endif
8972 char el_init ();
8973 int
8974 main ()
8975 {
8976 return el_init ();
8977 ;
8978 return 0;
8979 }
8980 _ACEOF
8981 for ac_lib in '' edit; do
8982 if test -z "$ac_lib"; then
8983 ac_res="none required"
8984 else
8985 ac_res=-l$ac_lib
8986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8987 fi
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (ac_try="$ac_link"
8990 case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993 esac
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_link") 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (case "(($ac_try" in
9004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9006 esac
9007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_try") 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016 esac
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_search_el_init=$ac_res
9023 else
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9028 fi
9030 rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext
9032 if test "${ac_cv_search_el_init+set}" = set; then
9033 break
9034 fi
9035 done
9036 if test "${ac_cv_search_el_init+set}" = set; then
9037 :
9038 else
9039 ac_cv_search_el_init=no
9040 fi
9041 rm conftest.$ac_ext
9042 LIBS=$ac_func_search_save_LIBS
9043 fi
9044 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9045 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9046 ac_res=$ac_cv_search_el_init
9047 if test "$ac_res" != no; then
9048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9050 cat >>confdefs.h <<\_ACEOF
9051 #define HAVE_LIBEDIT 1
9052 _ACEOF
9054 fi
9056 fi
9058 if test "$llvm_cv_enable_libffi" = "yes" ; then
9059 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9060 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9061 if test "${ac_cv_search_ffi_call+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064 ac_func_search_save_LIBS=$LIBS
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h. */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9072 /* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
9075 #ifdef __cplusplus
9076 extern "C"
9077 #endif
9078 char ffi_call ();
9079 int
9080 main ()
9081 {
9082 return ffi_call ();
9083 ;
9084 return 0;
9085 }
9086 _ACEOF
9087 for ac_lib in '' ffi; do
9088 if test -z "$ac_lib"; then
9089 ac_res="none required"
9090 else
9091 ac_res=-l$ac_lib
9092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9093 fi
9094 rm -f conftest.$ac_objext conftest$ac_exeext
9095 if { (ac_try="$ac_link"
9096 case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9099 esac
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_link") 2>conftest.er1
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9109 { (case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_try") 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest$ac_exeext'
9119 { (case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122 esac
9123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_try") 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_search_ffi_call=$ac_res
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9134 fi
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext
9138 if test "${ac_cv_search_ffi_call+set}" = set; then
9139 break
9140 fi
9141 done
9142 if test "${ac_cv_search_ffi_call+set}" = set; then
9143 :
9144 else
9145 ac_cv_search_ffi_call=no
9146 fi
9147 rm conftest.$ac_ext
9148 LIBS=$ac_func_search_save_LIBS
9149 fi
9150 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9151 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9152 ac_res=$ac_cv_search_ffi_call
9153 if test "$ac_res" != no; then
9154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9156 cat >>confdefs.h <<\_ACEOF
9157 #define HAVE_FFI_CALL 1
9158 _ACEOF
9160 else
9161 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9162 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9163 { (exit 1); exit 1; }; }
9164 fi
9166 fi
9168 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9169 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9170 if test "${ac_cv_search_mallinfo+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173 ac_func_search_save_LIBS=$LIBS
9174 cat >conftest.$ac_ext <<_ACEOF
9175 /* confdefs.h. */
9176 _ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9181 /* Override any GCC internal prototype to avoid an error.
9182 Use char because int might match the return type of a GCC
9183 builtin and then its argument prototype would still apply. */
9184 #ifdef __cplusplus
9185 extern "C"
9186 #endif
9187 char mallinfo ();
9188 int
9189 main ()
9190 {
9191 return mallinfo ();
9192 ;
9193 return 0;
9194 }
9195 _ACEOF
9196 for ac_lib in '' malloc; do
9197 if test -z "$ac_lib"; then
9198 ac_res="none required"
9199 else
9200 ac_res=-l$ac_lib
9201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9202 fi
9203 rm -f conftest.$ac_objext conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9205 case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_link") 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221 esac
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_try") 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest$ac_exeext'
9228 { (case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_try") 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 ac_cv_search_mallinfo=$ac_res
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9243 fi
9245 rm -f core conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext
9247 if test "${ac_cv_search_mallinfo+set}" = set; then
9248 break
9249 fi
9250 done
9251 if test "${ac_cv_search_mallinfo+set}" = set; then
9252 :
9253 else
9254 ac_cv_search_mallinfo=no
9255 fi
9256 rm conftest.$ac_ext
9257 LIBS=$ac_func_search_save_LIBS
9258 fi
9259 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9260 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9261 ac_res=$ac_cv_search_mallinfo
9262 if test "$ac_res" != no; then
9263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9265 cat >>confdefs.h <<\_ACEOF
9266 #define HAVE_MALLINFO 1
9267 _ACEOF
9269 fi
9272 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9274 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9275 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9276 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279 ac_check_lib_save_LIBS=$LIBS
9280 LIBS="-lpthread $LIBS"
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9288 /* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9291 #ifdef __cplusplus
9292 extern "C"
9293 #endif
9294 char pthread_mutex_init ();
9295 int
9296 main ()
9297 {
9298 return pthread_mutex_init ();
9299 ;
9300 return 0;
9301 }
9302 _ACEOF
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (ac_try="$ac_link"
9305 case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308 esac
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_link") 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9318 { (case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_try") 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try='test -s conftest$ac_exeext'
9328 { (case "(($ac_try" in
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9331 esac
9332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333 (eval "$ac_try") 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_cv_lib_pthread_pthread_mutex_init=yes
9338 else
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_cv_lib_pthread_pthread_mutex_init=no
9343 fi
9345 rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 LIBS=$ac_check_lib_save_LIBS
9348 fi
9349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9350 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9351 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9352 cat >>confdefs.h <<_ACEOF
9353 #define HAVE_LIBPTHREAD 1
9354 _ACEOF
9356 LIBS="-lpthread $LIBS"
9358 fi
9360 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9361 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9362 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 else
9365 ac_func_search_save_LIBS=$LIBS
9366 cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h. */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 char pthread_mutex_lock ();
9380 int
9381 main ()
9382 {
9383 return pthread_mutex_lock ();
9384 ;
9385 return 0;
9386 }
9387 _ACEOF
9388 for ac_lib in '' pthread; do
9389 if test -z "$ac_lib"; then
9390 ac_res="none required"
9391 else
9392 ac_res=-l$ac_lib
9393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9394 fi
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9410 { (case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_try") 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try='test -s conftest$ac_exeext'
9420 { (case "(($ac_try" in
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9423 esac
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9429 ac_cv_search_pthread_mutex_lock=$ac_res
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9435 fi
9437 rm -f core conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext
9439 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9440 break
9441 fi
9442 done
9443 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9444 :
9445 else
9446 ac_cv_search_pthread_mutex_lock=no
9447 fi
9448 rm conftest.$ac_ext
9449 LIBS=$ac_func_search_save_LIBS
9450 fi
9451 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9452 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9453 ac_res=$ac_cv_search_pthread_mutex_lock
9454 if test "$ac_res" != no; then
9455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_PTHREAD_MUTEX_LOCK 1
9459 _ACEOF
9461 fi
9463 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9464 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9465 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468 ac_func_search_save_LIBS=$LIBS
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9476 /* Override any GCC internal prototype to avoid an error.
9477 Use char because int might match the return type of a GCC
9478 builtin and then its argument prototype would still apply. */
9479 #ifdef __cplusplus
9480 extern "C"
9481 #endif
9482 char pthread_rwlock_init ();
9483 int
9484 main ()
9485 {
9486 return pthread_rwlock_init ();
9487 ;
9488 return 0;
9489 }
9490 _ACEOF
9491 for ac_lib in '' pthread; do
9492 if test -z "$ac_lib"; then
9493 ac_res="none required"
9494 else
9495 ac_res=-l$ac_lib
9496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9497 fi
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9500 case "(($ac_try" in
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_link") 2>conftest.er1
9506 ac_status=$?
9507 grep -v '^ *+' conftest.er1 >conftest.err
9508 rm -f conftest.er1
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9513 { (case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516 esac
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_try") 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; } &&
9522 { ac_try='test -s conftest$ac_exeext'
9523 { (case "(($ac_try" in
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_try") 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_cv_search_pthread_rwlock_init=$ac_res
9533 else
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9538 fi
9540 rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext
9542 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9543 break
9544 fi
9545 done
9546 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9547 :
9548 else
9549 ac_cv_search_pthread_rwlock_init=no
9550 fi
9551 rm conftest.$ac_ext
9552 LIBS=$ac_func_search_save_LIBS
9553 fi
9554 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9555 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9556 ac_res=$ac_cv_search_pthread_rwlock_init
9557 if test "$ac_res" != no; then
9558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9560 cat >>confdefs.h <<\_ACEOF
9561 #define HAVE_PTHREAD_RWLOCK_INIT 1
9562 _ACEOF
9564 fi
9566 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9567 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9568 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571 ac_func_search_save_LIBS=$LIBS
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char pthread_getspecific ();
9586 int
9587 main ()
9588 {
9589 return pthread_getspecific ();
9590 ;
9591 return 0;
9592 }
9593 _ACEOF
9594 for ac_lib in '' pthread; do
9595 if test -z "$ac_lib"; then
9596 ac_res="none required"
9597 else
9598 ac_res=-l$ac_lib
9599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9600 fi
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616 { (case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_try") 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_try") 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_cv_search_pthread_getspecific=$ac_res
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9641 fi
9643 rm -f core conftest.err conftest.$ac_objext \
9644 conftest$ac_exeext
9645 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9646 break
9647 fi
9648 done
9649 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9650 :
9651 else
9652 ac_cv_search_pthread_getspecific=no
9653 fi
9654 rm conftest.$ac_ext
9655 LIBS=$ac_func_search_save_LIBS
9656 fi
9657 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9658 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9659 ac_res=$ac_cv_search_pthread_getspecific
9660 if test "$ac_res" != no; then
9661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_PTHREAD_GETSPECIFIC 1
9665 _ACEOF
9667 fi
9669 fi
9671 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9673 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9674 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9675 if test "${ac_cv_lib_z_compress2+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 ac_check_lib_save_LIBS=$LIBS
9679 LIBS="-lz $LIBS"
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 char compress2 ();
9694 int
9695 main ()
9696 {
9697 return compress2 ();
9698 ;
9699 return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9704 case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_try") 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_cv_lib_z_compress2=yes
9737 else
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_cv_lib_z_compress2=no
9742 fi
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_lib_save_LIBS
9747 fi
9748 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9749 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9750 if test $ac_cv_lib_z_compress2 = yes; then
9751 cat >>confdefs.h <<_ACEOF
9752 #define HAVE_LIBZ 1
9753 _ACEOF
9755 LIBS="-lz $LIBS"
9757 fi
9759 fi
9762 # Check whether --with-oprofile was given.
9763 if test "${with_oprofile+set}" = set; then
9764 withval=$with_oprofile;
9765 USE_OPROFILE=1
9767 case "$withval" in
9768 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9769 no) llvm_cv_oppath=
9770 USE_OPROFILE=0
9771 ;;
9772 *) llvm_cv_oppath="${withval}/lib/oprofile"
9773 CPPFLAGS="-I${withval}/include";;
9774 esac
9775 case $llvm_cv_os_type in
9776 Linux)
9777 if test -n "$llvm_cv_oppath" ; then
9778 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9779 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9780 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9781 if test "${ac_cv_search_bfd_init+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 ac_func_search_save_LIBS=$LIBS
9785 cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h. */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9792 /* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
9795 #ifdef __cplusplus
9796 extern "C"
9797 #endif
9798 char bfd_init ();
9799 int
9800 main ()
9801 {
9802 return bfd_init ();
9803 ;
9804 return 0;
9805 }
9806 _ACEOF
9807 for ac_lib in '' bfd; do
9808 if test -z "$ac_lib"; then
9809 ac_res="none required"
9810 else
9811 ac_res=-l$ac_lib
9812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9813 fi
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (ac_try="$ac_link"
9816 case "(($ac_try" in
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9819 esac
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_link") 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832 esac
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; } &&
9838 { ac_try='test -s conftest$ac_exeext'
9839 { (case "(($ac_try" in
9840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841 *) ac_try_echo=$ac_try;;
9842 esac
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844 (eval "$ac_try") 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_cv_search_bfd_init=$ac_res
9849 else
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9854 fi
9856 rm -f core conftest.err conftest.$ac_objext \
9857 conftest$ac_exeext
9858 if test "${ac_cv_search_bfd_init+set}" = set; then
9859 break
9860 fi
9861 done
9862 if test "${ac_cv_search_bfd_init+set}" = set; then
9863 :
9864 else
9865 ac_cv_search_bfd_init=no
9866 fi
9867 rm conftest.$ac_ext
9868 LIBS=$ac_func_search_save_LIBS
9869 fi
9870 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9871 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9872 ac_res=$ac_cv_search_bfd_init
9873 if test "$ac_res" != no; then
9874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9876 fi
9878 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9879 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9880 if test "${ac_cv_search_op_open_agent+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883 ac_func_search_save_LIBS=$LIBS
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any GCC internal prototype to avoid an error.
9892 Use char because int might match the return type of a GCC
9893 builtin and then its argument prototype would still apply. */
9894 #ifdef __cplusplus
9895 extern "C"
9896 #endif
9897 char op_open_agent ();
9898 int
9899 main ()
9900 {
9901 return op_open_agent ();
9902 ;
9903 return 0;
9904 }
9905 _ACEOF
9906 for ac_lib in '' opagent; do
9907 if test -z "$ac_lib"; then
9908 ac_res="none required"
9909 else
9910 ac_res=-l$ac_lib
9911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9912 fi
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (ac_try="$ac_link"
9915 case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_link") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_search_op_open_agent=$ac_res
9948 else
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9953 fi
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext
9957 if test "${ac_cv_search_op_open_agent+set}" = set; then
9958 break
9959 fi
9960 done
9961 if test "${ac_cv_search_op_open_agent+set}" = set; then
9962 :
9963 else
9964 ac_cv_search_op_open_agent=no
9965 fi
9966 rm conftest.$ac_ext
9967 LIBS=$ac_func_search_save_LIBS
9968 fi
9969 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9970 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9971 ac_res=$ac_cv_search_op_open_agent
9972 if test "$ac_res" != no; then
9973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9975 else
9977 echo "Error! You need to have libopagent around."
9978 exit -1
9980 fi
9982 if test "${ac_cv_header_opagent_h+set}" = set; then
9983 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9984 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9985 if test "${ac_cv_header_opagent_h+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 fi
9988 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9989 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9990 else
9991 # Is the header compilable?
9992 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9993 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10001 #include <opagent.h>
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
10024 ac_status=$?
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest.$ac_objext'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_header_compiler=yes
10038 else
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 ac_header_compiler=no
10043 fi
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10047 echo "${ECHO_T}$ac_header_compiler" >&6; }
10049 # Is the header present?
10050 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10051 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10052 cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h. */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 #include <opagent.h>
10059 _ACEOF
10060 if { (ac_try="$ac_cpp conftest.$ac_ext"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } >/dev/null; then
10073 if test -s conftest.err; then
10074 ac_cpp_err=$ac_c_preproc_warn_flag
10075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10076 else
10077 ac_cpp_err=
10078 fi
10079 else
10080 ac_cpp_err=yes
10081 fi
10082 if test -z "$ac_cpp_err"; then
10083 ac_header_preproc=yes
10084 else
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_header_preproc=no
10089 fi
10091 rm -f conftest.err conftest.$ac_ext
10092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10093 echo "${ECHO_T}$ac_header_preproc" >&6; }
10095 # So? What about this header?
10096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10097 yes:no: )
10098 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10099 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10100 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10101 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10102 ac_header_preproc=yes
10103 ;;
10104 no:yes:* )
10105 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10106 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10107 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
10108 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
10109 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10110 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10111 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
10112 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10113 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10114 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10116 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10117 ( cat <<\_ASBOX
10118 ## ------------------------------------ ##
10119 ## Report this to http://llvm.org/bugs/ ##
10120 ## ------------------------------------ ##
10121 _ASBOX
10122 ) | sed "s/^/$as_me: WARNING: /" >&2
10123 ;;
10124 esac
10125 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10126 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10127 if test "${ac_cv_header_opagent_h+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130 ac_cv_header_opagent_h=$ac_header_preproc
10131 fi
10132 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10133 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10135 fi
10136 if test $ac_cv_header_opagent_h = yes; then
10137 :
10138 else
10140 echo "Error! You need to have opagent.h around."
10141 exit -1
10143 fi
10146 fi ;;
10147 *)
10148 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10149 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10150 { (exit 1); exit 1; }; } ;;
10151 esac
10153 else
10155 USE_OPROFILE=0
10158 fi
10161 cat >>confdefs.h <<_ACEOF
10162 #define LLVM_USE_OPROFILE $USE_OPROFILE
10163 _ACEOF
10167 # Check whether --with-intel-jitevents was given.
10168 if test "${with_intel_jitevents+set}" = set; then
10169 withval=$with_intel_jitevents;
10170 case "$withval" in
10171 yes) USE_INTEL_JITEVENTS=1
10172 ;;
10173 no) USE_INTEL_JITEVENTS=0
10174 ;;
10175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10176 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10177 { (exit 1); exit 1; }; };;
10178 esac
10180 case $llvm_cv_os_type in
10181 Linux|Win32|Cygwin|MingW) ;;
10182 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10183 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10184 { (exit 1); exit 1; }; };;
10185 esac
10187 case "$llvm_cv_target_arch" in
10188 x86|x86_64) ;;
10189 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10190 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10191 { (exit 1); exit 1; }; };;
10192 esac
10194 else
10196 USE_INTEL_JITEVENTS=0
10199 fi
10202 cat >>confdefs.h <<_ACEOF
10203 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10204 _ACEOF
10207 for ac_prog in xml2-config
10208 do
10209 # Extract the first word of "$ac_prog", so it can be a program name with args.
10210 set dummy $ac_prog; ac_word=$2
10211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10213 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216 if test -n "$XML2CONFIG"; then
10217 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10218 else
10219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in $PATH
10221 do
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10226 ac_cv_prog_XML2CONFIG="$ac_prog"
10227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 break 2
10229 fi
10230 done
10231 done
10232 IFS=$as_save_IFS
10234 fi
10235 fi
10236 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10237 if test -n "$XML2CONFIG"; then
10238 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10239 echo "${ECHO_T}$XML2CONFIG" >&6; }
10240 else
10241 { echo "$as_me:$LINENO: result: no" >&5
10242 echo "${ECHO_T}no" >&6; }
10243 fi
10246 test -n "$XML2CONFIG" && break
10247 done
10250 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10251 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10252 if test "x$XML2CONFIG" = "x"; then
10253 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10254 echo "${ECHO_T}xml2-config not found" >&6; }
10255 else
10256 LIBXML2_INC=`$XML2CONFIG --cflags`
10257 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10258 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10259 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10260 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-lxml2 $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10276 #ifdef __cplusplus
10277 extern "C"
10278 #endif
10279 char xmlReadFile ();
10280 int
10281 main ()
10282 {
10283 return xmlReadFile ();
10284 ;
10285 return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (case "(($ac_try" in
10314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10315 *) ac_try_echo=$ac_try;;
10316 esac
10317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10318 (eval "$ac_try") 2>&5
10319 ac_status=$?
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10322 ac_cv_lib_xml2_xmlReadFile=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 ac_cv_lib_xml2_xmlReadFile=no
10328 fi
10330 rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10332 LIBS=$ac_check_lib_save_LIBS
10333 fi
10334 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10335 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10336 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10338 cat >>confdefs.h <<\_ACEOF
10339 #define CLANG_HAVE_LIBXML 1
10340 _ACEOF
10342 LIBXML2_LIBS="-lxml2"
10343 fi
10345 fi
10355 ac_header_dirent=no
10356 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10357 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10358 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10359 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h. */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 #include <sys/types.h>
10370 #include <$ac_hdr>
10372 int
10373 main ()
10374 {
10375 if ((DIR *) 0)
10376 return 0;
10377 ;
10378 return 0;
10379 }
10380 _ACEOF
10381 rm -f conftest.$ac_objext
10382 if { (ac_try="$ac_compile"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_compile") 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399 esac
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest.$ac_objext'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 eval "$as_ac_Header=yes"
10416 else
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 eval "$as_ac_Header=no"
10421 fi
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424 fi
10425 ac_res=`eval echo '${'$as_ac_Header'}'`
10426 { echo "$as_me:$LINENO: result: $ac_res" >&5
10427 echo "${ECHO_T}$ac_res" >&6; }
10428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10429 cat >>confdefs.h <<_ACEOF
10430 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10431 _ACEOF
10433 ac_header_dirent=$ac_hdr; break
10434 fi
10436 done
10437 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10438 if test $ac_header_dirent = dirent.h; then
10439 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10440 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10441 if test "${ac_cv_search_opendir+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444 ac_func_search_save_LIBS=$LIBS
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10452 /* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 char opendir ();
10459 int
10460 main ()
10461 {
10462 return opendir ();
10463 ;
10464 return 0;
10465 }
10466 _ACEOF
10467 for ac_lib in '' dir; do
10468 if test -z "$ac_lib"; then
10469 ac_res="none required"
10470 else
10471 ac_res=-l$ac_lib
10472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10473 fi
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (ac_try="$ac_link"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_link") 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest$ac_exeext'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_cv_search_opendir=$ac_res
10509 else
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10514 fi
10516 rm -f core conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext
10518 if test "${ac_cv_search_opendir+set}" = set; then
10519 break
10520 fi
10521 done
10522 if test "${ac_cv_search_opendir+set}" = set; then
10523 :
10524 else
10525 ac_cv_search_opendir=no
10526 fi
10527 rm conftest.$ac_ext
10528 LIBS=$ac_func_search_save_LIBS
10529 fi
10530 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10531 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10532 ac_res=$ac_cv_search_opendir
10533 if test "$ac_res" != no; then
10534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10536 fi
10538 else
10539 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10540 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10541 if test "${ac_cv_search_opendir+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 ac_func_search_save_LIBS=$LIBS
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10552 /* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10555 #ifdef __cplusplus
10556 extern "C"
10557 #endif
10558 char opendir ();
10559 int
10560 main ()
10561 {
10562 return opendir ();
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 for ac_lib in '' x; do
10568 if test -z "$ac_lib"; then
10569 ac_res="none required"
10570 else
10571 ac_res=-l$ac_lib
10572 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10573 fi
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (ac_try="$ac_link"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_link") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10589 { (case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592 esac
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_try") 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try='test -s conftest$ac_exeext'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_cv_search_opendir=$ac_res
10609 else
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10614 fi
10616 rm -f core conftest.err conftest.$ac_objext \
10617 conftest$ac_exeext
10618 if test "${ac_cv_search_opendir+set}" = set; then
10619 break
10620 fi
10621 done
10622 if test "${ac_cv_search_opendir+set}" = set; then
10623 :
10624 else
10625 ac_cv_search_opendir=no
10626 fi
10627 rm conftest.$ac_ext
10628 LIBS=$ac_func_search_save_LIBS
10629 fi
10630 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10631 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10632 ac_res=$ac_cv_search_opendir
10633 if test "$ac_res" != no; then
10634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10636 fi
10638 fi
10640 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10641 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10642 if test "${ac_cv_header_mmap_anon+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645 ac_ext=c
10646 ac_cpp='$CPP $CPPFLAGS'
10647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h. */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657 #include <sys/mman.h>
10658 #include <unistd.h>
10659 #include <fcntl.h>
10660 int
10661 main ()
10662 {
10663 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10664 ;
10665 return 0;
10666 }
10667 _ACEOF
10668 rm -f conftest.$ac_objext
10669 if { (ac_try="$ac_compile"
10670 case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673 esac
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_compile") 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10683 { (case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_try") 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest.$ac_objext'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10696 esac
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 ac_cv_header_mmap_anon=yes
10703 else
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ac_cv_header_mmap_anon=no
10708 fi
10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10711 ac_ext=c
10712 ac_cpp='$CPP $CPPFLAGS'
10713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10718 fi
10719 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10720 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10721 if test "$ac_cv_header_mmap_anon" = yes; then
10723 cat >>confdefs.h <<\_ACEOF
10724 #define HAVE_MMAP_ANONYMOUS 1
10725 _ACEOF
10727 fi
10729 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10730 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10731 if test "${ac_cv_header_stat_broken+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <sys/types.h>
10741 #include <sys/stat.h>
10743 #if defined S_ISBLK && defined S_IFDIR
10744 # if S_ISBLK (S_IFDIR)
10745 You lose.
10746 # endif
10747 #endif
10749 #if defined S_ISBLK && defined S_IFCHR
10750 # if S_ISBLK (S_IFCHR)
10751 You lose.
10752 # endif
10753 #endif
10755 #if defined S_ISLNK && defined S_IFREG
10756 # if S_ISLNK (S_IFREG)
10757 You lose.
10758 # endif
10759 #endif
10761 #if defined S_ISSOCK && defined S_IFREG
10762 # if S_ISSOCK (S_IFREG)
10763 You lose.
10764 # endif
10765 #endif
10767 _ACEOF
10768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10769 $EGREP "You lose" >/dev/null 2>&1; then
10770 ac_cv_header_stat_broken=yes
10771 else
10772 ac_cv_header_stat_broken=no
10773 fi
10774 rm -f conftest*
10776 fi
10777 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10778 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10779 if test $ac_cv_header_stat_broken = yes; then
10781 cat >>confdefs.h <<\_ACEOF
10782 #define STAT_MACROS_BROKEN 1
10783 _ACEOF
10785 fi
10787 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10788 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10789 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h. */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 #include <sys/types.h>
10799 #include <sys/wait.h>
10800 #ifndef WEXITSTATUS
10801 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10802 #endif
10803 #ifndef WIFEXITED
10804 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10805 #endif
10807 int
10808 main ()
10809 {
10810 int s;
10811 wait (&s);
10812 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10813 ;
10814 return 0;
10815 }
10816 _ACEOF
10817 rm -f conftest.$ac_objext
10818 if { (ac_try="$ac_compile"
10819 case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822 esac
10823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_compile") 2>conftest.er1
10825 ac_status=$?
10826 grep -v '^ *+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10832 { (case "(($ac_try" in
10833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834 *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837 (eval "$ac_try") 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_try") 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_header_sys_wait_h=yes
10852 else
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_cv_header_sys_wait_h=no
10857 fi
10859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 fi
10861 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10862 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10863 if test $ac_cv_header_sys_wait_h = yes; then
10865 cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_SYS_WAIT_H 1
10867 _ACEOF
10869 fi
10871 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10872 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10873 if test "${ac_cv_header_time+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <sys/types.h>
10883 #include <sys/time.h>
10884 #include <time.h>
10886 int
10887 main ()
10888 {
10889 if ((struct tm *) 0)
10890 return 0;
10891 ;
10892 return 0;
10893 }
10894 _ACEOF
10895 rm -f conftest.$ac_objext
10896 if { (ac_try="$ac_compile"
10897 case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_compile") 2>conftest.er1
10903 ac_status=$?
10904 grep -v '^ *+' conftest.er1 >conftest.err
10905 rm -f conftest.er1
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10910 { (case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913 esac
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_try") 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; } &&
10919 { ac_try='test -s conftest.$ac_objext'
10920 { (case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_try") 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 ac_cv_header_time=yes
10930 else
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_cv_header_time=no
10935 fi
10937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10938 fi
10939 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10940 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10941 if test $ac_cv_header_time = yes; then
10943 cat >>confdefs.h <<\_ACEOF
10944 #define TIME_WITH_SYS_TIME 1
10945 _ACEOF
10947 fi
10950 ac_ext=cpp
10951 ac_cpp='$CXXCPP $CPPFLAGS'
10952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10956 ac_ext=cpp
10957 ac_cpp='$CXXCPP $CPPFLAGS'
10958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10961 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10962 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10963 if test -z "$CXXCPP"; then
10964 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 else
10967 # Double quotes because CXXCPP needs to be expanded
10968 for CXXCPP in "$CXX -E" "/lib/cpp"
10969 do
10970 ac_preproc_ok=false
10971 for ac_cxx_preproc_warn_flag in '' yes
10972 do
10973 # Use a header file that comes with gcc, so configuring glibc
10974 # with a fresh cross-compiler works.
10975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10976 # <limits.h> exists even on freestanding compilers.
10977 # On the NeXT, cc -E runs the code through the compiler's parser,
10978 # not just through cpp. "Syntax error" is here to catch this case.
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h. */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985 #ifdef __STDC__
10986 # include <limits.h>
10987 #else
10988 # include <assert.h>
10989 #endif
10990 Syntax error
10991 _ACEOF
10992 if { (ac_try="$ac_cpp conftest.$ac_ext"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } >/dev/null; then
11005 if test -s conftest.err; then
11006 ac_cpp_err=$ac_cxx_preproc_warn_flag
11007 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11008 else
11009 ac_cpp_err=
11010 fi
11011 else
11012 ac_cpp_err=yes
11013 fi
11014 if test -z "$ac_cpp_err"; then
11015 :
11016 else
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 # Broken: fails on valid input.
11021 continue
11022 fi
11024 rm -f conftest.err conftest.$ac_ext
11026 # OK, works on sane cases. Now check whether nonexistent headers
11027 # can be detected and how.
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h. */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 #include <ac_nonexistent.h>
11035 _ACEOF
11036 if { (ac_try="$ac_cpp conftest.$ac_ext"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } >/dev/null; then
11049 if test -s conftest.err; then
11050 ac_cpp_err=$ac_cxx_preproc_warn_flag
11051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11052 else
11053 ac_cpp_err=
11054 fi
11055 else
11056 ac_cpp_err=yes
11057 fi
11058 if test -z "$ac_cpp_err"; then
11059 # Broken: success on invalid input.
11060 continue
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 # Passes both tests.
11066 ac_preproc_ok=:
11067 break
11068 fi
11070 rm -f conftest.err conftest.$ac_ext
11072 done
11073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11074 rm -f conftest.err conftest.$ac_ext
11075 if $ac_preproc_ok; then
11076 break
11077 fi
11079 done
11080 ac_cv_prog_CXXCPP=$CXXCPP
11082 fi
11083 CXXCPP=$ac_cv_prog_CXXCPP
11084 else
11085 ac_cv_prog_CXXCPP=$CXXCPP
11086 fi
11087 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11088 echo "${ECHO_T}$CXXCPP" >&6; }
11089 ac_preproc_ok=false
11090 for ac_cxx_preproc_warn_flag in '' yes
11091 do
11092 # Use a header file that comes with gcc, so configuring glibc
11093 # with a fresh cross-compiler works.
11094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11095 # <limits.h> exists even on freestanding compilers.
11096 # On the NeXT, cc -E runs the code through the compiler's parser,
11097 # not just through cpp. "Syntax error" is here to catch this case.
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 #ifdef __STDC__
11105 # include <limits.h>
11106 #else
11107 # include <assert.h>
11108 #endif
11109 Syntax error
11110 _ACEOF
11111 if { (ac_try="$ac_cpp conftest.$ac_ext"
11112 case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } >/dev/null; then
11124 if test -s conftest.err; then
11125 ac_cpp_err=$ac_cxx_preproc_warn_flag
11126 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11127 else
11128 ac_cpp_err=
11129 fi
11130 else
11131 ac_cpp_err=yes
11132 fi
11133 if test -z "$ac_cpp_err"; then
11134 :
11135 else
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 # Broken: fails on valid input.
11140 continue
11141 fi
11143 rm -f conftest.err conftest.$ac_ext
11145 # OK, works on sane cases. Now check whether nonexistent headers
11146 # can be detected and how.
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 #include <ac_nonexistent.h>
11154 _ACEOF
11155 if { (ac_try="$ac_cpp conftest.$ac_ext"
11156 case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } >/dev/null; then
11168 if test -s conftest.err; then
11169 ac_cpp_err=$ac_cxx_preproc_warn_flag
11170 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11171 else
11172 ac_cpp_err=
11173 fi
11174 else
11175 ac_cpp_err=yes
11176 fi
11177 if test -z "$ac_cpp_err"; then
11178 # Broken: success on invalid input.
11179 continue
11180 else
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 # Passes both tests.
11185 ac_preproc_ok=:
11186 break
11187 fi
11189 rm -f conftest.err conftest.$ac_ext
11191 done
11192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11193 rm -f conftest.err conftest.$ac_ext
11194 if $ac_preproc_ok; then
11195 :
11196 else
11197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11198 See \`config.log' for more details." >&5
11199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11200 See \`config.log' for more details." >&2;}
11201 { (exit 1); exit 1; }; }
11202 fi
11204 ac_ext=cpp
11205 ac_cpp='$CXXCPP $CPPFLAGS'
11206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11212 for ac_header in cxxabi.h
11213 do
11214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 fi
11221 ac_res=`eval echo '${'$as_ac_Header'}'`
11222 { echo "$as_me:$LINENO: result: $ac_res" >&5
11223 echo "${ECHO_T}$ac_res" >&6; }
11224 else
11225 # Is the header compilable?
11226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11228 cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h. */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 $ac_includes_default
11235 #include <$ac_header>
11236 _ACEOF
11237 rm -f conftest.$ac_objext
11238 if { (ac_try="$ac_compile"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_compile") 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11252 { (case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_try") 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; } &&
11261 { ac_try='test -s conftest.$ac_objext'
11262 { (case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_try") 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_header_compiler=yes
11272 else
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_header_compiler=no
11277 fi
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11281 echo "${ECHO_T}$ac_header_compiler" >&6; }
11283 # Is the header present?
11284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11286 cat >conftest.$ac_ext <<_ACEOF
11287 /* confdefs.h. */
11288 _ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11292 #include <$ac_header>
11293 _ACEOF
11294 if { (ac_try="$ac_cpp conftest.$ac_ext"
11295 case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298 esac
11299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11301 ac_status=$?
11302 grep -v '^ *+' conftest.er1 >conftest.err
11303 rm -f conftest.er1
11304 cat conftest.err >&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } >/dev/null; then
11307 if test -s conftest.err; then
11308 ac_cpp_err=$ac_cxx_preproc_warn_flag
11309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11310 else
11311 ac_cpp_err=
11312 fi
11313 else
11314 ac_cpp_err=yes
11315 fi
11316 if test -z "$ac_cpp_err"; then
11317 ac_header_preproc=yes
11318 else
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11322 ac_header_preproc=no
11323 fi
11325 rm -f conftest.err conftest.$ac_ext
11326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11327 echo "${ECHO_T}$ac_header_preproc" >&6; }
11329 # So? What about this header?
11330 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11331 yes:no: )
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11336 ac_header_preproc=yes
11337 ;;
11338 no:yes:* )
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11351 ( cat <<\_ASBOX
11352 ## ------------------------------------ ##
11353 ## Report this to http://llvm.org/bugs/ ##
11354 ## ------------------------------------ ##
11355 _ASBOX
11356 ) | sed "s/^/$as_me: WARNING: /" >&2
11357 ;;
11358 esac
11359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364 eval "$as_ac_Header=\$ac_header_preproc"
11365 fi
11366 ac_res=`eval echo '${'$as_ac_Header'}'`
11367 { echo "$as_me:$LINENO: result: $ac_res" >&5
11368 echo "${ECHO_T}$ac_res" >&6; }
11370 fi
11371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11372 cat >>confdefs.h <<_ACEOF
11373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11374 _ACEOF
11376 fi
11378 done
11380 ac_ext=c
11381 ac_cpp='$CPP $CPPFLAGS'
11382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11391 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11392 do
11393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 fi
11400 ac_res=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11403 else
11404 # Is the header compilable?
11405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11407 cat >conftest.$ac_ext <<_ACEOF
11408 /* confdefs.h. */
11409 _ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11413 $ac_includes_default
11414 #include <$ac_header>
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (ac_try="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421 esac
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11431 { (case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_try") 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest.$ac_objext'
11441 { (case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_try") 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_header_compiler=yes
11451 else
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_header_compiler=no
11456 fi
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11460 echo "${ECHO_T}$ac_header_compiler" >&6; }
11462 # Is the header present?
11463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 #include <$ac_header>
11472 _ACEOF
11473 if { (ac_try="$ac_cpp conftest.$ac_ext"
11474 case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477 esac
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } >/dev/null; then
11486 if test -s conftest.err; then
11487 ac_cpp_err=$ac_c_preproc_warn_flag
11488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11489 else
11490 ac_cpp_err=
11491 fi
11492 else
11493 ac_cpp_err=yes
11494 fi
11495 if test -z "$ac_cpp_err"; then
11496 ac_header_preproc=yes
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ac_header_preproc=no
11502 fi
11504 rm -f conftest.err conftest.$ac_ext
11505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11506 echo "${ECHO_T}$ac_header_preproc" >&6; }
11508 # So? What about this header?
11509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11510 yes:no: )
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11515 ac_header_preproc=yes
11516 ;;
11517 no:yes:* )
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11530 ( cat <<\_ASBOX
11531 ## ------------------------------------ ##
11532 ## Report this to http://llvm.org/bugs/ ##
11533 ## ------------------------------------ ##
11534 _ASBOX
11535 ) | sed "s/^/$as_me: WARNING: /" >&2
11536 ;;
11537 esac
11538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543 eval "$as_ac_Header=\$ac_header_preproc"
11544 fi
11545 ac_res=`eval echo '${'$as_ac_Header'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11549 fi
11550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11551 cat >>confdefs.h <<_ACEOF
11552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11553 _ACEOF
11555 fi
11557 done
11565 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11566 do
11567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 fi
11574 ac_res=`eval echo '${'$as_ac_Header'}'`
11575 { echo "$as_me:$LINENO: result: $ac_res" >&5
11576 echo "${ECHO_T}$ac_res" >&6; }
11577 else
11578 # Is the header compilable?
11579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11581 cat >conftest.$ac_ext <<_ACEOF
11582 /* confdefs.h. */
11583 _ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11587 $ac_includes_default
11588 #include <$ac_header>
11589 _ACEOF
11590 rm -f conftest.$ac_objext
11591 if { (ac_try="$ac_compile"
11592 case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11595 esac
11596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_compile") 2>conftest.er1
11598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11605 { (case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_try") 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
11615 { (case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_try") 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_header_compiler=yes
11625 else
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_header_compiler=no
11630 fi
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634 echo "${ECHO_T}$ac_header_compiler" >&6; }
11636 # Is the header present?
11637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <$ac_header>
11646 _ACEOF
11647 if { (ac_try="$ac_cpp conftest.$ac_ext"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651 esac
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } >/dev/null; then
11660 if test -s conftest.err; then
11661 ac_cpp_err=$ac_c_preproc_warn_flag
11662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11663 else
11664 ac_cpp_err=
11665 fi
11666 else
11667 ac_cpp_err=yes
11668 fi
11669 if test -z "$ac_cpp_err"; then
11670 ac_header_preproc=yes
11671 else
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ac_header_preproc=no
11676 fi
11678 rm -f conftest.err conftest.$ac_ext
11679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11680 echo "${ECHO_T}$ac_header_preproc" >&6; }
11682 # So? What about this header?
11683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11684 yes:no: )
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11689 ac_header_preproc=yes
11690 ;;
11691 no:yes:* )
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11704 ( cat <<\_ASBOX
11705 ## ------------------------------------ ##
11706 ## Report this to http://llvm.org/bugs/ ##
11707 ## ------------------------------------ ##
11708 _ASBOX
11709 ) | sed "s/^/$as_me: WARNING: /" >&2
11710 ;;
11711 esac
11712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717 eval "$as_ac_Header=\$ac_header_preproc"
11718 fi
11719 ac_res=`eval echo '${'$as_ac_Header'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11723 fi
11724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11727 _ACEOF
11729 fi
11731 done
11734 for ac_header in utime.h
11735 do
11736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 fi
11743 ac_res=`eval echo '${'$as_ac_Header'}'`
11744 { echo "$as_me:$LINENO: result: $ac_res" >&5
11745 echo "${ECHO_T}$ac_res" >&6; }
11746 else
11747 # Is the header compilable?
11748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11750 cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h. */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 $ac_includes_default
11757 #include <$ac_header>
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (ac_try="$ac_compile"
11761 case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_compile") 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11774 { (case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11777 esac
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_try") 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; } &&
11783 { ac_try='test -s conftest.$ac_objext'
11784 { (case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_try") 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 ac_header_compiler=yes
11794 else
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 ac_header_compiler=no
11799 fi
11801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11803 echo "${ECHO_T}$ac_header_compiler" >&6; }
11805 # Is the header present?
11806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <$ac_header>
11815 _ACEOF
11816 if { (ac_try="$ac_cpp conftest.$ac_ext"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } >/dev/null; then
11829 if test -s conftest.err; then
11830 ac_cpp_err=$ac_c_preproc_warn_flag
11831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11832 else
11833 ac_cpp_err=
11834 fi
11835 else
11836 ac_cpp_err=yes
11837 fi
11838 if test -z "$ac_cpp_err"; then
11839 ac_header_preproc=yes
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 ac_header_preproc=no
11845 fi
11847 rm -f conftest.err conftest.$ac_ext
11848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11849 echo "${ECHO_T}$ac_header_preproc" >&6; }
11851 # So? What about this header?
11852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11853 yes:no: )
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11858 ac_header_preproc=yes
11859 ;;
11860 no:yes:* )
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11873 ( cat <<\_ASBOX
11874 ## ------------------------------------ ##
11875 ## Report this to http://llvm.org/bugs/ ##
11876 ## ------------------------------------ ##
11877 _ASBOX
11878 ) | sed "s/^/$as_me: WARNING: /" >&2
11879 ;;
11880 esac
11881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886 eval "$as_ac_Header=\$ac_header_preproc"
11887 fi
11888 ac_res=`eval echo '${'$as_ac_Header'}'`
11889 { echo "$as_me:$LINENO: result: $ac_res" >&5
11890 echo "${ECHO_T}$ac_res" >&6; }
11892 fi
11893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11896 _ACEOF
11898 fi
11900 done
11907 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11908 do
11909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 fi
11916 ac_res=`eval echo '${'$as_ac_Header'}'`
11917 { echo "$as_me:$LINENO: result: $ac_res" >&5
11918 echo "${ECHO_T}$ac_res" >&6; }
11919 else
11920 # Is the header compilable?
11921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h. */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 $ac_includes_default
11930 #include <$ac_header>
11931 _ACEOF
11932 rm -f conftest.$ac_objext
11933 if { (ac_try="$ac_compile"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_compile") 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest.$ac_objext'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 ac_header_compiler=yes
11967 else
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 ac_header_compiler=no
11972 fi
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11976 echo "${ECHO_T}$ac_header_compiler" >&6; }
11978 # Is the header present?
11979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11981 cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h. */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11987 #include <$ac_header>
11988 _ACEOF
11989 if { (ac_try="$ac_cpp conftest.$ac_ext"
11990 case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11993 esac
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } >/dev/null; then
12002 if test -s conftest.err; then
12003 ac_cpp_err=$ac_c_preproc_warn_flag
12004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12005 else
12006 ac_cpp_err=
12007 fi
12008 else
12009 ac_cpp_err=yes
12010 fi
12011 if test -z "$ac_cpp_err"; then
12012 ac_header_preproc=yes
12013 else
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ac_header_preproc=no
12018 fi
12020 rm -f conftest.err conftest.$ac_ext
12021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12022 echo "${ECHO_T}$ac_header_preproc" >&6; }
12024 # So? What about this header?
12025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12026 yes:no: )
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12031 ac_header_preproc=yes
12032 ;;
12033 no:yes:* )
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12046 ( cat <<\_ASBOX
12047 ## ------------------------------------ ##
12048 ## Report this to http://llvm.org/bugs/ ##
12049 ## ------------------------------------ ##
12050 _ASBOX
12051 ) | sed "s/^/$as_me: WARNING: /" >&2
12052 ;;
12053 esac
12054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059 eval "$as_ac_Header=\$ac_header_preproc"
12060 fi
12061 ac_res=`eval echo '${'$as_ac_Header'}'`
12062 { echo "$as_me:$LINENO: result: $ac_res" >&5
12063 echo "${ECHO_T}$ac_res" >&6; }
12065 fi
12066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12067 cat >>confdefs.h <<_ACEOF
12068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12069 _ACEOF
12071 fi
12073 done
12078 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12079 do
12080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 fi
12087 ac_res=`eval echo '${'$as_ac_Header'}'`
12088 { echo "$as_me:$LINENO: result: $ac_res" >&5
12089 echo "${ECHO_T}$ac_res" >&6; }
12090 else
12091 # Is the header compilable?
12092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h. */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 $ac_includes_default
12101 #include <$ac_header>
12102 _ACEOF
12103 rm -f conftest.$ac_objext
12104 if { (ac_try="$ac_compile"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_compile") 2>conftest.er1
12111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12118 { (case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121 esac
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_try") 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest.$ac_objext'
12128 { (case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_try") 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_header_compiler=yes
12138 else
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_header_compiler=no
12143 fi
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12147 echo "${ECHO_T}$ac_header_compiler" >&6; }
12149 # Is the header present?
12150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12152 cat >conftest.$ac_ext <<_ACEOF
12153 /* confdefs.h. */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12158 #include <$ac_header>
12159 _ACEOF
12160 if { (ac_try="$ac_cpp conftest.$ac_ext"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } >/dev/null; then
12173 if test -s conftest.err; then
12174 ac_cpp_err=$ac_c_preproc_warn_flag
12175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12176 else
12177 ac_cpp_err=
12178 fi
12179 else
12180 ac_cpp_err=yes
12181 fi
12182 if test -z "$ac_cpp_err"; then
12183 ac_header_preproc=yes
12184 else
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_header_preproc=no
12189 fi
12191 rm -f conftest.err conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12193 echo "${ECHO_T}$ac_header_preproc" >&6; }
12195 # So? What about this header?
12196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12197 yes:no: )
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12202 ac_header_preproc=yes
12203 ;;
12204 no:yes:* )
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12217 ( cat <<\_ASBOX
12218 ## ------------------------------------ ##
12219 ## Report this to http://llvm.org/bugs/ ##
12220 ## ------------------------------------ ##
12221 _ASBOX
12222 ) | sed "s/^/$as_me: WARNING: /" >&2
12223 ;;
12224 esac
12225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230 eval "$as_ac_Header=\$ac_header_preproc"
12231 fi
12232 ac_res=`eval echo '${'$as_ac_Header'}'`
12233 { echo "$as_me:$LINENO: result: $ac_res" >&5
12234 echo "${ECHO_T}$ac_res" >&6; }
12236 fi
12237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12240 _ACEOF
12242 fi
12244 done
12247 for ac_header in valgrind/valgrind.h
12248 do
12249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 fi
12256 ac_res=`eval echo '${'$as_ac_Header'}'`
12257 { echo "$as_me:$LINENO: result: $ac_res" >&5
12258 echo "${ECHO_T}$ac_res" >&6; }
12259 else
12260 # Is the header compilable?
12261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12263 cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h. */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12269 $ac_includes_default
12270 #include <$ac_header>
12271 _ACEOF
12272 rm -f conftest.$ac_objext
12273 if { (ac_try="$ac_compile"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277 esac
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_compile") 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287 { (case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_try") 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest.$ac_objext'
12297 { (case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_try") 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 ac_header_compiler=yes
12307 else
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 ac_header_compiler=no
12312 fi
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12316 echo "${ECHO_T}$ac_header_compiler" >&6; }
12318 # Is the header present?
12319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 #include <$ac_header>
12328 _ACEOF
12329 if { (ac_try="$ac_cpp conftest.$ac_ext"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12333 esac
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } >/dev/null; then
12342 if test -s conftest.err; then
12343 ac_cpp_err=$ac_c_preproc_warn_flag
12344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12345 else
12346 ac_cpp_err=
12347 fi
12348 else
12349 ac_cpp_err=yes
12350 fi
12351 if test -z "$ac_cpp_err"; then
12352 ac_header_preproc=yes
12353 else
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_header_preproc=no
12358 fi
12360 rm -f conftest.err conftest.$ac_ext
12361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12362 echo "${ECHO_T}$ac_header_preproc" >&6; }
12364 # So? What about this header?
12365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12366 yes:no: )
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12371 ac_header_preproc=yes
12372 ;;
12373 no:yes:* )
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12386 ( cat <<\_ASBOX
12387 ## ------------------------------------ ##
12388 ## Report this to http://llvm.org/bugs/ ##
12389 ## ------------------------------------ ##
12390 _ASBOX
12391 ) | sed "s/^/$as_me: WARNING: /" >&2
12392 ;;
12393 esac
12394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399 eval "$as_ac_Header=\$ac_header_preproc"
12400 fi
12401 ac_res=`eval echo '${'$as_ac_Header'}'`
12402 { echo "$as_me:$LINENO: result: $ac_res" >&5
12403 echo "${ECHO_T}$ac_res" >&6; }
12405 fi
12406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12407 cat >>confdefs.h <<_ACEOF
12408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12409 _ACEOF
12411 fi
12413 done
12416 for ac_header in fenv.h
12417 do
12418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 fi
12425 ac_res=`eval echo '${'$as_ac_Header'}'`
12426 { echo "$as_me:$LINENO: result: $ac_res" >&5
12427 echo "${ECHO_T}$ac_res" >&6; }
12428 else
12429 # Is the header compilable?
12430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12432 cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h. */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12438 $ac_includes_default
12439 #include <$ac_header>
12440 _ACEOF
12441 rm -f conftest.$ac_objext
12442 if { (ac_try="$ac_compile"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_compile") 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456 { (case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_try") 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest.$ac_objext'
12466 { (case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_try") 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_header_compiler=yes
12476 else
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ac_header_compiler=no
12481 fi
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12485 echo "${ECHO_T}$ac_header_compiler" >&6; }
12487 # Is the header present?
12488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 #include <$ac_header>
12497 _ACEOF
12498 if { (ac_try="$ac_cpp conftest.$ac_ext"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } >/dev/null; then
12511 if test -s conftest.err; then
12512 ac_cpp_err=$ac_c_preproc_warn_flag
12513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12514 else
12515 ac_cpp_err=
12516 fi
12517 else
12518 ac_cpp_err=yes
12519 fi
12520 if test -z "$ac_cpp_err"; then
12521 ac_header_preproc=yes
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ac_header_preproc=no
12527 fi
12529 rm -f conftest.err conftest.$ac_ext
12530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12531 echo "${ECHO_T}$ac_header_preproc" >&6; }
12533 # So? What about this header?
12534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12535 yes:no: )
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12540 ac_header_preproc=yes
12541 ;;
12542 no:yes:* )
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12555 ( cat <<\_ASBOX
12556 ## ------------------------------------ ##
12557 ## Report this to http://llvm.org/bugs/ ##
12558 ## ------------------------------------ ##
12559 _ASBOX
12560 ) | sed "s/^/$as_me: WARNING: /" >&2
12561 ;;
12562 esac
12563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568 eval "$as_ac_Header=\$ac_header_preproc"
12569 fi
12570 ac_res=`eval echo '${'$as_ac_Header'}'`
12571 { echo "$as_me:$LINENO: result: $ac_res" >&5
12572 echo "${ECHO_T}$ac_res" >&6; }
12574 fi
12575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12576 cat >>confdefs.h <<_ACEOF
12577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12578 _ACEOF
12580 fi
12582 done
12584 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12585 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12586 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 #include <fenv.h>
12597 int
12598 main ()
12599 {
12600 #ifndef FE_ALL_EXCEPT
12601 char *p = (char *) FE_ALL_EXCEPT;
12602 return !p;
12603 #endif
12605 ;
12606 return 0;
12607 }
12608 _ACEOF
12609 rm -f conftest.$ac_objext
12610 if { (ac_try="$ac_compile"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_compile") 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12624 { (case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627 esac
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_try") 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; } &&
12633 { ac_try='test -s conftest.$ac_objext'
12634 { (case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_try") 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_have_decl_FE_ALL_EXCEPT=yes
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_cv_have_decl_FE_ALL_EXCEPT=no
12649 fi
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 fi
12653 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12654 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12655 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12657 cat >>confdefs.h <<_ACEOF
12658 #define HAVE_DECL_FE_ALL_EXCEPT 1
12659 _ACEOF
12662 else
12663 cat >>confdefs.h <<_ACEOF
12664 #define HAVE_DECL_FE_ALL_EXCEPT 0
12665 _ACEOF
12668 fi
12669 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12670 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12671 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674 cat >conftest.$ac_ext <<_ACEOF
12675 /* confdefs.h. */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12680 #include <fenv.h>
12682 int
12683 main ()
12684 {
12685 #ifndef FE_INEXACT
12686 char *p = (char *) FE_INEXACT;
12687 return !p;
12688 #endif
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 rm -f conftest.$ac_objext
12695 if { (ac_try="$ac_compile"
12696 case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12699 esac
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_compile") 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12709 { (case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12712 esac
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_try") 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } &&
12718 { ac_try='test -s conftest.$ac_objext'
12719 { (case "(($ac_try" in
12720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721 *) ac_try_echo=$ac_try;;
12722 esac
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_try") 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 ac_cv_have_decl_FE_INEXACT=yes
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ac_cv_have_decl_FE_INEXACT=no
12734 fi
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 fi
12738 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12739 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12740 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12742 cat >>confdefs.h <<_ACEOF
12743 #define HAVE_DECL_FE_INEXACT 1
12744 _ACEOF
12747 else
12748 cat >>confdefs.h <<_ACEOF
12749 #define HAVE_DECL_FE_INEXACT 0
12750 _ACEOF
12753 fi
12756 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12758 for ac_header in pthread.h
12759 do
12760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 fi
12767 ac_res=`eval echo '${'$as_ac_Header'}'`
12768 { echo "$as_me:$LINENO: result: $ac_res" >&5
12769 echo "${ECHO_T}$ac_res" >&6; }
12770 else
12771 # Is the header compilable?
12772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12774 cat >conftest.$ac_ext <<_ACEOF
12775 /* confdefs.h. */
12776 _ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12780 $ac_includes_default
12781 #include <$ac_header>
12782 _ACEOF
12783 rm -f conftest.$ac_objext
12784 if { (ac_try="$ac_compile"
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_compile") 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); } &&
12797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12798 { (case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_try") 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; } &&
12807 { ac_try='test -s conftest.$ac_objext'
12808 { (case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_try") 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_header_compiler=yes
12818 else
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 ac_header_compiler=no
12823 fi
12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12827 echo "${ECHO_T}$ac_header_compiler" >&6; }
12829 # Is the header present?
12830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 #include <$ac_header>
12839 _ACEOF
12840 if { (ac_try="$ac_cpp conftest.$ac_ext"
12841 case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12844 esac
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12847 ac_status=$?
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } >/dev/null; then
12853 if test -s conftest.err; then
12854 ac_cpp_err=$ac_c_preproc_warn_flag
12855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12856 else
12857 ac_cpp_err=
12858 fi
12859 else
12860 ac_cpp_err=yes
12861 fi
12862 if test -z "$ac_cpp_err"; then
12863 ac_header_preproc=yes
12864 else
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ac_header_preproc=no
12869 fi
12871 rm -f conftest.err conftest.$ac_ext
12872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12873 echo "${ECHO_T}$ac_header_preproc" >&6; }
12875 # So? What about this header?
12876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12877 yes:no: )
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12882 ac_header_preproc=yes
12883 ;;
12884 no:yes:* )
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12897 ( cat <<\_ASBOX
12898 ## ------------------------------------ ##
12899 ## Report this to http://llvm.org/bugs/ ##
12900 ## ------------------------------------ ##
12901 _ASBOX
12902 ) | sed "s/^/$as_me: WARNING: /" >&2
12903 ;;
12904 esac
12905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 else
12910 eval "$as_ac_Header=\$ac_header_preproc"
12911 fi
12912 ac_res=`eval echo '${'$as_ac_Header'}'`
12913 { echo "$as_me:$LINENO: result: $ac_res" >&5
12914 echo "${ECHO_T}$ac_res" >&6; }
12916 fi
12917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12918 cat >>confdefs.h <<_ACEOF
12919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12920 _ACEOF
12921 HAVE_PTHREAD=1
12923 else
12924 HAVE_PTHREAD=0
12926 fi
12928 done
12930 else
12931 HAVE_PTHREAD=0
12933 fi
12934 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12936 for ac_header in zlib.h
12937 do
12938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 fi
12945 ac_res=`eval echo '${'$as_ac_Header'}'`
12946 { echo "$as_me:$LINENO: result: $ac_res" >&5
12947 echo "${ECHO_T}$ac_res" >&6; }
12948 else
12949 # Is the header compilable?
12950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12952 cat >conftest.$ac_ext <<_ACEOF
12953 /* confdefs.h. */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 $ac_includes_default
12959 #include <$ac_header>
12960 _ACEOF
12961 rm -f conftest.$ac_objext
12962 if { (ac_try="$ac_compile"
12963 case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12966 esac
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_compile") 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12976 { (case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979 esac
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_try") 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_try") 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_header_compiler=yes
12996 else
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13000 ac_header_compiler=no
13001 fi
13003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13005 echo "${ECHO_T}$ac_header_compiler" >&6; }
13007 # Is the header present?
13008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13010 cat >conftest.$ac_ext <<_ACEOF
13011 /* confdefs.h. */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 #include <$ac_header>
13017 _ACEOF
13018 if { (ac_try="$ac_cpp conftest.$ac_ext"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } >/dev/null; then
13031 if test -s conftest.err; then
13032 ac_cpp_err=$ac_c_preproc_warn_flag
13033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13034 else
13035 ac_cpp_err=
13036 fi
13037 else
13038 ac_cpp_err=yes
13039 fi
13040 if test -z "$ac_cpp_err"; then
13041 ac_header_preproc=yes
13042 else
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13046 ac_header_preproc=no
13047 fi
13049 rm -f conftest.err conftest.$ac_ext
13050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13051 echo "${ECHO_T}$ac_header_preproc" >&6; }
13053 # So? What about this header?
13054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13055 yes:no: )
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13060 ac_header_preproc=yes
13061 ;;
13062 no:yes:* )
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13075 ( cat <<\_ASBOX
13076 ## ------------------------------------ ##
13077 ## Report this to http://llvm.org/bugs/ ##
13078 ## ------------------------------------ ##
13079 _ASBOX
13080 ) | sed "s/^/$as_me: WARNING: /" >&2
13081 ;;
13082 esac
13083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088 eval "$as_ac_Header=\$ac_header_preproc"
13089 fi
13090 ac_res=`eval echo '${'$as_ac_Header'}'`
13091 { echo "$as_me:$LINENO: result: $ac_res" >&5
13092 echo "${ECHO_T}$ac_res" >&6; }
13094 fi
13095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13096 cat >>confdefs.h <<_ACEOF
13097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13098 _ACEOF
13099 HAVE_LIBZ=1
13101 else
13102 HAVE_LIBZ=0
13104 fi
13106 done
13108 else
13109 HAVE_LIBZ=0
13111 fi
13113 if test "$llvm_cv_enable_libffi" = "yes" ; then
13116 for ac_header in ffi.h ffi/ffi.h
13117 do
13118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 fi
13125 ac_res=`eval echo '${'$as_ac_Header'}'`
13126 { echo "$as_me:$LINENO: result: $ac_res" >&5
13127 echo "${ECHO_T}$ac_res" >&6; }
13128 else
13129 # Is the header compilable?
13130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13132 cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h. */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 $ac_includes_default
13139 #include <$ac_header>
13140 _ACEOF
13141 rm -f conftest.$ac_objext
13142 if { (ac_try="$ac_compile"
13143 case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146 esac
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_compile") 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
13176 else
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ac_header_compiler=no
13181 fi
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13185 echo "${ECHO_T}$ac_header_compiler" >&6; }
13187 # Is the header present?
13188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h. */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 #include <$ac_header>
13197 _ACEOF
13198 if { (ac_try="$ac_cpp conftest.$ac_ext"
13199 case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } >/dev/null; then
13211 if test -s conftest.err; then
13212 ac_cpp_err=$ac_c_preproc_warn_flag
13213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13214 else
13215 ac_cpp_err=
13216 fi
13217 else
13218 ac_cpp_err=yes
13219 fi
13220 if test -z "$ac_cpp_err"; then
13221 ac_header_preproc=yes
13222 else
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_header_preproc=no
13227 fi
13229 rm -f conftest.err conftest.$ac_ext
13230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13231 echo "${ECHO_T}$ac_header_preproc" >&6; }
13233 # So? What about this header?
13234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13235 yes:no: )
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13240 ac_header_preproc=yes
13241 ;;
13242 no:yes:* )
13243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13255 ( cat <<\_ASBOX
13256 ## ------------------------------------ ##
13257 ## Report this to http://llvm.org/bugs/ ##
13258 ## ------------------------------------ ##
13259 _ASBOX
13260 ) | sed "s/^/$as_me: WARNING: /" >&2
13261 ;;
13262 esac
13263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 else
13268 eval "$as_ac_Header=\$ac_header_preproc"
13269 fi
13270 ac_res=`eval echo '${'$as_ac_Header'}'`
13271 { echo "$as_me:$LINENO: result: $ac_res" >&5
13272 echo "${ECHO_T}$ac_res" >&6; }
13274 fi
13275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13276 cat >>confdefs.h <<_ACEOF
13277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13278 _ACEOF
13280 fi
13282 done
13284 fi
13287 for ac_header in CrashReporterClient.h
13288 do
13289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 fi
13296 ac_res=`eval echo '${'$as_ac_Header'}'`
13297 { echo "$as_me:$LINENO: result: $ac_res" >&5
13298 echo "${ECHO_T}$ac_res" >&6; }
13299 else
13300 # Is the header compilable?
13301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13303 cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h. */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13309 $ac_includes_default
13310 #include <$ac_header>
13311 _ACEOF
13312 rm -f conftest.$ac_objext
13313 if { (ac_try="$ac_compile"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_compile") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest.$ac_objext'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 ac_header_compiler=yes
13347 else
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 ac_header_compiler=no
13352 fi
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13356 echo "${ECHO_T}$ac_header_compiler" >&6; }
13358 # Is the header present?
13359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13361 cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h. */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13367 #include <$ac_header>
13368 _ACEOF
13369 if { (ac_try="$ac_cpp conftest.$ac_ext"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13373 esac
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13376 ac_status=$?
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } >/dev/null; then
13382 if test -s conftest.err; then
13383 ac_cpp_err=$ac_c_preproc_warn_flag
13384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13385 else
13386 ac_cpp_err=
13387 fi
13388 else
13389 ac_cpp_err=yes
13390 fi
13391 if test -z "$ac_cpp_err"; then
13392 ac_header_preproc=yes
13393 else
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13397 ac_header_preproc=no
13398 fi
13400 rm -f conftest.err conftest.$ac_ext
13401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13402 echo "${ECHO_T}$ac_header_preproc" >&6; }
13404 # So? What about this header?
13405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13406 yes:no: )
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13411 ac_header_preproc=yes
13412 ;;
13413 no:yes:* )
13414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13426 ( cat <<\_ASBOX
13427 ## ------------------------------------ ##
13428 ## Report this to http://llvm.org/bugs/ ##
13429 ## ------------------------------------ ##
13430 _ASBOX
13431 ) | sed "s/^/$as_me: WARNING: /" >&2
13432 ;;
13433 esac
13434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 else
13439 eval "$as_ac_Header=\$ac_header_preproc"
13440 fi
13441 ac_res=`eval echo '${'$as_ac_Header'}'`
13442 { echo "$as_me:$LINENO: result: $ac_res" >&5
13443 echo "${ECHO_T}$ac_res" >&6; }
13445 fi
13446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13447 cat >>confdefs.h <<_ACEOF
13448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13449 _ACEOF
13451 fi
13453 done
13456 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13457 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h. */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13466 extern const char *__crashreporter_info__;
13467 int main() {
13468 __crashreporter_info__ = "test";
13469 return 0;
13470 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (ac_try="$ac_link"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13492 esac
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest$ac_exeext'
13499 { (case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13509 { echo "$as_me:$LINENO: result: yes" >&5
13510 echo "${ECHO_T}yes" >&6; }
13512 cat >>confdefs.h <<\_ACEOF
13513 #define HAVE_CRASHREPORTER_INFO 1
13514 _ACEOF
13517 else
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13522 { echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6; }
13525 cat >>confdefs.h <<\_ACEOF
13526 #define HAVE_CRASHREPORTER_INFO 0
13527 _ACEOF
13530 fi
13532 rm -f core conftest.err conftest.$ac_objext \
13533 conftest$ac_exeext conftest.$ac_ext
13537 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13538 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13539 if test "${ac_cv_huge_val_sanity+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 else
13543 ac_ext=cpp
13544 ac_cpp='$CXXCPP $CPPFLAGS'
13545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13549 ac_save_CXXFLAGS=$CXXFLAGS
13550 CXXFLAGS="$CXXFLAGS -pedantic"
13551 if test "$cross_compiling" = yes; then
13552 ac_cv_huge_val_sanity=yes
13553 else
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 #include <math.h>
13561 int
13562 main ()
13563 {
13564 double x = HUGE_VAL; return x != x;
13565 ;
13566 return 0;
13567 }
13568 _ACEOF
13569 rm -f conftest$ac_exeext
13570 if { (ac_try="$ac_link"
13571 case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_link") 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13580 { (case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13583 esac
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_try") 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_huge_val_sanity=yes
13590 else
13591 echo "$as_me: program exited with status $ac_status" >&5
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13595 ( exit $ac_status )
13596 ac_cv_huge_val_sanity=no
13597 fi
13598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13599 fi
13602 CXXFLAGS=$ac_save_CXXFLAGS
13603 ac_ext=c
13604 ac_cpp='$CPP $CPPFLAGS'
13605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13610 fi
13611 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13612 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13613 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13616 { echo "$as_me:$LINENO: checking for pid_t" >&5
13617 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13618 if test "${ac_cv_type_pid_t+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621 cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h. */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 $ac_includes_default
13628 typedef pid_t ac__type_new_;
13629 int
13630 main ()
13631 {
13632 if ((ac__type_new_ *) 0)
13633 return 0;
13634 if (sizeof (ac__type_new_))
13635 return 0;
13636 ;
13637 return 0;
13638 }
13639 _ACEOF
13640 rm -f conftest.$ac_objext
13641 if { (ac_try="$ac_compile"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13645 esac
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_compile") 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13658 esac
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13668 esac
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_try") 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_cv_type_pid_t=yes
13675 else
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_cv_type_pid_t=no
13680 fi
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683 fi
13684 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13685 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13686 if test $ac_cv_type_pid_t = yes; then
13687 :
13688 else
13690 cat >>confdefs.h <<_ACEOF
13691 #define pid_t int
13692 _ACEOF
13694 fi
13696 { echo "$as_me:$LINENO: checking for size_t" >&5
13697 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13698 if test "${ac_cv_type_size_t+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701 cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h. */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13707 $ac_includes_default
13708 typedef size_t ac__type_new_;
13709 int
13710 main ()
13711 {
13712 if ((ac__type_new_ *) 0)
13713 return 0;
13714 if (sizeof (ac__type_new_))
13715 return 0;
13716 ;
13717 return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext
13721 if { (ac_try="$ac_compile"
13722 case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13725 esac
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_compile") 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest.$ac_objext'
13745 { (case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13748 esac
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_try") 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_cv_type_size_t=yes
13755 else
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13759 ac_cv_type_size_t=no
13760 fi
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 fi
13764 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13765 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13766 if test $ac_cv_type_size_t = yes; then
13767 :
13768 else
13770 cat >>confdefs.h <<_ACEOF
13771 #define size_t unsigned int
13772 _ACEOF
13774 fi
13777 cat >>confdefs.h <<_ACEOF
13778 #define RETSIGTYPE void
13779 _ACEOF
13781 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13782 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13783 if test "${ac_cv_struct_tm+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 else
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h. */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <sys/types.h>
13793 #include <time.h>
13795 int
13796 main ()
13797 {
13798 struct tm *tp; tp->tm_sec;
13799 ;
13800 return 0;
13801 }
13802 _ACEOF
13803 rm -f conftest.$ac_objext
13804 if { (ac_try="$ac_compile"
13805 case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_compile") 2>conftest.er1
13811 ac_status=$?
13812 grep -v '^ *+' conftest.er1 >conftest.err
13813 rm -f conftest.er1
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
13817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13818 { (case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13821 esac
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_try") 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest.$ac_objext'
13828 { (case "(($ac_try" in
13829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830 *) ac_try_echo=$ac_try;;
13831 esac
13832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833 (eval "$ac_try") 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_struct_tm=time.h
13838 else
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13842 ac_cv_struct_tm=sys/time.h
13843 fi
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 fi
13847 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13848 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13849 if test $ac_cv_struct_tm = sys/time.h; then
13851 cat >>confdefs.h <<\_ACEOF
13852 #define TM_IN_SYS_TIME 1
13853 _ACEOF
13855 fi
13857 { echo "$as_me:$LINENO: checking for int64_t" >&5
13858 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13859 if test "${ac_cv_type_int64_t+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862 cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h. */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 $ac_includes_default
13869 typedef int64_t ac__type_new_;
13870 int
13871 main ()
13872 {
13873 if ((ac__type_new_ *) 0)
13874 return 0;
13875 if (sizeof (ac__type_new_))
13876 return 0;
13877 ;
13878 return 0;
13879 }
13880 _ACEOF
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_compile") 2>conftest.er1
13889 ac_status=$?
13890 grep -v '^ *+' conftest.er1 >conftest.err
13891 rm -f conftest.er1
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13896 { (case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13899 esac
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_try") 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest.$ac_objext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909 esac
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_type_int64_t=yes
13916 else
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13920 ac_cv_type_int64_t=no
13921 fi
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 fi
13925 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13926 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13927 if test $ac_cv_type_int64_t = yes; then
13929 cat >>confdefs.h <<_ACEOF
13930 #define HAVE_INT64_T 1
13931 _ACEOF
13934 else
13935 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13936 echo "$as_me: error: Type int64_t required but not found" >&2;}
13937 { (exit 1); exit 1; }; }
13938 fi
13940 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13941 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13942 if test "${ac_cv_type_uint64_t+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h. */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951 $ac_includes_default
13952 typedef uint64_t ac__type_new_;
13953 int
13954 main ()
13955 {
13956 if ((ac__type_new_ *) 0)
13957 return 0;
13958 if (sizeof (ac__type_new_))
13959 return 0;
13960 ;
13961 return 0;
13962 }
13963 _ACEOF
13964 rm -f conftest.$ac_objext
13965 if { (ac_try="$ac_compile"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_compile") 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979 { (case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_try") 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest.$ac_objext'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_type_uint64_t=yes
13999 else
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_cv_type_uint64_t=no
14004 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 fi
14008 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14009 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14010 if test $ac_cv_type_uint64_t = yes; then
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_UINT64_T 1
14014 _ACEOF
14017 else
14018 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14019 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14020 if test "${ac_cv_type_u_int64_t+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h. */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14029 $ac_includes_default
14030 typedef u_int64_t ac__type_new_;
14031 int
14032 main ()
14033 {
14034 if ((ac__type_new_ *) 0)
14035 return 0;
14036 if (sizeof (ac__type_new_))
14037 return 0;
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext
14043 if { (ac_try="$ac_compile"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_compile") 2>conftest.er1
14050 ac_status=$?
14051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest.$ac_objext'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14070 esac
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 ac_cv_type_u_int64_t=yes
14077 else
14078 echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14081 ac_cv_type_u_int64_t=no
14082 fi
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14085 fi
14086 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14087 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14088 if test $ac_cv_type_u_int64_t = yes; then
14090 cat >>confdefs.h <<_ACEOF
14091 #define HAVE_U_INT64_T 1
14092 _ACEOF
14095 else
14096 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14097 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14098 { (exit 1); exit 1; }; }
14099 fi
14101 fi
14112 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14113 do
14114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14135 #ifdef __STDC__
14136 # include <limits.h>
14137 #else
14138 # include <assert.h>
14139 #endif
14141 #undef $ac_func
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char $ac_func ();
14150 /* The GNU C library defines this for functions which it implements
14151 to always fail with ENOSYS. Some functions are actually named
14152 something starting with __ and the normal name is an alias. */
14153 #if defined __stub_$ac_func || defined __stub___$ac_func
14154 choke me
14155 #endif
14157 int
14158 main ()
14159 {
14160 return $ac_func ();
14161 ;
14162 return 0;
14163 }
14164 _ACEOF
14165 rm -f conftest.$ac_objext conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>conftest.er1
14173 ac_status=$?
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14180 { (case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183 esac
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_try") 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest$ac_exeext'
14190 { (case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14193 esac
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_try") 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14199 eval "$as_ac_var=yes"
14200 else
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 eval "$as_ac_var=no"
14205 fi
14207 rm -f core conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14209 fi
14210 ac_res=`eval echo '${'$as_ac_var'}'`
14211 { echo "$as_me:$LINENO: result: $ac_res" >&5
14212 echo "${ECHO_T}$ac_res" >&6; }
14213 if test `eval echo '${'$as_ac_var'}'` = yes; then
14214 cat >>confdefs.h <<_ACEOF
14215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14216 _ACEOF
14218 fi
14219 done
14225 for ac_func in powf fmodf strtof round
14226 do
14227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14241 #define $ac_func innocuous_$ac_func
14243 /* System header to define __stub macros and hopefully few prototypes,
14244 which can conflict with char $ac_func (); below.
14245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14246 <limits.h> exists even on freestanding compilers. */
14248 #ifdef __STDC__
14249 # include <limits.h>
14250 #else
14251 # include <assert.h>
14252 #endif
14254 #undef $ac_func
14256 /* Override any GCC internal prototype to avoid an error.
14257 Use char because int might match the return type of a GCC
14258 builtin and then its argument prototype would still apply. */
14259 #ifdef __cplusplus
14260 extern "C"
14261 #endif
14262 char $ac_func ();
14263 /* The GNU C library defines this for functions which it implements
14264 to always fail with ENOSYS. Some functions are actually named
14265 something starting with __ and the normal name is an alias. */
14266 #if defined __stub_$ac_func || defined __stub___$ac_func
14267 choke me
14268 #endif
14270 int
14271 main ()
14272 {
14273 return $ac_func ();
14274 ;
14275 return 0;
14276 }
14277 _ACEOF
14278 rm -f conftest.$ac_objext conftest$ac_exeext
14279 if { (ac_try="$ac_link"
14280 case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14283 esac
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_link") 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14293 { (case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14296 esac
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_try") 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; } &&
14302 { ac_try='test -s conftest$ac_exeext'
14303 { (case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14306 esac
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_try") 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 eval "$as_ac_var=yes"
14313 else
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 eval "$as_ac_var=no"
14318 fi
14320 rm -f core conftest.err conftest.$ac_objext \
14321 conftest$ac_exeext conftest.$ac_ext
14322 fi
14323 ac_res=`eval echo '${'$as_ac_var'}'`
14324 { echo "$as_me:$LINENO: result: $ac_res" >&5
14325 echo "${ECHO_T}$ac_res" >&6; }
14326 if test `eval echo '${'$as_ac_var'}'` = yes; then
14327 cat >>confdefs.h <<_ACEOF
14328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14329 _ACEOF
14331 fi
14332 done
14339 for ac_func in log log2 log10 exp exp2
14340 do
14341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14355 #define $ac_func innocuous_$ac_func
14357 /* System header to define __stub macros and hopefully few prototypes,
14358 which can conflict with char $ac_func (); below.
14359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14360 <limits.h> exists even on freestanding compilers. */
14362 #ifdef __STDC__
14363 # include <limits.h>
14364 #else
14365 # include <assert.h>
14366 #endif
14368 #undef $ac_func
14370 /* Override any GCC internal prototype to avoid an error.
14371 Use char because int might match the return type of a GCC
14372 builtin and then its argument prototype would still apply. */
14373 #ifdef __cplusplus
14374 extern "C"
14375 #endif
14376 char $ac_func ();
14377 /* The GNU C library defines this for functions which it implements
14378 to always fail with ENOSYS. Some functions are actually named
14379 something starting with __ and the normal name is an alias. */
14380 #if defined __stub_$ac_func || defined __stub___$ac_func
14381 choke me
14382 #endif
14384 int
14385 main ()
14386 {
14387 return $ac_func ();
14388 ;
14389 return 0;
14390 }
14391 _ACEOF
14392 rm -f conftest.$ac_objext conftest$ac_exeext
14393 if { (ac_try="$ac_link"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_link") 2>conftest.er1
14400 ac_status=$?
14401 grep -v '^ *+' conftest.er1 >conftest.err
14402 rm -f conftest.er1
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } &&
14406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14407 { (case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_try") 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest$ac_exeext'
14417 { (case "(($ac_try" in
14418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419 *) ac_try_echo=$ac_try;;
14420 esac
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422 (eval "$ac_try") 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 eval "$as_ac_var=yes"
14427 else
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 eval "$as_ac_var=no"
14432 fi
14434 rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14436 fi
14437 ac_res=`eval echo '${'$as_ac_var'}'`
14438 { echo "$as_me:$LINENO: result: $ac_res" >&5
14439 echo "${ECHO_T}$ac_res" >&6; }
14440 if test `eval echo '${'$as_ac_var'}'` = yes; then
14441 cat >>confdefs.h <<_ACEOF
14442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14443 _ACEOF
14445 fi
14446 done
14453 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14454 do
14455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h. */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14469 #define $ac_func innocuous_$ac_func
14471 /* System header to define __stub macros and hopefully few prototypes,
14472 which can conflict with char $ac_func (); below.
14473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14474 <limits.h> exists even on freestanding compilers. */
14476 #ifdef __STDC__
14477 # include <limits.h>
14478 #else
14479 # include <assert.h>
14480 #endif
14482 #undef $ac_func
14484 /* Override any GCC internal prototype to avoid an error.
14485 Use char because int might match the return type of a GCC
14486 builtin and then its argument prototype would still apply. */
14487 #ifdef __cplusplus
14488 extern "C"
14489 #endif
14490 char $ac_func ();
14491 /* The GNU C library defines this for functions which it implements
14492 to always fail with ENOSYS. Some functions are actually named
14493 something starting with __ and the normal name is an alias. */
14494 #if defined __stub_$ac_func || defined __stub___$ac_func
14495 choke me
14496 #endif
14498 int
14499 main ()
14500 {
14501 return $ac_func ();
14502 ;
14503 return 0;
14504 }
14505 _ACEOF
14506 rm -f conftest.$ac_objext conftest$ac_exeext
14507 if { (ac_try="$ac_link"
14508 case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14511 esac
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_link") 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14521 { (case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14524 esac
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_try") 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } &&
14530 { ac_try='test -s conftest$ac_exeext'
14531 { (case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534 esac
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_try") 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 eval "$as_ac_var=yes"
14541 else
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 eval "$as_ac_var=no"
14546 fi
14548 rm -f core conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14550 fi
14551 ac_res=`eval echo '${'$as_ac_var'}'`
14552 { echo "$as_me:$LINENO: result: $ac_res" >&5
14553 echo "${ECHO_T}$ac_res" >&6; }
14554 if test `eval echo '${'$as_ac_var'}'` = yes; then
14555 cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14557 _ACEOF
14559 fi
14560 done
14565 for ac_func in isatty mkdtemp mkstemp
14566 do
14567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573 cat >conftest.$ac_ext <<_ACEOF
14574 /* confdefs.h. */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14581 #define $ac_func innocuous_$ac_func
14583 /* System header to define __stub macros and hopefully few prototypes,
14584 which can conflict with char $ac_func (); below.
14585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14586 <limits.h> exists even on freestanding compilers. */
14588 #ifdef __STDC__
14589 # include <limits.h>
14590 #else
14591 # include <assert.h>
14592 #endif
14594 #undef $ac_func
14596 /* Override any GCC internal prototype to avoid an error.
14597 Use char because int might match the return type of a GCC
14598 builtin and then its argument prototype would still apply. */
14599 #ifdef __cplusplus
14600 extern "C"
14601 #endif
14602 char $ac_func ();
14603 /* The GNU C library defines this for functions which it implements
14604 to always fail with ENOSYS. Some functions are actually named
14605 something starting with __ and the normal name is an alias. */
14606 #if defined __stub_$ac_func || defined __stub___$ac_func
14607 choke me
14608 #endif
14610 int
14611 main ()
14612 {
14613 return $ac_func ();
14614 ;
14615 return 0;
14616 }
14617 _ACEOF
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (ac_try="$ac_link"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_link") 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_try") 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest$ac_exeext'
14643 { (case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14646 esac
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_try") 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 eval "$as_ac_var=yes"
14653 else
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 eval "$as_ac_var=no"
14658 fi
14660 rm -f core conftest.err conftest.$ac_objext \
14661 conftest$ac_exeext conftest.$ac_ext
14662 fi
14663 ac_res=`eval echo '${'$as_ac_var'}'`
14664 { echo "$as_me:$LINENO: result: $ac_res" >&5
14665 echo "${ECHO_T}$ac_res" >&6; }
14666 if test `eval echo '${'$as_ac_var'}'` = yes; then
14667 cat >>confdefs.h <<_ACEOF
14668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14669 _ACEOF
14671 fi
14672 done
14680 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14681 do
14682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 else
14688 cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h. */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14696 #define $ac_func innocuous_$ac_func
14698 /* System header to define __stub macros and hopefully few prototypes,
14699 which can conflict with char $ac_func (); below.
14700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14701 <limits.h> exists even on freestanding compilers. */
14703 #ifdef __STDC__
14704 # include <limits.h>
14705 #else
14706 # include <assert.h>
14707 #endif
14709 #undef $ac_func
14711 /* Override any GCC internal prototype to avoid an error.
14712 Use char because int might match the return type of a GCC
14713 builtin and then its argument prototype would still apply. */
14714 #ifdef __cplusplus
14715 extern "C"
14716 #endif
14717 char $ac_func ();
14718 /* The GNU C library defines this for functions which it implements
14719 to always fail with ENOSYS. Some functions are actually named
14720 something starting with __ and the normal name is an alias. */
14721 #if defined __stub_$ac_func || defined __stub___$ac_func
14722 choke me
14723 #endif
14725 int
14726 main ()
14727 {
14728 return $ac_func ();
14729 ;
14730 return 0;
14731 }
14732 _ACEOF
14733 rm -f conftest.$ac_objext conftest$ac_exeext
14734 if { (ac_try="$ac_link"
14735 case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14738 esac
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_link") 2>conftest.er1
14741 ac_status=$?
14742 grep -v '^ *+' conftest.er1 >conftest.err
14743 rm -f conftest.er1
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest$ac_exeext'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 eval "$as_ac_var=yes"
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 eval "$as_ac_var=no"
14773 fi
14775 rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14777 fi
14778 ac_res=`eval echo '${'$as_ac_var'}'`
14779 { echo "$as_me:$LINENO: result: $ac_res" >&5
14780 echo "${ECHO_T}$ac_res" >&6; }
14781 if test `eval echo '${'$as_ac_var'}'` = yes; then
14782 cat >>confdefs.h <<_ACEOF
14783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14784 _ACEOF
14786 fi
14787 done
14792 for ac_func in strerror strerror_r setenv
14793 do
14794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800 cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h. */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14808 #define $ac_func innocuous_$ac_func
14810 /* System header to define __stub macros and hopefully few prototypes,
14811 which can conflict with char $ac_func (); below.
14812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14813 <limits.h> exists even on freestanding compilers. */
14815 #ifdef __STDC__
14816 # include <limits.h>
14817 #else
14818 # include <assert.h>
14819 #endif
14821 #undef $ac_func
14823 /* Override any GCC internal prototype to avoid an error.
14824 Use char because int might match the return type of a GCC
14825 builtin and then its argument prototype would still apply. */
14826 #ifdef __cplusplus
14827 extern "C"
14828 #endif
14829 char $ac_func ();
14830 /* The GNU C library defines this for functions which it implements
14831 to always fail with ENOSYS. Some functions are actually named
14832 something starting with __ and the normal name is an alias. */
14833 #if defined __stub_$ac_func || defined __stub___$ac_func
14834 choke me
14835 #endif
14837 int
14838 main ()
14839 {
14840 return $ac_func ();
14841 ;
14842 return 0;
14843 }
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (ac_try="$ac_link"
14847 case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14850 esac
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_link") 2>conftest.er1
14853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860 { (case "(($ac_try" in
14861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14863 esac
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_try") 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; } &&
14869 { ac_try='test -s conftest$ac_exeext'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 eval "$as_ac_var=yes"
14880 else
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 eval "$as_ac_var=no"
14885 fi
14887 rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14889 fi
14890 ac_res=`eval echo '${'$as_ac_var'}'`
14891 { echo "$as_me:$LINENO: result: $ac_res" >&5
14892 echo "${ECHO_T}$ac_res" >&6; }
14893 if test `eval echo '${'$as_ac_var'}'` = yes; then
14894 cat >>confdefs.h <<_ACEOF
14895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14896 _ACEOF
14898 fi
14899 done
14905 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14906 do
14907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 else
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14921 #define $ac_func innocuous_$ac_func
14923 /* System header to define __stub macros and hopefully few prototypes,
14924 which can conflict with char $ac_func (); below.
14925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14926 <limits.h> exists even on freestanding compilers. */
14928 #ifdef __STDC__
14929 # include <limits.h>
14930 #else
14931 # include <assert.h>
14932 #endif
14934 #undef $ac_func
14936 /* Override any GCC internal prototype to avoid an error.
14937 Use char because int might match the return type of a GCC
14938 builtin and then its argument prototype would still apply. */
14939 #ifdef __cplusplus
14940 extern "C"
14941 #endif
14942 char $ac_func ();
14943 /* The GNU C library defines this for functions which it implements
14944 to always fail with ENOSYS. Some functions are actually named
14945 something starting with __ and the normal name is an alias. */
14946 #if defined __stub_$ac_func || defined __stub___$ac_func
14947 choke me
14948 #endif
14950 int
14951 main ()
14952 {
14953 return $ac_func ();
14954 ;
14955 return 0;
14956 }
14957 _ACEOF
14958 rm -f conftest.$ac_objext conftest$ac_exeext
14959 if { (ac_try="$ac_link"
14960 case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_link") 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14982 { ac_try='test -s conftest$ac_exeext'
14983 { (case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_try") 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 eval "$as_ac_var=yes"
14993 else
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 eval "$as_ac_var=no"
14998 fi
15000 rm -f core conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002 fi
15003 ac_res=`eval echo '${'$as_ac_var'}'`
15004 { echo "$as_me:$LINENO: result: $ac_res" >&5
15005 echo "${ECHO_T}$ac_res" >&6; }
15006 if test `eval echo '${'$as_ac_var'}'` = yes; then
15007 cat >>confdefs.h <<_ACEOF
15008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15009 _ACEOF
15011 fi
15012 done
15019 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15020 do
15021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027 cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h. */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15035 #define $ac_func innocuous_$ac_func
15037 /* System header to define __stub macros and hopefully few prototypes,
15038 which can conflict with char $ac_func (); below.
15039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15040 <limits.h> exists even on freestanding compilers. */
15042 #ifdef __STDC__
15043 # include <limits.h>
15044 #else
15045 # include <assert.h>
15046 #endif
15048 #undef $ac_func
15050 /* Override any GCC internal prototype to avoid an error.
15051 Use char because int might match the return type of a GCC
15052 builtin and then its argument prototype would still apply. */
15053 #ifdef __cplusplus
15054 extern "C"
15055 #endif
15056 char $ac_func ();
15057 /* The GNU C library defines this for functions which it implements
15058 to always fail with ENOSYS. Some functions are actually named
15059 something starting with __ and the normal name is an alias. */
15060 #if defined __stub_$ac_func || defined __stub___$ac_func
15061 choke me
15062 #endif
15064 int
15065 main ()
15066 {
15067 return $ac_func ();
15068 ;
15069 return 0;
15070 }
15071 _ACEOF
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (ac_try="$ac_link"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15077 esac
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_link") 2>conftest.er1
15080 ac_status=$?
15081 grep -v '^ *+' conftest.er1 >conftest.err
15082 rm -f conftest.er1
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15087 { (case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15090 esac
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_try") 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 eval "$as_ac_var=yes"
15107 else
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 eval "$as_ac_var=no"
15112 fi
15114 rm -f core conftest.err conftest.$ac_objext \
15115 conftest$ac_exeext conftest.$ac_ext
15116 fi
15117 ac_res=`eval echo '${'$as_ac_var'}'`
15118 { echo "$as_me:$LINENO: result: $ac_res" >&5
15119 echo "${ECHO_T}$ac_res" >&6; }
15120 if test `eval echo '${'$as_ac_var'}'` = yes; then
15121 cat >>confdefs.h <<_ACEOF
15122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15123 _ACEOF
15125 fi
15126 done
15130 for ac_func in futimes futimens
15131 do
15132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138 cat >conftest.$ac_ext <<_ACEOF
15139 /* confdefs.h. */
15140 _ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h. */
15144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15146 #define $ac_func innocuous_$ac_func
15148 /* System header to define __stub macros and hopefully few prototypes,
15149 which can conflict with char $ac_func (); below.
15150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15151 <limits.h> exists even on freestanding compilers. */
15153 #ifdef __STDC__
15154 # include <limits.h>
15155 #else
15156 # include <assert.h>
15157 #endif
15159 #undef $ac_func
15161 /* Override any GCC internal prototype to avoid an error.
15162 Use char because int might match the return type of a GCC
15163 builtin and then its argument prototype would still apply. */
15164 #ifdef __cplusplus
15165 extern "C"
15166 #endif
15167 char $ac_func ();
15168 /* The GNU C library defines this for functions which it implements
15169 to always fail with ENOSYS. Some functions are actually named
15170 something starting with __ and the normal name is an alias. */
15171 #if defined __stub_$ac_func || defined __stub___$ac_func
15172 choke me
15173 #endif
15175 int
15176 main ()
15177 {
15178 return $ac_func ();
15179 ;
15180 return 0;
15181 }
15182 _ACEOF
15183 rm -f conftest.$ac_objext conftest$ac_exeext
15184 if { (ac_try="$ac_link"
15185 case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188 esac
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_link") 2>conftest.er1
15191 ac_status=$?
15192 grep -v '^ *+' conftest.er1 >conftest.err
15193 rm -f conftest.er1
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15198 { (case "(($ac_try" in
15199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15200 *) ac_try_echo=$ac_try;;
15201 esac
15202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15203 (eval "$ac_try") 2>&5
15204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try='test -s conftest$ac_exeext'
15208 { (case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211 esac
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_try") 2>&5
15214 ac_status=$?
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217 eval "$as_ac_var=yes"
15218 else
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 eval "$as_ac_var=no"
15223 fi
15225 rm -f core conftest.err conftest.$ac_objext \
15226 conftest$ac_exeext conftest.$ac_ext
15227 fi
15228 ac_res=`eval echo '${'$as_ac_var'}'`
15229 { echo "$as_me:$LINENO: result: $ac_res" >&5
15230 echo "${ECHO_T}$ac_res" >&6; }
15231 if test `eval echo '${'$as_ac_var'}'` = yes; then
15232 cat >>confdefs.h <<_ACEOF
15233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15234 _ACEOF
15236 fi
15237 done
15239 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15240 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15241 if test "${llvm_cv_c_printf_a+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244 ac_ext=c
15245 ac_cpp='$CPP $CPPFLAGS'
15246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15250 if test "$cross_compiling" = yes; then
15251 llvmac_cv_c_printf_a=no
15252 else
15253 cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h. */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15261 #include <stdio.h>
15262 #include <stdlib.h>
15264 int
15265 main ()
15266 {
15268 volatile double A, B;
15269 char Buffer[100];
15270 A = 1;
15271 A /= 10.0;
15272 sprintf(Buffer, "%a", A);
15273 B = atof(Buffer);
15274 if (A != B)
15275 return (1);
15276 if (A != 0x1.999999999999ap-4)
15277 return (1);
15278 return (0);
15279 ;
15280 return 0;
15281 }
15282 _ACEOF
15283 rm -f conftest$ac_exeext
15284 if { (ac_try="$ac_link"
15285 case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288 esac
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_link") 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15297 esac
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 llvm_cv_c_printf_a=yes
15304 else
15305 echo "$as_me: program exited with status $ac_status" >&5
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15309 ( exit $ac_status )
15310 llvmac_cv_c_printf_a=no
15311 fi
15312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15313 fi
15316 ac_ext=c
15317 ac_cpp='$CPP $CPPFLAGS'
15318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15322 fi
15323 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15324 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15325 if test "$llvm_cv_c_printf_a" = "yes"; then
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_PRINTF_A 1
15329 _ACEOF
15331 fi
15335 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15336 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15337 if test "${ac_cv_func_rand48+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15341 ac_ext=cpp
15342 ac_cpp='$CXXCPP $CPPFLAGS'
15343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 #include <stdlib.h>
15354 int
15355 main ()
15356 {
15357 srand48(0);lrand48();drand48();
15358 ;
15359 return 0;
15360 }
15361 _ACEOF
15362 rm -f conftest.$ac_objext
15363 if { (ac_try="$ac_compile"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_compile") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15377 { (case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15380 esac
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_try") 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_cv_func_rand48=yes
15397 else
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15401 ac_cv_func_rand48=no
15402 fi
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15405 ac_ext=c
15406 ac_cpp='$CPP $CPPFLAGS'
15407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15412 fi
15413 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15414 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15416 if test "$ac_cv_func_rand48" = "yes" ; then
15418 cat >>confdefs.h <<\_ACEOF
15419 #define HAVE_RAND48 1
15420 _ACEOF
15422 fi
15425 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15426 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15427 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430 cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h. */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 $ac_includes_default
15437 int
15438 main ()
15439 {
15440 #ifndef arc4random
15441 char *p = (char *) arc4random;
15442 return !p;
15443 #endif
15445 ;
15446 return 0;
15447 }
15448 _ACEOF
15449 rm -f conftest.$ac_objext
15450 if { (ac_try="$ac_compile"
15451 case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454 esac
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456 (eval "$ac_compile") 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15464 { (case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15467 esac
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469 (eval "$ac_try") 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; } &&
15473 { ac_try='test -s conftest.$ac_objext'
15474 { (case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_try") 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_have_decl_arc4random=yes
15484 else
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_cv_have_decl_arc4random=no
15489 fi
15491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492 fi
15493 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15494 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15495 if test $ac_cv_have_decl_arc4random = yes; then
15497 cat >>confdefs.h <<_ACEOF
15498 #define HAVE_DECL_ARC4RANDOM 1
15499 _ACEOF
15502 else
15503 cat >>confdefs.h <<_ACEOF
15504 #define HAVE_DECL_ARC4RANDOM 0
15505 _ACEOF
15508 fi
15512 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15513 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15514 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h. */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15524 int
15525 main ()
15526 {
15527 #ifndef strerror_s
15528 char *p = (char *) strerror_s;
15529 return !p;
15530 #endif
15532 ;
15533 return 0;
15534 }
15535 _ACEOF
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15541 esac
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_compile") 2>conftest.er1
15544 ac_status=$?
15545 grep -v '^ *+' conftest.er1 >conftest.err
15546 rm -f conftest.er1
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_try") 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_cv_have_decl_strerror_s=yes
15571 else
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_cv_have_decl_strerror_s=no
15576 fi
15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15579 fi
15580 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15581 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15582 if test $ac_cv_have_decl_strerror_s = yes; then
15584 cat >>confdefs.h <<_ACEOF
15585 #define HAVE_DECL_STRERROR_S 1
15586 _ACEOF
15589 else
15590 cat >>confdefs.h <<_ACEOF
15591 #define HAVE_DECL_STRERROR_S 0
15592 _ACEOF
15595 fi
15599 if test "$llvm_cv_os_type" = "MingW" ; then
15600 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15601 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15602 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 else
15605 ac_check_lib_save_LIBS=$LIBS
15606 LIBS="-lgcc $LIBS"
15607 cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h. */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15614 /* Override any GCC internal prototype to avoid an error.
15615 Use char because int might match the return type of a GCC
15616 builtin and then its argument prototype would still apply. */
15617 #ifdef __cplusplus
15618 extern "C"
15619 #endif
15620 char _alloca ();
15621 int
15622 main ()
15623 {
15624 return _alloca ();
15625 ;
15626 return 0;
15627 }
15628 _ACEOF
15629 rm -f conftest.$ac_objext conftest$ac_exeext
15630 if { (ac_try="$ac_link"
15631 case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15634 esac
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_link") 2>conftest.er1
15637 ac_status=$?
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15644 { (case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647 esac
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_try") 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; } &&
15653 { ac_try='test -s conftest$ac_exeext'
15654 { (case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15657 esac
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_try") 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_cv_lib_gcc__alloca=yes
15664 else
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ac_cv_lib_gcc__alloca=no
15669 fi
15671 rm -f core conftest.err conftest.$ac_objext \
15672 conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15674 fi
15675 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15676 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15677 if test $ac_cv_lib_gcc__alloca = yes; then
15679 cat >>confdefs.h <<\_ACEOF
15680 #define HAVE__ALLOCA 1
15681 _ACEOF
15683 fi
15685 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15686 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15687 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15688 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 else
15690 ac_check_lib_save_LIBS=$LIBS
15691 LIBS="-lgcc $LIBS"
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h. */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15699 /* Override any GCC internal prototype to avoid an error.
15700 Use char because int might match the return type of a GCC
15701 builtin and then its argument prototype would still apply. */
15702 #ifdef __cplusplus
15703 extern "C"
15704 #endif
15705 char __alloca ();
15706 int
15707 main ()
15708 {
15709 return __alloca ();
15710 ;
15711 return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_link") 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732 esac
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest$ac_exeext'
15739 { (case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15742 esac
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_try") 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_cv_lib_gcc___alloca=yes
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_cv_lib_gcc___alloca=no
15754 fi
15756 rm -f core conftest.err conftest.$ac_objext \
15757 conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15759 fi
15760 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15761 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15762 if test $ac_cv_lib_gcc___alloca = yes; then
15764 cat >>confdefs.h <<\_ACEOF
15765 #define HAVE___ALLOCA 1
15766 _ACEOF
15768 fi
15770 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15771 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15772 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775 ac_check_lib_save_LIBS=$LIBS
15776 LIBS="-lgcc $LIBS"
15777 cat >conftest.$ac_ext <<_ACEOF
15778 /* confdefs.h. */
15779 _ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15784 /* Override any GCC internal prototype to avoid an error.
15785 Use char because int might match the return type of a GCC
15786 builtin and then its argument prototype would still apply. */
15787 #ifdef __cplusplus
15788 extern "C"
15789 #endif
15790 char __chkstk ();
15791 int
15792 main ()
15793 {
15794 return __chkstk ();
15795 ;
15796 return 0;
15797 }
15798 _ACEOF
15799 rm -f conftest.$ac_objext conftest$ac_exeext
15800 if { (ac_try="$ac_link"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15804 esac
15805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15806 (eval "$ac_link") 2>conftest.er1
15807 ac_status=$?
15808 grep -v '^ *+' conftest.er1 >conftest.err
15809 rm -f conftest.er1
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
15813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15814 { (case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15817 esac
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_try") 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; } &&
15823 { ac_try='test -s conftest$ac_exeext'
15824 { (case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_try") 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 ac_cv_lib_gcc___chkstk=yes
15834 else
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 ac_cv_lib_gcc___chkstk=no
15839 fi
15841 rm -f core conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
15843 LIBS=$ac_check_lib_save_LIBS
15844 fi
15845 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15846 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15847 if test $ac_cv_lib_gcc___chkstk = yes; then
15849 cat >>confdefs.h <<\_ACEOF
15850 #define HAVE___CHKSTK 1
15851 _ACEOF
15853 fi
15855 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15856 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15857 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860 ac_check_lib_save_LIBS=$LIBS
15861 LIBS="-lgcc $LIBS"
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h. */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h. */
15869 /* Override any GCC internal prototype to avoid an error.
15870 Use char because int might match the return type of a GCC
15871 builtin and then its argument prototype would still apply. */
15872 #ifdef __cplusplus
15873 extern "C"
15874 #endif
15875 char ___chkstk ();
15876 int
15877 main ()
15878 {
15879 return ___chkstk ();
15880 ;
15881 return 0;
15882 }
15883 _ACEOF
15884 rm -f conftest.$ac_objext conftest$ac_exeext
15885 if { (ac_try="$ac_link"
15886 case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15889 esac
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891 (eval "$ac_link") 2>conftest.er1
15892 ac_status=$?
15893 grep -v '^ *+' conftest.er1 >conftest.err
15894 rm -f conftest.er1
15895 cat conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
15898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15899 { (case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15902 esac
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_try") 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; } &&
15908 { ac_try='test -s conftest$ac_exeext'
15909 { (case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15912 esac
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914 (eval "$ac_try") 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15918 ac_cv_lib_gcc____chkstk=yes
15919 else
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_cv_lib_gcc____chkstk=no
15924 fi
15926 rm -f core conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
15928 LIBS=$ac_check_lib_save_LIBS
15929 fi
15930 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15931 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15932 if test $ac_cv_lib_gcc____chkstk = yes; then
15934 cat >>confdefs.h <<\_ACEOF
15935 #define HAVE____CHKSTK 1
15936 _ACEOF
15938 fi
15941 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15942 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15943 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 else
15946 ac_check_lib_save_LIBS=$LIBS
15947 LIBS="-lgcc $LIBS"
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15955 /* Override any GCC internal prototype to avoid an error.
15956 Use char because int might match the return type of a GCC
15957 builtin and then its argument prototype would still apply. */
15958 #ifdef __cplusplus
15959 extern "C"
15960 #endif
15961 char __ashldi3 ();
15962 int
15963 main ()
15964 {
15965 return __ashldi3 ();
15966 ;
15967 return 0;
15968 }
15969 _ACEOF
15970 rm -f conftest.$ac_objext conftest$ac_exeext
15971 if { (ac_try="$ac_link"
15972 case "(($ac_try" in
15973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15975 esac
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977 (eval "$ac_link") 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15985 { (case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988 esac
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_try") 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest$ac_exeext'
15995 { (case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998 esac
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_try") 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004 ac_cv_lib_gcc___ashldi3=yes
16005 else
16006 echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16009 ac_cv_lib_gcc___ashldi3=no
16010 fi
16012 rm -f core conftest.err conftest.$ac_objext \
16013 conftest$ac_exeext conftest.$ac_ext
16014 LIBS=$ac_check_lib_save_LIBS
16015 fi
16016 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16017 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16018 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16020 cat >>confdefs.h <<\_ACEOF
16021 #define HAVE___ASHLDI3 1
16022 _ACEOF
16024 fi
16026 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16027 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16028 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 else
16031 ac_check_lib_save_LIBS=$LIBS
16032 LIBS="-lgcc $LIBS"
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h. */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16040 /* Override any GCC internal prototype to avoid an error.
16041 Use char because int might match the return type of a GCC
16042 builtin and then its argument prototype would still apply. */
16043 #ifdef __cplusplus
16044 extern "C"
16045 #endif
16046 char __ashrdi3 ();
16047 int
16048 main ()
16049 {
16050 return __ashrdi3 ();
16051 ;
16052 return 0;
16053 }
16054 _ACEOF
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (ac_try="$ac_link"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073 esac
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest$ac_exeext'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083 esac
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_lib_gcc___ashrdi3=yes
16090 else
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ac_cv_lib_gcc___ashrdi3=no
16095 fi
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16099 LIBS=$ac_check_lib_save_LIBS
16100 fi
16101 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16102 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16103 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16105 cat >>confdefs.h <<\_ACEOF
16106 #define HAVE___ASHRDI3 1
16107 _ACEOF
16109 fi
16111 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16112 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16113 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116 ac_check_lib_save_LIBS=$LIBS
16117 LIBS="-lgcc $LIBS"
16118 cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h. */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16125 /* Override any GCC internal prototype to avoid an error.
16126 Use char because int might match the return type of a GCC
16127 builtin and then its argument prototype would still apply. */
16128 #ifdef __cplusplus
16129 extern "C"
16130 #endif
16131 char __divdi3 ();
16132 int
16133 main ()
16134 {
16135 return __divdi3 ();
16136 ;
16137 return 0;
16138 }
16139 _ACEOF
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (ac_try="$ac_link"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16155 { (case "(($ac_try" in
16156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160 (eval "$ac_try") 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest$ac_exeext'
16165 { (case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_try") 2>&5
16171 ac_status=$?
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; }; then
16174 ac_cv_lib_gcc___divdi3=yes
16175 else
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_cv_lib_gcc___divdi3=no
16180 fi
16182 rm -f core conftest.err conftest.$ac_objext \
16183 conftest$ac_exeext conftest.$ac_ext
16184 LIBS=$ac_check_lib_save_LIBS
16185 fi
16186 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16187 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16188 if test $ac_cv_lib_gcc___divdi3 = yes; then
16190 cat >>confdefs.h <<\_ACEOF
16191 #define HAVE___DIVDI3 1
16192 _ACEOF
16194 fi
16196 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16197 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16198 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201 ac_check_lib_save_LIBS=$LIBS
16202 LIBS="-lgcc $LIBS"
16203 cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h. */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16210 /* Override any GCC internal prototype to avoid an error.
16211 Use char because int might match the return type of a GCC
16212 builtin and then its argument prototype would still apply. */
16213 #ifdef __cplusplus
16214 extern "C"
16215 #endif
16216 char __fixdfdi ();
16217 int
16218 main ()
16219 {
16220 return __fixdfdi ();
16221 ;
16222 return 0;
16223 }
16224 _ACEOF
16225 rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (ac_try="$ac_link"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_link") 2>conftest.er1
16233 ac_status=$?
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16240 { (case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_try") 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest$ac_exeext'
16250 { (case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253 esac
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_try") 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_cv_lib_gcc___fixdfdi=yes
16260 else
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 ac_cv_lib_gcc___fixdfdi=no
16265 fi
16267 rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269 LIBS=$ac_check_lib_save_LIBS
16270 fi
16271 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16272 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16273 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16275 cat >>confdefs.h <<\_ACEOF
16276 #define HAVE___FIXDFDI 1
16277 _ACEOF
16279 fi
16281 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16282 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16283 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286 ac_check_lib_save_LIBS=$LIBS
16287 LIBS="-lgcc $LIBS"
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h. */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16295 /* Override any GCC internal prototype to avoid an error.
16296 Use char because int might match the return type of a GCC
16297 builtin and then its argument prototype would still apply. */
16298 #ifdef __cplusplus
16299 extern "C"
16300 #endif
16301 char __fixsfdi ();
16302 int
16303 main ()
16304 {
16305 return __fixsfdi ();
16306 ;
16307 return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_link") 2>conftest.er1
16318 ac_status=$?
16319 grep -v '^ *+' conftest.er1 >conftest.err
16320 rm -f conftest.er1
16321 cat conftest.err >&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } &&
16324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16325 { (case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16328 esac
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330 (eval "$ac_try") 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; } &&
16334 { ac_try='test -s conftest$ac_exeext'
16335 { (case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_try") 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 ac_cv_lib_gcc___fixsfdi=yes
16345 else
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 ac_cv_lib_gcc___fixsfdi=no
16350 fi
16352 rm -f core conftest.err conftest.$ac_objext \
16353 conftest$ac_exeext conftest.$ac_ext
16354 LIBS=$ac_check_lib_save_LIBS
16355 fi
16356 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16357 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16358 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE___FIXSFDI 1
16362 _ACEOF
16364 fi
16366 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16367 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16368 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371 ac_check_lib_save_LIBS=$LIBS
16372 LIBS="-lgcc $LIBS"
16373 cat >conftest.$ac_ext <<_ACEOF
16374 /* confdefs.h. */
16375 _ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16380 /* Override any GCC internal prototype to avoid an error.
16381 Use char because int might match the return type of a GCC
16382 builtin and then its argument prototype would still apply. */
16383 #ifdef __cplusplus
16384 extern "C"
16385 #endif
16386 char __floatdidf ();
16387 int
16388 main ()
16389 {
16390 return __floatdidf ();
16391 ;
16392 return 0;
16393 }
16394 _ACEOF
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (ac_try="$ac_link"
16397 case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16400 esac
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_link") 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest$ac_exeext'
16420 { (case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16423 esac
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_try") 2>&5
16426 ac_status=$?
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 ac_cv_lib_gcc___floatdidf=yes
16430 else
16431 echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.$ac_ext >&5
16434 ac_cv_lib_gcc___floatdidf=no
16435 fi
16437 rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439 LIBS=$ac_check_lib_save_LIBS
16440 fi
16441 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16442 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16443 if test $ac_cv_lib_gcc___floatdidf = yes; then
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE___FLOATDIDF 1
16447 _ACEOF
16449 fi
16451 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16452 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16453 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 else
16456 ac_check_lib_save_LIBS=$LIBS
16457 LIBS="-lgcc $LIBS"
16458 cat >conftest.$ac_ext <<_ACEOF
16459 /* confdefs.h. */
16460 _ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h. */
16465 /* Override any GCC internal prototype to avoid an error.
16466 Use char because int might match the return type of a GCC
16467 builtin and then its argument prototype would still apply. */
16468 #ifdef __cplusplus
16469 extern "C"
16470 #endif
16471 char __lshrdi3 ();
16472 int
16473 main ()
16474 {
16475 return __lshrdi3 ();
16476 ;
16477 return 0;
16478 }
16479 _ACEOF
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_link") 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16495 { (case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16498 esac
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_try") 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; } &&
16504 { ac_try='test -s conftest$ac_exeext'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16508 esac
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 ac_cv_lib_gcc___lshrdi3=yes
16515 else
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_cv_lib_gcc___lshrdi3=no
16520 fi
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16525 fi
16526 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16527 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16528 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16530 cat >>confdefs.h <<\_ACEOF
16531 #define HAVE___LSHRDI3 1
16532 _ACEOF
16534 fi
16536 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16537 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16538 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16541 ac_check_lib_save_LIBS=$LIBS
16542 LIBS="-lgcc $LIBS"
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16550 /* Override any GCC internal prototype to avoid an error.
16551 Use char because int might match the return type of a GCC
16552 builtin and then its argument prototype would still apply. */
16553 #ifdef __cplusplus
16554 extern "C"
16555 #endif
16556 char __moddi3 ();
16557 int
16558 main ()
16559 {
16560 return __moddi3 ();
16561 ;
16562 return 0;
16563 }
16564 _ACEOF
16565 rm -f conftest.$ac_objext conftest$ac_exeext
16566 if { (ac_try="$ac_link"
16567 case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16570 esac
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_link") 2>conftest.er1
16573 ac_status=$?
16574 grep -v '^ *+' conftest.er1 >conftest.err
16575 rm -f conftest.er1
16576 cat conftest.err >&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16580 { (case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_try") 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try='test -s conftest$ac_exeext'
16590 { (case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16593 esac
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_try") 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_cv_lib_gcc___moddi3=yes
16600 else
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 ac_cv_lib_gcc___moddi3=no
16605 fi
16607 rm -f core conftest.err conftest.$ac_objext \
16608 conftest$ac_exeext conftest.$ac_ext
16609 LIBS=$ac_check_lib_save_LIBS
16610 fi
16611 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16612 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16613 if test $ac_cv_lib_gcc___moddi3 = yes; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define HAVE___MODDI3 1
16617 _ACEOF
16619 fi
16621 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16622 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16623 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626 ac_check_lib_save_LIBS=$LIBS
16627 LIBS="-lgcc $LIBS"
16628 cat >conftest.$ac_ext <<_ACEOF
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16635 /* Override any GCC internal prototype to avoid an error.
16636 Use char because int might match the return type of a GCC
16637 builtin and then its argument prototype would still apply. */
16638 #ifdef __cplusplus
16639 extern "C"
16640 #endif
16641 char __udivdi3 ();
16642 int
16643 main ()
16644 {
16645 return __udivdi3 ();
16646 ;
16647 return 0;
16648 }
16649 _ACEOF
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (ac_try="$ac_link"
16652 case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_link") 2>conftest.er1
16658 ac_status=$?
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest$ac_exeext'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ac_cv_lib_gcc___udivdi3=yes
16685 else
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ac_cv_lib_gcc___udivdi3=no
16690 fi
16692 rm -f core conftest.err conftest.$ac_objext \
16693 conftest$ac_exeext conftest.$ac_ext
16694 LIBS=$ac_check_lib_save_LIBS
16695 fi
16696 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16697 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16698 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16700 cat >>confdefs.h <<\_ACEOF
16701 #define HAVE___UDIVDI3 1
16702 _ACEOF
16704 fi
16706 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16707 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16708 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711 ac_check_lib_save_LIBS=$LIBS
16712 LIBS="-lgcc $LIBS"
16713 cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h. */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16720 /* Override any GCC internal prototype to avoid an error.
16721 Use char because int might match the return type of a GCC
16722 builtin and then its argument prototype would still apply. */
16723 #ifdef __cplusplus
16724 extern "C"
16725 #endif
16726 char __umoddi3 ();
16727 int
16728 main ()
16729 {
16730 return __umoddi3 ();
16731 ;
16732 return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_link") 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16750 { (case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753 esac
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_try") 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest$ac_exeext'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769 ac_cv_lib_gcc___umoddi3=yes
16770 else
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ac_cv_lib_gcc___umoddi3=no
16775 fi
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16779 LIBS=$ac_check_lib_save_LIBS
16780 fi
16781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16782 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16783 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16785 cat >>confdefs.h <<\_ACEOF
16786 #define HAVE___UMODDI3 1
16787 _ACEOF
16789 fi
16792 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16793 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16794 if test "${ac_cv_lib_gcc___main+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797 ac_check_lib_save_LIBS=$LIBS
16798 LIBS="-lgcc $LIBS"
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h. */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16809 #ifdef __cplusplus
16810 extern "C"
16811 #endif
16812 char __main ();
16813 int
16814 main ()
16815 {
16816 return __main ();
16817 ;
16818 return 0;
16819 }
16820 _ACEOF
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest$ac_exeext'
16846 { (case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16849 esac
16850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_try") 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_lib_gcc___main=yes
16856 else
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_cv_lib_gcc___main=no
16861 fi
16863 rm -f core conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_check_lib_save_LIBS
16866 fi
16867 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16868 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16869 if test $ac_cv_lib_gcc___main = yes; then
16871 cat >>confdefs.h <<\_ACEOF
16872 #define HAVE___MAIN 1
16873 _ACEOF
16875 fi
16877 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16878 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16879 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882 ac_check_lib_save_LIBS=$LIBS
16883 LIBS="-lgcc $LIBS"
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16891 /* Override any GCC internal prototype to avoid an error.
16892 Use char because int might match the return type of a GCC
16893 builtin and then its argument prototype would still apply. */
16894 #ifdef __cplusplus
16895 extern "C"
16896 #endif
16897 char __cmpdi2 ();
16898 int
16899 main ()
16900 {
16901 return __cmpdi2 ();
16902 ;
16903 return 0;
16904 }
16905 _ACEOF
16906 rm -f conftest.$ac_objext conftest$ac_exeext
16907 if { (ac_try="$ac_link"
16908 case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16911 esac
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_link") 2>conftest.er1
16914 ac_status=$?
16915 grep -v '^ *+' conftest.er1 >conftest.err
16916 rm -f conftest.er1
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest$ac_exeext'
16931 { (case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934 esac
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_try") 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_lib_gcc___cmpdi2=yes
16941 else
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_cv_lib_gcc___cmpdi2=no
16946 fi
16948 rm -f core conftest.err conftest.$ac_objext \
16949 conftest$ac_exeext conftest.$ac_ext
16950 LIBS=$ac_check_lib_save_LIBS
16951 fi
16952 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16953 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16954 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE___CMPDI2 1
16958 _ACEOF
16960 fi
16962 fi
16964 if test "$llvm_cv_os_type" = "MingW" ; then
16965 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16966 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16967 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16975 #include <windows.h>
16976 #include <imagehlp.h>
16977 extern void foo(PENUMLOADED_MODULES_CALLBACK);
16978 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16981 _ACEOF
16982 rm -f conftest.$ac_objext
16983 if { (ac_try="$ac_compile"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_compile") 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16997 { (case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17000 esac
17001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002 (eval "$ac_try") 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest.$ac_objext'
17007 { (case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010 esac
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_try") 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17017 { echo "$as_me:$LINENO: result: yes" >&5
17018 echo "${ECHO_T}yes" >&6; }
17019 llvm_cv_win32_elmcb_pcstr="PCSTR"
17021 else
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17026 { echo "$as_me:$LINENO: result: no" >&5
17027 echo "${ECHO_T}no" >&6; }
17028 llvm_cv_win32_elmcb_pcstr="PSTR"
17030 fi
17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 cat >>confdefs.h <<_ACEOF
17035 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17036 _ACEOF
17038 fi
17042 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17043 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17044 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17048 ac_ext=cpp
17049 ac_cpp='$CXXCPP $CPPFLAGS'
17050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17054 cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h. */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 #include <math.h>
17061 int
17062 main ()
17063 {
17064 float f; isnan(f);
17065 ;
17066 return 0;
17067 }
17068 _ACEOF
17069 rm -f conftest.$ac_objext
17070 if { (ac_try="$ac_compile"
17071 case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_compile") 2>conftest.er1
17077 ac_status=$?
17078 grep -v '^ *+' conftest.er1 >conftest.err
17079 rm -f conftest.er1
17080 cat conftest.err >&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } &&
17083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; } &&
17093 { ac_try='test -s conftest.$ac_objext'
17094 { (case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_try") 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_cv_func_isnan_in_math_h=yes
17104 else
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 ac_cv_func_isnan_in_math_h=no
17109 fi
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 ac_ext=c
17113 ac_cpp='$CPP $CPPFLAGS'
17114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17119 fi
17120 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17121 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17124 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17126 cat >>confdefs.h <<\_ACEOF
17127 #define HAVE_ISNAN_IN_MATH_H 1
17128 _ACEOF
17130 fi
17133 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17134 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17135 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17139 ac_ext=cpp
17140 ac_cpp='$CXXCPP $CPPFLAGS'
17141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17145 cat >conftest.$ac_ext <<_ACEOF
17146 /* confdefs.h. */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 #include <cmath>
17152 int
17153 main ()
17154 {
17155 float f; isnan(f);
17156 ;
17157 return 0;
17158 }
17159 _ACEOF
17160 rm -f conftest.$ac_objext
17161 if { (ac_try="$ac_compile"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_compile") 2>conftest.er1
17168 ac_status=$?
17169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178 esac
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest.$ac_objext'
17185 { (case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17188 esac
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_try") 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_func_isnan_in_cmath=yes
17195 else
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17199 ac_cv_func_isnan_in_cmath=no
17200 fi
17202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17203 ac_ext=c
17204 ac_cpp='$CPP $CPPFLAGS'
17205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17210 fi
17211 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17212 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17214 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17216 cat >>confdefs.h <<\_ACEOF
17217 #define HAVE_ISNAN_IN_CMATH 1
17218 _ACEOF
17220 fi
17223 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17224 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17225 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17229 ac_ext=cpp
17230 ac_cpp='$CXXCPP $CPPFLAGS'
17231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17235 cat >conftest.$ac_ext <<_ACEOF
17236 /* confdefs.h. */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241 #include <cmath>
17242 int
17243 main ()
17244 {
17245 float f; std::isnan(f);
17246 ;
17247 return 0;
17248 }
17249 _ACEOF
17250 rm -f conftest.$ac_objext
17251 if { (ac_try="$ac_compile"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_compile") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17265 { (case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_try") 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; } &&
17274 { ac_try='test -s conftest.$ac_objext'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278 esac
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 ac_cv_func_std_isnan_in_cmath=yes
17285 else
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 ac_cv_func_std_isnan_in_cmath=no
17290 fi
17292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17293 ac_ext=c
17294 ac_cpp='$CPP $CPPFLAGS'
17295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17300 fi
17301 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17302 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17304 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17306 cat >>confdefs.h <<\_ACEOF
17307 #define HAVE_STD_ISNAN_IN_CMATH 1
17308 _ACEOF
17310 fi
17315 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17316 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17317 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 else
17321 ac_ext=cpp
17322 ac_cpp='$CXXCPP $CPPFLAGS'
17323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17327 cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h. */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 #include <math.h>
17334 int
17335 main ()
17336 {
17337 float f; isinf(f);
17338 ;
17339 return 0;
17340 }
17341 _ACEOF
17342 rm -f conftest.$ac_objext
17343 if { (ac_try="$ac_compile"
17344 case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17347 esac
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_compile") 2>conftest.er1
17350 ac_status=$?
17351 grep -v '^ *+' conftest.er1 >conftest.err
17352 rm -f conftest.er1
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17357 { (case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_try") 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370 esac
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_cv_func_isinf_in_math_h=yes
17377 else
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 ac_cv_func_isinf_in_math_h=no
17382 fi
17384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385 ac_ext=c
17386 ac_cpp='$CPP $CPPFLAGS'
17387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17392 fi
17393 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17394 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17396 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17398 cat >>confdefs.h <<\_ACEOF
17399 #define HAVE_ISINF_IN_MATH_H 1
17400 _ACEOF
17402 fi
17405 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17406 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17407 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17411 ac_ext=cpp
17412 ac_cpp='$CXXCPP $CPPFLAGS'
17413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17417 cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h. */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423 #include <cmath>
17424 int
17425 main ()
17426 {
17427 float f; isinf(f);
17428 ;
17429 return 0;
17430 }
17431 _ACEOF
17432 rm -f conftest.$ac_objext
17433 if { (ac_try="$ac_compile"
17434 case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_compile") 2>conftest.er1
17440 ac_status=$?
17441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } &&
17446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17447 { (case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_try") 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest.$ac_objext'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_try") 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_cv_func_isinf_in_cmath=yes
17467 else
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_cv_func_isinf_in_cmath=no
17472 fi
17474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475 ac_ext=c
17476 ac_cpp='$CPP $CPPFLAGS'
17477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17482 fi
17483 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17484 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17486 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17488 cat >>confdefs.h <<\_ACEOF
17489 #define HAVE_ISINF_IN_CMATH 1
17490 _ACEOF
17492 fi
17495 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17496 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17497 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17501 ac_ext=cpp
17502 ac_cpp='$CXXCPP $CPPFLAGS'
17503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17507 cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h. */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17513 #include <cmath>
17514 int
17515 main ()
17516 {
17517 float f; std::isinf(f);
17518 ;
17519 return 0;
17520 }
17521 _ACEOF
17522 rm -f conftest.$ac_objext
17523 if { (ac_try="$ac_compile"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_compile") 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest.$ac_objext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 ac_cv_func_std_isinf_in_cmath=yes
17557 else
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 ac_cv_func_std_isinf_in_cmath=no
17562 fi
17564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17565 ac_ext=c
17566 ac_cpp='$CPP $CPPFLAGS'
17567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17572 fi
17573 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17574 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17576 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17578 cat >>confdefs.h <<\_ACEOF
17579 #define HAVE_STD_ISINF_IN_CMATH 1
17580 _ACEOF
17582 fi
17585 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17586 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17587 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17591 ac_ext=cpp
17592 ac_cpp='$CXXCPP $CPPFLAGS'
17593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17597 cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h. */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 #include <ieeefp.h>
17604 int
17605 main ()
17606 {
17607 float f; finite(f);
17608 ;
17609 return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext
17613 if { (ac_try="$ac_compile"
17614 case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_compile") 2>conftest.er1
17620 ac_status=$?
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17630 esac
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_try") 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest.$ac_objext'
17637 { (case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_try") 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_func_finite_in_ieeefp_h=yes
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ac_cv_func_finite_in_ieeefp_h=no
17652 fi
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655 ac_ext=c
17656 ac_cpp='$CPP $CPPFLAGS'
17657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17662 fi
17663 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17664 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17666 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17668 cat >>confdefs.h <<\_ACEOF
17669 #define HAVE_FINITE_IN_IEEEFP_H 1
17670 _ACEOF
17672 fi
17676 if test "$llvm_cv_platform_type" = "Unix" ; then
17679 for ac_header in stdlib.h unistd.h
17680 do
17681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 fi
17688 ac_res=`eval echo '${'$as_ac_Header'}'`
17689 { echo "$as_me:$LINENO: result: $ac_res" >&5
17690 echo "${ECHO_T}$ac_res" >&6; }
17691 else
17692 # Is the header compilable?
17693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h. */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 $ac_includes_default
17702 #include <$ac_header>
17703 _ACEOF
17704 rm -f conftest.$ac_objext
17705 if { (ac_try="$ac_compile"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_compile") 2>conftest.er1
17712 ac_status=$?
17713 grep -v '^ *+' conftest.er1 >conftest.err
17714 rm -f conftest.er1
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } &&
17718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17719 { (case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17722 esac
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_try") 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest.$ac_objext'
17729 { (case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17732 esac
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_try") 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 ac_header_compiler=yes
17739 else
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 ac_header_compiler=no
17744 fi
17746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17748 echo "${ECHO_T}$ac_header_compiler" >&6; }
17750 # Is the header present?
17751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h. */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 #include <$ac_header>
17760 _ACEOF
17761 if { (ac_try="$ac_cpp conftest.$ac_ext"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17765 esac
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } >/dev/null; then
17774 if test -s conftest.err; then
17775 ac_cpp_err=$ac_c_preproc_warn_flag
17776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17777 else
17778 ac_cpp_err=
17779 fi
17780 else
17781 ac_cpp_err=yes
17782 fi
17783 if test -z "$ac_cpp_err"; then
17784 ac_header_preproc=yes
17785 else
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 ac_header_preproc=no
17790 fi
17792 rm -f conftest.err conftest.$ac_ext
17793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17794 echo "${ECHO_T}$ac_header_preproc" >&6; }
17796 # So? What about this header?
17797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17798 yes:no: )
17799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17803 ac_header_preproc=yes
17804 ;;
17805 no:yes:* )
17806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17818 ( cat <<\_ASBOX
17819 ## ------------------------------------ ##
17820 ## Report this to http://llvm.org/bugs/ ##
17821 ## ------------------------------------ ##
17822 _ASBOX
17823 ) | sed "s/^/$as_me: WARNING: /" >&2
17824 ;;
17825 esac
17826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831 eval "$as_ac_Header=\$ac_header_preproc"
17832 fi
17833 ac_res=`eval echo '${'$as_ac_Header'}'`
17834 { echo "$as_me:$LINENO: result: $ac_res" >&5
17835 echo "${ECHO_T}$ac_res" >&6; }
17837 fi
17838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17839 cat >>confdefs.h <<_ACEOF
17840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17841 _ACEOF
17843 fi
17845 done
17848 for ac_func in getpagesize
17849 do
17850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 else
17856 cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h. */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17864 #define $ac_func innocuous_$ac_func
17866 /* System header to define __stub macros and hopefully few prototypes,
17867 which can conflict with char $ac_func (); below.
17868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17869 <limits.h> exists even on freestanding compilers. */
17871 #ifdef __STDC__
17872 # include <limits.h>
17873 #else
17874 # include <assert.h>
17875 #endif
17877 #undef $ac_func
17879 /* Override any GCC internal prototype to avoid an error.
17880 Use char because int might match the return type of a GCC
17881 builtin and then its argument prototype would still apply. */
17882 #ifdef __cplusplus
17883 extern "C"
17884 #endif
17885 char $ac_func ();
17886 /* The GNU C library defines this for functions which it implements
17887 to always fail with ENOSYS. Some functions are actually named
17888 something starting with __ and the normal name is an alias. */
17889 #if defined __stub_$ac_func || defined __stub___$ac_func
17890 choke me
17891 #endif
17893 int
17894 main ()
17895 {
17896 return $ac_func ();
17897 ;
17898 return 0;
17899 }
17900 _ACEOF
17901 rm -f conftest.$ac_objext conftest$ac_exeext
17902 if { (ac_try="$ac_link"
17903 case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17906 esac
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_link") 2>conftest.er1
17909 ac_status=$?
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919 esac
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest$ac_exeext'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_try") 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 eval "$as_ac_var=yes"
17936 else
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 eval "$as_ac_var=no"
17941 fi
17943 rm -f core conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17945 fi
17946 ac_res=`eval echo '${'$as_ac_var'}'`
17947 { echo "$as_me:$LINENO: result: $ac_res" >&5
17948 echo "${ECHO_T}$ac_res" >&6; }
17949 if test `eval echo '${'$as_ac_var'}'` = yes; then
17950 cat >>confdefs.h <<_ACEOF
17951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17952 _ACEOF
17954 fi
17955 done
17957 { echo "$as_me:$LINENO: checking for working mmap" >&5
17958 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17959 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962 if test "$cross_compiling" = yes; then
17963 ac_cv_func_mmap_fixed_mapped=no
17964 else
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17972 /* malloc might have been renamed as rpl_malloc. */
17973 #undef malloc
17975 /* Thanks to Mike Haertel and Jim Avera for this test.
17976 Here is a matrix of mmap possibilities:
17977 mmap private not fixed
17978 mmap private fixed at somewhere currently unmapped
17979 mmap private fixed at somewhere already mapped
17980 mmap shared not fixed
17981 mmap shared fixed at somewhere currently unmapped
17982 mmap shared fixed at somewhere already mapped
17983 For private mappings, we should verify that changes cannot be read()
17984 back from the file, nor mmap's back from the file at a different
17985 address. (There have been systems where private was not correctly
17986 implemented like the infamous i386 svr4.0, and systems where the
17987 VM page cache was not coherent with the file system buffer cache
17988 like early versions of FreeBSD and possibly contemporary NetBSD.)
17989 For shared mappings, we should conversely verify that changes get
17990 propagated back to all the places they're supposed to be.
17992 Grep wants private fixed already mapped.
17993 The main things grep needs to know about mmap are:
17994 * does it exist and is it safe to write into the mmap'd area
17995 * how to use it (BSD variants) */
17997 #include <fcntl.h>
17998 #include <sys/mman.h>
18000 #if !STDC_HEADERS && !HAVE_STDLIB_H
18001 char *malloc ();
18002 #endif
18004 /* This mess was copied from the GNU getpagesize.h. */
18005 #if !HAVE_GETPAGESIZE
18006 /* Assume that all systems that can run configure have sys/param.h. */
18007 # if !HAVE_SYS_PARAM_H
18008 # define HAVE_SYS_PARAM_H 1
18009 # endif
18011 # ifdef _SC_PAGESIZE
18012 # define getpagesize() sysconf(_SC_PAGESIZE)
18013 # else /* no _SC_PAGESIZE */
18014 # if HAVE_SYS_PARAM_H
18015 # include <sys/param.h>
18016 # ifdef EXEC_PAGESIZE
18017 # define getpagesize() EXEC_PAGESIZE
18018 # else /* no EXEC_PAGESIZE */
18019 # ifdef NBPG
18020 # define getpagesize() NBPG * CLSIZE
18021 # ifndef CLSIZE
18022 # define CLSIZE 1
18023 # endif /* no CLSIZE */
18024 # else /* no NBPG */
18025 # ifdef NBPC
18026 # define getpagesize() NBPC
18027 # else /* no NBPC */
18028 # ifdef PAGESIZE
18029 # define getpagesize() PAGESIZE
18030 # endif /* PAGESIZE */
18031 # endif /* no NBPC */
18032 # endif /* no NBPG */
18033 # endif /* no EXEC_PAGESIZE */
18034 # else /* no HAVE_SYS_PARAM_H */
18035 # define getpagesize() 8192 /* punt totally */
18036 # endif /* no HAVE_SYS_PARAM_H */
18037 # endif /* no _SC_PAGESIZE */
18039 #endif /* no HAVE_GETPAGESIZE */
18041 int
18042 main ()
18043 {
18044 char *data, *data2, *data3;
18045 int i, pagesize;
18046 int fd;
18048 pagesize = getpagesize ();
18050 /* First, make a file with some known garbage in it. */
18051 data = (char *) malloc (pagesize);
18052 if (!data)
18053 return 1;
18054 for (i = 0; i < pagesize; ++i)
18055 *(data + i) = rand ();
18056 umask (0);
18057 fd = creat ("conftest.mmap", 0600);
18058 if (fd < 0)
18059 return 1;
18060 if (write (fd, data, pagesize) != pagesize)
18061 return 1;
18062 close (fd);
18064 /* Next, try to mmap the file at a fixed address which already has
18065 something else allocated at it. If we can, also make sure that
18066 we see the same garbage. */
18067 fd = open ("conftest.mmap", O_RDWR);
18068 if (fd < 0)
18069 return 1;
18070 data2 = (char *) malloc (2 * pagesize);
18071 if (!data2)
18072 return 1;
18073 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18074 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18075 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18076 return 1;
18077 for (i = 0; i < pagesize; ++i)
18078 if (*(data + i) != *(data2 + i))
18079 return 1;
18081 /* Finally, make sure that changes to the mapped area do not
18082 percolate back to the file as seen by read(). (This is a bug on
18083 some variants of i386 svr4.0.) */
18084 for (i = 0; i < pagesize; ++i)
18085 *(data2 + i) = *(data2 + i) + 1;
18086 data3 = (char *) malloc (pagesize);
18087 if (!data3)
18088 return 1;
18089 if (read (fd, data3, pagesize) != pagesize)
18090 return 1;
18091 for (i = 0; i < pagesize; ++i)
18092 if (*(data + i) != *(data3 + i))
18093 return 1;
18094 close (fd);
18095 return 0;
18096 }
18097 _ACEOF
18098 rm -f conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_link") 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18109 { (case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18112 esac
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_func_mmap_fixed_mapped=yes
18119 else
18120 echo "$as_me: program exited with status $ac_status" >&5
18121 echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18124 ( exit $ac_status )
18125 ac_cv_func_mmap_fixed_mapped=no
18126 fi
18127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18128 fi
18131 fi
18132 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18133 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18134 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18136 cat >>confdefs.h <<\_ACEOF
18137 #define HAVE_MMAP 1
18138 _ACEOF
18140 fi
18141 rm -f conftest.mmap
18143 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18144 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18145 if test "${ac_cv_func_mmap_file+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148 ac_ext=c
18149 ac_cpp='$CPP $CPPFLAGS'
18150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18154 if test "$cross_compiling" = yes; then
18155 ac_cv_func_mmap_file=no
18156 else
18157 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h. */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18165 #include <sys/types.h>
18166 #include <sys/mman.h>
18167 #include <fcntl.h>
18169 int
18170 main ()
18171 {
18173 int fd;
18174 fd = creat ("foo",0777);
18175 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18176 unlink ("foo");
18177 return (fd != (int) MAP_FAILED);
18178 ;
18179 return 0;
18180 }
18181 _ACEOF
18182 rm -f conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_link") 2>&5
18190 ac_status=$?
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18193 { (case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_try") 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202 ac_cv_func_mmap_file=yes
18203 else
18204 echo "$as_me: program exited with status $ac_status" >&5
18205 echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 ( exit $ac_status )
18209 ac_cv_func_mmap_file=no
18210 fi
18211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18212 fi
18215 ac_ext=c
18216 ac_cpp='$CPP $CPPFLAGS'
18217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18222 fi
18223 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18224 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18225 if test "$ac_cv_func_mmap_file" = yes; then
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE_MMAP_FILE
18229 _ACEOF
18231 MMAP_FILE=yes
18233 fi
18235 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18236 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18237 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240 if test "$llvm_cv_os_type" = "Interix" ; then
18241 ac_cv_need_dev_zero_for_mmap=yes
18242 else
18243 ac_cv_need_dev_zero_for_mmap=no
18244 fi
18246 fi
18247 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18248 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18249 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18251 cat >>confdefs.h <<\_ACEOF
18252 #define NEED_DEV_ZERO_FOR_MMAP 1
18253 _ACEOF
18255 fi
18257 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18258 then
18259 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18260 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18261 fi
18262 if test "$ac_cv_func_mmap_file" = "no"
18263 then
18264 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18265 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18266 fi
18267 fi
18269 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18270 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18271 ac_ext=cpp
18272 ac_cpp='$CXXCPP $CPPFLAGS'
18273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18277 cat >conftest.$ac_ext <<_ACEOF
18279 /* confdefs.h. */
18280 _ACEOF
18281 cat confdefs.h >>conftest.$ac_ext
18282 cat >>conftest.$ac_ext <<_ACEOF
18283 /* end confdefs.h. */
18285 int main() {
18286 volatile unsigned long val = 1;
18287 __sync_synchronize();
18288 __sync_val_compare_and_swap(&val, 1, 0);
18289 __sync_add_and_fetch(&val, 1);
18290 __sync_sub_and_fetch(&val, 1);
18291 return 0;
18292 }
18295 _ACEOF
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (ac_try="$ac_link"
18298 case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18301 esac
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_link") 2>conftest.er1
18304 ac_status=$?
18305 grep -v '^ *+' conftest.er1 >conftest.err
18306 rm -f conftest.er1
18307 cat conftest.err >&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
18310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18311 { (case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_try") 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try='test -s conftest$ac_exeext'
18321 { (case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18324 esac
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_try") 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18331 { echo "$as_me:$LINENO: result: yes" >&5
18332 echo "${ECHO_T}yes" >&6; }
18334 cat >>confdefs.h <<\_ACEOF
18335 #define LLVM_HAS_ATOMICS 1
18336 _ACEOF
18339 else
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18344 { echo "$as_me:$LINENO: result: no" >&5
18345 echo "${ECHO_T}no" >&6; }
18347 cat >>confdefs.h <<\_ACEOF
18348 #define LLVM_HAS_ATOMICS 0
18349 _ACEOF
18351 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18352 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18354 fi
18356 rm -f core conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18358 ac_ext=c
18359 ac_cpp='$CPP $CPPFLAGS'
18360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18366 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18367 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18368 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18369 if test "${llvm_cv_linux_mixed+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372 ac_ext=c
18373 ac_cpp='$CPP $CPPFLAGS'
18374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18378 cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h. */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 #ifndef __x86_64__
18385 error: Not x86-64 even if uname says so!
18386 #endif
18388 int
18389 main ()
18390 {
18392 ;
18393 return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext
18397 if { (ac_try="$ac_compile"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401 esac
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_compile") 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18414 esac
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest.$ac_objext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 llvm_cv_linux_mixed=no
18431 else
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 llvm_cv_linux_mixed=yes
18436 fi
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18439 ac_ext=c
18440 ac_cpp='$CPP $CPPFLAGS'
18441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18446 fi
18447 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18448 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18450 if test "$llvm_cv_linux_mixed" = "yes"; then
18451 llvm_cv_target_arch="x86"
18452 ARCH="x86"
18453 fi
18454 fi
18457 for ac_func in __dso_handle
18458 do
18459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18464 else
18465 cat >conftest.$ac_ext <<_ACEOF
18466 /* confdefs.h. */
18467 _ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18473 #define $ac_func innocuous_$ac_func
18475 /* System header to define __stub macros and hopefully few prototypes,
18476 which can conflict with char $ac_func (); below.
18477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18478 <limits.h> exists even on freestanding compilers. */
18480 #ifdef __STDC__
18481 # include <limits.h>
18482 #else
18483 # include <assert.h>
18484 #endif
18486 #undef $ac_func
18488 /* Override any GCC internal prototype to avoid an error.
18489 Use char because int might match the return type of a GCC
18490 builtin and then its argument prototype would still apply. */
18491 #ifdef __cplusplus
18492 extern "C"
18493 #endif
18494 char $ac_func ();
18495 /* The GNU C library defines this for functions which it implements
18496 to always fail with ENOSYS. Some functions are actually named
18497 something starting with __ and the normal name is an alias. */
18498 #if defined __stub_$ac_func || defined __stub___$ac_func
18499 choke me
18500 #endif
18502 int
18503 main ()
18504 {
18505 return $ac_func ();
18506 ;
18507 return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (ac_try="$ac_link"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18515 esac
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_link") 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18525 { (case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_try") 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try='test -s conftest$ac_exeext'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18538 esac
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 eval "$as_ac_var=yes"
18545 else
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18549 eval "$as_ac_var=no"
18550 fi
18552 rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18554 fi
18555 ac_res=`eval echo '${'$as_ac_var'}'`
18556 { echo "$as_me:$LINENO: result: $ac_res" >&5
18557 echo "${ECHO_T}$ac_res" >&6; }
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18561 _ACEOF
18563 fi
18564 done
18567 SHLIBEXT=$llvm_shlib_ext
18570 if test "${prefix}" = "NONE" ; then
18571 prefix="/usr/local"
18572 fi
18573 eval LLVM_PREFIX="${prefix}";
18574 eval LLVM_BINDIR="${prefix}/bin";
18575 eval LLVM_DATADIR="${prefix}/share/llvm";
18576 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18577 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18578 eval LLVM_INCLUDEDIR="${prefix}/include";
18579 eval LLVM_INFODIR="${prefix}/info";
18580 eval LLVM_MANDIR="${prefix}/man";
18581 LLVM_CONFIGTIME=`date`
18592 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18593 LLVM_CONFIGTIME="(timestamp not enabled)"
18594 fi
18597 cat >>confdefs.h <<_ACEOF
18598 #define LLVM_PREFIX "$LLVM_PREFIX"
18599 _ACEOF
18602 cat >>confdefs.h <<_ACEOF
18603 #define LLVM_BINDIR "$LLVM_BINDIR"
18604 _ACEOF
18607 cat >>confdefs.h <<_ACEOF
18608 #define LLVM_DATADIR "$LLVM_DATADIR"
18609 _ACEOF
18612 cat >>confdefs.h <<_ACEOF
18613 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18614 _ACEOF
18617 cat >>confdefs.h <<_ACEOF
18618 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18619 _ACEOF
18622 cat >>confdefs.h <<_ACEOF
18623 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18624 _ACEOF
18627 cat >>confdefs.h <<_ACEOF
18628 #define LLVM_INFODIR "$LLVM_INFODIR"
18629 _ACEOF
18632 cat >>confdefs.h <<_ACEOF
18633 #define LLVM_MANDIR "$LLVM_MANDIR"
18634 _ACEOF
18637 cat >>confdefs.h <<_ACEOF
18638 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18639 _ACEOF
18642 cat >>confdefs.h <<_ACEOF
18643 #define LLVM_HOST_TRIPLE "$host"
18644 _ACEOF
18647 cat >>confdefs.h <<_ACEOF
18648 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18649 _ACEOF
18652 if test "$BINDINGS_TO_BUILD" = auto ; then
18653 BINDINGS_TO_BUILD=""
18654 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18655 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18656 fi
18657 if test "x$GO" != x ; then
18658 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18659 BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18660 fi
18661 fi
18662 fi
18663 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18666 binding_prereqs_failed=0
18667 for a_binding in $BINDINGS_TO_BUILD ; do
18668 case "$a_binding" in
18669 ocaml)
18670 if test "x$OCAMLC" = x ; then
18671 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18672 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18673 binding_prereqs_failed=1
18674 fi
18675 if test "x$OCAMLDEP" = x ; then
18676 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18677 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18678 binding_prereqs_failed=1
18679 fi
18680 if test "x$OCAMLOPT" = x ; then
18681 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18682 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18683 fi
18684 if test "x$with_ocaml_libdir" != xauto ; then
18685 OCAML_LIBDIR=$with_ocaml_libdir
18687 else
18688 ocaml_stdlib="`"$OCAMLC" -where`"
18689 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18690 then
18691 # ocaml stdlib is beneath our prefix; use stdlib
18692 OCAML_LIBDIR=$ocaml_stdlib
18694 else
18695 # ocaml stdlib is outside our prefix; use libdir/ocaml
18696 OCAML_LIBDIR=${prefix}/lib/ocaml
18698 fi
18699 fi
18700 ;;
18701 go)
18702 if test "x$GO" = x ; then
18703 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18704 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18705 binding_prereqs_failed=1
18706 else
18707 if $GO run ${srcdir}/bindings/go/conftest.go ; then
18708 :
18709 else
18710 { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18711 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18712 binding_prereqs_failed=1
18713 fi
18714 fi
18715 ;;
18716 esac
18717 done
18718 if test "$binding_prereqs_failed" = 1 ; then
18719 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18720 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18721 { (exit 1); exit 1; }; }
18722 fi
18724 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18725 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18726 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18728 else
18729 ac_ext=cpp
18730 ac_cpp='$CXXCPP $CPPFLAGS'
18731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18735 oldcxxflags="$CXXFLAGS"
18736 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h. */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18744 int
18745 main ()
18746 {
18747 X<int>().f();
18748 ;
18749 return 0;
18750 }
18751 _ACEOF
18752 rm -f conftest.$ac_objext
18753 if { (ac_try="$ac_compile"
18754 case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18757 esac
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_compile") 2>conftest.er1
18760 ac_status=$?
18761 grep -v '^ *+' conftest.er1 >conftest.err
18762 rm -f conftest.er1
18763 cat conftest.err >&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } &&
18766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18767 { (case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18770 esac
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_try") 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; } &&
18776 { ac_try='test -s conftest.$ac_objext'
18777 { (case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_try") 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18786 llvm_cv_cxx_visibility_inlines_hidden=yes
18787 else
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 llvm_cv_cxx_visibility_inlines_hidden=no
18792 fi
18794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18795 CXXFLAGS="$oldcxxflags"
18796 ac_ext=c
18797 ac_cpp='$CPP $CPPFLAGS'
18798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18803 fi
18804 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18805 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18806 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18807 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18809 else
18810 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18812 fi
18815 if test "$llvm_cv_link_use_r" = "yes" ; then
18816 RPATH="-Wl,-R"
18817 else
18818 RPATH="-Wl,-rpath"
18819 fi
18822 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18823 RDYNAMIC="-rdynamic"
18824 else
18825 RDYNAMIC=""
18826 fi
18830 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18837 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18839 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18841 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18843 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18845 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18848 ac_config_files="$ac_config_files Makefile.config"
18851 ac_config_files="$ac_config_files llvm.spec"
18854 ac_config_files="$ac_config_files docs/doxygen.cfg"
18857 if test "${clang_src_root}" = ""; then
18858 clang_src_root="$srcdir/tools/clang"
18859 fi
18860 if test -f ${clang_src_root}/README.txt; then
18861 configh="include/clang/Config/config.h"
18862 doxy="docs/doxygen.cfg"
18863 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18865 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18867 fi
18869 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18872 test "x$program_prefix" = "xNONE" && program_prefix=""
18876 ac_config_commands="$ac_config_commands setup"
18878 ac_config_commands="$ac_config_commands Makefile"
18881 ac_config_commands="$ac_config_commands Makefile.common"
18884 ac_config_commands="$ac_config_commands examples/Makefile"
18887 ac_config_commands="$ac_config_commands lib/Makefile"
18890 ac_config_commands="$ac_config_commands test/Makefile"
18893 ac_config_commands="$ac_config_commands test/Makefile.tests"
18896 ac_config_commands="$ac_config_commands unittests/Makefile"
18899 ac_config_commands="$ac_config_commands tools/Makefile"
18902 ac_config_commands="$ac_config_commands utils/Makefile"
18905 ac_config_commands="$ac_config_commands projects/Makefile"
18908 ac_config_commands="$ac_config_commands bindings/Makefile"
18911 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18915 cat >confcache <<\_ACEOF
18916 # This file is a shell script that caches the results of configure
18917 # tests run on this system so they can be shared between configure
18918 # scripts and configure runs, see configure's option --config-cache.
18919 # It is not useful on other systems. If it contains results you don't
18920 # want to keep, you may remove or edit it.
18921 #
18922 # config.status only pays attention to the cache file if you give it
18923 # the --recheck option to rerun configure.
18924 #
18925 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18926 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18927 # following values.
18929 _ACEOF
18931 # The following way of writing the cache mishandles newlines in values,
18932 # but we know of no workaround that is simple, portable, and efficient.
18933 # So, we kill variables containing newlines.
18934 # Ultrix sh set writes to stderr and can't be redirected directly,
18935 # and sets the high bit in the cache file unless we assign to the vars.
18936 (
18937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18938 eval ac_val=\$$ac_var
18939 case $ac_val in #(
18940 *${as_nl}*)
18941 case $ac_var in #(
18942 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18943 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18944 esac
18945 case $ac_var in #(
18946 _ | IFS | as_nl) ;; #(
18947 *) $as_unset $ac_var ;;
18948 esac ;;
18949 esac
18950 done
18952 (set) 2>&1 |
18953 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18954 *${as_nl}ac_space=\ *)
18955 # `set' does not quote correctly, so add quotes (double-quote
18956 # substitution turns \\\\ into \\, and sed turns \\ into \).
18957 sed -n \
18958 "s/'/'\\\\''/g;
18959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18960 ;; #(
18961 *)
18962 # `set' quotes correctly as required by POSIX, so do not add quotes.
18963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18964 ;;
18965 esac |
18966 sort
18967 ) |
18968 sed '
18969 /^ac_cv_env_/b end
18970 t clear
18971 :clear
18972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18973 t end
18974 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18975 :end' >>confcache
18976 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18977 if test -w "$cache_file"; then
18978 test "x$cache_file" != "x/dev/null" &&
18979 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18980 echo "$as_me: updating cache $cache_file" >&6;}
18981 cat confcache >$cache_file
18982 else
18983 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18984 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18985 fi
18986 fi
18987 rm -f confcache
18989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18990 # Let make expand exec_prefix.
18991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18993 DEFS=-DHAVE_CONFIG_H
18995 ac_libobjs=
18996 ac_ltlibobjs=
18997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18998 # 1. Remove the extension, and $U if already installed.
18999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19000 ac_i=`echo "$ac_i" | sed "$ac_script"`
19001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19002 # will be set to the directory where LIBOBJS objects are built.
19003 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19004 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19005 done
19006 LIBOBJS=$ac_libobjs
19008 LTLIBOBJS=$ac_ltlibobjs
19012 : ${CONFIG_STATUS=./config.status}
19013 ac_clean_files_save=$ac_clean_files
19014 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19015 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19016 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19017 cat >$CONFIG_STATUS <<_ACEOF
19018 #! $SHELL
19019 # Generated by $as_me.
19020 # Run this file to recreate the current configuration.
19021 # Compiler output produced by configure, useful for debugging
19022 # configure, is in config.log if it exists.
19024 debug=false
19025 ac_cs_recheck=false
19026 ac_cs_silent=false
19027 SHELL=\${CONFIG_SHELL-$SHELL}
19028 _ACEOF
19030 cat >>$CONFIG_STATUS <<\_ACEOF
19031 ## --------------------- ##
19032 ## M4sh Initialization. ##
19033 ## --------------------- ##
19035 # Be Bourne compatible
19036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19037 emulate sh
19038 NULLCMD=:
19039 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19040 # is contrary to our usage. Disable this feature.
19041 alias -g '${1+"$@"}'='"$@"'
19042 setopt NO_GLOB_SUBST
19043 else
19044 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19045 fi
19046 BIN_SH=xpg4; export BIN_SH # for Tru64
19047 DUALCASE=1; export DUALCASE # for MKS sh
19050 # PATH needs CR
19051 # Avoid depending upon Character Ranges.
19052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19055 as_cr_digits='0123456789'
19056 as_cr_alnum=$as_cr_Letters$as_cr_digits
19058 # The user is always right.
19059 if test "${PATH_SEPARATOR+set}" != set; then
19060 echo "#! /bin/sh" >conf$$.sh
19061 echo "exit 0" >>conf$$.sh
19062 chmod +x conf$$.sh
19063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19064 PATH_SEPARATOR=';'
19065 else
19066 PATH_SEPARATOR=:
19067 fi
19068 rm -f conf$$.sh
19069 fi
19071 # Support unset when possible.
19072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19073 as_unset=unset
19074 else
19075 as_unset=false
19076 fi
19079 # IFS
19080 # We need space, tab and new line, in precisely that order. Quoting is
19081 # there to prevent editors from complaining about space-tab.
19082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19083 # splitting by setting IFS to empty value.)
19084 as_nl='
19085 '
19086 IFS=" "" $as_nl"
19088 # Find who we are. Look in the path if we contain no directory separator.
19089 case $0 in
19090 *[\\/]* ) as_myself=$0 ;;
19091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19092 for as_dir in $PATH
19093 do
19094 IFS=$as_save_IFS
19095 test -z "$as_dir" && as_dir=.
19096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19097 done
19098 IFS=$as_save_IFS
19100 ;;
19101 esac
19102 # We did not find ourselves, most probably we were run as `sh COMMAND'
19103 # in which case we are not to be found in the path.
19104 if test "x$as_myself" = x; then
19105 as_myself=$0
19106 fi
19107 if test ! -f "$as_myself"; then
19108 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19109 { (exit 1); exit 1; }
19110 fi
19112 # Work around bugs in pre-3.0 UWIN ksh.
19113 for as_var in ENV MAIL MAILPATH
19114 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19115 done
19116 PS1='$ '
19117 PS2='> '
19118 PS4='+ '
19120 # NLS nuisances.
19121 for as_var in \
19122 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19123 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19124 LC_TELEPHONE LC_TIME
19125 do
19126 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19127 eval $as_var=C; export $as_var
19128 else
19129 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19130 fi
19131 done
19133 # Required to use basename.
19134 if expr a : '\(a\)' >/dev/null 2>&1 &&
19135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19136 as_expr=expr
19137 else
19138 as_expr=false
19139 fi
19141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19142 as_basename=basename
19143 else
19144 as_basename=false
19145 fi
19148 # Name of the executable.
19149 as_me=`$as_basename -- "$0" ||
19150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19151 X"$0" : 'X\(//\)$' \| \
19152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19153 echo X/"$0" |
19154 sed '/^.*\/\([^/][^/]*\)\/*$/{
19155 s//\1/
19156 q
19157 }
19158 /^X\/\(\/\/\)$/{
19159 s//\1/
19160 q
19161 }
19162 /^X\/\(\/\).*/{
19163 s//\1/
19164 q
19165 }
19166 s/.*/./; q'`
19168 # CDPATH.
19169 $as_unset CDPATH
19173 as_lineno_1=$LINENO
19174 as_lineno_2=$LINENO
19175 test "x$as_lineno_1" != "x$as_lineno_2" &&
19176 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19178 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19179 # uniformly replaced by the line number. The first 'sed' inserts a
19180 # line-number line after each line using $LINENO; the second 'sed'
19181 # does the real work. The second script uses 'N' to pair each
19182 # line-number line with the line containing $LINENO, and appends
19183 # trailing '-' during substitution so that $LINENO is not a special
19184 # case at line end.
19185 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19186 # scripts with optimization help from Paolo Bonzini. Blame Lee
19187 # E. McMahon (1931-1989) for sed's syntax. :-)
19188 sed -n '
19189 p
19190 /[$]LINENO/=
19191 ' <$as_myself |
19192 sed '
19193 s/[$]LINENO.*/&-/
19194 t lineno
19195 b
19196 :lineno
19197 N
19198 :loop
19199 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19200 t loop
19201 s/-\n.*//
19202 ' >$as_me.lineno &&
19203 chmod +x "$as_me.lineno" ||
19204 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19205 { (exit 1); exit 1; }; }
19207 # Don't try to exec as it changes $[0], causing all sort of problems
19208 # (the dirname of $[0] is not the place where we might find the
19209 # original and so on. Autoconf is especially sensitive to this).
19210 . "./$as_me.lineno"
19211 # Exit status is that of the last command.
19212 exit
19213 }
19216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19217 as_dirname=dirname
19218 else
19219 as_dirname=false
19220 fi
19222 ECHO_C= ECHO_N= ECHO_T=
19223 case `echo -n x` in
19224 -n*)
19225 case `echo 'x\c'` in
19226 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19227 *) ECHO_C='\c';;
19228 esac;;
19229 *)
19230 ECHO_N='-n';;
19231 esac
19233 if expr a : '\(a\)' >/dev/null 2>&1 &&
19234 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19235 as_expr=expr
19236 else
19237 as_expr=false
19238 fi
19240 rm -f conf$$ conf$$.exe conf$$.file
19241 if test -d conf$$.dir; then
19242 rm -f conf$$.dir/conf$$.file
19243 else
19244 rm -f conf$$.dir
19245 mkdir conf$$.dir
19246 fi
19247 echo >conf$$.file
19248 if ln -s conf$$.file conf$$ 2>/dev/null; then
19249 as_ln_s='ln -s'
19250 # ... but there are two gotchas:
19251 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19252 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19253 # In both cases, we have to default to `cp -p'.
19254 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19255 as_ln_s='cp -p'
19256 elif ln conf$$.file conf$$ 2>/dev/null; then
19257 as_ln_s=ln
19258 else
19259 as_ln_s='cp -p'
19260 fi
19261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19262 rmdir conf$$.dir 2>/dev/null
19264 if mkdir -p . 2>/dev/null; then
19265 as_mkdir_p=:
19266 else
19267 test -d ./-p && rmdir ./-p
19268 as_mkdir_p=false
19269 fi
19271 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
19272 # systems may use methods other than mode bits to determine executability.
19273 cat >conf$$.file <<_ASEOF
19274 #! /bin/sh
19275 exit 0
19276 _ASEOF
19277 chmod +x conf$$.file
19278 if test -x conf$$.file >/dev/null 2>&1; then
19279 as_executable_p="test -x"
19280 else
19281 as_executable_p=:
19282 fi
19283 rm -f conf$$.file
19285 # Sed expression to map a string onto a valid CPP name.
19286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19288 # Sed expression to map a string onto a valid variable name.
19289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19292 exec 6>&1
19294 # Save the log message, to keep $[0] and so on meaningful, and to
19295 # report actual input values of CONFIG_FILES etc. instead of their
19296 # values after options handling.
19297 ac_log="
19298 This file was extended by LLVM $as_me 3.6.0svn, which was
19299 generated by GNU Autoconf 2.60. Invocation command line was
19301 CONFIG_FILES = $CONFIG_FILES
19302 CONFIG_HEADERS = $CONFIG_HEADERS
19303 CONFIG_LINKS = $CONFIG_LINKS
19304 CONFIG_COMMANDS = $CONFIG_COMMANDS
19305 $ $0 $@
19307 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19308 "
19310 _ACEOF
19312 cat >>$CONFIG_STATUS <<_ACEOF
19313 # Files that config.status was made for.
19314 config_files="$ac_config_files"
19315 config_headers="$ac_config_headers"
19316 config_commands="$ac_config_commands"
19318 _ACEOF
19320 cat >>$CONFIG_STATUS <<\_ACEOF
19321 ac_cs_usage="\
19322 \`$as_me' instantiates files from templates according to the
19323 current configuration.
19325 Usage: $0 [OPTIONS] [FILE]...
19327 -h, --help print this help, then exit
19328 -V, --version print version number, then exit
19329 -q, --quiet do not print progress messages
19330 -d, --debug don't remove temporary files
19331 --recheck update $as_me by reconfiguring in the same conditions
19332 --file=FILE[:TEMPLATE]
19333 instantiate the configuration file FILE
19334 --header=FILE[:TEMPLATE]
19335 instantiate the configuration header FILE
19337 Configuration files:
19338 $config_files
19340 Configuration headers:
19341 $config_headers
19343 Configuration commands:
19344 $config_commands
19346 Report bugs to <bug-autoconf@gnu.org>."
19348 _ACEOF
19349 cat >>$CONFIG_STATUS <<_ACEOF
19350 ac_cs_version="\\
19351 LLVM config.status 3.6.0svn
19352 configured by $0, generated by GNU Autoconf 2.60,
19353 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19355 Copyright (C) 2006 Free Software Foundation, Inc.
19356 This config.status script is free software; the Free Software Foundation
19357 gives unlimited permission to copy, distribute and modify it."
19359 ac_pwd='$ac_pwd'
19360 srcdir='$srcdir'
19361 INSTALL='$INSTALL'
19362 _ACEOF
19364 cat >>$CONFIG_STATUS <<\_ACEOF
19365 # If no file are specified by the user, then we need to provide default
19366 # value. By we need to know if files were specified by the user.
19367 ac_need_defaults=:
19368 while test $# != 0
19369 do
19370 case $1 in
19371 --*=*)
19372 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19374 ac_shift=:
19375 ;;
19376 *)
19377 ac_option=$1
19378 ac_optarg=$2
19379 ac_shift=shift
19380 ;;
19381 esac
19383 case $ac_option in
19384 # Handling of the options.
19385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19386 ac_cs_recheck=: ;;
19387 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19388 echo "$ac_cs_version"; exit ;;
19389 --debug | --debu | --deb | --de | --d | -d )
19390 debug=: ;;
19391 --file | --fil | --fi | --f )
19392 $ac_shift
19393 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19394 ac_need_defaults=false;;
19395 --header | --heade | --head | --hea )
19396 $ac_shift
19397 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19398 ac_need_defaults=false;;
19399 --he | --h)
19400 # Conflict between --help and --header
19401 { echo "$as_me: error: ambiguous option: $1
19402 Try \`$0 --help' for more information." >&2
19403 { (exit 1); exit 1; }; };;
19404 --help | --hel | -h )
19405 echo "$ac_cs_usage"; exit ;;
19406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19407 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19408 ac_cs_silent=: ;;
19410 # This is an error.
19411 -*) { echo "$as_me: error: unrecognized option: $1
19412 Try \`$0 --help' for more information." >&2
19413 { (exit 1); exit 1; }; } ;;
19415 *) ac_config_targets="$ac_config_targets $1"
19416 ac_need_defaults=false ;;
19418 esac
19419 shift
19420 done
19422 ac_configure_extra_args=
19424 if $ac_cs_silent; then
19425 exec 6>/dev/null
19426 ac_configure_extra_args="$ac_configure_extra_args --silent"
19427 fi
19429 _ACEOF
19430 cat >>$CONFIG_STATUS <<_ACEOF
19431 if \$ac_cs_recheck; then
19432 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19433 CONFIG_SHELL=$SHELL
19434 export CONFIG_SHELL
19435 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19436 fi
19438 _ACEOF
19439 cat >>$CONFIG_STATUS <<\_ACEOF
19440 exec 5>>config.log
19441 {
19442 echo
19443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19444 ## Running $as_me. ##
19445 _ASBOX
19446 echo "$ac_log"
19447 } >&5
19449 _ACEOF
19450 cat >>$CONFIG_STATUS <<_ACEOF
19451 #
19452 # INIT-COMMANDS
19453 #
19454 llvm_src="${srcdir}"
19456 _ACEOF
19458 cat >>$CONFIG_STATUS <<\_ACEOF
19460 # Handling of arguments.
19461 for ac_config_target in $ac_config_targets
19462 do
19463 case $ac_config_target in
19464 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19465 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19466 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19467 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19468 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19469 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19470 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19471 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19472 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19473 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19474 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19475 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19476 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19477 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19478 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19479 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19480 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19481 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19482 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19483 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19484 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19485 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19486 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19487 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19488 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19489 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19493 { (exit 1); exit 1; }; };;
19494 esac
19495 done
19498 # If the user did not use the arguments to specify the items to instantiate,
19499 # then the envvar interface is used. Set only those that are not.
19500 # We use the long form for the default assignment because of an extremely
19501 # bizarre bug on SunOS 4.1.3.
19502 if $ac_need_defaults; then
19503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19506 fi
19508 # Have a temporary directory for convenience. Make it in the build tree
19509 # simply because there is no reason against having it here, and in addition,
19510 # creating and moving files from /tmp can sometimes cause problems.
19511 # Hook for its removal unless debugging.
19512 # Note that there is a small window in which the directory will not be cleaned:
19513 # after its creation but before its name has been assigned to `$tmp'.
19514 $debug ||
19515 {
19516 tmp=
19517 trap 'exit_status=$?
19518 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19519 ' 0
19520 trap '{ (exit 1); exit 1; }' 1 2 13 15
19521 }
19522 # Create a (secure) tmp directory for tmp files.
19524 {
19525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19526 test -n "$tmp" && test -d "$tmp"
19527 } ||
19528 {
19529 tmp=./conf$$-$RANDOM
19530 (umask 077 && mkdir "$tmp")
19531 } ||
19532 {
19533 echo "$me: cannot create a temporary directory in ." >&2
19534 { (exit 1); exit 1; }
19535 }
19537 #
19538 # Set up the sed scripts for CONFIG_FILES section.
19539 #
19541 # No need to generate the scripts if there are no CONFIG_FILES.
19542 # This happens for instance when ./config.status config.h
19543 if test -n "$CONFIG_FILES"; then
19545 _ACEOF
19549 ac_delim='%!_!# '
19550 for ac_last_try in false false false false false :; do
19551 cat >conf$$subs.sed <<_ACEOF
19552 SHELL!$SHELL$ac_delim
19553 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19554 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19555 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19556 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19557 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19558 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19559 exec_prefix!$exec_prefix$ac_delim
19560 prefix!$prefix$ac_delim
19561 program_transform_name!$program_transform_name$ac_delim
19562 bindir!$bindir$ac_delim
19563 sbindir!$sbindir$ac_delim
19564 libexecdir!$libexecdir$ac_delim
19565 datarootdir!$datarootdir$ac_delim
19566 datadir!$datadir$ac_delim
19567 sysconfdir!$sysconfdir$ac_delim
19568 sharedstatedir!$sharedstatedir$ac_delim
19569 localstatedir!$localstatedir$ac_delim
19570 includedir!$includedir$ac_delim
19571 oldincludedir!$oldincludedir$ac_delim
19572 docdir!$docdir$ac_delim
19573 infodir!$infodir$ac_delim
19574 htmldir!$htmldir$ac_delim
19575 dvidir!$dvidir$ac_delim
19576 pdfdir!$pdfdir$ac_delim
19577 psdir!$psdir$ac_delim
19578 libdir!$libdir$ac_delim
19579 localedir!$localedir$ac_delim
19580 mandir!$mandir$ac_delim
19581 DEFS!$DEFS$ac_delim
19582 ECHO_C!$ECHO_C$ac_delim
19583 ECHO_N!$ECHO_N$ac_delim
19584 ECHO_T!$ECHO_T$ac_delim
19585 LIBS!$LIBS$ac_delim
19586 build_alias!$build_alias$ac_delim
19587 host_alias!$host_alias$ac_delim
19588 target_alias!$target_alias$ac_delim
19589 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19590 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19591 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19592 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19593 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19594 CC!$CC$ac_delim
19595 CFLAGS!$CFLAGS$ac_delim
19596 LDFLAGS!$LDFLAGS$ac_delim
19597 CPPFLAGS!$CPPFLAGS$ac_delim
19598 ac_ct_CC!$ac_ct_CC$ac_delim
19599 EXEEXT!$EXEEXT$ac_delim
19600 OBJEXT!$OBJEXT$ac_delim
19601 CXX!$CXX$ac_delim
19602 CXXFLAGS!$CXXFLAGS$ac_delim
19603 ac_ct_CXX!$ac_ct_CXX$ac_delim
19604 CPP!$CPP$ac_delim
19605 subdirs!$subdirs$ac_delim
19606 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19607 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19608 build!$build$ac_delim
19609 build_cpu!$build_cpu$ac_delim
19610 build_vendor!$build_vendor$ac_delim
19611 build_os!$build_os$ac_delim
19612 host!$host$ac_delim
19613 host_cpu!$host_cpu$ac_delim
19614 host_vendor!$host_vendor$ac_delim
19615 host_os!$host_os$ac_delim
19616 target!$target$ac_delim
19617 target_cpu!$target_cpu$ac_delim
19618 target_vendor!$target_vendor$ac_delim
19619 target_os!$target_os$ac_delim
19620 OS!$OS$ac_delim
19621 HOST_OS!$HOST_OS$ac_delim
19622 TARGET_OS!$TARGET_OS$ac_delim
19623 LINKALL!$LINKALL$ac_delim
19624 NOLINKALL!$NOLINKALL$ac_delim
19625 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19626 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19627 ARCH!$ARCH$ac_delim
19628 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19629 HOST_ARCH!$HOST_ARCH$ac_delim
19630 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19631 BUILD_CC!$BUILD_CC$ac_delim
19632 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19633 BUILD_CXX!$BUILD_CXX$ac_delim
19634 CVSBUILD!$CVSBUILD$ac_delim
19635 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19636 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19637 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19638 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19639 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19640 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19641 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19642 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19643 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19644 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19645 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19646 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19647 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19648 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19649 _ACEOF
19651 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19652 break
19653 elif $ac_last_try; then
19654 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19655 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19656 { (exit 1); exit 1; }; }
19657 else
19658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19659 fi
19660 done
19662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19663 if test -n "$ac_eof"; then
19664 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19665 ac_eof=`expr $ac_eof + 1`
19666 fi
19668 cat >>$CONFIG_STATUS <<_ACEOF
19669 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19671 _ACEOF
19672 sed '
19673 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19674 s/^/s,@/; s/!/@,|#_!!_#|/
19675 :n
19676 t n
19677 s/'"$ac_delim"'$/,g/; t
19678 s/$/\\/; p
19679 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19680 ' >>$CONFIG_STATUS <conf$$subs.sed
19681 rm -f conf$$subs.sed
19682 cat >>$CONFIG_STATUS <<_ACEOF
19683 CEOF$ac_eof
19684 _ACEOF
19687 ac_delim='%!_!# '
19688 for ac_last_try in false false false false false :; do
19689 cat >conf$$subs.sed <<_ACEOF
19690 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19691 JIT!$JIT$ac_delim
19692 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19693 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19694 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19695 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19696 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19697 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19698 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19699 ENABLE_PIC!$ENABLE_PIC$ac_delim
19700 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19701 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19702 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19703 ALL_TARGETS!$ALL_TARGETS$ac_delim
19704 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19705 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19706 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19707 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19708 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19709 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19710 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19711 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19712 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19713 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19714 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19715 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19716 ifGNUmake!$ifGNUmake$ac_delim
19717 LN_S!$LN_S$ac_delim
19718 NM!$NM$ac_delim
19719 CMP!$CMP$ac_delim
19720 CP!$CP$ac_delim
19721 DATE!$DATE$ac_delim
19722 FIND!$FIND$ac_delim
19723 GREP!$GREP$ac_delim
19724 MKDIR!$MKDIR$ac_delim
19725 MV!$MV$ac_delim
19726 RANLIB!$RANLIB$ac_delim
19727 AR!$AR$ac_delim
19728 RM!$RM$ac_delim
19729 SED!$SED$ac_delim
19730 TAR!$TAR$ac_delim
19731 BINPWD!$BINPWD$ac_delim
19732 DOT!$DOT$ac_delim
19733 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19734 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19735 INSTALL_DATA!$INSTALL_DATA$ac_delim
19736 BZIP2!$BZIP2$ac_delim
19737 CAT!$CAT$ac_delim
19738 DOXYGEN!$DOXYGEN$ac_delim
19739 GROFF!$GROFF$ac_delim
19740 GZIPBIN!$GZIPBIN$ac_delim
19741 PDFROFF!$PDFROFF$ac_delim
19742 ZIP!$ZIP$ac_delim
19743 GO!$GO$ac_delim
19744 OCAMLC!$OCAMLC$ac_delim
19745 OCAMLOPT!$OCAMLOPT$ac_delim
19746 OCAMLDEP!$OCAMLDEP$ac_delim
19747 OCAMLDOC!$OCAMLDOC$ac_delim
19748 GAS!$GAS$ac_delim
19749 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19750 EGREP!$EGREP$ac_delim
19751 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19752 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19753 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19754 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19755 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19756 PYTHON!$PYTHON$ac_delim
19757 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19758 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19759 USE_OPROFILE!$USE_OPROFILE$ac_delim
19760 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19761 XML2CONFIG!$XML2CONFIG$ac_delim
19762 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19763 LIBXML2_INC!$LIBXML2_INC$ac_delim
19764 CXXCPP!$CXXCPP$ac_delim
19765 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19766 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19767 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19768 MMAP_FILE!$MMAP_FILE$ac_delim
19769 SHLIBEXT!$SHLIBEXT$ac_delim
19770 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19771 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19772 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19773 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19774 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19775 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19776 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19777 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19778 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19779 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19780 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19781 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19782 RPATH!$RPATH$ac_delim
19783 RDYNAMIC!$RDYNAMIC$ac_delim
19784 program_prefix!$program_prefix$ac_delim
19785 LIBOBJS!$LIBOBJS$ac_delim
19786 LTLIBOBJS!$LTLIBOBJS$ac_delim
19787 _ACEOF
19789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19790 break
19791 elif $ac_last_try; then
19792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19794 { (exit 1); exit 1; }; }
19795 else
19796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19797 fi
19798 done
19800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19801 if test -n "$ac_eof"; then
19802 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19803 ac_eof=`expr $ac_eof + 1`
19804 fi
19806 cat >>$CONFIG_STATUS <<_ACEOF
19807 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19809 _ACEOF
19810 sed '
19811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19812 s/^/s,@/; s/!/@,|#_!!_#|/
19813 :n
19814 t n
19815 s/'"$ac_delim"'$/,g/; t
19816 s/$/\\/; p
19817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19818 ' >>$CONFIG_STATUS <conf$$subs.sed
19819 rm -f conf$$subs.sed
19820 cat >>$CONFIG_STATUS <<_ACEOF
19821 CEOF$ac_eof
19822 _ACEOF
19825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19827 # trailing colons and then remove the whole line if VPATH becomes empty
19828 # (actually we leave an empty line to preserve line numbers).
19829 if test "x$srcdir" = x.; then
19830 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19831 s/:*\$(srcdir):*/:/
19832 s/:*\${srcdir}:*/:/
19833 s/:*@srcdir@:*/:/
19834 s/^\([^=]*=[ ]*\):*/\1/
19835 s/:*$//
19836 s/^[^=]*=[ ]*$//
19837 }'
19838 fi
19840 cat >>$CONFIG_STATUS <<\_ACEOF
19841 fi # test -n "$CONFIG_FILES"
19844 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19845 do
19846 case $ac_tag in
19847 :[FHLC]) ac_mode=$ac_tag; continue;;
19848 esac
19849 case $ac_mode$ac_tag in
19850 :[FHL]*:*);;
19851 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19852 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19853 { (exit 1); exit 1; }; };;
19854 :[FH]-) ac_tag=-:-;;
19855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19856 esac
19857 ac_save_IFS=$IFS
19858 IFS=:
19859 set x $ac_tag
19860 IFS=$ac_save_IFS
19861 shift
19862 ac_file=$1
19863 shift
19865 case $ac_mode in
19866 :L) ac_source=$1;;
19867 :[FH])
19868 ac_file_inputs=
19869 for ac_f
19870 do
19871 case $ac_f in
19872 -) ac_f="$tmp/stdin";;
19873 *) # Look for the file first in the build tree, then in the source tree
19874 # (if the path is not absolute). The absolute path cannot be DOS-style,
19875 # because $ac_f cannot contain `:'.
19876 test -f "$ac_f" ||
19877 case $ac_f in
19878 [\\/$]*) false;;
19879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19880 esac ||
19881 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19882 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19883 { (exit 1); exit 1; }; };;
19884 esac
19885 ac_file_inputs="$ac_file_inputs $ac_f"
19886 done
19888 # Let's still pretend it is `configure' which instantiates (i.e., don't
19889 # use $as_me), people would be surprised to read:
19890 # /* config.h. Generated by config.status. */
19891 configure_input="Generated from "`IFS=:
19892 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19893 if test x"$ac_file" != x-; then
19894 configure_input="$ac_file. $configure_input"
19895 { echo "$as_me:$LINENO: creating $ac_file" >&5
19896 echo "$as_me: creating $ac_file" >&6;}
19897 fi
19899 case $ac_tag in
19900 *:-:* | *:-) cat >"$tmp/stdin";;
19901 esac
19902 ;;
19903 esac
19905 ac_dir=`$as_dirname -- "$ac_file" ||
19906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19907 X"$ac_file" : 'X\(//\)[^/]' \| \
19908 X"$ac_file" : 'X\(//\)$' \| \
19909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19910 echo X"$ac_file" |
19911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19912 s//\1/
19913 q
19914 }
19915 /^X\(\/\/\)[^/].*/{
19916 s//\1/
19917 q
19918 }
19919 /^X\(\/\/\)$/{
19920 s//\1/
19921 q
19922 }
19923 /^X\(\/\).*/{
19924 s//\1/
19925 q
19926 }
19927 s/.*/./; q'`
19928 { as_dir="$ac_dir"
19929 case $as_dir in #(
19930 -*) as_dir=./$as_dir;;
19931 esac
19932 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19933 as_dirs=
19934 while :; do
19935 case $as_dir in #(
19936 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19937 *) as_qdir=$as_dir;;
19938 esac
19939 as_dirs="'$as_qdir' $as_dirs"
19940 as_dir=`$as_dirname -- "$as_dir" ||
19941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19942 X"$as_dir" : 'X\(//\)[^/]' \| \
19943 X"$as_dir" : 'X\(//\)$' \| \
19944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19945 echo X"$as_dir" |
19946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19947 s//\1/
19948 q
19949 }
19950 /^X\(\/\/\)[^/].*/{
19951 s//\1/
19952 q
19953 }
19954 /^X\(\/\/\)$/{
19955 s//\1/
19956 q
19957 }
19958 /^X\(\/\).*/{
19959 s//\1/
19960 q
19961 }
19962 s/.*/./; q'`
19963 test -d "$as_dir" && break
19964 done
19965 test -z "$as_dirs" || eval "mkdir $as_dirs"
19966 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19967 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19968 { (exit 1); exit 1; }; }; }
19969 ac_builddir=.
19971 case "$ac_dir" in
19972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19973 *)
19974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19975 # A ".." for each directory in $ac_dir_suffix.
19976 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19977 case $ac_top_builddir_sub in
19978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19980 esac ;;
19981 esac
19982 ac_abs_top_builddir=$ac_pwd
19983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19984 # for backward compatibility:
19985 ac_top_builddir=$ac_top_build_prefix
19987 case $srcdir in
19988 .) # We are building in place.
19989 ac_srcdir=.
19990 ac_top_srcdir=$ac_top_builddir_sub
19991 ac_abs_top_srcdir=$ac_pwd ;;
19992 [\\/]* | ?:[\\/]* ) # Absolute name.
19993 ac_srcdir=$srcdir$ac_dir_suffix;
19994 ac_top_srcdir=$srcdir
19995 ac_abs_top_srcdir=$srcdir ;;
19996 *) # Relative name.
19997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19998 ac_top_srcdir=$ac_top_build_prefix$srcdir
19999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20000 esac
20001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20004 case $ac_mode in
20005 :F)
20006 #
20007 # CONFIG_FILE
20008 #
20010 case $INSTALL in
20011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20013 esac
20014 _ACEOF
20016 cat >>$CONFIG_STATUS <<\_ACEOF
20017 # If the template does not know about datarootdir, expand it.
20018 # FIXME: This hack should be removed a few years after 2.60.
20019 ac_datarootdir_hack=; ac_datarootdir_seen=
20021 case `sed -n '/datarootdir/ {
20022 p
20023 q
20024 }
20025 /@datadir@/p
20026 /@docdir@/p
20027 /@infodir@/p
20028 /@localedir@/p
20029 /@mandir@/p
20030 ' $ac_file_inputs` in
20031 *datarootdir*) ac_datarootdir_seen=yes;;
20032 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20033 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20034 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20035 _ACEOF
20036 cat >>$CONFIG_STATUS <<_ACEOF
20037 ac_datarootdir_hack='
20038 s&@datadir@&$datadir&g
20039 s&@docdir@&$docdir&g
20040 s&@infodir@&$infodir&g
20041 s&@localedir@&$localedir&g
20042 s&@mandir@&$mandir&g
20043 s&\\\${datarootdir}&$datarootdir&g' ;;
20044 esac
20045 _ACEOF
20047 # Neutralize VPATH when `$srcdir' = `.'.
20048 # Shell code in configure.ac might set extrasub.
20049 # FIXME: do we really want to maintain this feature?
20050 cat >>$CONFIG_STATUS <<_ACEOF
20051 sed "$ac_vpsub
20052 $extrasub
20053 _ACEOF
20054 cat >>$CONFIG_STATUS <<\_ACEOF
20055 :t
20056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20057 s&@configure_input@&$configure_input&;t t
20058 s&@top_builddir@&$ac_top_builddir_sub&;t t
20059 s&@srcdir@&$ac_srcdir&;t t
20060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20061 s&@top_srcdir@&$ac_top_srcdir&;t t
20062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20063 s&@builddir@&$ac_builddir&;t t
20064 s&@abs_builddir@&$ac_abs_builddir&;t t
20065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20066 s&@INSTALL@&$ac_INSTALL&;t t
20067 $ac_datarootdir_hack
20068 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
20070 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20073 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20074 which seems to be undefined. Please make sure it is defined." >&5
20075 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20076 which seems to be undefined. Please make sure it is defined." >&2;}
20078 rm -f "$tmp/stdin"
20079 case $ac_file in
20080 -) cat "$tmp/out"; rm -f "$tmp/out";;
20081 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20082 esac
20083 ;;
20084 :H)
20085 #
20086 # CONFIG_HEADER
20087 #
20088 _ACEOF
20090 # Transform confdefs.h into a sed script `conftest.defines', that
20091 # substitutes the proper values into config.h.in to produce config.h.
20092 rm -f conftest.defines conftest.tail
20093 # First, append a space to every undef/define line, to ease matching.
20094 echo 's/$/ /' >conftest.defines
20095 # Then, protect against being on the right side of a sed subst, or in
20096 # an unquoted here document, in config.status. If some macros were
20097 # called several times there might be several #defines for the same
20098 # symbol, which is useless. But do not sort them, since the last
20099 # AC_DEFINE must be honored.
20100 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20101 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20102 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20103 # PARAMS is the parameter list in the macro definition--in most cases, it's
20104 # just an empty string.
20105 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20106 ac_dB='\\)[ (].*,\\1define\\2'
20107 ac_dC=' '
20108 ac_dD=' ,'
20110 uniq confdefs.h |
20111 sed -n '
20112 t rset
20113 :rset
20114 s/^[ ]*#[ ]*define[ ][ ]*//
20115 t ok
20116 d
20117 :ok
20118 s/[\\&,]/\\&/g
20119 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20120 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20121 ' >>conftest.defines
20123 # Remove the space that was appended to ease matching.
20124 # Then replace #undef with comments. This is necessary, for
20125 # example, in the case of _POSIX_SOURCE, which is predefined and required
20126 # on some systems where configure will not decide to define it.
20127 # (The regexp can be short, since the line contains either #define or #undef.)
20128 echo 's/ $//
20129 s,^[ #]*u.*,/* & */,' >>conftest.defines
20131 # Break up conftest.defines:
20132 ac_max_sed_lines=50
20134 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20135 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20136 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20137 # et cetera.
20138 ac_in='$ac_file_inputs'
20139 ac_out='"$tmp/out1"'
20140 ac_nxt='"$tmp/out2"'
20142 while :
20143 do
20144 # Write a here document:
20145 cat >>$CONFIG_STATUS <<_ACEOF
20146 # First, check the format of the line:
20147 cat >"\$tmp/defines.sed" <<\\CEOF
20148 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20149 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20150 b
20151 :def
20152 _ACEOF
20153 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20154 echo 'CEOF
20155 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20156 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20157 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20158 grep . conftest.tail >/dev/null || break
20159 rm -f conftest.defines
20160 mv conftest.tail conftest.defines
20161 done
20162 rm -f conftest.defines conftest.tail
20164 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20165 cat >>$CONFIG_STATUS <<\_ACEOF
20166 if test x"$ac_file" != x-; then
20167 echo "/* $configure_input */" >"$tmp/config.h"
20168 cat "$ac_result" >>"$tmp/config.h"
20169 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20170 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20171 echo "$as_me: $ac_file is unchanged" >&6;}
20172 else
20173 rm -f $ac_file
20174 mv "$tmp/config.h" $ac_file
20175 fi
20176 else
20177 echo "/* $configure_input */"
20178 cat "$ac_result"
20179 fi
20180 rm -f "$tmp/out12"
20181 ;;
20183 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20184 echo "$as_me: executing $ac_file commands" >&6;}
20185 ;;
20186 esac
20189 case $ac_file$ac_mode in
20190 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20192 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20194 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20196 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20198 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20199 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20200 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20201 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20202 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20203 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20204 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20205 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20206 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20207 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20208 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20209 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20210 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20211 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20212 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20213 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20215 esac
20216 done # for ac_tag
20219 { (exit 0); exit 0; }
20220 _ACEOF
20221 chmod +x $CONFIG_STATUS
20222 ac_clean_files=$ac_clean_files_save
20225 # configure is writing to config.log, and then calls config.status.
20226 # config.status does its own redirection, appending to config.log.
20227 # Unfortunately, on DOS this fails, as config.log is still kept open
20228 # by configure, so config.status won't be able to write to it; its
20229 # output is simply discarded. So we exec the FD to /dev/null,
20230 # effectively closing config.log, so it can be properly (re)opened and
20231 # appended to by config.status. When coming back to configure, we
20232 # need to make the FD available again.
20233 if test "$no_create" != yes; then
20234 ac_cs_success=:
20235 ac_config_status_args=
20236 test "$silent" = yes &&
20237 ac_config_status_args="$ac_config_status_args --quiet"
20238 exec 5>/dev/null
20239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20240 exec 5>>config.log
20241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20242 # would make configure fail if this is the last instruction.
20243 $ac_cs_success || { (exit 1); exit 1; }
20244 fi
20246 #
20247 # CONFIG_SUBDIRS section.
20248 #
20249 if test "$no_recursion" != yes; then
20251 # Remove --cache-file and --srcdir arguments so they do not pile up.
20252 ac_sub_configure_args=
20253 ac_prev=
20254 eval "set x $ac_configure_args"
20255 shift
20256 for ac_arg
20257 do
20258 if test -n "$ac_prev"; then
20259 ac_prev=
20260 continue
20261 fi
20262 case $ac_arg in
20263 -cache-file | --cache-file | --cache-fil | --cache-fi \
20264 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20265 ac_prev=cache_file ;;
20266 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20267 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20268 | --c=*)
20269 ;;
20270 --config-cache | -C)
20271 ;;
20272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20273 ac_prev=srcdir ;;
20274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20275 ;;
20276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20277 ac_prev=prefix ;;
20278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20279 ;;
20280 *)
20281 case $ac_arg in
20282 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20283 esac
20284 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20285 esac
20286 done
20288 # Always prepend --prefix to ensure using the same prefix
20289 # in subdir configurations.
20290 ac_arg="--prefix=$prefix"
20291 case $ac_arg in
20292 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20293 esac
20294 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20296 ac_popdir=`pwd`
20297 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20299 # Do not complain, so a configure script can configure whichever
20300 # parts of a large source tree are present.
20301 test -d "$srcdir/$ac_dir" || continue
20303 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20304 echo "$as_me:$LINENO: $ac_msg" >&5
20305 echo "$ac_msg" >&6
20306 { as_dir="$ac_dir"
20307 case $as_dir in #(
20308 -*) as_dir=./$as_dir;;
20309 esac
20310 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20311 as_dirs=
20312 while :; do
20313 case $as_dir in #(
20314 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20315 *) as_qdir=$as_dir;;
20316 esac
20317 as_dirs="'$as_qdir' $as_dirs"
20318 as_dir=`$as_dirname -- "$as_dir" ||
20319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20320 X"$as_dir" : 'X\(//\)[^/]' \| \
20321 X"$as_dir" : 'X\(//\)$' \| \
20322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20323 echo X"$as_dir" |
20324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20325 s//\1/
20326 q
20327 }
20328 /^X\(\/\/\)[^/].*/{
20329 s//\1/
20330 q
20331 }
20332 /^X\(\/\/\)$/{
20333 s//\1/
20334 q
20335 }
20336 /^X\(\/\).*/{
20337 s//\1/
20338 q
20339 }
20340 s/.*/./; q'`
20341 test -d "$as_dir" && break
20342 done
20343 test -z "$as_dirs" || eval "mkdir $as_dirs"
20344 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20345 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20346 { (exit 1); exit 1; }; }; }
20347 ac_builddir=.
20349 case "$ac_dir" in
20350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20351 *)
20352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20353 # A ".." for each directory in $ac_dir_suffix.
20354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20355 case $ac_top_builddir_sub in
20356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20358 esac ;;
20359 esac
20360 ac_abs_top_builddir=$ac_pwd
20361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20362 # for backward compatibility:
20363 ac_top_builddir=$ac_top_build_prefix
20365 case $srcdir in
20366 .) # We are building in place.
20367 ac_srcdir=.
20368 ac_top_srcdir=$ac_top_builddir_sub
20369 ac_abs_top_srcdir=$ac_pwd ;;
20370 [\\/]* | ?:[\\/]* ) # Absolute name.
20371 ac_srcdir=$srcdir$ac_dir_suffix;
20372 ac_top_srcdir=$srcdir
20373 ac_abs_top_srcdir=$srcdir ;;
20374 *) # Relative name.
20375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20376 ac_top_srcdir=$ac_top_build_prefix$srcdir
20377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20378 esac
20379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20382 cd "$ac_dir"
20384 # Check for guested configure; otherwise get Cygnus style configure.
20385 if test -f "$ac_srcdir/configure.gnu"; then
20386 ac_sub_configure=$ac_srcdir/configure.gnu
20387 elif test -f "$ac_srcdir/configure"; then
20388 ac_sub_configure=$ac_srcdir/configure
20389 elif test -f "$ac_srcdir/configure.in"; then
20390 # This should be Cygnus configure.
20391 ac_sub_configure=$ac_aux_dir/configure
20392 else
20393 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20394 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20395 ac_sub_configure=
20396 fi
20398 # The recursion is here.
20399 if test -n "$ac_sub_configure"; then
20400 # Make the cache file name correct relative to the subdirectory.
20401 case $cache_file in
20402 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20403 *) # Relative name.
20404 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20405 esac
20407 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20408 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20409 # The eval makes quoting arguments work.
20410 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20411 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20412 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20413 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20414 { (exit 1); exit 1; }; }
20415 fi
20417 cd "$ac_popdir"
20418 done
20419 fi