Add DwarfUnit::isDwoUnit and use it to generalize string creation
[oota-llvm.git] / configure
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 ## --------------------- ##
16
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
30
31
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
39
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
52
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
59
60
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"
69
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
81
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
93
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='+ '
101
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
114
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
122
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
128
129
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'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
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
160
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 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
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
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
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
234
235
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
253
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
273
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 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
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
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
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; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
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
347
348
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
356
357
358 fi
359
360 fi
361
362
363
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 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
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
411
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 }
418
419
420
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" || {
425
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; }; }
454
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 }
462
463
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
469
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
480
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
487
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
511
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
518
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
532
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'"
535
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'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
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`
547
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}
560
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/'
567
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"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_VERSION_MAJOR
643 LLVM_VERSION_MINOR
644 LLVM_VERSION_PATCH
645 LLVM_VERSION_SUFFIX
646 LLVM_COPYRIGHT
647 CC
648 CFLAGS
649 LDFLAGS
650 CPPFLAGS
651 ac_ct_CC
652 EXEEXT
653 OBJEXT
654 CXX
655 CXXFLAGS
656 ac_ct_CXX
657 CPP
658 subdirs
659 ENABLE_POLLY
660 LLVM_HAS_POLLY
661 build
662 build_cpu
663 build_vendor
664 build_os
665 host
666 host_cpu
667 host_vendor
668 host_os
669 target
670 target_cpu
671 target_vendor
672 target_os
673 OS
674 HOST_OS
675 TARGET_OS
676 LINKALL
677 NOLINKALL
678 LLVM_ON_UNIX
679 LLVM_ON_WIN32
680 ARCH
681 LLVM_NATIVE_ARCH
682 HOST_ARCH
683 LLVM_CROSS_COMPILING
684 BUILD_CC
685 BUILD_EXEEXT
686 BUILD_CXX
687 CVSBUILD
688 ENABLE_LIBCPP
689 ENABLE_CXX1Y
690 ENABLE_SPLIT_DWARF
691 ENABLE_CLANG_ARCMT
692 CLANG_PLUGIN_SUPPORT
693 ENABLE_CLANG_STATIC_ANALYZER
694 ENABLE_OPTIMIZED
695 ENABLE_PROFILING
696 DISABLE_ASSERTIONS
697 ENABLE_WERROR
698 ENABLE_EXPENSIVE_CHECKS
699 EXPENSIVE_CHECKS
700 DEBUG_RUNTIME
701 DEBUG_SYMBOLS
702 KEEP_SYMBOLS
703 JIT
704 TARGET_HAS_JIT
705 TARGETS_WITH_JIT
706 ENABLE_DOCS
707 ENABLE_DOXYGEN
708 LLVM_ENABLE_THREADS
709 ENABLE_PTHREADS
710 LLVM_ENABLE_ZLIB
711 ENABLE_PIC
712 ENABLE_SHARED
713 ENABLE_EMBED_STDCXX
714 ENABLE_TIMESTAMPS
715 ALL_TARGETS
716 TARGETS_TO_BUILD
717 LLVM_ENUM_TARGETS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
721 OPTIMIZE_OPTION
722 EXTRA_OPTIONS
723 EXTRA_LD_OPTIONS
724 CLANG_SRC_ROOT
725 BINUTILS_INCDIR
726 ENABLE_TERMINFO
727 INTERNAL_PREFIX
728 ifGNUmake
729 LN_S
730 NM
731 CMP
732 CP
733 DATE
734 FIND
735 GREP
736 MKDIR
737 MV
738 RANLIB
739 AR
740 RM
741 SED
742 TAR
743 BINPWD
744 DOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 GO
756 OCAMLFIND
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 EGREP
760 NO_VARIADIC_MACROS
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
764 NO_UNINITIALIZED
765 PYTHON
766 HAVE_DLOPEN
767 HAVE_TERMINFO
768 USE_OPROFILE
769 USE_INTEL_JITEVENTS
770 XML2CONFIG
771 LIBXML2_LIBS
772 LIBXML2_INC
773 HAVE_PTHREAD
774 HAVE_LIBZ
775 HUGE_VAL_SANITY
776 MMAP_FILE
777 SHLIBEXT
778 LLVM_PREFIX
779 LLVM_BINDIR
780 LLVM_DATADIR
781 LLVM_DOCSDIR
782 LLVM_ETCDIR
783 LLVM_INCLUDEDIR
784 LLVM_INFODIR
785 LLVM_MANDIR
786 LLVM_CONFIGTIME
787 BINDINGS_TO_BUILD
788 HAVE_OCAMLOPT
789 HAVE_OCAML_OUNIT
790 OCAML_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
792 RPATH
793 RDYNAMIC
794 program_prefix
795 LIBOBJS
796 LTLIBOBJS'
797 ac_subst_files=''
798       ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 CPPFLAGS
805 CXX
806 CXXFLAGS
807 CCC
808 CPP'
809 ac_subdirs_all='projects/test-suite
810 projects/llvm-test
811 projects/poolalloc
812 projects/llvm-poolalloc
813 projects/safecode
814 tools/polly'
815
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866   # If the previous option needs an argument, assign it.
867   if test -n "$ac_prev"; then
868     eval $ac_prev=\$ac_option
869     ac_prev=
870     continue
871   fi
872
873   case $ac_option in
874   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875   *)    ac_optarg=yes ;;
876   esac
877
878   # Accept the important Cygnus configure options, so we can diagnose typos.
879
880   case $ac_dashdash$ac_option in
881   --)
882     ac_dashdash=yes ;;
883
884   -bindir | --bindir | --bindi | --bind | --bin | --bi)
885     ac_prev=bindir ;;
886   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887     bindir=$ac_optarg ;;
888
889   -build | --build | --buil | --bui | --bu)
890     ac_prev=build_alias ;;
891   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892     build_alias=$ac_optarg ;;
893
894   -cache-file | --cache-file | --cache-fil | --cache-fi \
895   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896     ac_prev=cache_file ;;
897   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899     cache_file=$ac_optarg ;;
900
901   --config-cache | -C)
902     cache_file=config.cache ;;
903
904   -datadir | --datadir | --datadi | --datad)
905     ac_prev=datadir ;;
906   -datadir=* | --datadir=* | --datadi=* | --datad=*)
907     datadir=$ac_optarg ;;
908
909   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910   | --dataroo | --dataro | --datar)
911     ac_prev=datarootdir ;;
912   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914     datarootdir=$ac_optarg ;;
915
916   -disable-* | --disable-*)
917     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918     # Reject names that are not valid shell variable names.
919     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
920       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
921    { (exit 1); exit 1; }; }
922     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
923     eval enable_$ac_feature=no ;;
924
925   -docdir | --docdir | --docdi | --doc | --do)
926     ac_prev=docdir ;;
927   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928     docdir=$ac_optarg ;;
929
930   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931     ac_prev=dvidir ;;
932   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933     dvidir=$ac_optarg ;;
934
935   -enable-* | --enable-*)
936     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940    { (exit 1); exit 1; }; }
941     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942     eval enable_$ac_feature=\$ac_optarg ;;
943
944   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946   | --exec | --exe | --ex)
947     ac_prev=exec_prefix ;;
948   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950   | --exec=* | --exe=* | --ex=*)
951     exec_prefix=$ac_optarg ;;
952
953   -gas | --gas | --ga | --g)
954     # Obsolete; use --with-gas.
955     with_gas=yes ;;
956
957   -help | --help | --hel | --he | -h)
958     ac_init_help=long ;;
959   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960     ac_init_help=recursive ;;
961   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962     ac_init_help=short ;;
963
964   -host | --host | --hos | --ho)
965     ac_prev=host_alias ;;
966   -host=* | --host=* | --hos=* | --ho=*)
967     host_alias=$ac_optarg ;;
968
969   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970     ac_prev=htmldir ;;
971   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972   | --ht=*)
973     htmldir=$ac_optarg ;;
974
975   -includedir | --includedir | --includedi | --included | --include \
976   | --includ | --inclu | --incl | --inc)
977     ac_prev=includedir ;;
978   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979   | --includ=* | --inclu=* | --incl=* | --inc=*)
980     includedir=$ac_optarg ;;
981
982   -infodir | --infodir | --infodi | --infod | --info | --inf)
983     ac_prev=infodir ;;
984   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985     infodir=$ac_optarg ;;
986
987   -libdir | --libdir | --libdi | --libd)
988     ac_prev=libdir ;;
989   -libdir=* | --libdir=* | --libdi=* | --libd=*)
990     libdir=$ac_optarg ;;
991
992   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993   | --libexe | --libex | --libe)
994     ac_prev=libexecdir ;;
995   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996   | --libexe=* | --libex=* | --libe=*)
997     libexecdir=$ac_optarg ;;
998
999   -localedir | --localedir | --localedi | --localed | --locale)
1000     ac_prev=localedir ;;
1001   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002     localedir=$ac_optarg ;;
1003
1004   -localstatedir | --localstatedir | --localstatedi | --localstated \
1005   | --localstate | --localstat | --localsta | --localst | --locals)
1006     ac_prev=localstatedir ;;
1007   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009     localstatedir=$ac_optarg ;;
1010
1011   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012     ac_prev=mandir ;;
1013   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014     mandir=$ac_optarg ;;
1015
1016   -nfp | --nfp | --nf)
1017     # Obsolete; use --without-fp.
1018     with_fp=no ;;
1019
1020   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021   | --no-cr | --no-c | -n)
1022     no_create=yes ;;
1023
1024   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026     no_recursion=yes ;;
1027
1028   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030   | --oldin | --oldi | --old | --ol | --o)
1031     ac_prev=oldincludedir ;;
1032   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035     oldincludedir=$ac_optarg ;;
1036
1037   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038     ac_prev=prefix ;;
1039   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040     prefix=$ac_optarg ;;
1041
1042   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043   | --program-pre | --program-pr | --program-p)
1044     ac_prev=program_prefix ;;
1045   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047     program_prefix=$ac_optarg ;;
1048
1049   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050   | --program-suf | --program-su | --program-s)
1051     ac_prev=program_suffix ;;
1052   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054     program_suffix=$ac_optarg ;;
1055
1056   -program-transform-name | --program-transform-name \
1057   | --program-transform-nam | --program-transform-na \
1058   | --program-transform-n | --program-transform- \
1059   | --program-transform | --program-transfor \
1060   | --program-transfo | --program-transf \
1061   | --program-trans | --program-tran \
1062   | --progr-tra | --program-tr | --program-t)
1063     ac_prev=program_transform_name ;;
1064   -program-transform-name=* | --program-transform-name=* \
1065   | --program-transform-nam=* | --program-transform-na=* \
1066   | --program-transform-n=* | --program-transform-=* \
1067   | --program-transform=* | --program-transfor=* \
1068   | --program-transfo=* | --program-transf=* \
1069   | --program-trans=* | --program-tran=* \
1070   | --progr-tra=* | --program-tr=* | --program-t=*)
1071     program_transform_name=$ac_optarg ;;
1072
1073   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074     ac_prev=pdfdir ;;
1075   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076     pdfdir=$ac_optarg ;;
1077
1078   -psdir | --psdir | --psdi | --psd | --ps)
1079     ac_prev=psdir ;;
1080   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081     psdir=$ac_optarg ;;
1082
1083   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084   | -silent | --silent | --silen | --sile | --sil)
1085     silent=yes ;;
1086
1087   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088     ac_prev=sbindir ;;
1089   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090   | --sbi=* | --sb=*)
1091     sbindir=$ac_optarg ;;
1092
1093   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095   | --sharedst | --shareds | --shared | --share | --shar \
1096   | --sha | --sh)
1097     ac_prev=sharedstatedir ;;
1098   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101   | --sha=* | --sh=*)
1102     sharedstatedir=$ac_optarg ;;
1103
1104   -site | --site | --sit)
1105     ac_prev=site ;;
1106   -site=* | --site=* | --sit=*)
1107     site=$ac_optarg ;;
1108
1109   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110     ac_prev=srcdir ;;
1111   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112     srcdir=$ac_optarg ;;
1113
1114   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115   | --syscon | --sysco | --sysc | --sys | --sy)
1116     ac_prev=sysconfdir ;;
1117   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119     sysconfdir=$ac_optarg ;;
1120
1121   -target | --target | --targe | --targ | --tar | --ta | --t)
1122     ac_prev=target_alias ;;
1123   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124     target_alias=$ac_optarg ;;
1125
1126   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127     verbose=yes ;;
1128
1129   -version | --version | --versio | --versi | --vers | -V)
1130     ac_init_version=: ;;
1131
1132   -with-* | --with-*)
1133     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1136       { echo "$as_me: error: invalid package name: $ac_package" >&2
1137    { (exit 1); exit 1; }; }
1138     ac_package=`echo $ac_package| sed 's/-/_/g'`
1139     eval with_$ac_package=\$ac_optarg ;;
1140
1141   -without-* | --without-*)
1142     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145       { echo "$as_me: error: invalid package name: $ac_package" >&2
1146    { (exit 1); exit 1; }; }
1147     ac_package=`echo $ac_package | sed 's/-/_/g'`
1148     eval with_$ac_package=no ;;
1149
1150   --x)
1151     # Obsolete; use --with-x.
1152     with_x=yes ;;
1153
1154   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155   | --x-incl | --x-inc | --x-in | --x-i)
1156     ac_prev=x_includes ;;
1157   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159     x_includes=$ac_optarg ;;
1160
1161   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163     ac_prev=x_libraries ;;
1164   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166     x_libraries=$ac_optarg ;;
1167
1168   -*) { echo "$as_me: error: unrecognized option: $ac_option
1169 Try \`$0 --help' for more information." >&2
1170    { (exit 1); exit 1; }; }
1171     ;;
1172
1173   *=*)
1174     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1177       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1178    { (exit 1); exit 1; }; }
1179     eval $ac_envvar=\$ac_optarg
1180     export $ac_envvar ;;
1181
1182   *)
1183     # FIXME: should be removed in autoconf 3.0.
1184     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188     ;;
1189
1190   esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195   { echo "$as_me: error: missing argument to $ac_option" >&2
1196    { (exit 1); exit 1; }; }
1197 fi
1198
1199 # Be sure to have absolute directory names.
1200 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201                 datadir sysconfdir sharedstatedir localstatedir includedir \
1202                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203                 libdir localedir mandir
1204 do
1205   eval ac_val=\$$ac_var
1206   case $ac_val in
1207     [\\/$]* | ?:[\\/]* )  continue;;
1208     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209   esac
1210   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1211    { (exit 1); exit 1; }; }
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223   if test "x$build_alias" = x; then
1224     cross_compiling=maybe
1225     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226     If a cross compiler is detected then cross compile mode will be used." >&2
1227   elif test "x$build_alias" != "x$host_alias"; then
1228     cross_compiling=yes
1229   fi
1230 fi
1231
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235 test "$silent" = yes && exec 6>/dev/null
1236
1237
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241   { echo "$as_me: error: Working directory cannot be determined" >&2
1242    { (exit 1); exit 1; }; }
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244   { echo "$as_me: error: pwd does not report name of working directory" >&2
1245    { (exit 1); exit 1; }; }
1246
1247
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250   ac_srcdir_defaulted=yes
1251   # Try the directory containing this script, then the parent directory.
1252   ac_confdir=`$as_dirname -- "$0" ||
1253 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254          X"$0" : 'X\(//\)[^/]' \| \
1255          X"$0" : 'X\(//\)$' \| \
1256          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1257 echo X"$0" |
1258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259             s//\1/
1260             q
1261           }
1262           /^X\(\/\/\)[^/].*/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\).*/{
1271             s//\1/
1272             q
1273           }
1274           s/.*/./; q'`
1275   srcdir=$ac_confdir
1276   if test ! -r "$srcdir/$ac_unique_file"; then
1277     srcdir=..
1278   fi
1279 else
1280   ac_srcdir_defaulted=no
1281 fi
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1285    { (exit 1); exit 1; }; }
1286 fi
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288 ac_abs_confdir=`(
1289         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1290    { (exit 1); exit 1; }; }
1291         pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294   srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_env_${ac_var}_value=\$${ac_var}
1305   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313   # Omit some internal or obsolete options to make the list less imposing.
1314   # This message is too long to be a string in the A/UX 3.1 sh.
1315   cat <<_ACEOF
1316 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326   -h, --help              display this help and exit
1327       --help=short        display options specific to this package
1328       --help=recursive    display the short help of all the included packages
1329   -V, --version           display version information and exit
1330   -q, --quiet, --silent   do not print \`checking...' messages
1331       --cache-file=FILE   cache test results in FILE [disabled]
1332   -C, --config-cache      alias for \`--cache-file=config.cache'
1333   -n, --no-create         do not create output files
1334       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337   --prefix=PREFIX         install architecture-independent files in PREFIX
1338                           [$ac_default_prefix]
1339   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                           [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350   --bindir=DIR           user executables [EPREFIX/bin]
1351   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1352   --libexecdir=DIR       program executables [EPREFIX/libexec]
1353   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1354   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1355   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1356   --libdir=DIR           object code libraries [EPREFIX/lib]
1357   --includedir=DIR       C header files [PREFIX/include]
1358   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1359   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1360   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1361   --infodir=DIR          info documentation [DATAROOTDIR/info]
1362   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1363   --mandir=DIR           man documentation [DATAROOTDIR/man]
1364   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1365   --htmldir=DIR          html documentation [DOCDIR]
1366   --dvidir=DIR           dvi documentation [DOCDIR]
1367   --pdfdir=DIR           pdf documentation [DOCDIR]
1368   --psdir=DIR            ps documentation [DOCDIR]
1369 _ACEOF
1370
1371   cat <<\_ACEOF
1372
1373 System types:
1374   --build=BUILD     configure for building on BUILD [guessed]
1375   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376   --target=TARGET   configure for building compilers for TARGET [HOST]
1377 _ACEOF
1378 fi
1379
1380 if test -n "$ac_init_help"; then
1381   case $ac_init_help in
1382      short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1383    esac
1384   cat <<\_ACEOF
1385
1386 Optional Features:
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --enable-polly          Use polly if available (default is YES)
1390   --enable-libcpp         Use libc++ if available (default is NO)
1391   --enable-compiler-version-checks
1392                           Check the version of the host compiler (default is
1393                           YES)
1394   --enable-cxx1y          Use c++1y if available (default is NO)
1395   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1396   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1397   --enable-clang-plugin-support
1398                           Enable plugin support in clang (default is YES)
1399   --enable-clang-static-analyzer
1400                           Enable building of clang Static Analyzer (default is
1401                           YES)
1402   --enable-optimized      Compile with optimizations enabled (default is NO)
1403   --enable-profiling      Compile with profiling enabled (default is NO)
1404   --enable-assertions     Compile with assertion checks enabled (default is
1405                           YES)
1406   --enable-werror         Compile with -Werror enabled (default is NO)
1407   --enable-expensive-checks
1408                           Compile with expensive debug checks enabled (default
1409                           is NO)
1410   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1411                           NO)
1412   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1413                           optimization is on and YES if it's off)
1414   --enable-keep-symbols   Do not strip installed executables)
1415   --enable-jit            Enable Just In Time Compiling (default is YES)
1416   --enable-docs           Build documents (default is YES)
1417   --enable-doxygen        Build doxygen documentation (default is NO)
1418   --enable-threads        Use threads if available (default is YES)
1419   --enable-pthreads       Use pthreads if available (default is YES)
1420   --enable-zlib           Use zlib for compression/decompression if available
1421                           (default is YES)
1422   --enable-pic            Build LLVM with Position Independent Code (default
1423                           is YES)
1424   --enable-shared         Build a shared library and link tools against it
1425                           (default is NO)
1426   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1427                           Win32 DLL (default is NO)
1428   --enable-timestamps     Enable embedding timestamp information in build
1429                           (default is YES)
1430   --enable-backtraces     Enable embedding backtraces on crash (default is
1431                           YES)
1432   --enable-crash-overrides
1433                           Enable crash handling overrides (default is YES)
1434   --enable-targets        Build specific host targets: all or
1435                           target1,target2,... Valid targets are: host, x86,
1436                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1437                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1438                           cpp (default=all)
1439   --enable-experimental-targets
1440                           Build experimental host targets: disable or
1441                           target1,target2,... (default=disable)
1442   --enable-bindings       Build specific language bindings:
1443                           all,auto,none,{binding-name} (default=auto)
1444   --enable-terminfo       Query the terminfo database if available (default is
1445                           YES)
1446   --enable-libedit        Use libedit if available (default is YES)
1447   --enable-libffi         Check for the presence of libffi (default is NO)
1448
1449 Optional Packages:
1450   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1451   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1452   --with-optimize-option  Select the compiler options to use for optimized
1453                           builds
1454   --with-extra-options    Specify additional options to compile LLVM with
1455   --with-extra-ld-options Specify additional options to link LLVM with
1456   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1457                           is stdlib)
1458   --with-clang-srcdir     Directory to the out-of-tree Clang source
1459   --with-clang-resource-dir
1460                           Relative directory from the Clang binary for
1461                           resource files
1462   --with-c-include-dirs   Colon separated list of directories clang will
1463                           search for headers
1464   --with-gcc-toolchain    Directory where gcc is installed.
1465   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1466   --with-binutils-include Specify path to binutils/include/ containing
1467                           plugin-api.h file for gold plugin.
1468   --with-bug-report-url   Specify the URL where bug reports should be
1469                           submitted (default=http://llvm.org/bugs/)
1470   --with-internal-prefix  Installation directory for internal files
1471   --with-python           path to python
1472   --with-oprofile=<prefix>
1473                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1474   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1475
1476
1477 Some influential environment variables:
1478   CC          C compiler command
1479   CFLAGS      C compiler flags
1480   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1481               nonstandard directory <lib dir>
1482   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1483               you have headers in a nonstandard directory <include dir>
1484   CXX         C++ compiler command
1485   CXXFLAGS    C++ compiler flags
1486   CPP         C preprocessor
1487
1488 Use these variables to override the choices made by `configure' or to help
1489 it to find libraries and programs with nonstandard names/locations.
1490
1491 Report bugs to <http://llvm.org/bugs/>.
1492 _ACEOF
1493 ac_status=$?
1494 fi
1495
1496 if test "$ac_init_help" = "recursive"; then
1497   # If there are subdirs, report their specific --help.
1498   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499     test -d "$ac_dir" || continue
1500     ac_builddir=.
1501
1502 case "$ac_dir" in
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *)
1505   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1506   # A ".." for each directory in $ac_dir_suffix.
1507   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1508   case $ac_top_builddir_sub in
1509   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511   esac ;;
1512 esac
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1517
1518 case $srcdir in
1519   .)  # We are building in place.
1520     ac_srcdir=.
1521     ac_top_srcdir=$ac_top_builddir_sub
1522     ac_abs_top_srcdir=$ac_pwd ;;
1523   [\\/]* | ?:[\\/]* )  # Absolute name.
1524     ac_srcdir=$srcdir$ac_dir_suffix;
1525     ac_top_srcdir=$srcdir
1526     ac_abs_top_srcdir=$srcdir ;;
1527   *) # Relative name.
1528     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529     ac_top_srcdir=$ac_top_build_prefix$srcdir
1530     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 esac
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533
1534     cd "$ac_dir" || { ac_status=$?; continue; }
1535     # Check for guested configure.
1536     if test -f "$ac_srcdir/configure.gnu"; then
1537       echo &&
1538       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539     elif test -f "$ac_srcdir/configure"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure" --help=recursive
1542     else
1543       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544     fi || ac_status=$?
1545     cd "$ac_pwd" || { ac_status=$?; break; }
1546   done
1547 fi
1548
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551   cat <<\_ACEOF
1552 LLVM configure 3.6.0svn
1553 generated by GNU Autoconf 2.60
1554
1555 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1556 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1559
1560 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1561 _ACEOF
1562   exit
1563 fi
1564 cat >config.log <<_ACEOF
1565 This file contains any messages produced by compilers while
1566 running configure, to aid debugging if configure makes a mistake.
1567
1568 It was created by LLVM $as_me 3.6.0svn, which was
1569 generated by GNU Autoconf 2.60.  Invocation command line was
1570
1571   $ $0 $@
1572
1573 _ACEOF
1574 exec 5>>config.log
1575 {
1576 cat <<_ASUNAME
1577 ## --------- ##
1578 ## Platform. ##
1579 ## --------- ##
1580
1581 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1582 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1583 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1584 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1585 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1586
1587 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1588 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1589
1590 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1591 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1592 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1593 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1594 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1595 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1596 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1597
1598 _ASUNAME
1599
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1602 do
1603   IFS=$as_save_IFS
1604   test -z "$as_dir" && as_dir=.
1605   echo "PATH: $as_dir"
1606 done
1607 IFS=$as_save_IFS
1608
1609 } >&5
1610
1611 cat >&5 <<_ACEOF
1612
1613
1614 ## ----------- ##
1615 ## Core tests. ##
1616 ## ----------- ##
1617
1618 _ACEOF
1619
1620
1621 # Keep a trace of the command line.
1622 # Strip out --no-create and --no-recursion so they do not pile up.
1623 # Strip out --silent because we don't want to record it for future runs.
1624 # Also quote any args containing shell meta-characters.
1625 # Make two passes to allow for proper duplicate-argument suppression.
1626 ac_configure_args=
1627 ac_configure_args0=
1628 ac_configure_args1=
1629 ac_must_keep_next=false
1630 for ac_pass in 1 2
1631 do
1632   for ac_arg
1633   do
1634     case $ac_arg in
1635     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1636     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637     | -silent | --silent | --silen | --sile | --sil)
1638       continue ;;
1639     *\'*)
1640       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1641     esac
1642     case $ac_pass in
1643     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1644     2)
1645       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1646       if test $ac_must_keep_next = true; then
1647         ac_must_keep_next=false # Got value, back to normal.
1648       else
1649         case $ac_arg in
1650           *=* | --config-cache | -C | -disable-* | --disable-* \
1651           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1652           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1653           | -with-* | --with-* | -without-* | --without-* | --x)
1654             case "$ac_configure_args0 " in
1655               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1656             esac
1657             ;;
1658           -* ) ac_must_keep_next=true ;;
1659         esac
1660       fi
1661       ac_configure_args="$ac_configure_args '$ac_arg'"
1662       ;;
1663     esac
1664   done
1665 done
1666 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1667 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1668
1669 # When interrupted or exit'd, cleanup temporary files, and complete
1670 # config.log.  We remove comments because anyway the quotes in there
1671 # would cause problems or look ugly.
1672 # WARNING: Use '\'' to represent an apostrophe within the trap.
1673 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1674 trap 'exit_status=$?
1675   # Save into config.log some information that might help in debugging.
1676   {
1677     echo
1678
1679     cat <<\_ASBOX
1680 ## ---------------- ##
1681 ## Cache variables. ##
1682 ## ---------------- ##
1683 _ASBOX
1684     echo
1685     # The following way of writing the cache mishandles newlines in values,
1686 (
1687   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1688     eval ac_val=\$$ac_var
1689     case $ac_val in #(
1690     *${as_nl}*)
1691       case $ac_var in #(
1692       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1693 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1694       esac
1695       case $ac_var in #(
1696       _ | IFS | as_nl) ;; #(
1697       *) $as_unset $ac_var ;;
1698       esac ;;
1699     esac
1700   done
1701   (set) 2>&1 |
1702     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1703     *${as_nl}ac_space=\ *)
1704       sed -n \
1705         "s/'\''/'\''\\\\'\'''\''/g;
1706           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1707       ;; #(
1708     *)
1709       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1710       ;;
1711     esac |
1712     sort
1713 )
1714     echo
1715
1716     cat <<\_ASBOX
1717 ## ----------------- ##
1718 ## Output variables. ##
1719 ## ----------------- ##
1720 _ASBOX
1721     echo
1722     for ac_var in $ac_subst_vars
1723     do
1724       eval ac_val=\$$ac_var
1725       case $ac_val in
1726       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727       esac
1728       echo "$ac_var='\''$ac_val'\''"
1729     done | sort
1730     echo
1731
1732     if test -n "$ac_subst_files"; then
1733       cat <<\_ASBOX
1734 ## ------------------- ##
1735 ## File substitutions. ##
1736 ## ------------------- ##
1737 _ASBOX
1738       echo
1739       for ac_var in $ac_subst_files
1740       do
1741         eval ac_val=\$$ac_var
1742         case $ac_val in
1743         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744         esac
1745         echo "$ac_var='\''$ac_val'\''"
1746       done | sort
1747       echo
1748     fi
1749
1750     if test -s confdefs.h; then
1751       cat <<\_ASBOX
1752 ## ----------- ##
1753 ## confdefs.h. ##
1754 ## ----------- ##
1755 _ASBOX
1756       echo
1757       cat confdefs.h
1758       echo
1759     fi
1760     test "$ac_signal" != 0 &&
1761       echo "$as_me: caught signal $ac_signal"
1762     echo "$as_me: exit $exit_status"
1763   } >&5
1764   rm -f core *.core core.conftest.* &&
1765     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1766     exit $exit_status
1767 ' 0
1768 for ac_signal in 1 2 13 15; do
1769   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1770 done
1771 ac_signal=0
1772
1773 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1774 rm -f -r conftest* confdefs.h
1775
1776 # Predefined preprocessor variables.
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_NAME "$PACKAGE_NAME"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_STRING "$PACKAGE_STRING"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1800 _ACEOF
1801
1802
1803 # Let the site file select an alternate cache file if it wants to.
1804 # Prefer explicitly selected file to automatically selected ones.
1805 if test -n "$CONFIG_SITE"; then
1806   set x "$CONFIG_SITE"
1807 elif test "x$prefix" != xNONE; then
1808   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1809 else
1810   set x "$ac_default_prefix/share/config.site" \
1811         "$ac_default_prefix/etc/config.site"
1812 fi
1813 shift
1814 for ac_site_file
1815 do
1816   if test -r "$ac_site_file"; then
1817     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1818 echo "$as_me: loading site script $ac_site_file" >&6;}
1819     sed 's/^/| /' "$ac_site_file" >&5
1820     . "$ac_site_file"
1821   fi
1822 done
1823
1824 if test -r "$cache_file"; then
1825   # Some versions of bash will fail to source /dev/null (special
1826   # files actually), so we avoid doing that.
1827   if test -f "$cache_file"; then
1828     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1829 echo "$as_me: loading cache $cache_file" >&6;}
1830     case $cache_file in
1831       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1832       *)                      . "./$cache_file";;
1833     esac
1834   fi
1835 else
1836   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1837 echo "$as_me: creating cache $cache_file" >&6;}
1838   >$cache_file
1839 fi
1840
1841 # Check that the precious variables saved in the cache have kept the same
1842 # value.
1843 ac_cache_corrupted=false
1844 for ac_var in $ac_precious_vars; do
1845   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1846   eval ac_new_set=\$ac_env_${ac_var}_set
1847   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1848   eval ac_new_val=\$ac_env_${ac_var}_value
1849   case $ac_old_set,$ac_new_set in
1850     set,)
1851       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1852 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1853       ac_cache_corrupted=: ;;
1854     ,set)
1855       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1857       ac_cache_corrupted=: ;;
1858     ,);;
1859     *)
1860       if test "x$ac_old_val" != "x$ac_new_val"; then
1861         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1862 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1863         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1864 echo "$as_me:   former value:  $ac_old_val" >&2;}
1865         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1866 echo "$as_me:   current value: $ac_new_val" >&2;}
1867         ac_cache_corrupted=:
1868       fi;;
1869   esac
1870   # Pass precious variables to config.status.
1871   if test "$ac_new_set" = set; then
1872     case $ac_new_val in
1873     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1874     *) ac_arg=$ac_var=$ac_new_val ;;
1875     esac
1876     case " $ac_configure_args " in
1877       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1878       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1879     esac
1880   fi
1881 done
1882 if $ac_cache_corrupted; then
1883   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1884 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1885   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1886 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1887    { (exit 1); exit 1; }; }
1888 fi
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914 ac_ext=c
1915 ac_cpp='$CPP $CPPFLAGS'
1916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1919
1920
1921
1922 LLVM_VERSION_MAJOR=3
1923 LLVM_VERSION_MINOR=6
1924 LLVM_VERSION_PATCH=0
1925 LLVM_VERSION_SUFFIX=svn
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1930 _ACEOF
1931
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1940 _ACEOF
1941
1942
1943
1944
1945
1946
1947
1948 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1949
1950
1951
1952
1953
1954
1955
1956 ac_aux_dir=
1957 for ac_dir in autoconf "$srcdir"/autoconf; do
1958   if test -f "$ac_dir/install-sh"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/install-sh -c"
1961     break
1962   elif 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/shtool"; then
1967     ac_aux_dir=$ac_dir
1968     ac_install_sh="$ac_aux_dir/shtool install -c"
1969     break
1970   fi
1971 done
1972 if test -z "$ac_aux_dir"; then
1973   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1974 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978 # These three variables are undocumented and unsupported,
1979 # and are intended to be withdrawn in a future Autoconf release.
1980 # They can cause serious problems if a builder's source tree is in a directory
1981 # whose full name contains unusual characters.
1982 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1983 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1984 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1985
1986
1987
1988 if test ${srcdir} != "." ; then
1989   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1990     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1991 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1992    { (exit 1); exit 1; }; }
1993   fi
1994 fi
1995
1996 : ${CFLAGS=}
1997 : ${CXXFLAGS=}
1998
1999 ac_ext=c
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004 if test -n "$ac_tool_prefix"; then
2005   for ac_prog in clang gcc
2006   do
2007     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   if test -n "$CC"; then
2015   ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020   IFS=$as_save_IFS
2021   test -z "$as_dir" && as_dir=.
2022   for ac_exec_ext in '' $ac_executable_extensions; do
2023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2024     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026     break 2
2027   fi
2028 done
2029 done
2030 IFS=$as_save_IFS
2031
2032 fi
2033 fi
2034 CC=$ac_cv_prog_CC
2035 if test -n "$CC"; then
2036   { echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6; }
2038 else
2039   { echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6; }
2041 fi
2042
2043
2044     test -n "$CC" && break
2045   done
2046 fi
2047 if test -z "$CC"; then
2048   ac_ct_CC=$CC
2049   for ac_prog in clang gcc
2050 do
2051   # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$ac_ct_CC"; then
2059   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2068     ac_cv_prog_ac_ct_CC="$ac_prog"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074 IFS=$as_save_IFS
2075
2076 fi
2077 fi
2078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079 if test -n "$ac_ct_CC"; then
2080   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081 echo "${ECHO_T}$ac_ct_CC" >&6; }
2082 else
2083   { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2085 fi
2086
2087
2088   test -n "$ac_ct_CC" && break
2089 done
2090
2091   if test "x$ac_ct_CC" = x; then
2092     CC=""
2093   else
2094     case $cross_compiling:$ac_tool_warned in
2095 yes:)
2096 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2097 whose name does not start with the host triplet.  If you think this
2098 configuration is useful to you, please write to autoconf@gnu.org." >&5
2099 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2100 whose name does not start with the host triplet.  If you think this
2101 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2102 ac_tool_warned=yes ;;
2103 esac
2104     CC=$ac_ct_CC
2105   fi
2106 fi
2107
2108
2109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: no acceptable C compiler found in \$PATH
2112 See \`config.log' for more details." >&2;}
2113    { (exit 1); exit 1; }; }
2114
2115 # Provide some information about the compiler.
2116 echo "$as_me:$LINENO: checking for C compiler version" >&5
2117 ac_compiler=`set X $ac_compile; echo $2`
2118 { (ac_try="$ac_compiler --version >&5"
2119 case "(($ac_try" in
2120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121   *) ac_try_echo=$ac_try;;
2122 esac
2123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124   (eval "$ac_compiler --version >&5") 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }
2128 { (ac_try="$ac_compiler -v >&5"
2129 case "(($ac_try" in
2130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131   *) ac_try_echo=$ac_try;;
2132 esac
2133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2134   (eval "$ac_compiler -v >&5") 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }
2138 { (ac_try="$ac_compiler -V >&5"
2139 case "(($ac_try" in
2140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141   *) ac_try_echo=$ac_try;;
2142 esac
2143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2144   (eval "$ac_compiler -V >&5") 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148
2149 cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h.  */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h.  */
2155
2156 int
2157 main ()
2158 {
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 ac_clean_files_save=$ac_clean_files
2165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2168 # of exeext.
2169 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 #
2173 # List of possible output files, starting from the most likely.
2174 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2175 # only as a last resort.  b.out is created by i960 compilers.
2176 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2177 #
2178 # The IRIX 6 linker writes into existing files which may not be
2179 # executable, retaining their permissions.  Remove them first so a
2180 # subsequent execution test works.
2181 ac_rmfiles=
2182 for ac_file in $ac_files
2183 do
2184   case $ac_file in
2185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2186     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2187   esac
2188 done
2189 rm -f $ac_rmfiles
2190
2191 if { (ac_try="$ac_link_default"
2192 case "(($ac_try" in
2193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194   *) ac_try_echo=$ac_try;;
2195 esac
2196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2197   (eval "$ac_link_default") 2>&5
2198   ac_status=$?
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); }; then
2201   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2202 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2203 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2204 # so that the user can short-circuit this test for compilers unknown to
2205 # Autoconf.
2206 for ac_file in $ac_files
2207 do
2208   test -f "$ac_file" || continue
2209   case $ac_file in
2210     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2211         ;;
2212     [ab].out )
2213         # We found the default executable, but exeext='' is most
2214         # certainly right.
2215         break;;
2216     *.* )
2217         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2218         then :; else
2219            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220         fi
2221         # We set ac_cv_exeext here because the later test for it is not
2222         # safe: cross compilers may not add the suffix if given an `-o'
2223         # argument, so we may need to know it at that point already.
2224         # Even if this section looks crufty: it has the advantage of
2225         # actually working.
2226         break;;
2227     * )
2228         break;;
2229   esac
2230 done
2231 test "$ac_cv_exeext" = no && ac_cv_exeext=
2232
2233 else
2234   echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2236
2237 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: C compiler cannot create executables
2240 See \`config.log' for more details." >&2;}
2241    { (exit 77); exit 77; }; }
2242 fi
2243
2244 ac_exeext=$ac_cv_exeext
2245 { echo "$as_me:$LINENO: result: $ac_file" >&5
2246 echo "${ECHO_T}$ac_file" >&6; }
2247
2248 # Check that the compiler produces executables we can run.  If not, either
2249 # the compiler is broken, or we cross compile.
2250 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2251 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2252 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2253 # If not cross compiling, check that we can run a simple program.
2254 if test "$cross_compiling" != yes; then
2255   if { ac_try='./$ac_file'
2256   { (case "(($ac_try" in
2257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258   *) ac_try_echo=$ac_try;;
2259 esac
2260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261   (eval "$ac_try") 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; }; then
2265     cross_compiling=no
2266   else
2267     if test "$cross_compiling" = maybe; then
2268         cross_compiling=yes
2269     else
2270         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2271 If you meant to cross compile, use \`--host'.
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: cannot run C compiled programs.
2274 If you meant to cross compile, use \`--host'.
2275 See \`config.log' for more details." >&2;}
2276    { (exit 1); exit 1; }; }
2277     fi
2278   fi
2279 fi
2280 { echo "$as_me:$LINENO: result: yes" >&5
2281 echo "${ECHO_T}yes" >&6; }
2282
2283 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2284 ac_clean_files=$ac_clean_files_save
2285 # Check that the compiler produces executables we can run.  If not, either
2286 # the compiler is broken, or we cross compile.
2287 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2288 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2289 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2290 echo "${ECHO_T}$cross_compiling" >&6; }
2291
2292 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2293 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2294 if { (ac_try="$ac_link"
2295 case "(($ac_try" in
2296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297   *) ac_try_echo=$ac_try;;
2298 esac
2299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2300   (eval "$ac_link") 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; then
2304   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2305 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2306 # work properly (i.e., refer to `conftest.exe'), while it won't with
2307 # `rm'.
2308 for ac_file in conftest.exe conftest conftest.*; do
2309   test -f "$ac_file" || continue
2310   case $ac_file in
2311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2312     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313           break;;
2314     * ) break;;
2315   esac
2316 done
2317 else
2318   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2321 See \`config.log' for more details." >&2;}
2322    { (exit 1); exit 1; }; }
2323 fi
2324
2325 rm -f conftest$ac_cv_exeext
2326 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2327 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2328
2329 rm -f conftest.$ac_ext
2330 EXEEXT=$ac_cv_exeext
2331 ac_exeext=$EXEEXT
2332 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2333 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2334 if test "${ac_cv_objext+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343
2344 int
2345 main ()
2346 {
2347
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 rm -f conftest.o conftest.obj
2353 if { (ac_try="$ac_compile"
2354 case "(($ac_try" in
2355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356   *) ac_try_echo=$ac_try;;
2357 esac
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359   (eval "$ac_compile") 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; then
2363   for ac_file in conftest.o conftest.obj conftest.*; do
2364   test -f "$ac_file" || continue;
2365   case $ac_file in
2366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2367     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2368        break;;
2369   esac
2370 done
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2376 See \`config.log' for more details." >&5
2377 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&2;}
2379    { (exit 1); exit 1; }; }
2380 fi
2381
2382 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2383 fi
2384 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2385 echo "${ECHO_T}$ac_cv_objext" >&6; }
2386 OBJEXT=$ac_cv_objext
2387 ac_objext=$OBJEXT
2388 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2389 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2390 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h.  */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h.  */
2399
2400 int
2401 main ()
2402 {
2403 #ifndef __GNUC__
2404        choke me
2405 #endif
2406
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 rm -f conftest.$ac_objext
2412 if { (ac_try="$ac_compile"
2413 case "(($ac_try" in
2414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415   *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418   (eval "$ac_compile") 2>conftest.er1
2419   ac_status=$?
2420   grep -v '^ *+' conftest.er1 >conftest.err
2421   rm -f conftest.er1
2422   cat conftest.err >&5
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); } &&
2425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2426   { (case "(($ac_try" in
2427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2428   *) ac_try_echo=$ac_try;;
2429 esac
2430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2431   (eval "$ac_try") 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; } &&
2435          { ac_try='test -s conftest.$ac_objext'
2436   { (case "(($ac_try" in
2437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438   *) ac_try_echo=$ac_try;;
2439 esac
2440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2441   (eval "$ac_try") 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; }; then
2445   ac_compiler_gnu=yes
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450         ac_compiler_gnu=no
2451 fi
2452
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2455
2456 fi
2457 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2458 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2459 GCC=`test $ac_compiler_gnu = yes && echo yes`
2460 ac_test_CFLAGS=${CFLAGS+set}
2461 ac_save_CFLAGS=$CFLAGS
2462 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2463 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_cc_g+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   ac_save_c_werror_flag=$ac_c_werror_flag
2468    ac_c_werror_flag=yes
2469    ac_cv_prog_cc_g=no
2470    CFLAGS="-g"
2471    cat >conftest.$ac_ext <<_ACEOF
2472 /* confdefs.h.  */
2473 _ACEOF
2474 cat confdefs.h >>conftest.$ac_ext
2475 cat >>conftest.$ac_ext <<_ACEOF
2476 /* end confdefs.h.  */
2477
2478 int
2479 main ()
2480 {
2481
2482   ;
2483   return 0;
2484 }
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (ac_try="$ac_compile"
2488 case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_compile") 2>conftest.er1
2494   ac_status=$?
2495   grep -v '^ *+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } &&
2500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2501   { (case "(($ac_try" in
2502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503   *) ac_try_echo=$ac_try;;
2504 esac
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506   (eval "$ac_try") 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; } &&
2510          { ac_try='test -s conftest.$ac_objext'
2511   { (case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516   (eval "$ac_try") 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; }; then
2520   ac_cv_prog_cc_g=yes
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525         CFLAGS=""
2526       cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532
2533 int
2534 main ()
2535 {
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (ac_try="$ac_compile"
2543 case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548   (eval "$ac_compile") 2>conftest.er1
2549   ac_status=$?
2550   grep -v '^ *+' conftest.er1 >conftest.err
2551   rm -f conftest.er1
2552   cat conftest.err >&5
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); } &&
2555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2556   { (case "(($ac_try" in
2557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558   *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561   (eval "$ac_try") 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; } &&
2565          { ac_try='test -s conftest.$ac_objext'
2566   { (case "(($ac_try" in
2567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568   *) ac_try_echo=$ac_try;;
2569 esac
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571   (eval "$ac_try") 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   :
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580         ac_c_werror_flag=$ac_save_c_werror_flag
2581          CFLAGS="-g"
2582          cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588
2589 int
2590 main ()
2591 {
2592
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (ac_try="$ac_compile"
2599 case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_compile") 2>conftest.er1
2605   ac_status=$?
2606   grep -v '^ *+' conftest.er1 >conftest.err
2607   rm -f conftest.er1
2608   cat conftest.err >&5
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } &&
2611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2612   { (case "(($ac_try" in
2613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614   *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617   (eval "$ac_try") 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; } &&
2621          { ac_try='test -s conftest.$ac_objext'
2622   { (case "(($ac_try" in
2623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624   *) ac_try_echo=$ac_try;;
2625 esac
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627   (eval "$ac_try") 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631   ac_cv_prog_cc_g=yes
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636
2637 fi
2638
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 fi
2641
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 fi
2644
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646    ac_c_werror_flag=$ac_save_c_werror_flag
2647 fi
2648 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2649 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2650 if test "$ac_test_CFLAGS" = set; then
2651   CFLAGS=$ac_save_CFLAGS
2652 elif test $ac_cv_prog_cc_g = yes; then
2653   if test "$GCC" = yes; then
2654     CFLAGS="-g -O2"
2655   else
2656     CFLAGS="-g"
2657   fi
2658 else
2659   if test "$GCC" = yes; then
2660     CFLAGS="-O2"
2661   else
2662     CFLAGS=
2663   fi
2664 fi
2665 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2666 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_cc_c89+set}" = set; then
2668   echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670   ac_cv_prog_cc_c89=no
2671 ac_save_CC=$CC
2672 cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2678 #include <stdarg.h>
2679 #include <stdio.h>
2680 #include <sys/types.h>
2681 #include <sys/stat.h>
2682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2683 struct buf { int x; };
2684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685 static char *e (p, i)
2686      char **p;
2687      int i;
2688 {
2689   return p[i];
2690 }
2691 static char *f (char * (*g) (char **, int), char **p, ...)
2692 {
2693   char *s;
2694   va_list v;
2695   va_start (v,p);
2696   s = g (p, va_arg (v,int));
2697   va_end (v);
2698   return s;
2699 }
2700
2701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2702    function prototypes and stuff, but not '\xHH' hex character constants.
2703    These don't provoke an error unfortunately, instead are silently treated
2704    as 'x'.  The following induces an error, until -std is added to get
2705    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2706    array size at least.  It's necessary to write '\x00'==0 to get something
2707    that's true only with -std.  */
2708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2709
2710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2711    inside strings and character constants.  */
2712 #define FOO(x) 'x'
2713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2714
2715 int test (int i, double x);
2716 struct s1 {int (*f) (int a);};
2717 struct s2 {int (*f) (double a);};
2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2719 int argc;
2720 char **argv;
2721 int
2722 main ()
2723 {
2724 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2730         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2731 do
2732   CC="$ac_save_CC $ac_arg"
2733   rm -f conftest.$ac_objext
2734 if { (ac_try="$ac_compile"
2735 case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_compile") 2>conftest.er1
2741   ac_status=$?
2742   grep -v '^ *+' conftest.er1 >conftest.err
2743   rm -f conftest.er1
2744   cat conftest.err >&5
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2748   { (case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_try") 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }; } &&
2757          { ac_try='test -s conftest.$ac_objext'
2758   { (case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763   (eval "$ac_try") 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; }; then
2767   ac_cv_prog_cc_c89=$ac_arg
2768 else
2769   echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2771
2772
2773 fi
2774
2775 rm -f core conftest.err conftest.$ac_objext
2776   test "x$ac_cv_prog_cc_c89" != "xno" && break
2777 done
2778 rm -f conftest.$ac_ext
2779 CC=$ac_save_CC
2780
2781 fi
2782 # AC_CACHE_VAL
2783 case "x$ac_cv_prog_cc_c89" in
2784   x)
2785     { echo "$as_me:$LINENO: result: none needed" >&5
2786 echo "${ECHO_T}none needed" >&6; } ;;
2787   xno)
2788     { echo "$as_me:$LINENO: result: unsupported" >&5
2789 echo "${ECHO_T}unsupported" >&6; } ;;
2790   *)
2791     CC="$CC $ac_cv_prog_cc_c89"
2792     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2793 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2794 esac
2795
2796
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802
2803 ac_ext=cpp
2804 ac_cpp='$CXXCPP $CPPFLAGS'
2805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2808 if test -z "$CXX"; then
2809   if test -n "$CCC"; then
2810     CXX=$CCC
2811   else
2812     if test -n "$ac_tool_prefix"; then
2813   for ac_prog in clang++ g++
2814   do
2815     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819 if test "${ac_cv_prog_CXX+set}" = set; then
2820   echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822   if test -n "$CXX"; then
2823   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830   for ac_exec_ext in '' $ac_executable_extensions; do
2831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2832     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CXX=$ac_cv_prog_CXX
2843 if test -n "$CXX"; then
2844   { echo "$as_me:$LINENO: result: $CXX" >&5
2845 echo "${ECHO_T}$CXX" >&6; }
2846 else
2847   { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2849 fi
2850
2851
2852     test -n "$CXX" && break
2853   done
2854 fi
2855 if test -z "$CXX"; then
2856   ac_ct_CXX=$CXX
2857   for ac_prog in clang++ g++
2858 do
2859   # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2864   echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866   if test -n "$ac_ct_CXX"; then
2867   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874   for ac_exec_ext in '' $ac_executable_extensions; do
2875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2876     ac_cv_prog_ac_ct_CXX="$ac_prog"
2877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2887 if test -n "$ac_ct_CXX"; then
2888   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2889 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2890 else
2891   { echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6; }
2893 fi
2894
2895
2896   test -n "$ac_ct_CXX" && break
2897 done
2898
2899   if test "x$ac_ct_CXX" = x; then
2900     CXX="g++"
2901   else
2902     case $cross_compiling:$ac_tool_warned in
2903 yes:)
2904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2905 whose name does not start with the host triplet.  If you think this
2906 configuration is useful to you, please write to autoconf@gnu.org." >&5
2907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2908 whose name does not start with the host triplet.  If you think this
2909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2910 ac_tool_warned=yes ;;
2911 esac
2912     CXX=$ac_ct_CXX
2913   fi
2914 fi
2915
2916   fi
2917 fi
2918 # Provide some information about the compiler.
2919 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2920 ac_compiler=`set X $ac_compile; echo $2`
2921 { (ac_try="$ac_compiler --version >&5"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927   (eval "$ac_compiler --version >&5") 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }
2931 { (ac_try="$ac_compiler -v >&5"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937   (eval "$ac_compiler -v >&5") 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }
2941 { (ac_try="$ac_compiler -V >&5"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_compiler -V >&5") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }
2951
2952 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2953 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2954 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957   cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h.  */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h.  */
2963
2964 int
2965 main ()
2966 {
2967 #ifndef __GNUC__
2968        choke me
2969 #endif
2970
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2977 case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_compile") 2>conftest.er1
2983   ac_status=$?
2984   grep -v '^ *+' conftest.er1 >conftest.err
2985   rm -f conftest.er1
2986   cat conftest.err >&5
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); } &&
2989          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2990   { (case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995   (eval "$ac_try") 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }; } &&
2999          { ac_try='test -s conftest.$ac_objext'
3000   { (case "(($ac_try" in
3001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002   *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005   (eval "$ac_try") 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; }; then
3009   ac_compiler_gnu=yes
3010 else
3011   echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014         ac_compiler_gnu=no
3015 fi
3016
3017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3019
3020 fi
3021 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3022 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3023 GXX=`test $ac_compiler_gnu = yes && echo yes`
3024 ac_test_CXXFLAGS=${CXXFLAGS+set}
3025 ac_save_CXXFLAGS=$CXXFLAGS
3026 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3027 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3028 if test "${ac_cv_prog_cxx_g+set}" = set; then
3029   echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3032    ac_cxx_werror_flag=yes
3033    ac_cv_prog_cxx_g=no
3034    CXXFLAGS="-g"
3035    cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041
3042 int
3043 main ()
3044 {
3045
3046   ;
3047   return 0;
3048 }
3049 _ACEOF
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3052 case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_compile") 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } &&
3064          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3065   { (case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070   (eval "$ac_try") 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }; } &&
3074          { ac_try='test -s conftest.$ac_objext'
3075   { (case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_try") 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; }; then
3084   ac_cv_prog_cxx_g=yes
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089         CXXFLAGS=""
3090       cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h.  */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h.  */
3096
3097 int
3098 main ()
3099 {
3100
3101   ;
3102   return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (ac_try="$ac_compile"
3107 case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_compile") 2>conftest.er1
3113   ac_status=$?
3114   grep -v '^ *+' conftest.er1 >conftest.err
3115   rm -f conftest.er1
3116   cat conftest.err >&5
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); } &&
3119          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3120   { (case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_try") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; } &&
3129          { ac_try='test -s conftest.$ac_objext'
3130   { (case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_try") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; }; then
3139   :
3140 else
3141   echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3145          CXXFLAGS="-g"
3146          cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156
3157   ;
3158   return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3163 case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_compile") 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } &&
3175          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3176   { (case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_try") 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; } &&
3185          { ac_try='test -s conftest.$ac_objext'
3186   { (case "(($ac_try" in
3187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188   *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191   (eval "$ac_try") 2>&5
3192   ac_status=$?
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); }; }; then
3195   ac_cv_prog_cxx_g=yes
3196 else
3197   echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 fi
3208
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3211 fi
3212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3213 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3214 if test "$ac_test_CXXFLAGS" = set; then
3215   CXXFLAGS=$ac_save_CXXFLAGS
3216 elif test $ac_cv_prog_cxx_g = yes; then
3217   if test "$GXX" = yes; then
3218     CXXFLAGS="-g -O2"
3219   else
3220     CXXFLAGS="-g"
3221   fi
3222 else
3223   if test "$GXX" = yes; then
3224     CXXFLAGS="-O2"
3225   else
3226     CXXFLAGS=
3227   fi
3228 fi
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3241 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3242 # On Suns, sometimes $CPP names a directory.
3243 if test -n "$CPP" && test -d "$CPP"; then
3244   CPP=
3245 fi
3246 if test -z "$CPP"; then
3247   if test "${ac_cv_prog_CPP+set}" = set; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250       # Double quotes because CPP needs to be expanded
3251     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3252     do
3253       ac_preproc_ok=false
3254 for ac_c_preproc_warn_flag in '' yes
3255 do
3256   # Use a header file that comes with gcc, so configuring glibc
3257   # with a fresh cross-compiler works.
3258   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3259   # <limits.h> exists even on freestanding compilers.
3260   # On the NeXT, cc -E runs the code through the compiler's parser,
3261   # not just through cpp. "Syntax error" is here to catch this case.
3262   cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #ifdef __STDC__
3269 # include <limits.h>
3270 #else
3271 # include <assert.h>
3272 #endif
3273                      Syntax error
3274 _ACEOF
3275 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } >/dev/null; then
3288   if test -s conftest.err; then
3289     ac_cpp_err=$ac_c_preproc_warn_flag
3290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291   else
3292     ac_cpp_err=
3293   fi
3294 else
3295   ac_cpp_err=yes
3296 fi
3297 if test -z "$ac_cpp_err"; then
3298   :
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303   # Broken: fails on valid input.
3304 continue
3305 fi
3306
3307 rm -f conftest.err conftest.$ac_ext
3308
3309   # OK, works on sane cases.  Now check whether nonexistent headers
3310   # can be detected and how.
3311   cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h.  */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h.  */
3317 #include <ac_nonexistent.h>
3318 _ACEOF
3319 if { (ac_try="$ac_cpp conftest.$ac_ext"
3320 case "(($ac_try" in
3321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322   *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3326   ac_status=$?
3327   grep -v '^ *+' conftest.er1 >conftest.err
3328   rm -f conftest.er1
3329   cat conftest.err >&5
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); } >/dev/null; then
3332   if test -s conftest.err; then
3333     ac_cpp_err=$ac_c_preproc_warn_flag
3334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335   else
3336     ac_cpp_err=
3337   fi
3338 else
3339   ac_cpp_err=yes
3340 fi
3341 if test -z "$ac_cpp_err"; then
3342   # Broken: success on invalid input.
3343 continue
3344 else
3345   echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348   # Passes both tests.
3349 ac_preproc_ok=:
3350 break
3351 fi
3352
3353 rm -f conftest.err conftest.$ac_ext
3354
3355 done
3356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3357 rm -f conftest.err conftest.$ac_ext
3358 if $ac_preproc_ok; then
3359   break
3360 fi
3361
3362     done
3363     ac_cv_prog_CPP=$CPP
3364
3365 fi
3366   CPP=$ac_cv_prog_CPP
3367 else
3368   ac_cv_prog_CPP=$CPP
3369 fi
3370 { echo "$as_me:$LINENO: result: $CPP" >&5
3371 echo "${ECHO_T}$CPP" >&6; }
3372 ac_preproc_ok=false
3373 for ac_c_preproc_warn_flag in '' yes
3374 do
3375   # Use a header file that comes with gcc, so configuring glibc
3376   # with a fresh cross-compiler works.
3377   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378   # <limits.h> exists even on freestanding compilers.
3379   # On the NeXT, cc -E runs the code through the compiler's parser,
3380   # not just through cpp. "Syntax error" is here to catch this case.
3381   cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387 #ifdef __STDC__
3388 # include <limits.h>
3389 #else
3390 # include <assert.h>
3391 #endif
3392                      Syntax error
3393 _ACEOF
3394 if { (ac_try="$ac_cpp conftest.$ac_ext"
3395 case "(($ac_try" in
3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397   *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401   ac_status=$?
3402   grep -v '^ *+' conftest.er1 >conftest.err
3403   rm -f conftest.er1
3404   cat conftest.err >&5
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); } >/dev/null; then
3407   if test -s conftest.err; then
3408     ac_cpp_err=$ac_c_preproc_warn_flag
3409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410   else
3411     ac_cpp_err=
3412   fi
3413 else
3414   ac_cpp_err=yes
3415 fi
3416 if test -z "$ac_cpp_err"; then
3417   :
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422   # Broken: fails on valid input.
3423 continue
3424 fi
3425
3426 rm -f conftest.err conftest.$ac_ext
3427
3428   # OK, works on sane cases.  Now check whether nonexistent headers
3429   # can be detected and how.
3430   cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436 #include <ac_nonexistent.h>
3437 _ACEOF
3438 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3445   ac_status=$?
3446   grep -v '^ *+' conftest.er1 >conftest.err
3447   rm -f conftest.er1
3448   cat conftest.err >&5
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); } >/dev/null; then
3451   if test -s conftest.err; then
3452     ac_cpp_err=$ac_c_preproc_warn_flag
3453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454   else
3455     ac_cpp_err=
3456   fi
3457 else
3458   ac_cpp_err=yes
3459 fi
3460 if test -z "$ac_cpp_err"; then
3461   # Broken: success on invalid input.
3462 continue
3463 else
3464   echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467   # Passes both tests.
3468 ac_preproc_ok=:
3469 break
3470 fi
3471
3472 rm -f conftest.err conftest.$ac_ext
3473
3474 done
3475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3476 rm -f conftest.err conftest.$ac_ext
3477 if $ac_preproc_ok; then
3478   :
3479 else
3480   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3481 See \`config.log' for more details." >&5
3482 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3483 See \`config.log' for more details." >&2;}
3484    { (exit 1); exit 1; }; }
3485 fi
3486
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492
3493
3494 if test "$CXX" = "clang++" ; then
3495   { echo "$as_me:$LINENO: checking whether clang works" >&5
3496 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3497   ac_ext=cpp
3498 ac_cpp='$CXXCPP $CPPFLAGS'
3499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3502
3503
3504 cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510 #include <limits>
3511 #if __has_include (<cxxabi.h>)
3512 #include <cxxabi.h>
3513 #endif
3514 #if __has_include (<unwind.h>)
3515 #include <unwind.h>
3516 #endif
3517
3518 int
3519 main ()
3520 {
3521
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3528 case "(($ac_try" in
3529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530   *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533   (eval "$ac_compile") 2>conftest.er1
3534   ac_status=$?
3535   grep -v '^ *+' conftest.er1 >conftest.err
3536   rm -f conftest.er1
3537   cat conftest.err >&5
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); } &&
3540          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3541   { (case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546   (eval "$ac_try") 2>&5
3547   ac_status=$?
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); }; } &&
3550          { ac_try='test -s conftest.$ac_objext'
3551   { (case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556   (eval "$ac_try") 2>&5
3557   ac_status=$?
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); }; }; then
3560
3561   { echo "$as_me:$LINENO: result: yes" >&5
3562 echo "${ECHO_T}yes" >&6; }
3563
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568
3569   { echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6; }
3571   { { 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
3572 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;}
3573    { (exit 1); exit 1; }; }
3574
3575 fi
3576
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578   ac_ext=c
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583
3584 fi
3585
3586 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3587 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3588 ac_ext=cpp
3589 ac_cpp='$CXXCPP $CPPFLAGS'
3590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3593
3594 llvm_cv_cxx_compiler=unknown
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601 #if ! __clang__
3602                                     #error
3603                                     #endif
3604
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (ac_try="$ac_compile"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613   (eval "$ac_compile") 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } &&
3620          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3621   { (case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626   (eval "$ac_try") 2>&5
3627   ac_status=$?
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); }; } &&
3630          { ac_try='test -s conftest.$ac_objext'
3631   { (case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636   (eval "$ac_try") 2>&5
3637   ac_status=$?
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); }; }; then
3640   llvm_cv_cxx_compiler=clang
3641 else
3642   echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645         cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3651 #if ! __GNUC__
3652                                                        #error
3653                                                        #endif
3654
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3658 case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663   (eval "$ac_compile") 2>conftest.er1
3664   ac_status=$?
3665   grep -v '^ *+' conftest.er1 >conftest.err
3666   rm -f conftest.er1
3667   cat conftest.err >&5
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } &&
3670          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3671   { (case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_try") 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); }; } &&
3680          { ac_try='test -s conftest.$ac_objext'
3681   { (case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_try") 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); }; }; then
3690   llvm_cv_cxx_compiler=gcc
3691 else
3692   echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695
3696 fi
3697
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 fi
3700
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3709 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3710
3711
3712
3713 if test -d ${srcdir}/projects/test-suite ; then
3714   subdirs="$subdirs projects/test-suite"
3715
3716 fi
3717
3718 if test -d ${srcdir}/projects/llvm-test ; then
3719   subdirs="$subdirs projects/llvm-test"
3720
3721 fi
3722
3723 if test -d ${srcdir}/projects/poolalloc ; then
3724   subdirs="$subdirs projects/poolalloc"
3725
3726 fi
3727
3728 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3729   subdirs="$subdirs projects/llvm-poolalloc"
3730
3731 fi
3732
3733 for i in `ls ${srcdir}/projects`
3734 do
3735   if test -d ${srcdir}/projects/${i} ; then
3736     case ${i} in
3737       safecode)     subdirs="$subdirs projects/safecode"
3738  ;;
3739       compiler-rt)       ;;
3740       test-suite)     ;;
3741       llvm-test)      ;;
3742       poolalloc)      ;;
3743       llvm-poolalloc) ;;
3744       *)
3745         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3746 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3747         ;;
3748     esac
3749   fi
3750 done
3751
3752 # Check whether --enable-polly was given.
3753 if test "${enable_polly+set}" = set; then
3754   enableval=$enable_polly;
3755 else
3756   enableval=default
3757 fi
3758
3759 case "$enableval" in
3760   yes) ENABLE_POLLY=1
3761  ;;
3762   no)  ENABLE_POLLY=0
3763  ;;
3764   default) ENABLE_POLLY=1
3765  ;;
3766   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3767 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3768    { (exit 1); exit 1; }; } ;;
3769 esac
3770
3771
3772 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3773   LLVM_HAS_POLLY=1
3774
3775   subdirs="$subdirs tools/polly"
3776
3777 fi
3778
3779
3780 # Make sure we can run config.sub.
3781 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3782   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3783 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3784    { (exit 1); exit 1; }; }
3785
3786 { echo "$as_me:$LINENO: checking build system type" >&5
3787 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3788 if test "${ac_cv_build+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   ac_build_alias=$build_alias
3792 test "x$ac_build_alias" = x &&
3793   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3794 test "x$ac_build_alias" = x &&
3795   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3796 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3797    { (exit 1); exit 1; }; }
3798 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3799   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3800 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3801    { (exit 1); exit 1; }; }
3802
3803 fi
3804 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3805 echo "${ECHO_T}$ac_cv_build" >&6; }
3806 case $ac_cv_build in
3807 *-*-*) ;;
3808 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3809 echo "$as_me: error: invalid value of canonical build" >&2;}
3810    { (exit 1); exit 1; }; };;
3811 esac
3812 build=$ac_cv_build
3813 ac_save_IFS=$IFS; IFS='-'
3814 set x $ac_cv_build
3815 shift
3816 build_cpu=$1
3817 build_vendor=$2
3818 shift; shift
3819 # Remember, the first character of IFS is used to create $*,
3820 # except with old shells:
3821 build_os=$*
3822 IFS=$ac_save_IFS
3823 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3824
3825
3826 { echo "$as_me:$LINENO: checking host system type" >&5
3827 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3828 if test "${ac_cv_host+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   if test "x$host_alias" = x; then
3832   ac_cv_host=$ac_cv_build
3833 else
3834   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3835     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3836 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3837    { (exit 1); exit 1; }; }
3838 fi
3839
3840 fi
3841 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3842 echo "${ECHO_T}$ac_cv_host" >&6; }
3843 case $ac_cv_host in
3844 *-*-*) ;;
3845 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3846 echo "$as_me: error: invalid value of canonical host" >&2;}
3847    { (exit 1); exit 1; }; };;
3848 esac
3849 host=$ac_cv_host
3850 ac_save_IFS=$IFS; IFS='-'
3851 set x $ac_cv_host
3852 shift
3853 host_cpu=$1
3854 host_vendor=$2
3855 shift; shift
3856 # Remember, the first character of IFS is used to create $*,
3857 # except with old shells:
3858 host_os=$*
3859 IFS=$ac_save_IFS
3860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3861
3862
3863 { echo "$as_me:$LINENO: checking target system type" >&5
3864 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3865 if test "${ac_cv_target+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   if test "x$target_alias" = x; then
3869   ac_cv_target=$ac_cv_host
3870 else
3871   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3872     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3873 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3874    { (exit 1); exit 1; }; }
3875 fi
3876
3877 fi
3878 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3879 echo "${ECHO_T}$ac_cv_target" >&6; }
3880 case $ac_cv_target in
3881 *-*-*) ;;
3882 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3883 echo "$as_me: error: invalid value of canonical target" >&2;}
3884    { (exit 1); exit 1; }; };;
3885 esac
3886 target=$ac_cv_target
3887 ac_save_IFS=$IFS; IFS='-'
3888 set x $ac_cv_target
3889 shift
3890 target_cpu=$1
3891 target_vendor=$2
3892 shift; shift
3893 # Remember, the first character of IFS is used to create $*,
3894 # except with old shells:
3895 target_os=$*
3896 IFS=$ac_save_IFS
3897 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3898
3899
3900 # The aliases save the names the user supplied, while $host etc.
3901 # will get canonicalized.
3902 test -n "$target_alias" &&
3903   test "$program_prefix$program_suffix$program_transform_name" = \
3904     NONENONEs,x,x, &&
3905   program_prefix=${target_alias}-
3906
3907 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3908 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3909 if test "${llvm_cv_os_type+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   case $host in
3913   *-*-aix*)
3914     llvm_cv_link_all_option="-Wl,--whole-archive"
3915     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3916     llvm_cv_os_type="AIX"
3917     llvm_cv_platform_type="Unix" ;;
3918   *-*-irix*)
3919     llvm_cv_link_all_option="-Wl,--whole-archive"
3920     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3921     llvm_cv_os_type="IRIX"
3922     llvm_cv_platform_type="Unix" ;;
3923   *-*-cygwin*)
3924     llvm_cv_link_all_option="-Wl,--whole-archive"
3925     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3926     llvm_cv_os_type="Cygwin"
3927     llvm_cv_platform_type="Unix" ;;
3928   *-*-darwin*)
3929     llvm_cv_link_all_option="-Wl,-all_load"
3930     llvm_cv_no_link_all_option="-Wl,-noall_load"
3931     llvm_cv_os_type="Darwin"
3932     llvm_cv_platform_type="Unix" ;;
3933   *-*-minix*)
3934     llvm_cv_link_all_option="-Wl,-all_load"
3935     llvm_cv_no_link_all_option="-Wl,-noall_load"
3936     llvm_cv_os_type="Minix"
3937     llvm_cv_platform_type="Unix" ;;
3938   *-*-freebsd*)
3939     llvm_cv_link_all_option="-Wl,--whole-archive"
3940     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3941     llvm_cv_os_type="FreeBSD"
3942     llvm_cv_platform_type="Unix" ;;
3943   *-*-kfreebsd-gnu)
3944     llvm_cv_link_all_option="-Wl,--whole-archive"
3945     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3946     llvm_cv_os_type="GNU/kFreeBSD"
3947     llvm_cv_platform_type="Unix" ;;
3948   *-*-openbsd*)
3949     llvm_cv_link_all_option="-Wl,--whole-archive"
3950     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3951     llvm_cv_os_type="OpenBSD"
3952     llvm_cv_platform_type="Unix" ;;
3953   *-*-netbsd*)
3954     llvm_cv_link_all_option="-Wl,--whole-archive"
3955     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3956     llvm_cv_os_type="NetBSD"
3957     llvm_cv_platform_type="Unix" ;;
3958   *-*-dragonfly*)
3959     llvm_cv_link_all_option="-Wl,--whole-archive"
3960     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3961     llvm_cv_os_type="DragonFly"
3962     llvm_cv_platform_type="Unix" ;;
3963   *-*-hpux*)
3964     llvm_cv_link_all_option="-Wl,--whole-archive"
3965     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3966     llvm_cv_os_type="HP-UX"
3967     llvm_cv_platform_type="Unix" ;;
3968   *-*-interix*)
3969     llvm_cv_link_all_option="-Wl,--whole-archive"
3970     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3971     llvm_cv_os_type="Interix"
3972     llvm_cv_platform_type="Unix" ;;
3973   *-*-linux*)
3974     llvm_cv_link_all_option="-Wl,--whole-archive"
3975     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976     llvm_cv_os_type="Linux"
3977     llvm_cv_platform_type="Unix" ;;
3978   *-*-gnu*)
3979     llvm_cv_link_all_option="-Wl,--whole-archive"
3980     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981     llvm_cv_os_type="GNU"
3982     llvm_cv_platform_type="Unix" ;;
3983   *-*-solaris*)
3984     llvm_cv_link_all_option="-Wl,-z,allextract"
3985     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3986     llvm_cv_os_type="SunOS"
3987     llvm_cv_platform_type="Unix" ;;
3988   *-*-win32*)
3989     llvm_cv_link_all_option="-Wl,--whole-archive"
3990     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3991     llvm_cv_os_type="Win32"
3992     llvm_cv_platform_type="Win32" ;;
3993   *-*-mingw*)
3994     llvm_cv_link_all_option="-Wl,--whole-archive"
3995     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3996     llvm_cv_os_type="MingW"
3997     llvm_cv_platform_type="Win32" ;;
3998   *-*-haiku*)
3999     llvm_cv_link_all_option="-Wl,--whole-archive"
4000     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001     llvm_cv_os_type="Haiku"
4002     llvm_cv_platform_type="Unix" ;;
4003   *-unknown-eabi*)
4004     llvm_cv_link_all_option="-Wl,--whole-archive"
4005     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006     llvm_cv_os_type="Freestanding"
4007     llvm_cv_platform_type="Unix" ;;
4008   *-unknown-elf*)
4009     llvm_cv_link_all_option="-Wl,--whole-archive"
4010     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011     llvm_cv_os_type="Freestanding"
4012     llvm_cv_platform_type="Unix" ;;
4013   *)
4014     llvm_cv_link_all_option=""
4015     llvm_cv_no_link_all_option=""
4016     llvm_cv_os_type="Unknown"
4017     llvm_cv_platform_type="Unknown" ;;
4018 esac
4019 fi
4020 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4021 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4022
4023 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4024 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4025 if test "${llvm_cv_target_os_type+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   case $target in
4029   *-*-aix*)
4030     llvm_cv_target_os_type="AIX" ;;
4031   *-*-irix*)
4032     llvm_cv_target_os_type="IRIX" ;;
4033   *-*-cygwin*)
4034     llvm_cv_target_os_type="Cygwin" ;;
4035   *-*-darwin*)
4036     llvm_cv_target_os_type="Darwin" ;;
4037   *-*-minix*)
4038     llvm_cv_target_os_type="Minix" ;;
4039   *-*-freebsd*)
4040     llvm_cv_target_os_type="FreeBSD" ;;
4041   *-*-kfreebsd-gnu)
4042     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4043   *-*-openbsd*)
4044     llvm_cv_target_os_type="OpenBSD" ;;
4045   *-*-netbsd*)
4046     llvm_cv_target_os_type="NetBSD" ;;
4047   *-*-dragonfly*)
4048     llvm_cv_target_os_type="DragonFly" ;;
4049   *-*-hpux*)
4050     llvm_cv_target_os_type="HP-UX" ;;
4051   *-*-interix*)
4052     llvm_cv_target_os_type="Interix" ;;
4053   *-*-linux*)
4054     llvm_cv_target_os_type="Linux" ;;
4055   *-*-gnu*)
4056     llvm_cv_target_os_type="GNU" ;;
4057   *-*-solaris*)
4058     llvm_cv_target_os_type="SunOS" ;;
4059   *-*-win32*)
4060     llvm_cv_target_os_type="Win32" ;;
4061   *-*-mingw*)
4062     llvm_cv_target_os_type="MingW" ;;
4063   *-*-haiku*)
4064     llvm_cv_target_os_type="Haiku" ;;
4065   *-*-rtems*)
4066     llvm_cv_target_os_type="RTEMS" ;;
4067   *-*-nacl*)
4068     llvm_cv_target_os_type="NativeClient" ;;
4069   *-unknown-eabi*)
4070     llvm_cv_target_os_type="Freestanding" ;;
4071   *)
4072     llvm_cv_target_os_type="Unknown" ;;
4073 esac
4074 fi
4075 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4076 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4077
4078 if test "$llvm_cv_os_type" = "Unknown" ; then
4079   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4080 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4081    { (exit 1); exit 1; }; }
4082 fi
4083
4084 OS=$llvm_cv_os_type
4085
4086 HOST_OS=$llvm_cv_os_type
4087
4088 TARGET_OS=$llvm_cv_target_os_type
4089
4090
4091 LINKALL=$llvm_cv_link_all_option
4092
4093 NOLINKALL=$llvm_cv_no_link_all_option
4094
4095
4096 case $llvm_cv_platform_type in
4097   Unix)
4098
4099 cat >>confdefs.h <<\_ACEOF
4100 #define LLVM_ON_UNIX 1
4101 _ACEOF
4102
4103     LLVM_ON_UNIX=1
4104
4105     LLVM_ON_WIN32=0
4106
4107     ;;
4108   Win32)
4109
4110 cat >>confdefs.h <<\_ACEOF
4111 #define LLVM_ON_WIN32 1
4112 _ACEOF
4113
4114     LLVM_ON_UNIX=0
4115
4116     LLVM_ON_WIN32=1
4117
4118     ;;
4119 esac
4120
4121 { echo "$as_me:$LINENO: checking target architecture" >&5
4122 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4123 if test "${llvm_cv_target_arch+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   case $target in
4127   i?86-*)                 llvm_cv_target_arch="x86" ;;
4128   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4129   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4130   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4131   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4132   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4133   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4134   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4135   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4136   xcore-*)                llvm_cv_target_arch="XCore" ;;
4137   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4138   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4139   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4140   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4141   *)                      llvm_cv_target_arch="Unknown" ;;
4142 esac
4143 fi
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4145 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4146
4147 if test "$llvm_cv_target_arch" = "Unknown" ; then
4148   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4149 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4150 fi
4151
4152 case "$llvm_cv_target_arch" in
4153     x86)     LLVM_NATIVE_ARCH="X86" ;;
4154     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4155     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4156 esac
4157
4158 ARCH=$llvm_cv_target_arch
4159
4160 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4161
4162
4163 case $host in
4164   i?86-*)                 host_arch="x86" ;;
4165   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4166   sparc*-*)               host_arch="Sparc" ;;
4167   powerpc*-*)             host_arch="PowerPC" ;;
4168   arm64*-*)               host_arch="AArch64" ;;
4169   arm*-*)                 host_arch="ARM" ;;
4170   aarch64*-*)             host_arch="AArch64" ;;
4171   mips-* | mips64-*)      host_arch="Mips" ;;
4172   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4173   xcore-*)                host_arch="XCore" ;;
4174   msp430-*)               host_arch="MSP430" ;;
4175   hexagon-*)              host_arch="Hexagon" ;;
4176   s390x-*)                host_arch="SystemZ" ;;
4177   *)                      host_arch="Unknown" ;;
4178 esac
4179
4180 if test "$host_arch" = "Unknown" ; then
4181   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4182 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4183 fi
4184
4185 HOST_ARCH=$host_arch
4186
4187
4188 if test "$cross_compiling" = yes; then
4189   LLVM_CROSS_COMPILING=1
4190
4191
4192 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4193 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4194 if test "${ac_cv_build_exeext+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4198   ac_cv_build_exeext=.exe
4199 else
4200   ac_build_prefix=${build_alias}-
4201
4202   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_build_prefix}gcc; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test -n "$BUILD_CC"; then
4210   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4219     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 BUILD_CC=$ac_cv_prog_BUILD_CC
4230 if test -n "$BUILD_CC"; then
4231   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4232 echo "${ECHO_T}$BUILD_CC" >&6; }
4233 else
4234   { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4236 fi
4237
4238
4239   if test -z "$BUILD_CC"; then
4240      # Extract the first word of "gcc", so it can be a program name with args.
4241 set dummy gcc; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   if test -n "$BUILD_CC"; then
4248   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4257     ac_cv_prog_BUILD_CC="gcc"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263 IFS=$as_save_IFS
4264
4265 fi
4266 fi
4267 BUILD_CC=$ac_cv_prog_BUILD_CC
4268 if test -n "$BUILD_CC"; then
4269   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4270 echo "${ECHO_T}$BUILD_CC" >&6; }
4271 else
4272   { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4274 fi
4275
4276
4277      if test -z "$BUILD_CC"; then
4278        # Extract the first word of "cc", so it can be a program name with args.
4279 set dummy cc; ac_word=$2
4280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4282 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   if test -n "$BUILD_CC"; then
4286   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4287 else
4288   ac_prog_rejected=no
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH
4291 do
4292   IFS=$as_save_IFS
4293   test -z "$as_dir" && as_dir=.
4294   for ac_exec_ext in '' $ac_executable_extensions; do
4295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4296     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4297        ac_prog_rejected=yes
4298        continue
4299      fi
4300     ac_cv_prog_BUILD_CC="cc"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306 IFS=$as_save_IFS
4307
4308 if test $ac_prog_rejected = yes; then
4309   # We found a bogon in the path, so make sure we never use it.
4310   set dummy $ac_cv_prog_BUILD_CC
4311   shift
4312   if test $# != 0; then
4313     # We chose a different compiler from the bogus one.
4314     # However, it has the same basename, so the bogon will be chosen
4315     # first if we set BUILD_CC to just the basename; use the full file name.
4316     shift
4317     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4318   fi
4319 fi
4320 fi
4321 fi
4322 BUILD_CC=$ac_cv_prog_BUILD_CC
4323 if test -n "$BUILD_CC"; then
4324   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4325 echo "${ECHO_T}$BUILD_CC" >&6; }
4326 else
4327   { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4329 fi
4330
4331
4332      fi
4333   fi
4334   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4335 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4336    { (exit 1); exit 1; }; }
4337   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4338   rm -f conftest*
4339   echo 'int main () { return 0; }' > conftest.$ac_ext
4340   ac_cv_build_exeext=
4341   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4342   (eval $ac_build_link) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; then
4346     for file in conftest.*; do
4347       case $file in
4348       *.c | *.o | *.obj | *.dSYM) ;;
4349       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4350       esac
4351     done
4352   else
4353     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4354 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4355    { (exit 1); exit 1; }; }
4356   fi
4357   rm -f conftest*
4358   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4359 fi
4360 fi
4361
4362 BUILD_EXEEXT=""
4363 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4364 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4365 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4366 ac_build_exeext=$BUILD_EXEEXT
4367
4368   ac_build_prefix=${build_alias}-
4369   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4370 set dummy ${ac_build_prefix}g++; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   if test -n "$BUILD_CXX"; then
4377   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384   for ac_exec_ext in '' $ac_executable_extensions; do
4385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4386     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388     break 2
4389   fi
4390 done
4391 done
4392 IFS=$as_save_IFS
4393
4394 fi
4395 fi
4396 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4397 if test -n "$BUILD_CXX"; then
4398   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4399 echo "${ECHO_T}$BUILD_CXX" >&6; }
4400 else
4401   { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4403 fi
4404
4405
4406   if test -z "$BUILD_CXX"; then
4407      # Extract the first word of "g++", so it can be a program name with args.
4408 set dummy g++; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   if test -n "$BUILD_CXX"; then
4415   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4424     ac_cv_prog_BUILD_CXX="g++"
4425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4435 if test -n "$BUILD_CXX"; then
4436   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4437 echo "${ECHO_T}$BUILD_CXX" >&6; }
4438 else
4439   { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4441 fi
4442
4443
4444      if test -z "$BUILD_CXX"; then
4445        # Extract the first word of "c++", so it can be a program name with args.
4446 set dummy c++; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   if test -n "$BUILD_CXX"; then
4453   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4454 else
4455   ac_prog_rejected=no
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4463     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4464        ac_prog_rejected=yes
4465        continue
4466      fi
4467     ac_cv_prog_BUILD_CXX="c++"
4468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469     break 2
4470   fi
4471 done
4472 done
4473 IFS=$as_save_IFS
4474
4475 if test $ac_prog_rejected = yes; then
4476   # We found a bogon in the path, so make sure we never use it.
4477   set dummy $ac_cv_prog_BUILD_CXX
4478   shift
4479   if test $# != 0; then
4480     # We chose a different compiler from the bogus one.
4481     # However, it has the same basename, so the bogon will be chosen
4482     # first if we set BUILD_CXX to just the basename; use the full file name.
4483     shift
4484     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4485   fi
4486 fi
4487 fi
4488 fi
4489 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4490 if test -n "$BUILD_CXX"; then
4491   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4492 echo "${ECHO_T}$BUILD_CXX" >&6; }
4493 else
4494   { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4496 fi
4497
4498
4499      fi
4500   fi
4501 else
4502   LLVM_CROSS_COMPILING=0
4503
4504 fi
4505
4506 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4507   cvsbuild="yes"
4508   optimize="no"
4509   CVSBUILD=CVSBUILD=1
4510
4511 else
4512   cvsbuild="no"
4513   optimize="yes"
4514 fi
4515
4516
4517 # Check whether --enable-libcpp was given.
4518 if test "${enable_libcpp+set}" = set; then
4519   enableval=$enable_libcpp;
4520 else
4521   enableval=default
4522 fi
4523
4524 case "$enableval" in
4525   yes) ENABLE_LIBCPP=1
4526  ;;
4527   no)  ENABLE_LIBCPP=0
4528  ;;
4529   default) ENABLE_LIBCPP=0
4530 ;;
4531   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4532 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4533    { (exit 1); exit 1; }; } ;;
4534 esac
4535
4536 # Check whether --enable-compiler-version-checks was given.
4537 if test "${enable_compiler_version_checks+set}" = set; then
4538   enableval=$enable_compiler_version_checks;
4539 else
4540   enableval=default
4541 fi
4542
4543 case "$enableval" in
4544   no)
4545     ;;
4546   yes|default)
4547     ac_ext=cpp
4548 ac_cpp='$CXXCPP $CPPFLAGS'
4549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552
4553     case "$llvm_cv_cxx_compiler" in
4554     clang)
4555       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4556 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4557       cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563
4564 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4565 #error This version of Clang is too old to build LLVM
4566 #endif
4567
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (ac_try="$ac_compile"
4571 case "(($ac_try" in
4572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573   *) ac_try_echo=$ac_try;;
4574 esac
4575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576   (eval "$ac_compile") 2>conftest.er1
4577   ac_status=$?
4578   grep -v '^ *+' conftest.er1 >conftest.err
4579   rm -f conftest.er1
4580   cat conftest.err >&5
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } &&
4583          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4584   { (case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589   (eval "$ac_try") 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; } &&
4593          { ac_try='test -s conftest.$ac_objext'
4594   { (case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599   (eval "$ac_try") 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; }; then
4603   { echo "$as_me:$LINENO: result: yes" >&5
4604 echo "${ECHO_T}yes" >&6; }
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609         { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611            { { echo "$as_me:$LINENO: error:
4612 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4613 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4614 bypass these sanity checks." >&5
4615 echo "$as_me: 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." >&2;}
4619    { (exit 1); exit 1; }; }
4620 fi
4621
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623
4624                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4625         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4626 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4627         llvm_cv_old_cxxflags="$CXXFLAGS"
4628         CXXFLAGS="$CXXFLAGS -std=c++0x"
4629         cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h.  */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h.  */
4635
4636 #include <atomic>
4637 std::atomic<float> x(0.0f);
4638 int main() { return (float)x; }
4639
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (ac_try="$ac_link"
4643 case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648   (eval "$ac_link") 2>conftest.er1
4649   ac_status=$?
4650   grep -v '^ *+' conftest.er1 >conftest.err
4651   rm -f conftest.er1
4652   cat conftest.err >&5
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); } &&
4655          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4656   { (case "(($ac_try" in
4657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658   *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661   (eval "$ac_try") 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; } &&
4665          { ac_try='test -s conftest$ac_exeext'
4666   { (case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_try") 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; }; then
4675   { echo "$as_me:$LINENO: result: yes" >&5
4676 echo "${ECHO_T}yes" >&6; }
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681         { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4683              { { echo "$as_me:$LINENO: error:
4684 We detected a missing feature in the standard C++ library that was known to be
4685 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4686 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4687 than 4.7. You will need to update your system and ensure Clang uses the newer
4688 standard library.
4689
4690 If this error is incorrect or you need to force things to work, you may pass
4691 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4692 echo "$as_me: error:
4693 We detected a missing feature in the standard C++ library that was known to be
4694 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4695 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4696 than 4.7. You will need to update your system and ensure Clang uses the newer
4697 standard library.
4698
4699 If this error is incorrect or you need to force things to work, you may pass
4700 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4701    { (exit 1); exit 1; }; }
4702 fi
4703
4704 rm -f core conftest.err conftest.$ac_objext \
4705       conftest$ac_exeext conftest.$ac_ext
4706         CXXFLAGS="$llvm_cv_old_cxxflags"
4707       fi
4708       ;;
4709     gcc)
4710       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4711 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4712       cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h.  */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h.  */
4718
4719 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4720 #error This version of GCC is too old to build LLVM
4721 #endif
4722
4723 _ACEOF
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4726 case "(($ac_try" in
4727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728   *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731   (eval "$ac_compile") 2>conftest.er1
4732   ac_status=$?
4733   grep -v '^ *+' conftest.er1 >conftest.err
4734   rm -f conftest.er1
4735   cat conftest.err >&5
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } &&
4738          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4739   { (case "(($ac_try" in
4740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741   *) ac_try_echo=$ac_try;;
4742 esac
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744   (eval "$ac_try") 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; } &&
4748          { ac_try='test -s conftest.$ac_objext'
4749   { (case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_try") 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; }; then
4758   { echo "$as_me:$LINENO: result: yes" >&5
4759 echo "${ECHO_T}yes" >&6; }
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764         { echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6; }
4766            { { echo "$as_me:$LINENO: error:
4767 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4768 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4769 bypass these sanity checks." >&5
4770 echo "$as_me: 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." >&2;}
4774    { (exit 1); exit 1; }; }
4775 fi
4776
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778       ;;
4779     unknown)
4780       ;;
4781     esac
4782     ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787
4788     ;;
4789   *)
4790     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4791 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4792    { (exit 1); exit 1; }; }
4793     ;;
4794 esac
4795
4796 # Check whether --enable-cxx1y was given.
4797 if test "${enable_cxx1y+set}" = set; then
4798   enableval=$enable_cxx1y;
4799 else
4800   enableval=default
4801 fi
4802
4803 case "$enableval" in
4804   yes) ENABLE_CXX1Y=1
4805  ;;
4806   no)  ENABLE_CXX1Y=0
4807  ;;
4808   default) ENABLE_CXX1Y=0
4809 ;;
4810   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4811 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4812    { (exit 1); exit 1; }; } ;;
4813 esac
4814
4815 # Check whether --enable-split-dwarf was given.
4816 if test "${enable_split_dwarf+set}" = set; then
4817   enableval=$enable_split_dwarf;
4818 else
4819   enableval=default
4820 fi
4821
4822 case "$enableval" in
4823   yes) ENABLE_SPLIT_DWARF=1
4824  ;;
4825   no)  ENABLE_SPLIT_DWARF=0
4826  ;;
4827   default) ENABLE_SPLIT_DWARF=0
4828 ;;
4829   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4830 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4831    { (exit 1); exit 1; }; } ;;
4832 esac
4833
4834 clang_arcmt="yes"
4835 # Check whether --enable-clang-arcmt was given.
4836 if test "${enable_clang_arcmt+set}" = set; then
4837   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4838 else
4839   enableval="yes"
4840 fi
4841
4842 case "$enableval" in
4843   yes) ENABLE_CLANG_ARCMT=1
4844  ;;
4845   no)  ENABLE_CLANG_ARCMT=0
4846  ;;
4847   default) ENABLE_CLANG_ARCMT=1
4848 ;;
4849   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4851    { (exit 1); exit 1; }; } ;;
4852 esac
4853
4854 clang_plugin_support="yes"
4855 # Check whether --enable-clang-plugin-support was given.
4856 if test "${enable_clang_plugin_support+set}" = set; then
4857   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4858 else
4859   enableval="yes"
4860 fi
4861
4862 case "$enableval" in
4863   yes) CLANG_PLUGIN_SUPPORT=1
4864  ;;
4865   no)  CLANG_PLUGIN_SUPPORT=0
4866  ;;
4867   default) CLANG_PLUGIN_SUPPORT=1
4868 ;;
4869   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4871    { (exit 1); exit 1; }; } ;;
4872 esac
4873
4874 clang_static_analyzer="yes"
4875 # Check whether --enable-clang-static-analyzer was given.
4876 if test "${enable_clang_static_analyzer+set}" = set; then
4877   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4878 else
4879   enableval="yes"
4880 fi
4881
4882 case "$enableval" in
4883   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4884  ;;
4885   no)
4886     if test ${clang_arcmt} != "no" ; then
4887       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4888 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4889    { (exit 1); exit 1; }; }
4890     fi
4891     ENABLE_CLANG_STATIC_ANALYZER=0
4892
4893     ;;
4894   default) ENABLE_CLANG_STATIC_ANALYZER=1
4895 ;;
4896   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4898    { (exit 1); exit 1; }; } ;;
4899 esac
4900
4901 # Check whether --enable-optimized was given.
4902 if test "${enable_optimized+set}" = set; then
4903   enableval=$enable_optimized;
4904 else
4905   enableval=$optimize
4906 fi
4907
4908 if test ${enableval} = "no" ; then
4909   ENABLE_OPTIMIZED=
4910
4911 else
4912   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4913
4914 fi
4915
4916 # Check whether --enable-profiling was given.
4917 if test "${enable_profiling+set}" = set; then
4918   enableval=$enable_profiling;
4919 else
4920   enableval="no"
4921 fi
4922
4923 if test ${enableval} = "no" ; then
4924   ENABLE_PROFILING=
4925
4926 else
4927   ENABLE_PROFILING=ENABLE_PROFILING=1
4928
4929 fi
4930
4931 # Check whether --enable-assertions was given.
4932 if test "${enable_assertions+set}" = set; then
4933   enableval=$enable_assertions;
4934 else
4935   enableval="yes"
4936 fi
4937
4938 if test ${enableval} = "yes" ; then
4939   DISABLE_ASSERTIONS=
4940
4941 else
4942   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4943
4944 fi
4945
4946 # Check whether --enable-werror was given.
4947 if test "${enable_werror+set}" = set; then
4948   enableval=$enable_werror;
4949 else
4950   enableval="no"
4951 fi
4952
4953 case "$enableval" in
4954   yes) ENABLE_WERROR=1
4955  ;;
4956   no)  ENABLE_WERROR=0
4957  ;;
4958   default) ENABLE_WERROR=0
4959 ;;
4960   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4961 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4962    { (exit 1); exit 1; }; } ;;
4963 esac
4964
4965 # Check whether --enable-expensive-checks was given.
4966 if test "${enable_expensive_checks+set}" = set; then
4967   enableval=$enable_expensive_checks;
4968 else
4969   enableval="no"
4970 fi
4971
4972 if test ${enableval} = "yes" ; then
4973   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4974
4975   EXPENSIVE_CHECKS=yes
4976
4977 else
4978   ENABLE_EXPENSIVE_CHECKS=
4979
4980   EXPENSIVE_CHECKS=no
4981
4982 fi
4983
4984 # Check whether --enable-debug-runtime was given.
4985 if test "${enable_debug_runtime+set}" = set; then
4986   enableval=$enable_debug_runtime;
4987 else
4988   enableval=no
4989 fi
4990
4991 if test ${enableval} = "no" ; then
4992   DEBUG_RUNTIME=
4993
4994 else
4995   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4996
4997 fi
4998
4999 # Check whether --enable-debug-symbols was given.
5000 if test "${enable_debug_symbols+set}" = set; then
5001   enableval=$enable_debug_symbols;
5002 else
5003   enableval=no
5004 fi
5005
5006 if test ${enableval} = "no" ; then
5007   DEBUG_SYMBOLS=
5008
5009 else
5010   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5011
5012 fi
5013
5014 # Check whether --enable-keep-symbols was given.
5015 if test "${enable_keep_symbols+set}" = set; then
5016   enableval=$enable_keep_symbols;
5017 else
5018   enableval=no
5019 fi
5020
5021 if test ${enableval} = "no" ; then
5022   KEEP_SYMBOLS=
5023
5024 else
5025   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5026
5027 fi
5028
5029 # Check whether --enable-jit was given.
5030 if test "${enable_jit+set}" = set; then
5031   enableval=$enable_jit;
5032 else
5033   enableval=default
5034 fi
5035
5036 if test ${enableval} = "no"
5037 then
5038   JIT=
5039
5040 else
5041   case "$llvm_cv_target_arch" in
5042     x86)         TARGET_HAS_JIT=1
5043  ;;
5044     Sparc)       TARGET_HAS_JIT=0
5045  ;;
5046     PowerPC)     TARGET_HAS_JIT=1
5047  ;;
5048     x86_64)      TARGET_HAS_JIT=1
5049  ;;
5050     ARM)         TARGET_HAS_JIT=1
5051  ;;
5052     Mips)        TARGET_HAS_JIT=1
5053  ;;
5054     XCore)       TARGET_HAS_JIT=0
5055  ;;
5056     MSP430)      TARGET_HAS_JIT=0
5057  ;;
5058     Hexagon)     TARGET_HAS_JIT=0
5059  ;;
5060     NVPTX)       TARGET_HAS_JIT=0
5061  ;;
5062     SystemZ)     TARGET_HAS_JIT=1
5063  ;;
5064     *)           TARGET_HAS_JIT=0
5065  ;;
5066   esac
5067 fi
5068
5069 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5070 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5071
5072
5073 # Check whether --enable-docs was given.
5074 if test "${enable_docs+set}" = set; then
5075   enableval=$enable_docs;
5076 else
5077   enableval=default
5078 fi
5079
5080 case "$enableval" in
5081   yes) ENABLE_DOCS=1
5082  ;;
5083   no)  ENABLE_DOCS=0
5084  ;;
5085   default) ENABLE_DOCS=1
5086  ;;
5087   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5088 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5089    { (exit 1); exit 1; }; } ;;
5090 esac
5091
5092 # Check whether --enable-doxygen was given.
5093 if test "${enable_doxygen+set}" = set; then
5094   enableval=$enable_doxygen;
5095 else
5096   enableval=default
5097 fi
5098
5099 case "$enableval" in
5100   yes) ENABLE_DOXYGEN=1
5101  ;;
5102   no)  ENABLE_DOXYGEN=0
5103  ;;
5104   default) ENABLE_DOXYGEN=0
5105  ;;
5106   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5107 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5108    { (exit 1); exit 1; }; } ;;
5109 esac
5110
5111 # Check whether --enable-threads was given.
5112 if test "${enable_threads+set}" = set; then
5113   enableval=$enable_threads;
5114 else
5115   enableval=default
5116 fi
5117
5118 case "$enableval" in
5119   yes) LLVM_ENABLE_THREADS=1
5120  ;;
5121   no)  LLVM_ENABLE_THREADS=0
5122  ;;
5123   default) LLVM_ENABLE_THREADS=1
5124  ;;
5125   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5126 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5127    { (exit 1); exit 1; }; } ;;
5128 esac
5129
5130 cat >>confdefs.h <<_ACEOF
5131 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5132 _ACEOF
5133
5134
5135 # Check whether --enable-pthreads was given.
5136 if test "${enable_pthreads+set}" = set; then
5137   enableval=$enable_pthreads;
5138 else
5139   enableval=default
5140 fi
5141
5142 case "$enableval" in
5143   yes) ENABLE_PTHREADS=1
5144  ;;
5145   no)  ENABLE_PTHREADS=0
5146  ;;
5147   default) ENABLE_PTHREADS=1
5148  ;;
5149   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5151    { (exit 1); exit 1; }; } ;;
5152 esac
5153
5154 # Check whether --enable-zlib was given.
5155 if test "${enable_zlib+set}" = set; then
5156   enableval=$enable_zlib;
5157 else
5158   enableval=default
5159 fi
5160
5161 case "$enableval" in
5162   yes) LLVM_ENABLE_ZLIB=1
5163  ;;
5164   no)  LLVM_ENABLE_ZLIB=0
5165  ;;
5166   default) LLVM_ENABLE_ZLIB=1
5167  ;;
5168   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5169 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5170    { (exit 1); exit 1; }; } ;;
5171 esac
5172
5173 cat >>confdefs.h <<_ACEOF
5174 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5175 _ACEOF
5176
5177
5178 # Check whether --enable-pic was given.
5179 if test "${enable_pic+set}" = set; then
5180   enableval=$enable_pic;
5181 else
5182   enableval=default
5183 fi
5184
5185 case "$enableval" in
5186   yes) ENABLE_PIC=1
5187  ;;
5188   no)  ENABLE_PIC=0
5189  ;;
5190   default) ENABLE_PIC=1
5191  ;;
5192   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5194    { (exit 1); exit 1; }; } ;;
5195 esac
5196
5197 cat >>confdefs.h <<_ACEOF
5198 #define ENABLE_PIC $ENABLE_PIC
5199 _ACEOF
5200
5201
5202 # Check whether --enable-shared was given.
5203 if test "${enable_shared+set}" = set; then
5204   enableval=$enable_shared;
5205 else
5206   enableval=default
5207 fi
5208
5209 case "$enableval" in
5210   yes) ENABLE_SHARED=1
5211  ;;
5212   no)  ENABLE_SHARED=0
5213  ;;
5214   default) ENABLE_SHARED=0
5215  ;;
5216   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5218    { (exit 1); exit 1; }; } ;;
5219 esac
5220
5221 # Check whether --enable-embed-stdcxx was given.
5222 if test "${enable_embed_stdcxx+set}" = set; then
5223   enableval=$enable_embed_stdcxx;
5224 else
5225   enableval=default
5226 fi
5227
5228 case "$enableval" in
5229   yes) ENABLE_EMBED_STDCXX=1
5230  ;;
5231   no)  ENABLE_EMBED_STDCXX=0
5232  ;;
5233   default) ENABLE_EMBED_STDCXX=0
5234  ;;
5235   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5236 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5237    { (exit 1); exit 1; }; } ;;
5238 esac
5239
5240 # Check whether --enable-timestamps was given.
5241 if test "${enable_timestamps+set}" = set; then
5242   enableval=$enable_timestamps;
5243 else
5244   enableval=default
5245 fi
5246
5247 case "$enableval" in
5248   yes) ENABLE_TIMESTAMPS=1
5249  ;;
5250   no)  ENABLE_TIMESTAMPS=0
5251  ;;
5252   default) ENABLE_TIMESTAMPS=1
5253  ;;
5254   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5255 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5256    { (exit 1); exit 1; }; } ;;
5257 esac
5258
5259 cat >>confdefs.h <<_ACEOF
5260 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5261 _ACEOF
5262
5263
5264 # Check whether --enable-backtraces was given.
5265 if test "${enable_backtraces+set}" = set; then
5266   enableval=$enable_backtraces; case "$enableval" in
5267     yes) llvm_cv_enable_backtraces="yes" ;;
5268     no)  llvm_cv_enable_backtraces="no"  ;;
5269     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272   esac
5273 else
5274   llvm_cv_enable_backtraces="yes"
5275 fi
5276
5277 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5278
5279 cat >>confdefs.h <<\_ACEOF
5280 #define ENABLE_BACKTRACES 1
5281 _ACEOF
5282
5283 fi
5284
5285 # Check whether --enable-crash-overrides was given.
5286 if test "${enable_crash_overrides+set}" = set; then
5287   enableval=$enable_crash_overrides; case "$enableval" in
5288     yes) llvm_cv_enable_crash_overrides="yes" ;;
5289     no)  llvm_cv_enable_crash_overrides="no"  ;;
5290     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5291 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5292    { (exit 1); exit 1; }; } ;;
5293   esac
5294 else
5295   llvm_cv_enable_crash_overrides="yes"
5296 fi
5297
5298 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5299
5300 cat >>confdefs.h <<\_ACEOF
5301 #define ENABLE_CRASH_OVERRIDES 1
5302 _ACEOF
5303
5304 fi
5305
5306 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5307 ALL_TARGETS=$ALL_TARGETS
5308
5309
5310 TARGETS_TO_BUILD=""
5311 # Check whether --enable-targets was given.
5312 if test "${enable_targets+set}" = set; then
5313   enableval=$enable_targets;
5314 else
5315   enableval=all
5316 fi
5317
5318 if test "$enableval" = host-only ; then
5319   enableval=host
5320 fi
5321 case "$enableval" in
5322   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5323   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5324       case "$a_target" in
5325         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5330         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5332         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5333         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5339         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5340         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5341         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5342         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5343         host) case "$llvm_cv_target_arch" in
5344             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5345             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5347             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5348             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5349             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5350             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5351             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5352             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5353             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5354             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5355             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5356             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5357 echo "$as_me: error: Can not set target to build" >&2;}
5358    { (exit 1); exit 1; }; } ;;
5359           esac ;;
5360         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5361 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5362    { (exit 1); exit 1; }; } ;;
5363       esac
5364   done
5365   ;;
5366 esac
5367
5368 # Check whether --enable-experimental-targets was given.
5369 if test "${enable_experimental_targets+set}" = set; then
5370   enableval=$enable_experimental_targets;
5371 else
5372   enableval=disable
5373 fi
5374
5375
5376 if test ${enableval} != "disable"
5377 then
5378   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5379 fi
5380
5381 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5382
5383
5384 for a_target in $TARGETS_TO_BUILD; do
5385   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5386
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5389 _ACEOF
5390
5391     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5392     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5393     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5394     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5395     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5396       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5397     fi
5398     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5399       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5400     fi
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5404 _ACEOF
5405
5406
5407 cat >>confdefs.h <<_ACEOF
5408 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5409 _ACEOF
5410
5411
5412 cat >>confdefs.h <<_ACEOF
5413 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5414 _ACEOF
5415
5416
5417 cat >>confdefs.h <<_ACEOF
5418 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5419 _ACEOF
5420
5421     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5425 _ACEOF
5426
5427     fi
5428     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5429
5430 cat >>confdefs.h <<_ACEOF
5431 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5432 _ACEOF
5433
5434     fi
5435   fi
5436 done
5437
5438 LLVM_ENUM_TARGETS=""
5439 LLVM_ENUM_ASM_PRINTERS=""
5440 LLVM_ENUM_ASM_PARSERS=""
5441 LLVM_ENUM_DISASSEMBLERS=""
5442 for target_to_build in $TARGETS_TO_BUILD; do
5443   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5444   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5445     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5446   fi
5447   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5448     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5449   fi
5450   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5451     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5452   fi
5453 done
5454
5455
5456
5457
5458
5459
5460 # Check whether --with-optimize-option was given.
5461 if test "${with_optimize_option+set}" = set; then
5462   withval=$with_optimize_option;
5463 else
5464   withval=default
5465 fi
5466
5467 { echo "$as_me:$LINENO: checking optimization flags" >&5
5468 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5469 case "$withval" in
5470   default)
5471     case "$llvm_cv_os_type" in
5472     FreeBSD) optimize_option=-O2 ;;
5473     MingW) optimize_option=-O2 ;;
5474     *)     optimize_option=-O3 ;;
5475     esac ;;
5476   *) optimize_option="$withval" ;;
5477 esac
5478 OPTIMIZE_OPTION=$optimize_option
5479
5480 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5481 echo "${ECHO_T}$optimize_option" >&6; }
5482
5483
5484 # Check whether --with-extra-options was given.
5485 if test "${with_extra_options+set}" = set; then
5486   withval=$with_extra_options;
5487 else
5488   withval=default
5489 fi
5490
5491 case "$withval" in
5492   default) EXTRA_OPTIONS= ;;
5493   *) EXTRA_OPTIONS=$withval ;;
5494 esac
5495 EXTRA_OPTIONS=$EXTRA_OPTIONS
5496
5497
5498
5499 # Check whether --with-extra-ld-options was given.
5500 if test "${with_extra_ld_options+set}" = set; then
5501   withval=$with_extra_ld_options;
5502 else
5503   withval=default
5504 fi
5505
5506 case "$withval" in
5507   default) EXTRA_LD_OPTIONS= ;;
5508   *) EXTRA_LD_OPTIONS=$withval ;;
5509 esac
5510 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5511
5512
5513 # Check whether --enable-bindings was given.
5514 if test "${enable_bindings+set}" = set; then
5515   enableval=$enable_bindings;
5516 else
5517   enableval=default
5518 fi
5519
5520 BINDINGS_TO_BUILD=""
5521 case "$enableval" in
5522   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5523   all ) BINDINGS_TO_BUILD="ocaml" ;;
5524   none | no) BINDINGS_TO_BUILD="" ;;
5525   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5526       case "$a_binding" in
5527         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5528         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5529 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5530    { (exit 1); exit 1; }; } ;;
5531       esac
5532   done
5533   ;;
5534 esac
5535
5536
5537 # Check whether --with-ocaml-libdir was given.
5538 if test "${with_ocaml_libdir+set}" = set; then
5539   withval=$with_ocaml_libdir;
5540 else
5541   withval=auto
5542 fi
5543
5544 case "$withval" in
5545   auto) with_ocaml_libdir="$withval" ;;
5546   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5547   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5548 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5549    { (exit 1); exit 1; }; } ;;
5550 esac
5551
5552
5553 # Check whether --with-clang-srcdir was given.
5554 if test "${with_clang_srcdir+set}" = set; then
5555   withval=$with_clang_srcdir;
5556 else
5557   withval="-"
5558 fi
5559
5560 case "$withval" in
5561   -) clang_src_root="" ;;
5562   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5563   *) clang_src_root="$ac_pwd/$withval" ;;
5564 esac
5565 CLANG_SRC_ROOT=$clang_src_root
5566
5567
5568
5569 # Check whether --with-clang-resource-dir was given.
5570 if test "${with_clang_resource_dir+set}" = set; then
5571   withval=$with_clang_resource_dir;
5572 else
5573   withval=""
5574 fi
5575
5576
5577 cat >>confdefs.h <<_ACEOF
5578 #define CLANG_RESOURCE_DIR "$withval"
5579 _ACEOF
5580
5581
5582
5583 # Check whether --with-c-include-dirs was given.
5584 if test "${with_c_include_dirs+set}" = set; then
5585   withval=$with_c_include_dirs;
5586 else
5587   withval=""
5588 fi
5589
5590
5591 cat >>confdefs.h <<_ACEOF
5592 #define C_INCLUDE_DIRS "$withval"
5593 _ACEOF
5594
5595
5596 # Clang normally uses the system c++ headers and libraries. With this option,
5597 # clang will use the ones provided by a gcc installation instead. This option should
5598 # be passed the same value that was used with --prefix when configuring gcc.
5599
5600 # Check whether --with-gcc-toolchain was given.
5601 if test "${with_gcc_toolchain+set}" = set; then
5602   withval=$with_gcc_toolchain;
5603 else
5604   withval=""
5605 fi
5606
5607
5608 cat >>confdefs.h <<_ACEOF
5609 #define GCC_INSTALL_PREFIX "$withval"
5610 _ACEOF
5611
5612
5613
5614 # Check whether --with-default-sysroot was given.
5615 if test "${with_default_sysroot+set}" = set; then
5616   withval=$with_default_sysroot;
5617 else
5618   withval=""
5619 fi
5620
5621
5622 cat >>confdefs.h <<_ACEOF
5623 #define DEFAULT_SYSROOT "$withval"
5624 _ACEOF
5625
5626
5627
5628 # Check whether --with-binutils-include was given.
5629 if test "${with_binutils_include+set}" = set; then
5630   withval=$with_binutils_include;
5631 else
5632   withval=default
5633 fi
5634
5635 case "$withval" in
5636   default) WITH_BINUTILS_INCDIR=default ;;
5637   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5638   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5639 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5640    { (exit 1); exit 1; }; } ;;
5641 esac
5642 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5643   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5644
5645   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5646      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5647      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5648 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5649    { (exit 1); exit 1; }; };
5650   fi
5651 fi
5652
5653
5654 # Check whether --with-bug-report-url was given.
5655 if test "${with_bug_report_url+set}" = set; then
5656   withval=$with_bug_report_url;
5657 else
5658   withval="http://llvm.org/bugs/"
5659 fi
5660
5661
5662 cat >>confdefs.h <<_ACEOF
5663 #define BUG_REPORT_URL "$withval"
5664 _ACEOF
5665
5666
5667 # Check whether --enable-terminfo was given.
5668 if test "${enable_terminfo+set}" = set; then
5669   enableval=$enable_terminfo; case "$enableval" in
5670     yes) llvm_cv_enable_terminfo="yes" ;;
5671     no)  llvm_cv_enable_terminfo="no"  ;;
5672     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5673 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5674    { (exit 1); exit 1; }; } ;;
5675   esac
5676 else
5677   llvm_cv_enable_terminfo="yes"
5678 fi
5679
5680 case "$llvm_cv_enable_terminfo" in
5681   yes) ENABLE_TERMINFO=1
5682  ;;
5683   no)  ENABLE_TERMINFO=0
5684  ;;
5685 esac
5686
5687 # Check whether --enable-libedit was given.
5688 if test "${enable_libedit+set}" = set; then
5689   enableval=$enable_libedit; case "$enableval" in
5690     yes) llvm_cv_enable_libedit="yes" ;;
5691     no)  llvm_cv_enable_libedit="no"  ;;
5692     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5693 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5694    { (exit 1); exit 1; }; } ;;
5695   esac
5696 else
5697   llvm_cv_enable_libedit="yes"
5698 fi
5699
5700
5701 # Check whether --enable-libffi was given.
5702 if test "${enable_libffi+set}" = set; then
5703   enableval=$enable_libffi; case "$enableval" in
5704     yes) llvm_cv_enable_libffi="yes" ;;
5705     no)  llvm_cv_enable_libffi="no"  ;;
5706     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5707 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5708    { (exit 1); exit 1; }; } ;;
5709   esac
5710 else
5711   llvm_cv_enable_libffi=no
5712 fi
5713
5714
5715
5716 # Check whether --with-internal-prefix was given.
5717 if test "${with_internal_prefix+set}" = set; then
5718   withval=$with_internal_prefix;
5719 else
5720   withval=""
5721 fi
5722
5723 INTERNAL_PREFIX=$withval
5724
5725
5726
5727 { echo "$as_me:$LINENO: checking for GNU make" >&5
5728 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5729 if test "${llvm_cv_gnu_make_command+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   llvm_cv_gnu_make_command=''
5733  for a in "$MAKE" make gmake gnumake ; do
5734   if test -z "$a" ; then continue ; fi ;
5735   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5736   then
5737    llvm_cv_gnu_make_command=$a ;
5738    break;
5739   fi
5740  done
5741 fi
5742 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5743 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5744  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5745    ifGNUmake='' ;
5746  else
5747    ifGNUmake='#' ;
5748    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5749 echo "${ECHO_T}\"Not found\"" >&6; };
5750  fi
5751
5752
5753 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5754 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5755 LN_S=$as_ln_s
5756 if test "$LN_S" = "ln -s"; then
5757   { echo "$as_me:$LINENO: result: yes" >&5
5758 echo "${ECHO_T}yes" >&6; }
5759 else
5760   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5761 echo "${ECHO_T}no, using $LN_S" >&6; }
5762 fi
5763
5764 # Extract the first word of "nm", so it can be a program name with args.
5765 set dummy nm; ac_word=$2
5766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5768 if test "${ac_cv_path_NM+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   case $NM in
5772   [\\/]* | ?:[\\/]*)
5773   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5774   ;;
5775   *)
5776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781   for ac_exec_ext in '' $ac_executable_extensions; do
5782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5783     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788 done
5789 IFS=$as_save_IFS
5790
5791   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5792   ;;
5793 esac
5794 fi
5795 NM=$ac_cv_path_NM
5796 if test -n "$NM"; then
5797   { echo "$as_me:$LINENO: result: $NM" >&5
5798 echo "${ECHO_T}$NM" >&6; }
5799 else
5800   { echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6; }
5802 fi
5803
5804
5805 # Extract the first word of "cmp", so it can be a program name with args.
5806 set dummy cmp; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_path_CMP+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   case $CMP in
5813   [\\/]* | ?:[\\/]*)
5814   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5815   ;;
5816   *)
5817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822   for ac_exec_ext in '' $ac_executable_extensions; do
5823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5824     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829 done
5830 IFS=$as_save_IFS
5831
5832   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5833   ;;
5834 esac
5835 fi
5836 CMP=$ac_cv_path_CMP
5837 if test -n "$CMP"; then
5838   { echo "$as_me:$LINENO: result: $CMP" >&5
5839 echo "${ECHO_T}$CMP" >&6; }
5840 else
5841   { echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6; }
5843 fi
5844
5845
5846 # Extract the first word of "cp", so it can be a program name with args.
5847 set dummy cp; ac_word=$2
5848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5850 if test "${ac_cv_path_CP+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   case $CP in
5854   [\\/]* | ?:[\\/]*)
5855   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5856   ;;
5857   *)
5858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5874   ;;
5875 esac
5876 fi
5877 CP=$ac_cv_path_CP
5878 if test -n "$CP"; then
5879   { echo "$as_me:$LINENO: result: $CP" >&5
5880 echo "${ECHO_T}$CP" >&6; }
5881 else
5882   { echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6; }
5884 fi
5885
5886
5887 # Extract the first word of "date", so it can be a program name with args.
5888 set dummy date; ac_word=$2
5889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5891 if test "${ac_cv_path_DATE+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   case $DATE in
5895   [\\/]* | ?:[\\/]*)
5896   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5897   ;;
5898   *)
5899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for ac_exec_ext in '' $ac_executable_extensions; do
5905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5906     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5915   ;;
5916 esac
5917 fi
5918 DATE=$ac_cv_path_DATE
5919 if test -n "$DATE"; then
5920   { echo "$as_me:$LINENO: result: $DATE" >&5
5921 echo "${ECHO_T}$DATE" >&6; }
5922 else
5923   { echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6; }
5925 fi
5926
5927
5928 # Extract the first word of "find", so it can be a program name with args.
5929 set dummy find; ac_word=$2
5930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5932 if test "${ac_cv_path_FIND+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   case $FIND in
5936   [\\/]* | ?:[\\/]*)
5937   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5938   ;;
5939   *)
5940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945   for ac_exec_ext in '' $ac_executable_extensions; do
5946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5947     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952 done
5953 IFS=$as_save_IFS
5954
5955   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5956   ;;
5957 esac
5958 fi
5959 FIND=$ac_cv_path_FIND
5960 if test -n "$FIND"; then
5961   { echo "$as_me:$LINENO: result: $FIND" >&5
5962 echo "${ECHO_T}$FIND" >&6; }
5963 else
5964   { echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6; }
5966 fi
5967
5968
5969 # Extract the first word of "grep", so it can be a program name with args.
5970 set dummy grep; ac_word=$2
5971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5973 if test "${ac_cv_path_GREP+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   case $GREP in
5977   [\\/]* | ?:[\\/]*)
5978   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5979   ;;
5980   *)
5981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984   IFS=$as_save_IFS
5985   test -z "$as_dir" && as_dir=.
5986   for ac_exec_ext in '' $ac_executable_extensions; do
5987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5988     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990     break 2
5991   fi
5992 done
5993 done
5994 IFS=$as_save_IFS
5995
5996   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5997   ;;
5998 esac
5999 fi
6000 GREP=$ac_cv_path_GREP
6001 if test -n "$GREP"; then
6002   { echo "$as_me:$LINENO: result: $GREP" >&5
6003 echo "${ECHO_T}$GREP" >&6; }
6004 else
6005   { echo "$as_me:$LINENO: result: no" >&5
6006 echo "${ECHO_T}no" >&6; }
6007 fi
6008
6009
6010 # Extract the first word of "mkdir", so it can be a program name with args.
6011 set dummy mkdir; ac_word=$2
6012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6014 if test "${ac_cv_path_MKDIR+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   case $MKDIR in
6018   [\\/]* | ?:[\\/]*)
6019   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6020   ;;
6021   *)
6022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025   IFS=$as_save_IFS
6026   test -z "$as_dir" && as_dir=.
6027   for ac_exec_ext in '' $ac_executable_extensions; do
6028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6029     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031     break 2
6032   fi
6033 done
6034 done
6035 IFS=$as_save_IFS
6036
6037   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6038   ;;
6039 esac
6040 fi
6041 MKDIR=$ac_cv_path_MKDIR
6042 if test -n "$MKDIR"; then
6043   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6044 echo "${ECHO_T}$MKDIR" >&6; }
6045 else
6046   { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6048 fi
6049
6050
6051 # Extract the first word of "mv", so it can be a program name with args.
6052 set dummy mv; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_path_MV+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   case $MV in
6059   [\\/]* | ?:[\\/]*)
6060   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6061   ;;
6062   *)
6063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068   for ac_exec_ext in '' $ac_executable_extensions; do
6069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6070     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6079   ;;
6080 esac
6081 fi
6082 MV=$ac_cv_path_MV
6083 if test -n "$MV"; then
6084   { echo "$as_me:$LINENO: result: $MV" >&5
6085 echo "${ECHO_T}$MV" >&6; }
6086 else
6087   { echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6; }
6089 fi
6090
6091
6092 if test -n "$ac_tool_prefix"; then
6093   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097 if test "${ac_cv_prog_RANLIB+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   if test -n "$RANLIB"; then
6101   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108   for ac_exec_ext in '' $ac_executable_extensions; do
6109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6110     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 RANLIB=$ac_cv_prog_RANLIB
6121 if test -n "$RANLIB"; then
6122   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6123 echo "${ECHO_T}$RANLIB" >&6; }
6124 else
6125   { echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6; }
6127 fi
6128
6129
6130 fi
6131 if test -z "$ac_cv_prog_RANLIB"; then
6132   ac_ct_RANLIB=$RANLIB
6133   # Extract the first word of "ranlib", so it can be a program name with args.
6134 set dummy ranlib; ac_word=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   if test -n "$ac_ct_RANLIB"; then
6141   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148   for ac_exec_ext in '' $ac_executable_extensions; do
6149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6150     ac_cv_prog_ac_ct_RANLIB="ranlib"
6151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155 done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6161 if test -n "$ac_ct_RANLIB"; then
6162   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6163 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6164 else
6165   { echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6; }
6167 fi
6168
6169   if test "x$ac_ct_RANLIB" = x; then
6170     RANLIB=":"
6171   else
6172     case $cross_compiling:$ac_tool_warned in
6173 yes:)
6174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6175 whose name does not start with the host triplet.  If you think this
6176 configuration is useful to you, please write to autoconf@gnu.org." >&5
6177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6178 whose name does not start with the host triplet.  If you think this
6179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182     RANLIB=$ac_ct_RANLIB
6183   fi
6184 else
6185   RANLIB="$ac_cv_prog_RANLIB"
6186 fi
6187
6188 if test -n "$ac_tool_prefix"; then
6189   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}ar; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_prog_AR+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   if test -n "$AR"; then
6197   ac_cv_prog_AR="$AR" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_prog_AR="${ac_tool_prefix}ar"
6207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 AR=$ac_cv_prog_AR
6217 if test -n "$AR"; then
6218   { echo "$as_me:$LINENO: result: $AR" >&5
6219 echo "${ECHO_T}$AR" >&6; }
6220 else
6221   { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6223 fi
6224
6225
6226 fi
6227 if test -z "$ac_cv_prog_AR"; then
6228   ac_ct_AR=$AR
6229   # Extract the first word of "ar", so it can be a program name with args.
6230 set dummy ar; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   if test -n "$ac_ct_AR"; then
6237   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244   for ac_exec_ext in '' $ac_executable_extensions; do
6245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246     ac_cv_prog_ac_ct_AR="ar"
6247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251 done
6252 IFS=$as_save_IFS
6253
6254 fi
6255 fi
6256 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6257 if test -n "$ac_ct_AR"; then
6258   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6259 echo "${ECHO_T}$ac_ct_AR" >&6; }
6260 else
6261   { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6263 fi
6264
6265   if test "x$ac_ct_AR" = x; then
6266     AR="false"
6267   else
6268     case $cross_compiling:$ac_tool_warned in
6269 yes:)
6270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6271 whose name does not start with the host triplet.  If you think this
6272 configuration is useful to you, please write to autoconf@gnu.org." >&5
6273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6274 whose name does not start with the host triplet.  If you think this
6275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278     AR=$ac_ct_AR
6279   fi
6280 else
6281   AR="$ac_cv_prog_AR"
6282 fi
6283
6284 # Extract the first word of "rm", so it can be a program name with args.
6285 set dummy rm; ac_word=$2
6286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6288 if test "${ac_cv_path_RM+set}" = set; then
6289   echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291   case $RM in
6292   [\\/]* | ?:[\\/]*)
6293   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6294   ;;
6295   *)
6296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299   IFS=$as_save_IFS
6300   test -z "$as_dir" && as_dir=.
6301   for ac_exec_ext in '' $ac_executable_extensions; do
6302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6303     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305     break 2
6306   fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6312   ;;
6313 esac
6314 fi
6315 RM=$ac_cv_path_RM
6316 if test -n "$RM"; then
6317   { echo "$as_me:$LINENO: result: $RM" >&5
6318 echo "${ECHO_T}$RM" >&6; }
6319 else
6320   { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6322 fi
6323
6324
6325 # Extract the first word of "sed", so it can be a program name with args.
6326 set dummy sed; ac_word=$2
6327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6329 if test "${ac_cv_path_SED+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332   case $SED in
6333   [\\/]* | ?:[\\/]*)
6334   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6335   ;;
6336   *)
6337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340   IFS=$as_save_IFS
6341   test -z "$as_dir" && as_dir=.
6342   for ac_exec_ext in '' $ac_executable_extensions; do
6343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6344     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346     break 2
6347   fi
6348 done
6349 done
6350 IFS=$as_save_IFS
6351
6352   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6353   ;;
6354 esac
6355 fi
6356 SED=$ac_cv_path_SED
6357 if test -n "$SED"; then
6358   { echo "$as_me:$LINENO: result: $SED" >&5
6359 echo "${ECHO_T}$SED" >&6; }
6360 else
6361   { echo "$as_me:$LINENO: result: no" >&5
6362 echo "${ECHO_T}no" >&6; }
6363 fi
6364
6365
6366 # Extract the first word of "tar", so it can be a program name with args.
6367 set dummy tar; ac_word=$2
6368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6370 if test "${ac_cv_path_TAR+set}" = set; then
6371   echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373   case $TAR in
6374   [\\/]* | ?:[\\/]*)
6375   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6376   ;;
6377   *)
6378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381   IFS=$as_save_IFS
6382   test -z "$as_dir" && as_dir=.
6383   for ac_exec_ext in '' $ac_executable_extensions; do
6384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6385     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390 done
6391 IFS=$as_save_IFS
6392
6393   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6394   ;;
6395 esac
6396 fi
6397 TAR=$ac_cv_path_TAR
6398 if test -n "$TAR"; then
6399   { echo "$as_me:$LINENO: result: $TAR" >&5
6400 echo "${ECHO_T}$TAR" >&6; }
6401 else
6402   { echo "$as_me:$LINENO: result: no" >&5
6403 echo "${ECHO_T}no" >&6; }
6404 fi
6405
6406
6407 # Extract the first word of "pwd", so it can be a program name with args.
6408 set dummy pwd; ac_word=$2
6409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6411 if test "${ac_cv_path_BINPWD+set}" = set; then
6412   echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414   case $BINPWD in
6415   [\\/]* | ?:[\\/]*)
6416   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6417   ;;
6418   *)
6419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422   IFS=$as_save_IFS
6423   test -z "$as_dir" && as_dir=.
6424   for ac_exec_ext in '' $ac_executable_extensions; do
6425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6426     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428     break 2
6429   fi
6430 done
6431 done
6432 IFS=$as_save_IFS
6433
6434   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6435   ;;
6436 esac
6437 fi
6438 BINPWD=$ac_cv_path_BINPWD
6439 if test -n "$BINPWD"; then
6440   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6441 echo "${ECHO_T}$BINPWD" >&6; }
6442 else
6443   { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6445 fi
6446
6447
6448
6449 # Extract the first word of "dot", so it can be a program name with args.
6450 set dummy dot; ac_word=$2
6451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6453 if test "${ac_cv_path_DOT+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   case $DOT in
6457   [\\/]* | ?:[\\/]*)
6458   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6459   ;;
6460   *)
6461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464   IFS=$as_save_IFS
6465   test -z "$as_dir" && as_dir=.
6466   for ac_exec_ext in '' $ac_executable_extensions; do
6467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6468     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470     break 2
6471   fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6477   ;;
6478 esac
6479 fi
6480 DOT=$ac_cv_path_DOT
6481 if test -n "$DOT"; then
6482   { echo "$as_me:$LINENO: result: $DOT" >&5
6483 echo "${ECHO_T}$DOT" >&6; }
6484 else
6485   { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6487 fi
6488
6489
6490 if test "$DOT" != "echo dot" ; then
6491
6492 cat >>confdefs.h <<\_ACEOF
6493 #define HAVE_DOT 1
6494 _ACEOF
6495
6496     if test "$llvm_cv_os_type" = "MingW" ; then
6497     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6498   fi
6499
6500 cat >>confdefs.h <<_ACEOF
6501 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6502 _ACEOF
6503
6504 fi
6505
6506 # Find a good install program.  We prefer a C program (faster),
6507 # so one script is as good as another.  But avoid the broken or
6508 # incompatible versions:
6509 # SysV /etc/install, /usr/sbin/install
6510 # SunOS /usr/etc/install
6511 # IRIX /sbin/install
6512 # AIX /bin/install
6513 # AmigaOS /C/install, which installs bootblocks on floppy discs
6514 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6515 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6516 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6517 # OS/2's system install, which has a completely different semantic
6518 # ./install, which can be erroneously created by make from ./install.sh.
6519 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6520 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6521 if test -z "$INSTALL"; then
6522 if test "${ac_cv_path_install+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530   # Account for people who put trailing slashes in PATH elements.
6531 case $as_dir/ in
6532   ./ | .// | /cC/* | \
6533   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6534   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6535   /usr/ucb/* ) ;;
6536   *)
6537     # OSF1 and SCO ODT 3.0 have their own names for install.
6538     # Don't use installbsd from OSF since it installs stuff as root
6539     # by default.
6540     for ac_prog in ginstall scoinst install; do
6541       for ac_exec_ext in '' $ac_executable_extensions; do
6542         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6543           if test $ac_prog = install &&
6544             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6545             # AIX install.  It has an incompatible calling convention.
6546             :
6547           elif test $ac_prog = install &&
6548             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6549             # program-specific install script used by HP pwplus--don't use.
6550             :
6551           else
6552             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6553             break 3
6554           fi
6555         fi
6556       done
6557     done
6558     ;;
6559 esac
6560 done
6561 IFS=$as_save_IFS
6562
6563
6564 fi
6565   if test "${ac_cv_path_install+set}" = set; then
6566     INSTALL=$ac_cv_path_install
6567   else
6568     # As a last resort, use the slow shell script.  Don't cache a
6569     # value for INSTALL within a source directory, because that will
6570     # break other packages using the cache if that directory is
6571     # removed, or if the value is a relative name.
6572     INSTALL=$ac_install_sh
6573   fi
6574 fi
6575 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6576 echo "${ECHO_T}$INSTALL" >&6; }
6577
6578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6579 # It thinks the first close brace ends the variable substitution.
6580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6581
6582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6583
6584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6585
6586 case "$INSTALL" in
6587  [\\/$]* | ?:[\\/]* ) ;;
6588  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6589 esac
6590
6591 # Extract the first word of "bzip2", so it can be a program name with args.
6592 set dummy bzip2; ac_word=$2
6593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6595 if test "${ac_cv_path_BZIP2+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   case $BZIP2 in
6599   [\\/]* | ?:[\\/]*)
6600   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6601   ;;
6602   *)
6603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608   for ac_exec_ext in '' $ac_executable_extensions; do
6609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6610     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618   ;;
6619 esac
6620 fi
6621 BZIP2=$ac_cv_path_BZIP2
6622 if test -n "$BZIP2"; then
6623   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6624 echo "${ECHO_T}$BZIP2" >&6; }
6625 else
6626   { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6628 fi
6629
6630
6631 # Extract the first word of "cat", so it can be a program name with args.
6632 set dummy cat; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_path_CAT+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   case $CAT in
6639   [\\/]* | ?:[\\/]*)
6640   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6641   ;;
6642   *)
6643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   for ac_exec_ext in '' $ac_executable_extensions; do
6649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6650     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658   ;;
6659 esac
6660 fi
6661 CAT=$ac_cv_path_CAT
6662 if test -n "$CAT"; then
6663   { echo "$as_me:$LINENO: result: $CAT" >&5
6664 echo "${ECHO_T}$CAT" >&6; }
6665 else
6666   { echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6; }
6668 fi
6669
6670
6671 # Extract the first word of "doxygen", so it can be a program name with args.
6672 set dummy doxygen; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   case $DOXYGEN in
6679   [\\/]* | ?:[\\/]*)
6680   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6681   ;;
6682   *)
6683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698   ;;
6699 esac
6700 fi
6701 DOXYGEN=$ac_cv_path_DOXYGEN
6702 if test -n "$DOXYGEN"; then
6703   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6704 echo "${ECHO_T}$DOXYGEN" >&6; }
6705 else
6706   { echo "$as_me:$LINENO: result: no" >&5
6707 echo "${ECHO_T}no" >&6; }
6708 fi
6709
6710
6711 # Extract the first word of "groff", so it can be a program name with args.
6712 set dummy groff; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_path_GROFF+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   case $GROFF in
6719   [\\/]* | ?:[\\/]*)
6720   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6721   ;;
6722   *)
6723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738   ;;
6739 esac
6740 fi
6741 GROFF=$ac_cv_path_GROFF
6742 if test -n "$GROFF"; then
6743   { echo "$as_me:$LINENO: result: $GROFF" >&5
6744 echo "${ECHO_T}$GROFF" >&6; }
6745 else
6746   { echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6; }
6748 fi
6749
6750
6751 # Extract the first word of "gzip", so it can be a program name with args.
6752 set dummy gzip; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758   case $GZIPBIN in
6759   [\\/]* | ?:[\\/]*)
6760   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6761   ;;
6762   *)
6763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   test -z "$as_dir" && as_dir=.
6768   for ac_exec_ext in '' $ac_executable_extensions; do
6769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773   fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778   ;;
6779 esac
6780 fi
6781 GZIPBIN=$ac_cv_path_GZIPBIN
6782 if test -n "$GZIPBIN"; then
6783   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6784 echo "${ECHO_T}$GZIPBIN" >&6; }
6785 else
6786   { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6788 fi
6789
6790
6791 # Extract the first word of "pdfroff", so it can be a program name with args.
6792 set dummy pdfroff; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_path_PDFROFF+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   case $PDFROFF in
6799   [\\/]* | ?:[\\/]*)
6800   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6801   ;;
6802   *)
6803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808   for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818   ;;
6819 esac
6820 fi
6821 PDFROFF=$ac_cv_path_PDFROFF
6822 if test -n "$PDFROFF"; then
6823   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6824 echo "${ECHO_T}$PDFROFF" >&6; }
6825 else
6826   { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6828 fi
6829
6830
6831 # Extract the first word of "zip", so it can be a program name with args.
6832 set dummy zip; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_ZIP+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   case $ZIP in
6839   [\\/]* | ?:[\\/]*)
6840   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6841   ;;
6842   *)
6843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858   ;;
6859 esac
6860 fi
6861 ZIP=$ac_cv_path_ZIP
6862 if test -n "$ZIP"; then
6863   { echo "$as_me:$LINENO: result: $ZIP" >&5
6864 echo "${ECHO_T}$ZIP" >&6; }
6865 else
6866   { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6868 fi
6869
6870
6871 # Extract the first word of "go", so it can be a program name with args.
6872 set dummy go; ac_word=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_path_GO+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   case $GO in
6879   [\\/]* | ?:[\\/]*)
6880   ac_cv_path_GO="$GO" # Let the user override the test with a path.
6881   ;;
6882   *)
6883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888   for ac_exec_ext in '' $ac_executable_extensions; do
6889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6890     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898   ;;
6899 esac
6900 fi
6901 GO=$ac_cv_path_GO
6902 if test -n "$GO"; then
6903   { echo "$as_me:$LINENO: result: $GO" >&5
6904 echo "${ECHO_T}$GO" >&6; }
6905 else
6906   { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6908 fi
6909
6910
6911 for ac_prog in ocamlfind
6912 do
6913   # Extract the first word of "$ac_prog", so it can be a program name with args.
6914 set dummy $ac_prog; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6918   echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920   case $OCAMLFIND in
6921   [\\/]* | ?:[\\/]*)
6922   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6923   ;;
6924   *)
6925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930   for ac_exec_ext in '' $ac_executable_extensions; do
6931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6932     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934     break 2
6935   fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940   ;;
6941 esac
6942 fi
6943 OCAMLFIND=$ac_cv_path_OCAMLFIND
6944 if test -n "$OCAMLFIND"; then
6945   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6946 echo "${ECHO_T}$OCAMLFIND" >&6; }
6947 else
6948   { echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6; }
6950 fi
6951
6952
6953   test -n "$OCAMLFIND" && break
6954 done
6955
6956 for ac_prog in gas as
6957 do
6958   # Extract the first word of "$ac_prog", so it can be a program name with args.
6959 set dummy $ac_prog; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_GAS+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   case $GAS in
6966   [\\/]* | ?:[\\/]*)
6967   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6968   ;;
6969   *)
6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975   for ac_exec_ext in '' $ac_executable_extensions; do
6976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6984
6985   ;;
6986 esac
6987 fi
6988 GAS=$ac_cv_path_GAS
6989 if test -n "$GAS"; then
6990   { echo "$as_me:$LINENO: result: $GAS" >&5
6991 echo "${ECHO_T}$GAS" >&6; }
6992 else
6993   { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6995 fi
6996
6997
6998   test -n "$GAS" && break
6999 done
7000
7001
7002 { echo "$as_me:$LINENO: checking for linker version" >&5
7003 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7004 if test "${llvm_cv_link_version+set}" = set; then
7005   echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007
7008    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7009
7010    # Check for ld64.
7011    if (echo "$version_string" | grep -q "ld64"); then
7012      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7013    else
7014      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7015    fi
7016
7017 fi
7018 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7019 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7020
7021 cat >>confdefs.h <<_ACEOF
7022 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7023 _ACEOF
7024
7025
7026
7027
7028 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7029 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7030 if test "${llvm_cv_link_use_r+set}" = set; then
7031   echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033    ac_ext=c
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038
7039   oldcflags="$CFLAGS"
7040   CFLAGS="$CFLAGS -Wl,-R."
7041   cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h.  */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h.  */
7047
7048 int
7049 main ()
7050 {
7051
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext conftest$ac_exeext
7057 if { (ac_try="$ac_link"
7058 case "(($ac_try" in
7059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060   *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063   (eval "$ac_link") 2>conftest.er1
7064   ac_status=$?
7065   grep -v '^ *+' conftest.er1 >conftest.err
7066   rm -f conftest.er1
7067   cat conftest.err >&5
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); } &&
7070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7071   { (case "(($ac_try" in
7072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073   *) ac_try_echo=$ac_try;;
7074 esac
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076   (eval "$ac_try") 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); }; } &&
7080          { ac_try='test -s conftest$ac_exeext'
7081   { (case "(($ac_try" in
7082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083   *) ac_try_echo=$ac_try;;
7084 esac
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086   (eval "$ac_try") 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   llvm_cv_link_use_r=yes
7091 else
7092   echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7094
7095         llvm_cv_link_use_r=no
7096 fi
7097
7098 rm -f core conftest.err conftest.$ac_objext \
7099       conftest$ac_exeext conftest.$ac_ext
7100   CFLAGS="$oldcflags"
7101   ac_ext=c
7102 ac_cpp='$CPP $CPPFLAGS'
7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7106
7107
7108 fi
7109 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7110 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7111 if test "$llvm_cv_link_use_r" = yes ; then
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define HAVE_LINK_R 1
7115 _ACEOF
7116
7117   fi
7118
7119
7120 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7121 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7122 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125    ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131   oldcflags="$CFLAGS"
7132   CFLAGS="$CFLAGS -rdynamic"
7133   cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h.  */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h.  */
7139
7140 int
7141 main ()
7142 {
7143
7144   ;
7145   return 0;
7146 }
7147 _ACEOF
7148 rm -f conftest.$ac_objext conftest$ac_exeext
7149 if { (ac_try="$ac_link"
7150 case "(($ac_try" in
7151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152   *) ac_try_echo=$ac_try;;
7153 esac
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155   (eval "$ac_link") 2>conftest.er1
7156   ac_status=$?
7157   grep -v '^ *+' conftest.er1 >conftest.err
7158   rm -f conftest.er1
7159   cat conftest.err >&5
7160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161   (exit $ac_status); } &&
7162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7163   { (case "(($ac_try" in
7164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165   *) ac_try_echo=$ac_try;;
7166 esac
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168   (eval "$ac_try") 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); }; } &&
7172          { ac_try='test -s conftest$ac_exeext'
7173   { (case "(($ac_try" in
7174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175   *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178   (eval "$ac_try") 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; }; then
7182   llvm_cv_link_use_export_dynamic=yes
7183 else
7184   echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7186
7187         llvm_cv_link_use_export_dynamic=no
7188 fi
7189
7190 rm -f core conftest.err conftest.$ac_objext \
7191       conftest$ac_exeext conftest.$ac_ext
7192   CFLAGS="$oldcflags"
7193   ac_ext=c
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198
7199
7200 fi
7201 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7202 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7203 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7204
7205 cat >>confdefs.h <<\_ACEOF
7206 #define HAVE_LINK_EXPORT_DYNAMIC 1
7207 _ACEOF
7208
7209   fi
7210
7211
7212 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7213 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7214 if test "${llvm_cv_link_use_version_script+set}" = set; then
7215   echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217    ac_ext=c
7218 ac_cpp='$CPP $CPPFLAGS'
7219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7222
7223   oldcflags="$CFLAGS"
7224
7225   # The following code is from the autoconf manual,
7226   # "11.13: Limitations of Usual Tools".
7227   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7228   # Use mktemp if possible; otherwise fall back on mkdir,
7229   # with $RANDOM to make collisions less likely.
7230   : ${TMPDIR=/tmp}
7231   {
7232     tmp=`
7233       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7234     ` &&
7235     test -n "$tmp" && test -d "$tmp"
7236   } || {
7237     tmp=$TMPDIR/foo$$-$RANDOM
7238     (umask 077 && mkdir "$tmp")
7239   } || exit $?
7240
7241   echo "{" > "$tmp/export.map"
7242   echo "  global: main;" >> "$tmp/export.map"
7243   echo "  local: *;" >> "$tmp/export.map"
7244   echo "};" >> "$tmp/export.map"
7245
7246   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7247   cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253
7254 int
7255 main ()
7256 {
7257
7258   ;
7259   return 0;
7260 }
7261 _ACEOF
7262 rm -f conftest.$ac_objext conftest$ac_exeext
7263 if { (ac_try="$ac_link"
7264 case "(($ac_try" in
7265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266   *) ac_try_echo=$ac_try;;
7267 esac
7268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269   (eval "$ac_link") 2>conftest.er1
7270   ac_status=$?
7271   grep -v '^ *+' conftest.er1 >conftest.err
7272   rm -f conftest.er1
7273   cat conftest.err >&5
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); } &&
7276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7277   { (case "(($ac_try" in
7278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279   *) ac_try_echo=$ac_try;;
7280 esac
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282   (eval "$ac_try") 2>&5
7283   ac_status=$?
7284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285   (exit $ac_status); }; } &&
7286          { ac_try='test -s conftest$ac_exeext'
7287   { (case "(($ac_try" in
7288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289   *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292   (eval "$ac_try") 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; }; then
7296   llvm_cv_link_use_version_script=yes
7297 else
7298   echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301         llvm_cv_link_use_version_script=no
7302 fi
7303
7304 rm -f core conftest.err conftest.$ac_objext \
7305       conftest$ac_exeext conftest.$ac_ext
7306   rm "$tmp/export.map"
7307   rmdir "$tmp"
7308   CFLAGS="$oldcflags"
7309   ac_ext=c
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314
7315
7316 fi
7317 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7318 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7319 if test "$llvm_cv_link_use_version_script" = yes ; then
7320   HAVE_LINK_VERSION_SCRIPT=1
7321
7322   fi
7323
7324
7325
7326 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7327 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7328 if test "${ac_cv_path_GREP+set}" = set; then
7329   echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331   # Extract the first word of "grep ggrep" to use in msg output
7332 if test -z "$GREP"; then
7333 set dummy grep ggrep; ac_prog_name=$2
7334 if test "${ac_cv_path_GREP+set}" = set; then
7335   echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337   ac_path_GREP_found=false
7338 # Loop through the user's path and test for each of PROGNAME-LIST
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7341 do
7342   IFS=$as_save_IFS
7343   test -z "$as_dir" && as_dir=.
7344   for ac_prog in grep ggrep; do
7345   for ac_exec_ext in '' $ac_executable_extensions; do
7346     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7347     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7348     # Check for GNU ac_path_GREP and select it if it is found.
7349   # Check for GNU $ac_path_GREP
7350 case `"$ac_path_GREP" --version 2>&1` in
7351 *GNU*)
7352   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7353 *)
7354   ac_count=0
7355   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7356   while :
7357   do
7358     cat "conftest.in" "conftest.in" >"conftest.tmp"
7359     mv "conftest.tmp" "conftest.in"
7360     cp "conftest.in" "conftest.nl"
7361     echo 'GREP' >> "conftest.nl"
7362     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7363     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7364     ac_count=`expr $ac_count + 1`
7365     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7366       # Best one so far, save it but keep looking for a better one
7367       ac_cv_path_GREP="$ac_path_GREP"
7368       ac_path_GREP_max=$ac_count
7369     fi
7370     # 10*(2^10) chars as input seems more than enough
7371     test $ac_count -gt 10 && break
7372   done
7373   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7374 esac
7375
7376
7377     $ac_path_GREP_found && break 3
7378   done
7379 done
7380
7381 done
7382 IFS=$as_save_IFS
7383
7384
7385 fi
7386
7387 GREP="$ac_cv_path_GREP"
7388 if test -z "$GREP"; then
7389   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7390 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7391    { (exit 1); exit 1; }; }
7392 fi
7393
7394 else
7395   ac_cv_path_GREP=$GREP
7396 fi
7397
7398
7399 fi
7400 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7401 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7402  GREP="$ac_cv_path_GREP"
7403
7404
7405 { echo "$as_me:$LINENO: checking for egrep" >&5
7406 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7407 if test "${ac_cv_path_EGREP+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7411    then ac_cv_path_EGREP="$GREP -E"
7412    else
7413      # Extract the first word of "egrep" to use in msg output
7414 if test -z "$EGREP"; then
7415 set dummy egrep; ac_prog_name=$2
7416 if test "${ac_cv_path_EGREP+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   ac_path_EGREP_found=false
7420 # Loop through the user's path and test for each of PROGNAME-LIST
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426   for ac_prog in egrep; do
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7429     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7430     # Check for GNU ac_path_EGREP and select it if it is found.
7431   # Check for GNU $ac_path_EGREP
7432 case `"$ac_path_EGREP" --version 2>&1` in
7433 *GNU*)
7434   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7435 *)
7436   ac_count=0
7437   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7438   while :
7439   do
7440     cat "conftest.in" "conftest.in" >"conftest.tmp"
7441     mv "conftest.tmp" "conftest.in"
7442     cp "conftest.in" "conftest.nl"
7443     echo 'EGREP' >> "conftest.nl"
7444     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7445     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7446     ac_count=`expr $ac_count + 1`
7447     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7448       # Best one so far, save it but keep looking for a better one
7449       ac_cv_path_EGREP="$ac_path_EGREP"
7450       ac_path_EGREP_max=$ac_count
7451     fi
7452     # 10*(2^10) chars as input seems more than enough
7453     test $ac_count -gt 10 && break
7454   done
7455   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7456 esac
7457
7458
7459     $ac_path_EGREP_found && break 3
7460   done
7461 done
7462
7463 done
7464 IFS=$as_save_IFS
7465
7466
7467 fi
7468
7469 EGREP="$ac_cv_path_EGREP"
7470 if test -z "$EGREP"; then
7471   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7472 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7473    { (exit 1); exit 1; }; }
7474 fi
7475
7476 else
7477   ac_cv_path_EGREP=$EGREP
7478 fi
7479
7480
7481    fi
7482 fi
7483 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7484 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7485  EGREP="$ac_cv_path_EGREP"
7486
7487
7488 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7489 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7490 if test "${ac_cv_header_stdc+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h.  */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h.  */
7499 #include <stdlib.h>
7500 #include <stdarg.h>
7501 #include <string.h>
7502 #include <float.h>
7503
7504 int
7505 main ()
7506 {
7507
7508   ;
7509   return 0;
7510 }
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7514 case "(($ac_try" in
7515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516   *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519   (eval "$ac_compile") 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7527   { (case "(($ac_try" in
7528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529   *) ac_try_echo=$ac_try;;
7530 esac
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532   (eval "$ac_try") 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; } &&
7536          { ac_try='test -s conftest.$ac_objext'
7537   { (case "(($ac_try" in
7538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539   *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542   (eval "$ac_try") 2>&5
7543   ac_status=$?
7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545   (exit $ac_status); }; }; then
7546   ac_cv_header_stdc=yes
7547 else
7548   echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7550
7551         ac_cv_header_stdc=no
7552 fi
7553
7554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555
7556 if test $ac_cv_header_stdc = yes; then
7557   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7558   cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564 #include <string.h>
7565
7566 _ACEOF
7567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7568   $EGREP "memchr" >/dev/null 2>&1; then
7569   :
7570 else
7571   ac_cv_header_stdc=no
7572 fi
7573 rm -f conftest*
7574
7575 fi
7576
7577 if test $ac_cv_header_stdc = yes; then
7578   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7579   cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h.  */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h.  */
7585 #include <stdlib.h>
7586
7587 _ACEOF
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589   $EGREP "free" >/dev/null 2>&1; then
7590   :
7591 else
7592   ac_cv_header_stdc=no
7593 fi
7594 rm -f conftest*
7595
7596 fi
7597
7598 if test $ac_cv_header_stdc = yes; then
7599   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7600   if test "$cross_compiling" = yes; then
7601   :
7602 else
7603   cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h.  */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h.  */
7609 #include <ctype.h>
7610 #include <stdlib.h>
7611 #if ((' ' & 0x0FF) == 0x020)
7612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7614 #else
7615 # define ISLOWER(c) \
7616                    (('a' <= (c) && (c) <= 'i') \
7617                      || ('j' <= (c) && (c) <= 'r') \
7618                      || ('s' <= (c) && (c) <= 'z'))
7619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7620 #endif
7621
7622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7623 int
7624 main ()
7625 {
7626   int i;
7627   for (i = 0; i < 256; i++)
7628     if (XOR (islower (i), ISLOWER (i))
7629         || toupper (i) != TOUPPER (i))
7630       return 2;
7631   return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7636 case "(($ac_try" in
7637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638   *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641   (eval "$ac_link") 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7645   { (case "(($ac_try" in
7646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647   *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650   (eval "$ac_try") 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; }; then
7654   :
7655 else
7656   echo "$as_me: program exited with status $ac_status" >&5
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 ( exit $ac_status )
7661 ac_cv_header_stdc=no
7662 fi
7663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7664 fi
7665
7666
7667 fi
7668 fi
7669 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7670 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7671 if test $ac_cv_header_stdc = yes; then
7672
7673 cat >>confdefs.h <<\_ACEOF
7674 #define STDC_HEADERS 1
7675 _ACEOF
7676
7677 fi
7678
7679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7690                   inttypes.h stdint.h unistd.h
7691 do
7692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7696   echo $ECHO_N "(cached) $ECHO_C" >&6
7697 else
7698   cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h.  */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h.  */
7704 $ac_includes_default
7705
7706 #include <$ac_header>
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7710 case "(($ac_try" in
7711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712   *) ac_try_echo=$ac_try;;
7713 esac
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715   (eval "$ac_compile") 2>conftest.er1
7716   ac_status=$?
7717   grep -v '^ *+' conftest.er1 >conftest.err
7718   rm -f conftest.er1
7719   cat conftest.err >&5
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } &&
7722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7723   { (case "(($ac_try" in
7724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725   *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728   (eval "$ac_try") 2>&5
7729   ac_status=$?
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); }; } &&
7732          { ac_try='test -s conftest.$ac_objext'
7733   { (case "(($ac_try" in
7734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735   *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738   (eval "$ac_try") 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; }; then
7742   eval "$as_ac_Header=yes"
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747         eval "$as_ac_Header=no"
7748 fi
7749
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 fi
7752 ac_res=`eval echo '${'$as_ac_Header'}'`
7753                { echo "$as_me:$LINENO: result: $ac_res" >&5
7754 echo "${ECHO_T}$ac_res" >&6; }
7755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7756   cat >>confdefs.h <<_ACEOF
7757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7758 _ACEOF
7759
7760 fi
7761
7762 done
7763
7764
7765
7766 for ac_header in errno.h
7767 do
7768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 fi
7775 ac_res=`eval echo '${'$as_ac_Header'}'`
7776                { echo "$as_me:$LINENO: result: $ac_res" >&5
7777 echo "${ECHO_T}$ac_res" >&6; }
7778 else
7779   # Is the header compilable?
7780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h.  */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h.  */
7788 $ac_includes_default
7789 #include <$ac_header>
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7793 case "(($ac_try" in
7794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795   *) ac_try_echo=$ac_try;;
7796 esac
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798   (eval "$ac_compile") 2>conftest.er1
7799   ac_status=$?
7800   grep -v '^ *+' conftest.er1 >conftest.err
7801   rm -f conftest.er1
7802   cat conftest.err >&5
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); } &&
7805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7806   { (case "(($ac_try" in
7807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808   *) ac_try_echo=$ac_try;;
7809 esac
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811   (eval "$ac_try") 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); }; } &&
7815          { ac_try='test -s conftest.$ac_objext'
7816   { (case "(($ac_try" in
7817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818   *) ac_try_echo=$ac_try;;
7819 esac
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821   (eval "$ac_try") 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }; }; then
7825   ac_header_compiler=yes
7826 else
7827   echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830         ac_header_compiler=no
7831 fi
7832
7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7835 echo "${ECHO_T}$ac_header_compiler" >&6; }
7836
7837 # Is the header present?
7838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7840 cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h.  */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h.  */
7846 #include <$ac_header>
7847 _ACEOF
7848 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
7861   if test -s conftest.err; then
7862     ac_cpp_err=$ac_c_preproc_warn_flag
7863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7864   else
7865     ac_cpp_err=
7866   fi
7867 else
7868   ac_cpp_err=yes
7869 fi
7870 if test -z "$ac_cpp_err"; then
7871   ac_header_preproc=yes
7872 else
7873   echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876   ac_header_preproc=no
7877 fi
7878
7879 rm -f conftest.err conftest.$ac_ext
7880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7881 echo "${ECHO_T}$ac_header_preproc" >&6; }
7882
7883 # So?  What about this header?
7884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7885   yes:no: )
7886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7890     ac_header_preproc=yes
7891     ;;
7892   no:yes:* )
7893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7905     ( cat <<\_ASBOX
7906 ## ------------------------------------ ##
7907 ## Report this to http://llvm.org/bugs/ ##
7908 ## ------------------------------------ ##
7909 _ASBOX
7910      ) | sed "s/^/$as_me: WARNING:     /" >&2
7911     ;;
7912 esac
7913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   eval "$as_ac_Header=\$ac_header_preproc"
7919 fi
7920 ac_res=`eval echo '${'$as_ac_Header'}'`
7921                { echo "$as_me:$LINENO: result: $ac_res" >&5
7922 echo "${ECHO_T}$ac_res" >&6; }
7923
7924 fi
7925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7926   cat >>confdefs.h <<_ACEOF
7927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7928 _ACEOF
7929
7930 fi
7931
7932 done
7933
7934
7935 case "$llvm_cv_os_type" in
7936   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7937   Darwin) llvm_shlib_ext=.dylib ;;
7938   *) llvm_shlib_ext=.so ;;
7939 esac
7940
7941
7942 cat >>confdefs.h <<_ACEOF
7943 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7944 _ACEOF
7945
7946
7947 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7948 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7949
7950 ICC=no
7951 IXX=no
7952 case $CC in
7953   icc*|icpc*)
7954     ICC=yes
7955     IXX=yes
7956     ;;
7957    *)
7958     ;;
7959 esac
7960
7961 if test "$GCC" != "yes" && test "$ICC" != "yes"
7962 then
7963   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7964 echo "$as_me: error: gcc|icc required but not found" >&2;}
7965    { (exit 1); exit 1; }; }
7966 fi
7967
7968 if test "$GXX" != "yes" && test "$IXX" != "yes"
7969 then
7970   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7971 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7972    { (exit 1); exit 1; }; }
7973 fi
7974
7975 if test "$GCC" = "yes"
7976 then
7977   cat >conftest.$ac_ext <<_ACEOF
7978
7979   /* confdefs.h.  */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h.  */
7984
7985     #if !defined(__GNUC__) || __GNUC__ < 3
7986     #error Unsupported GCC version
7987     #endif
7988
7989
7990 _ACEOF
7991 rm -f conftest.$ac_objext
7992 if { (ac_try="$ac_compile"
7993 case "(($ac_try" in
7994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995   *) ac_try_echo=$ac_try;;
7996 esac
7997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998   (eval "$ac_compile") 2>conftest.er1
7999   ac_status=$?
8000   grep -v '^ *+' conftest.er1 >conftest.err
8001   rm -f conftest.er1
8002   cat conftest.err >&5
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } &&
8005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8006   { (case "(($ac_try" in
8007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008   *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011   (eval "$ac_try") 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; } &&
8015          { ac_try='test -s conftest.$ac_objext'
8016   { (case "(($ac_try" in
8017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018   *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021   (eval "$ac_try") 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; }; then
8025   :
8026 else
8027   echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8031 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8032    { (exit 1); exit 1; }; }
8033 fi
8034
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 fi
8037
8038 if test -z "$llvm_cv_gnu_make_command"
8039 then
8040   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8041 echo "$as_me: error: GNU Make required but not found" >&2;}
8042    { (exit 1); exit 1; }; }
8043 fi
8044
8045 { echo "$as_me:$LINENO: result: ok" >&5
8046 echo "${ECHO_T}ok" >&6; }
8047
8048 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8049 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8050 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8051
8052 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8053
8054 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8055
8056
8057 NO_UNINITIALIZED=
8058 NO_MAYBE_UNINITIALIZED=
8059 if test "$GXX" = "yes"
8060 then
8061   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8062
8063         if test -z "$NO_MAYBE_UNINITIALIZED"
8064   then
8065     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8066
8067   fi
8068 fi
8069 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8070 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8071
8072
8073 # Check whether --with-python was given.
8074 if test "${with_python+set}" = set; then
8075   withval=$with_python; PYTHON="$withval"
8076 fi
8077
8078
8079 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8080   { echo "$as_me:$LINENO: checking for python" >&5
8081 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8082   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8083 echo "${ECHO_T}user defined: $with_python" >&6; }
8084 else
8085   if test -n "$PYTHON" ; then
8086     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8087 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8088   fi
8089
8090   # Extract the first word of "python python2 python26", so it can be a program name with args.
8091 set dummy python python2 python26; ac_word=$2
8092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8094 if test "${ac_cv_path_PYTHON+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   case $PYTHON in
8098   [\\/]* | ?:[\\/]*)
8099   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8100   ;;
8101   *)
8102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8104 do
8105   IFS=$as_save_IFS
8106   test -z "$as_dir" && as_dir=.
8107   for ac_exec_ext in '' $ac_executable_extensions; do
8108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8109     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111     break 2
8112   fi
8113 done
8114 done
8115 IFS=$as_save_IFS
8116
8117   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8118 echo "${ECHO_T}not found" >&6; }
8119                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8120 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8121    { (exit 1); exit 1; }; }"
8122   ;;
8123 esac
8124 fi
8125 PYTHON=$ac_cv_path_PYTHON
8126 if test -n "$PYTHON"; then
8127   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8128 echo "${ECHO_T}$PYTHON" >&6; }
8129 else
8130   { echo "$as_me:$LINENO: result: no" >&5
8131 echo "${ECHO_T}no" >&6; }
8132 fi
8133
8134
8135 fi
8136
8137 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8138 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8139 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8140 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8141 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8142 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8143 if test "$ac_python_version_major" -gt "2" || \
8144    (test "$ac_python_version_major" -eq "2" && \
8145     test "$ac_python_version_minor" -ge "5") ; then
8146   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8147 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8148 else
8149   { echo "$as_me:$LINENO: result: not found" >&5
8150 echo "${ECHO_T}not found" >&6; }
8151   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8152 See \`config.log' for more details." >&5
8153 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8154 See \`config.log' for more details." >&2;}
8155    { (exit 1); exit 1; }; }
8156 fi
8157
8158
8159
8160 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8161 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8162 if test "${ac_cv_lib_m_sin+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   ac_check_lib_save_LIBS=$LIBS
8166 LIBS="-lm  $LIBS"
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173
8174 /* Override any GCC internal prototype to avoid an error.
8175    Use char because int might match the return type of a GCC
8176    builtin and then its argument prototype would still apply.  */
8177 #ifdef __cplusplus
8178 extern "C"
8179 #endif
8180 char sin ();
8181 int
8182 main ()
8183 {
8184 return sin ();
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (ac_try="$ac_link"
8191 case "(($ac_try" in
8192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193   *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196   (eval "$ac_link") 2>conftest.er1
8197   ac_status=$?
8198   grep -v '^ *+' conftest.er1 >conftest.err
8199   rm -f conftest.er1
8200   cat conftest.err >&5
8201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); } &&
8203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8204   { (case "(($ac_try" in
8205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206   *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209   (eval "$ac_try") 2>&5
8210   ac_status=$?
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); }; } &&
8213          { ac_try='test -s conftest$ac_exeext'
8214   { (case "(($ac_try" in
8215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216   *) ac_try_echo=$ac_try;;
8217 esac
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219   (eval "$ac_try") 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_cv_lib_m_sin=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228         ac_cv_lib_m_sin=no
8229 fi
8230
8231 rm -f core conftest.err conftest.$ac_objext \
8232       conftest$ac_exeext conftest.$ac_ext
8233 LIBS=$ac_check_lib_save_LIBS
8234 fi
8235 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8236 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8237 if test $ac_cv_lib_m_sin = yes; then
8238   cat >>confdefs.h <<_ACEOF
8239 #define HAVE_LIBM 1
8240 _ACEOF
8241
8242   LIBS="-lm $LIBS"
8243
8244 fi
8245
8246 if test "$llvm_cv_os_type" = "MingW" ; then
8247
8248 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8249 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8250 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-limagehlp  $LIBS"
8255 cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261
8262
8263 int
8264 main ()
8265 {
8266 return main ();
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (ac_try="$ac_link"
8273 case "(($ac_try" in
8274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275   *) ac_try_echo=$ac_try;;
8276 esac
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278   (eval "$ac_link") 2>conftest.er1
8279   ac_status=$?
8280   grep -v '^ *+' conftest.er1 >conftest.err
8281   rm -f conftest.er1
8282   cat conftest.err >&5
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); } &&
8285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8286   { (case "(($ac_try" in
8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288   *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291   (eval "$ac_try") 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; } &&
8295          { ac_try='test -s conftest$ac_exeext'
8296   { (case "(($ac_try" in
8297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298   *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301   (eval "$ac_try") 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   ac_cv_lib_imagehlp_main=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310         ac_cv_lib_imagehlp_main=no
8311 fi
8312
8313 rm -f core conftest.err conftest.$ac_objext \
8314       conftest$ac_exeext conftest.$ac_ext
8315 LIBS=$ac_check_lib_save_LIBS
8316 fi
8317 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8318 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8319 if test $ac_cv_lib_imagehlp_main = yes; then
8320   cat >>confdefs.h <<_ACEOF
8321 #define HAVE_LIBIMAGEHLP 1
8322 _ACEOF
8323
8324   LIBS="-limagehlp $LIBS"
8325
8326 fi
8327
8328
8329 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8330 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8331 if test "${ac_cv_lib_psapi_main+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   ac_check_lib_save_LIBS=$LIBS
8335 LIBS="-lpsapi  $LIBS"
8336 cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342
8343
8344 int
8345 main ()
8346 {
8347 return main ();
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (ac_try="$ac_link"
8354 case "(($ac_try" in
8355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356   *) ac_try_echo=$ac_try;;
8357 esac
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359   (eval "$ac_link") 2>conftest.er1
8360   ac_status=$?
8361   grep -v '^ *+' conftest.er1 >conftest.err
8362   rm -f conftest.er1
8363   cat conftest.err >&5
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } &&
8366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367   { (case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372   (eval "$ac_try") 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; } &&
8376          { ac_try='test -s conftest$ac_exeext'
8377   { (case "(($ac_try" in
8378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379   *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382   (eval "$ac_try") 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; }; then
8386   ac_cv_lib_psapi_main=yes
8387 else
8388   echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391         ac_cv_lib_psapi_main=no
8392 fi
8393
8394 rm -f core conftest.err conftest.$ac_objext \
8395       conftest$ac_exeext conftest.$ac_ext
8396 LIBS=$ac_check_lib_save_LIBS
8397 fi
8398 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8399 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8400 if test $ac_cv_lib_psapi_main = yes; then
8401   cat >>confdefs.h <<_ACEOF
8402 #define HAVE_LIBPSAPI 1
8403 _ACEOF
8404
8405   LIBS="-lpsapi $LIBS"
8406
8407 fi
8408
8409
8410 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8411 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8412 if test "${ac_cv_lib_shell32_main+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-lshell32  $LIBS"
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424
8425 int
8426 main ()
8427 {
8428 return main ();
8429   ;
8430   return 0;
8431 }
8432 _ACEOF
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448   { (case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_try") 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; } &&
8457          { ac_try='test -s conftest$ac_exeext'
8458   { (case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_try") 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_cv_lib_shell32_main=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472         ac_cv_lib_shell32_main=no
8473 fi
8474
8475 rm -f core conftest.err conftest.$ac_objext \
8476       conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8478 fi
8479 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8480 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8481 if test $ac_cv_lib_shell32_main = yes; then
8482   cat >>confdefs.h <<_ACEOF
8483 #define HAVE_LIBSHELL32 1
8484 _ACEOF
8485
8486   LIBS="-lshell32 $LIBS"
8487
8488 fi
8489
8490 fi
8491
8492 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8493 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8494 if test "${ac_cv_search_dlopen+set}" = set; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   ac_func_search_save_LIBS=$LIBS
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504
8505 /* Override any GCC internal prototype to avoid an error.
8506    Use char because int might match the return type of a GCC
8507    builtin and then its argument prototype would still apply.  */
8508 #ifdef __cplusplus
8509 extern "C"
8510 #endif
8511 char dlopen ();
8512 int
8513 main ()
8514 {
8515 return dlopen ();
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 for ac_lib in '' dl; do
8521   if test -z "$ac_lib"; then
8522     ac_res="none required"
8523   else
8524     ac_res=-l$ac_lib
8525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8526   fi
8527   rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (ac_try="$ac_link"
8529 case "(($ac_try" in
8530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531   *) ac_try_echo=$ac_try;;
8532 esac
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534   (eval "$ac_link") 2>conftest.er1
8535   ac_status=$?
8536   grep -v '^ *+' conftest.er1 >conftest.err
8537   rm -f conftest.er1
8538   cat conftest.err >&5
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } &&
8541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8542   { (case "(($ac_try" in
8543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544   *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547   (eval "$ac_try") 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; } &&
8551          { ac_try='test -s conftest$ac_exeext'
8552   { (case "(($ac_try" in
8553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554   *) ac_try_echo=$ac_try;;
8555 esac
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557   (eval "$ac_try") 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   ac_cv_search_dlopen=$ac_res
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566
8567 fi
8568
8569 rm -f core conftest.err conftest.$ac_objext \
8570       conftest$ac_exeext
8571   if test "${ac_cv_search_dlopen+set}" = set; then
8572   break
8573 fi
8574 done
8575 if test "${ac_cv_search_dlopen+set}" = set; then
8576   :
8577 else
8578   ac_cv_search_dlopen=no
8579 fi
8580 rm conftest.$ac_ext
8581 LIBS=$ac_func_search_save_LIBS
8582 fi
8583 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8584 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8585 ac_res=$ac_cv_search_dlopen
8586 if test "$ac_res" != no; then
8587   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8588
8589
8590 cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_DLOPEN 1
8592 _ACEOF
8593
8594 HAVE_DLOPEN='1'
8595
8596
8597 else
8598   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8599 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8600 fi
8601
8602
8603 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8604 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8605 if test "${ac_cv_search_clock_gettime+set}" = set; then
8606   echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608   ac_func_search_save_LIBS=$LIBS
8609 cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615
8616 /* Override any GCC internal prototype to avoid an error.
8617    Use char because int might match the return type of a GCC
8618    builtin and then its argument prototype would still apply.  */
8619 #ifdef __cplusplus
8620 extern "C"
8621 #endif
8622 char clock_gettime ();
8623 int
8624 main ()
8625 {
8626 return clock_gettime ();
8627   ;
8628   return 0;
8629 }
8630 _ACEOF
8631 for ac_lib in '' rt; do
8632   if test -z "$ac_lib"; then
8633     ac_res="none required"
8634   else
8635     ac_res=-l$ac_lib
8636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8637   fi
8638   rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8640 case "(($ac_try" in
8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642   *) ac_try_echo=$ac_try;;
8643 esac
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645   (eval "$ac_link") 2>conftest.er1
8646   ac_status=$?
8647   grep -v '^ *+' conftest.er1 >conftest.err
8648   rm -f conftest.er1
8649   cat conftest.err >&5
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } &&
8652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8653   { (case "(($ac_try" in
8654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655   *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658   (eval "$ac_try") 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; } &&
8662          { ac_try='test -s conftest$ac_exeext'
8663   { (case "(($ac_try" in
8664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665   *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668   (eval "$ac_try") 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; }; then
8672   ac_cv_search_clock_gettime=$ac_res
8673 else
8674   echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677
8678 fi
8679
8680 rm -f core conftest.err conftest.$ac_objext \
8681       conftest$ac_exeext
8682   if test "${ac_cv_search_clock_gettime+set}" = set; then
8683   break
8684 fi
8685 done
8686 if test "${ac_cv_search_clock_gettime+set}" = set; then
8687   :
8688 else
8689   ac_cv_search_clock_gettime=no
8690 fi
8691 rm conftest.$ac_ext
8692 LIBS=$ac_func_search_save_LIBS
8693 fi
8694 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8695 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8696 ac_res=$ac_cv_search_clock_gettime
8697 if test "$ac_res" != no; then
8698   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8699
8700 fi
8701
8702
8703 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8704     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8705 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8706 if test "${ac_cv_search_setupterm+set}" = set; then
8707   echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709   ac_func_search_save_LIBS=$LIBS
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h.  */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h.  */
8716
8717 /* Override any GCC internal prototype to avoid an error.
8718    Use char because int might match the return type of a GCC
8719    builtin and then its argument prototype would still apply.  */
8720 #ifdef __cplusplus
8721 extern "C"
8722 #endif
8723 char setupterm ();
8724 int
8725 main ()
8726 {
8727 return setupterm ();
8728   ;
8729   return 0;
8730 }
8731 _ACEOF
8732 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8733   if test -z "$ac_lib"; then
8734     ac_res="none required"
8735   else
8736     ac_res=-l$ac_lib
8737     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8738   fi
8739   rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (ac_try="$ac_link"
8741 case "(($ac_try" in
8742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743   *) ac_try_echo=$ac_try;;
8744 esac
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746   (eval "$ac_link") 2>conftest.er1
8747   ac_status=$?
8748   grep -v '^ *+' conftest.er1 >conftest.err
8749   rm -f conftest.er1
8750   cat conftest.err >&5
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); } &&
8753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8754   { (case "(($ac_try" in
8755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756   *) ac_try_echo=$ac_try;;
8757 esac
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759   (eval "$ac_try") 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; } &&
8763          { ac_try='test -s conftest$ac_exeext'
8764   { (case "(($ac_try" in
8765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766   *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769   (eval "$ac_try") 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; }; then
8773   ac_cv_search_setupterm=$ac_res
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778
8779 fi
8780
8781 rm -f core conftest.err conftest.$ac_objext \
8782       conftest$ac_exeext
8783   if test "${ac_cv_search_setupterm+set}" = set; then
8784   break
8785 fi
8786 done
8787 if test "${ac_cv_search_setupterm+set}" = set; then
8788   :
8789 else
8790   ac_cv_search_setupterm=no
8791 fi
8792 rm conftest.$ac_ext
8793 LIBS=$ac_func_search_save_LIBS
8794 fi
8795 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8796 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8797 ac_res=$ac_cv_search_setupterm
8798 if test "$ac_res" != no; then
8799   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8800
8801
8802 cat >>confdefs.h <<\_ACEOF
8803 #define HAVE_TERMINFO 1
8804 _ACEOF
8805
8806 HAVE_TERMINFO='1'
8807
8808
8809 fi
8810
8811 fi
8812
8813 if test "$llvm_cv_enable_libedit" = "yes" ; then
8814   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8815 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8816 if test "${ac_cv_search_el_init+set}" = set; then
8817   echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819   ac_func_search_save_LIBS=$LIBS
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826
8827 /* Override any GCC internal prototype to avoid an error.
8828    Use char because int might match the return type of a GCC
8829    builtin and then its argument prototype would still apply.  */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 char el_init ();
8834 int
8835 main ()
8836 {
8837 return el_init ();
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 for ac_lib in '' edit; do
8843   if test -z "$ac_lib"; then
8844     ac_res="none required"
8845   else
8846     ac_res=-l$ac_lib
8847     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8848   fi
8849   rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (ac_try="$ac_link"
8851 case "(($ac_try" in
8852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853   *) ac_try_echo=$ac_try;;
8854 esac
8855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856   (eval "$ac_link") 2>conftest.er1
8857   ac_status=$?
8858   grep -v '^ *+' conftest.er1 >conftest.err
8859   rm -f conftest.er1
8860   cat conftest.err >&5
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } &&
8863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8864   { (case "(($ac_try" in
8865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866   *) ac_try_echo=$ac_try;;
8867 esac
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869   (eval "$ac_try") 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); }; } &&
8873          { ac_try='test -s conftest$ac_exeext'
8874   { (case "(($ac_try" in
8875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876   *) ac_try_echo=$ac_try;;
8877 esac
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879   (eval "$ac_try") 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; }; then
8883   ac_cv_search_el_init=$ac_res
8884 else
8885   echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888
8889 fi
8890
8891 rm -f core conftest.err conftest.$ac_objext \
8892       conftest$ac_exeext
8893   if test "${ac_cv_search_el_init+set}" = set; then
8894   break
8895 fi
8896 done
8897 if test "${ac_cv_search_el_init+set}" = set; then
8898   :
8899 else
8900   ac_cv_search_el_init=no
8901 fi
8902 rm conftest.$ac_ext
8903 LIBS=$ac_func_search_save_LIBS
8904 fi
8905 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8906 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8907 ac_res=$ac_cv_search_el_init
8908 if test "$ac_res" != no; then
8909   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8910
8911 cat >>confdefs.h <<\_ACEOF
8912 #define HAVE_LIBEDIT 1
8913 _ACEOF
8914
8915 fi
8916
8917 fi
8918
8919 if test "$llvm_cv_enable_libffi" = "yes" ; then
8920   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8921 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8922 if test "${ac_cv_search_ffi_call+set}" = set; then
8923   echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925   ac_func_search_save_LIBS=$LIBS
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h.  */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h.  */
8932
8933 /* Override any GCC internal prototype to avoid an error.
8934    Use char because int might match the return type of a GCC
8935    builtin and then its argument prototype would still apply.  */
8936 #ifdef __cplusplus
8937 extern "C"
8938 #endif
8939 char ffi_call ();
8940 int
8941 main ()
8942 {
8943 return ffi_call ();
8944   ;
8945   return 0;
8946 }
8947 _ACEOF
8948 for ac_lib in '' ffi; do
8949   if test -z "$ac_lib"; then
8950     ac_res="none required"
8951   else
8952     ac_res=-l$ac_lib
8953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8954   fi
8955   rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (ac_try="$ac_link"
8957 case "(($ac_try" in
8958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959   *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962   (eval "$ac_link") 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970   { (case "(($ac_try" in
8971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972   *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975   (eval "$ac_try") 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; } &&
8979          { ac_try='test -s conftest$ac_exeext'
8980   { (case "(($ac_try" in
8981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982   *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985   (eval "$ac_try") 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   ac_cv_search_ffi_call=$ac_res
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994
8995 fi
8996
8997 rm -f core conftest.err conftest.$ac_objext \
8998       conftest$ac_exeext
8999   if test "${ac_cv_search_ffi_call+set}" = set; then
9000   break
9001 fi
9002 done
9003 if test "${ac_cv_search_ffi_call+set}" = set; then
9004   :
9005 else
9006   ac_cv_search_ffi_call=no
9007 fi
9008 rm conftest.$ac_ext
9009 LIBS=$ac_func_search_save_LIBS
9010 fi
9011 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9012 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9013 ac_res=$ac_cv_search_ffi_call
9014 if test "$ac_res" != no; then
9015   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9016
9017 cat >>confdefs.h <<\_ACEOF
9018 #define HAVE_FFI_CALL 1
9019 _ACEOF
9020
9021 else
9022   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9023 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9024    { (exit 1); exit 1; }; }
9025 fi
9026
9027 fi
9028
9029 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9030 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9031 if test "${ac_cv_search_mallinfo+set}" = set; then
9032   echo $ECHO_N "(cached) $ECHO_C" >&6
9033 else
9034   ac_func_search_save_LIBS=$LIBS
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041
9042 /* Override any GCC internal prototype to avoid an error.
9043    Use char because int might match the return type of a GCC
9044    builtin and then its argument prototype would still apply.  */
9045 #ifdef __cplusplus
9046 extern "C"
9047 #endif
9048 char mallinfo ();
9049 int
9050 main ()
9051 {
9052 return mallinfo ();
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 for ac_lib in '' malloc; do
9058   if test -z "$ac_lib"; then
9059     ac_res="none required"
9060   else
9061     ac_res=-l$ac_lib
9062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9063   fi
9064   rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (ac_try="$ac_link"
9066 case "(($ac_try" in
9067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068   *) ac_try_echo=$ac_try;;
9069 esac
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071   (eval "$ac_link") 2>conftest.er1
9072   ac_status=$?
9073   grep -v '^ *+' conftest.er1 >conftest.err
9074   rm -f conftest.er1
9075   cat conftest.err >&5
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } &&
9078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079   { (case "(($ac_try" in
9080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081   *) ac_try_echo=$ac_try;;
9082 esac
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084   (eval "$ac_try") 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); }; } &&
9088          { ac_try='test -s conftest$ac_exeext'
9089   { (case "(($ac_try" in
9090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091   *) ac_try_echo=$ac_try;;
9092 esac
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094   (eval "$ac_try") 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); }; }; then
9098   ac_cv_search_mallinfo=$ac_res
9099 else
9100   echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9102
9103
9104 fi
9105
9106 rm -f core conftest.err conftest.$ac_objext \
9107       conftest$ac_exeext
9108   if test "${ac_cv_search_mallinfo+set}" = set; then
9109   break
9110 fi
9111 done
9112 if test "${ac_cv_search_mallinfo+set}" = set; then
9113   :
9114 else
9115   ac_cv_search_mallinfo=no
9116 fi
9117 rm conftest.$ac_ext
9118 LIBS=$ac_func_search_save_LIBS
9119 fi
9120 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9121 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9122 ac_res=$ac_cv_search_mallinfo
9123 if test "$ac_res" != no; then
9124   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9125
9126 cat >>confdefs.h <<\_ACEOF
9127 #define HAVE_MALLINFO 1
9128 _ACEOF
9129
9130 fi
9131
9132
9133 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9134
9135 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9136 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9137 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9138   echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140   ac_check_lib_save_LIBS=$LIBS
9141 LIBS="-lpthread  $LIBS"
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h.  */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h.  */
9148
9149 /* Override any GCC internal prototype to avoid an error.
9150    Use char because int might match the return type of a GCC
9151    builtin and then its argument prototype would still apply.  */
9152 #ifdef __cplusplus
9153 extern "C"
9154 #endif
9155 char pthread_mutex_init ();
9156 int
9157 main ()
9158 {
9159 return pthread_mutex_init ();
9160   ;
9161   return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (ac_try="$ac_link"
9166 case "(($ac_try" in
9167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168   *) ac_try_echo=$ac_try;;
9169 esac
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171   (eval "$ac_link") 2>conftest.er1
9172   ac_status=$?
9173   grep -v '^ *+' conftest.er1 >conftest.err
9174   rm -f conftest.er1
9175   cat conftest.err >&5
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); } &&
9178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9179   { (case "(($ac_try" in
9180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181   *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184   (eval "$ac_try") 2>&5
9185   ac_status=$?
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); }; } &&
9188          { ac_try='test -s conftest$ac_exeext'
9189   { (case "(($ac_try" in
9190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191   *) ac_try_echo=$ac_try;;
9192 esac
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194   (eval "$ac_try") 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); }; }; then
9198   ac_cv_lib_pthread_pthread_mutex_init=yes
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203         ac_cv_lib_pthread_pthread_mutex_init=no
9204 fi
9205
9206 rm -f core conftest.err conftest.$ac_objext \
9207       conftest$ac_exeext conftest.$ac_ext
9208 LIBS=$ac_check_lib_save_LIBS
9209 fi
9210 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9211 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9212 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9213   cat >>confdefs.h <<_ACEOF
9214 #define HAVE_LIBPTHREAD 1
9215 _ACEOF
9216
9217   LIBS="-lpthread $LIBS"
9218
9219 fi
9220
9221   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9222 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9223 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9224   echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226   ac_func_search_save_LIBS=$LIBS
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h.  */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h.  */
9233
9234 /* Override any GCC internal prototype to avoid an error.
9235    Use char because int might match the return type of a GCC
9236    builtin and then its argument prototype would still apply.  */
9237 #ifdef __cplusplus
9238 extern "C"
9239 #endif
9240 char pthread_mutex_lock ();
9241 int
9242 main ()
9243 {
9244 return pthread_mutex_lock ();
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 for ac_lib in '' pthread; do
9250   if test -z "$ac_lib"; then
9251     ac_res="none required"
9252   else
9253     ac_res=-l$ac_lib
9254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9255   fi
9256   rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (ac_try="$ac_link"
9258 case "(($ac_try" in
9259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260   *) ac_try_echo=$ac_try;;
9261 esac
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263   (eval "$ac_link") 2>conftest.er1
9264   ac_status=$?
9265   grep -v '^ *+' conftest.er1 >conftest.err
9266   rm -f conftest.er1
9267   cat conftest.err >&5
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } &&
9270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271   { (case "(($ac_try" in
9272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273   *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276   (eval "$ac_try") 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; } &&
9280          { ac_try='test -s conftest$ac_exeext'
9281   { (case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_try") 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_cv_search_pthread_mutex_lock=$ac_res
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295
9296 fi
9297
9298 rm -f core conftest.err conftest.$ac_objext \
9299       conftest$ac_exeext
9300   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9301   break
9302 fi
9303 done
9304 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9305   :
9306 else
9307   ac_cv_search_pthread_mutex_lock=no
9308 fi
9309 rm conftest.$ac_ext
9310 LIBS=$ac_func_search_save_LIBS
9311 fi
9312 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9313 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9314 ac_res=$ac_cv_search_pthread_mutex_lock
9315 if test "$ac_res" != no; then
9316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9317
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_PTHREAD_MUTEX_LOCK 1
9320 _ACEOF
9321
9322 fi
9323
9324   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9325 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9326 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   ac_func_search_save_LIBS=$LIBS
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h.  */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h.  */
9336
9337 /* Override any GCC internal prototype to avoid an error.
9338    Use char because int might match the return type of a GCC
9339    builtin and then its argument prototype would still apply.  */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 char pthread_rwlock_init ();
9344 int
9345 main ()
9346 {
9347 return pthread_rwlock_init ();
9348   ;
9349   return 0;
9350 }
9351 _ACEOF
9352 for ac_lib in '' pthread; do
9353   if test -z "$ac_lib"; then
9354     ac_res="none required"
9355   else
9356     ac_res=-l$ac_lib
9357     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9358   fi
9359   rm -f conftest.$ac_objext conftest$ac_exeext
9360 if { (ac_try="$ac_link"
9361 case "(($ac_try" in
9362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363   *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366   (eval "$ac_link") 2>conftest.er1
9367   ac_status=$?
9368   grep -v '^ *+' conftest.er1 >conftest.err
9369   rm -f conftest.er1
9370   cat conftest.err >&5
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); } &&
9373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9374   { (case "(($ac_try" in
9375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376   *) ac_try_echo=$ac_try;;
9377 esac
9378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379   (eval "$ac_try") 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); }; } &&
9383          { ac_try='test -s conftest$ac_exeext'
9384   { (case "(($ac_try" in
9385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386   *) ac_try_echo=$ac_try;;
9387 esac
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389   (eval "$ac_try") 2>&5
9390   ac_status=$?
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); }; }; then
9393   ac_cv_search_pthread_rwlock_init=$ac_res
9394 else
9395   echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9397
9398
9399 fi
9400
9401 rm -f core conftest.err conftest.$ac_objext \
9402       conftest$ac_exeext
9403   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9404   break
9405 fi
9406 done
9407 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9408   :
9409 else
9410   ac_cv_search_pthread_rwlock_init=no
9411 fi
9412 rm conftest.$ac_ext
9413 LIBS=$ac_func_search_save_LIBS
9414 fi
9415 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9416 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9417 ac_res=$ac_cv_search_pthread_rwlock_init
9418 if test "$ac_res" != no; then
9419   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9420
9421 cat >>confdefs.h <<\_ACEOF
9422 #define HAVE_PTHREAD_RWLOCK_INIT 1
9423 _ACEOF
9424
9425 fi
9426
9427   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9428 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9429 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   ac_func_search_save_LIBS=$LIBS
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439
9440 /* Override any GCC internal prototype to avoid an error.
9441    Use char because int might match the return type of a GCC
9442    builtin and then its argument prototype would still apply.  */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 char pthread_getspecific ();
9447 int
9448 main ()
9449 {
9450 return pthread_getspecific ();
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 for ac_lib in '' pthread; do
9456   if test -z "$ac_lib"; then
9457     ac_res="none required"
9458   else
9459     ac_res=-l$ac_lib
9460     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9461   fi
9462   rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (ac_try="$ac_link"
9464 case "(($ac_try" in
9465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466   *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469   (eval "$ac_link") 2>conftest.er1
9470   ac_status=$?
9471   grep -v '^ *+' conftest.er1 >conftest.err
9472   rm -f conftest.er1
9473   cat conftest.err >&5
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477   { (case "(($ac_try" in
9478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479   *) ac_try_echo=$ac_try;;
9480 esac
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482   (eval "$ac_try") 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; } &&
9486          { ac_try='test -s conftest$ac_exeext'
9487   { (case "(($ac_try" in
9488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489   *) ac_try_echo=$ac_try;;
9490 esac
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492   (eval "$ac_try") 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   ac_cv_search_pthread_getspecific=$ac_res
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501
9502 fi
9503
9504 rm -f core conftest.err conftest.$ac_objext \
9505       conftest$ac_exeext
9506   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9507   break
9508 fi
9509 done
9510 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9511   :
9512 else
9513   ac_cv_search_pthread_getspecific=no
9514 fi
9515 rm conftest.$ac_ext
9516 LIBS=$ac_func_search_save_LIBS
9517 fi
9518 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9519 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9520 ac_res=$ac_cv_search_pthread_getspecific
9521 if test "$ac_res" != no; then
9522   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define HAVE_PTHREAD_GETSPECIFIC 1
9526 _ACEOF
9527
9528 fi
9529
9530 fi
9531
9532 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9533
9534 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9535 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9536 if test "${ac_cv_lib_z_compress2+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   ac_check_lib_save_LIBS=$LIBS
9540 LIBS="-lz  $LIBS"
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h.  */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h.  */
9547
9548 /* Override any GCC internal prototype to avoid an error.
9549    Use char because int might match the return type of a GCC
9550    builtin and then its argument prototype would still apply.  */
9551 #ifdef __cplusplus
9552 extern "C"
9553 #endif
9554 char compress2 ();
9555 int
9556 main ()
9557 {
9558 return compress2 ();
9559   ;
9560   return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (ac_try="$ac_link"
9565 case "(($ac_try" in
9566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567   *) ac_try_echo=$ac_try;;
9568 esac
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570   (eval "$ac_link") 2>conftest.er1
9571   ac_status=$?
9572   grep -v '^ *+' conftest.er1 >conftest.err
9573   rm -f conftest.er1
9574   cat conftest.err >&5
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } &&
9577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9578   { (case "(($ac_try" in
9579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580   *) ac_try_echo=$ac_try;;
9581 esac
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583   (eval "$ac_try") 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; } &&
9587          { ac_try='test -s conftest$ac_exeext'
9588   { (case "(($ac_try" in
9589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590   *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593   (eval "$ac_try") 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; }; then
9597   ac_cv_lib_z_compress2=yes
9598 else
9599   echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9601
9602         ac_cv_lib_z_compress2=no
9603 fi
9604
9605 rm -f core conftest.err conftest.$ac_objext \
9606       conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_lib_save_LIBS
9608 fi
9609 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9610 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9611 if test $ac_cv_lib_z_compress2 = yes; then
9612   cat >>confdefs.h <<_ACEOF
9613 #define HAVE_LIBZ 1
9614 _ACEOF
9615
9616   LIBS="-lz $LIBS"
9617
9618 fi
9619
9620 fi
9621
9622
9623 # Check whether --with-oprofile was given.
9624 if test "${with_oprofile+set}" = set; then
9625   withval=$with_oprofile;
9626       USE_OPROFILE=1
9627
9628       case "$withval" in
9629         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9630         no) llvm_cv_oppath=
9631             USE_OPROFILE=0
9632  ;;
9633         *) llvm_cv_oppath="${withval}/lib/oprofile"
9634            CPPFLAGS="-I${withval}/include";;
9635       esac
9636       case $llvm_cv_os_type in
9637         Linux)
9638           if test -n "$llvm_cv_oppath" ; then
9639             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9640                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9641 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9642 if test "${ac_cv_search_bfd_init+set}" = set; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645   ac_func_search_save_LIBS=$LIBS
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652
9653 /* Override any GCC internal prototype to avoid an error.
9654    Use char because int might match the return type of a GCC
9655    builtin and then its argument prototype would still apply.  */
9656 #ifdef __cplusplus
9657 extern "C"
9658 #endif
9659 char bfd_init ();
9660 int
9661 main ()
9662 {
9663 return bfd_init ();
9664   ;
9665   return 0;
9666 }
9667 _ACEOF
9668 for ac_lib in '' bfd; do
9669   if test -z "$ac_lib"; then
9670     ac_res="none required"
9671   else
9672     ac_res=-l$ac_lib
9673     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9674   fi
9675   rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (ac_try="$ac_link"
9677 case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_link") 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9690   { (case "(($ac_try" in
9691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692   *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695   (eval "$ac_try") 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; } &&
9699          { ac_try='test -s conftest$ac_exeext'
9700   { (case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_try") 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; }; then
9709   ac_cv_search_bfd_init=$ac_res
9710 else
9711   echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714
9715 fi
9716
9717 rm -f core conftest.err conftest.$ac_objext \
9718       conftest$ac_exeext
9719   if test "${ac_cv_search_bfd_init+set}" = set; then
9720   break
9721 fi
9722 done
9723 if test "${ac_cv_search_bfd_init+set}" = set; then
9724   :
9725 else
9726   ac_cv_search_bfd_init=no
9727 fi
9728 rm conftest.$ac_ext
9729 LIBS=$ac_func_search_save_LIBS
9730 fi
9731 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9732 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9733 ac_res=$ac_cv_search_bfd_init
9734 if test "$ac_res" != no; then
9735   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9736
9737 fi
9738
9739             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9740 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9741 if test "${ac_cv_search_op_open_agent+set}" = set; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744   ac_func_search_save_LIBS=$LIBS
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751
9752 /* Override any GCC internal prototype to avoid an error.
9753    Use char because int might match the return type of a GCC
9754    builtin and then its argument prototype would still apply.  */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 char op_open_agent ();
9759 int
9760 main ()
9761 {
9762 return op_open_agent ();
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 for ac_lib in '' opagent; do
9768   if test -z "$ac_lib"; then
9769     ac_res="none required"
9770   else
9771     ac_res=-l$ac_lib
9772     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9773   fi
9774   rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9776 case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_link") 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789   { (case "(($ac_try" in
9790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791   *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794   (eval "$ac_try") 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; } &&
9798          { ac_try='test -s conftest$ac_exeext'
9799   { (case "(($ac_try" in
9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801   *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804   (eval "$ac_try") 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; }; then
9808   ac_cv_search_op_open_agent=$ac_res
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813
9814 fi
9815
9816 rm -f core conftest.err conftest.$ac_objext \
9817       conftest$ac_exeext
9818   if test "${ac_cv_search_op_open_agent+set}" = set; then
9819   break
9820 fi
9821 done
9822 if test "${ac_cv_search_op_open_agent+set}" = set; then
9823   :
9824 else
9825   ac_cv_search_op_open_agent=no
9826 fi
9827 rm conftest.$ac_ext
9828 LIBS=$ac_func_search_save_LIBS
9829 fi
9830 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9831 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9832 ac_res=$ac_cv_search_op_open_agent
9833 if test "$ac_res" != no; then
9834   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9835
9836 else
9837
9838               echo "Error! You need to have libopagent around."
9839               exit -1
9840
9841 fi
9842
9843             if test "${ac_cv_header_opagent_h+set}" = set; then
9844   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9845 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9846 if test "${ac_cv_header_opagent_h+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 fi
9849 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9850 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9851 else
9852   # Is the header compilable?
9853 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9854 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9855 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h.  */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h.  */
9861 $ac_includes_default
9862 #include <opagent.h>
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (ac_try="$ac_compile"
9866 case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_compile") 2>conftest.er1
9872   ac_status=$?
9873   grep -v '^ *+' conftest.er1 >conftest.err
9874   rm -f conftest.er1
9875   cat conftest.err >&5
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); } &&
9878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879   { (case "(($ac_try" in
9880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881   *) ac_try_echo=$ac_try;;
9882 esac
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884   (eval "$ac_try") 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; } &&
9888          { ac_try='test -s conftest.$ac_objext'
9889   { (case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894   (eval "$ac_try") 2>&5
9895   ac_status=$?
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); }; }; then
9898   ac_header_compiler=yes
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903         ac_header_compiler=no
9904 fi
9905
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9908 echo "${ECHO_T}$ac_header_compiler" >&6; }
9909
9910 # Is the header present?
9911 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9912 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9913 cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919 #include <opagent.h>
9920 _ACEOF
9921 if { (ac_try="$ac_cpp conftest.$ac_ext"
9922 case "(($ac_try" in
9923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924   *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } >/dev/null; then
9934   if test -s conftest.err; then
9935     ac_cpp_err=$ac_c_preproc_warn_flag
9936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9937   else
9938     ac_cpp_err=
9939   fi
9940 else
9941   ac_cpp_err=yes
9942 fi
9943 if test -z "$ac_cpp_err"; then
9944   ac_header_preproc=yes
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949   ac_header_preproc=no
9950 fi
9951
9952 rm -f conftest.err conftest.$ac_ext
9953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9954 echo "${ECHO_T}$ac_header_preproc" >&6; }
9955
9956 # So?  What about this header?
9957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9958   yes:no: )
9959     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
9960 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9961     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
9962 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
9963     ac_header_preproc=yes
9964     ;;
9965   no:yes:* )
9966     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
9967 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
9968     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
9969 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
9970     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
9971 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
9972     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
9973 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9974     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
9975 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
9976     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
9977 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
9978     ( cat <<\_ASBOX
9979 ## ------------------------------------ ##
9980 ## Report this to http://llvm.org/bugs/ ##
9981 ## ------------------------------------ ##
9982 _ASBOX
9983      ) | sed "s/^/$as_me: WARNING:     /" >&2
9984     ;;
9985 esac
9986 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9987 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9988 if test "${ac_cv_header_opagent_h+set}" = set; then
9989   echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991   ac_cv_header_opagent_h=$ac_header_preproc
9992 fi
9993 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9994 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9995
9996 fi
9997 if test $ac_cv_header_opagent_h = yes; then
9998   :
9999 else
10000
10001               echo "Error! You need to have opagent.h around."
10002               exit -1
10003
10004 fi
10005
10006
10007           fi ;;
10008         *)
10009           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10010 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10011    { (exit 1); exit 1; }; } ;;
10012       esac
10013
10014 else
10015
10016       USE_OPROFILE=0
10017
10018
10019 fi
10020
10021
10022 cat >>confdefs.h <<_ACEOF
10023 #define LLVM_USE_OPROFILE $USE_OPROFILE
10024 _ACEOF
10025
10026
10027
10028 # Check whether --with-intel-jitevents was given.
10029 if test "${with_intel_jitevents+set}" = set; then
10030   withval=$with_intel_jitevents;
10031        case "$withval" in
10032           yes) USE_INTEL_JITEVENTS=1
10033 ;;
10034           no)  USE_INTEL_JITEVENTS=0
10035 ;;
10036           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10037 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10038    { (exit 1); exit 1; }; };;
10039        esac
10040
10041       case $llvm_cv_os_type in
10042         Linux|Win32|Cygwin|MingW) ;;
10043         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10044 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10045    { (exit 1); exit 1; }; };;
10046       esac
10047
10048       case "$llvm_cv_target_arch" in
10049         x86|x86_64) ;;
10050         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10051 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10052    { (exit 1); exit 1; }; };;
10053       esac
10054
10055 else
10056
10057       USE_INTEL_JITEVENTS=0
10058
10059
10060 fi
10061
10062
10063 cat >>confdefs.h <<_ACEOF
10064 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10065 _ACEOF
10066
10067
10068 for ac_prog in xml2-config
10069 do
10070   # Extract the first word of "$ac_prog", so it can be a program name with args.
10071 set dummy $ac_prog; ac_word=$2
10072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10074 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077   if test -n "$XML2CONFIG"; then
10078   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10079 else
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10082 do
10083   IFS=$as_save_IFS
10084   test -z "$as_dir" && as_dir=.
10085   for ac_exec_ext in '' $ac_executable_extensions; do
10086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10087     ac_cv_prog_XML2CONFIG="$ac_prog"
10088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10089     break 2
10090   fi
10091 done
10092 done
10093 IFS=$as_save_IFS
10094
10095 fi
10096 fi
10097 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10098 if test -n "$XML2CONFIG"; then
10099   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10100 echo "${ECHO_T}$XML2CONFIG" >&6; }
10101 else
10102   { echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6; }
10104 fi
10105
10106
10107   test -n "$XML2CONFIG" && break
10108 done
10109
10110
10111 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10112 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10113 if test "x$XML2CONFIG" = "x"; then
10114  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10115 echo "${ECHO_T}xml2-config not found" >&6; }
10116 else
10117  LIBXML2_INC=`$XML2CONFIG --cflags`
10118  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10119 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10120  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10121 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10122 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10123   echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125   ac_check_lib_save_LIBS=$LIBS
10126 LIBS="-lxml2  $LIBS"
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133
10134 /* Override any GCC internal prototype to avoid an error.
10135    Use char because int might match the return type of a GCC
10136    builtin and then its argument prototype would still apply.  */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 char xmlReadFile ();
10141 int
10142 main ()
10143 {
10144 return xmlReadFile ();
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153   *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156   (eval "$ac_link") 2>conftest.er1
10157   ac_status=$?
10158   grep -v '^ *+' conftest.er1 >conftest.err
10159   rm -f conftest.er1
10160   cat conftest.err >&5
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); } &&
10163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10164   { (case "(($ac_try" in
10165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166   *) ac_try_echo=$ac_try;;
10167 esac
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169   (eval "$ac_try") 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; } &&
10173          { ac_try='test -s conftest$ac_exeext'
10174   { (case "(($ac_try" in
10175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176   *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179   (eval "$ac_try") 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }; then
10183   ac_cv_lib_xml2_xmlReadFile=yes
10184 else
10185   echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188         ac_cv_lib_xml2_xmlReadFile=no
10189 fi
10190
10191 rm -f core conftest.err conftest.$ac_objext \
10192       conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10194 fi
10195 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10196 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10197 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10198
10199 cat >>confdefs.h <<\_ACEOF
10200 #define CLANG_HAVE_LIBXML 1
10201 _ACEOF
10202
10203                                 LIBXML2_LIBS="-lxml2"
10204 fi
10205
10206 fi
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216 ac_header_dirent=no
10217 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10218   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10219 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10220 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10222   echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224   cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h.  */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h.  */
10230 #include <sys/types.h>
10231 #include <$ac_hdr>
10232
10233 int
10234 main ()
10235 {
10236 if ((DIR *) 0)
10237 return 0;
10238   ;
10239   return 0;
10240 }
10241 _ACEOF
10242 rm -f conftest.$ac_objext
10243 if { (ac_try="$ac_compile"
10244 case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_compile") 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10257   { (case "(($ac_try" in
10258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259   *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262   (eval "$ac_try") 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; } &&
10266          { ac_try='test -s conftest.$ac_objext'
10267   { (case "(($ac_try" in
10268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269   *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272   (eval "$ac_try") 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; }; then
10276   eval "$as_ac_Header=yes"
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281         eval "$as_ac_Header=no"
10282 fi
10283
10284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10285 fi
10286 ac_res=`eval echo '${'$as_ac_Header'}'`
10287                { echo "$as_me:$LINENO: result: $ac_res" >&5
10288 echo "${ECHO_T}$ac_res" >&6; }
10289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10290   cat >>confdefs.h <<_ACEOF
10291 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10292 _ACEOF
10293
10294 ac_header_dirent=$ac_hdr; break
10295 fi
10296
10297 done
10298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10299 if test $ac_header_dirent = dirent.h; then
10300   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10301 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10302 if test "${ac_cv_search_opendir+set}" = set; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   ac_func_search_save_LIBS=$LIBS
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h.  */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h.  */
10312
10313 /* Override any GCC internal prototype to avoid an error.
10314    Use char because int might match the return type of a GCC
10315    builtin and then its argument prototype would still apply.  */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char opendir ();
10320 int
10321 main ()
10322 {
10323 return opendir ();
10324   ;
10325   return 0;
10326 }
10327 _ACEOF
10328 for ac_lib in '' dir; do
10329   if test -z "$ac_lib"; then
10330     ac_res="none required"
10331   else
10332     ac_res=-l$ac_lib
10333     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10334   fi
10335   rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339   *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342   (eval "$ac_link") 2>conftest.er1
10343   ac_status=$?
10344   grep -v '^ *+' conftest.er1 >conftest.err
10345   rm -f conftest.er1
10346   cat conftest.err >&5
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); } &&
10349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10350   { (case "(($ac_try" in
10351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352   *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355   (eval "$ac_try") 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; } &&
10359          { ac_try='test -s conftest$ac_exeext'
10360   { (case "(($ac_try" in
10361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362   *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365   (eval "$ac_try") 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; }; then
10369   ac_cv_search_opendir=$ac_res
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374
10375 fi
10376
10377 rm -f core conftest.err conftest.$ac_objext \
10378       conftest$ac_exeext
10379   if test "${ac_cv_search_opendir+set}" = set; then
10380   break
10381 fi
10382 done
10383 if test "${ac_cv_search_opendir+set}" = set; then
10384   :
10385 else
10386   ac_cv_search_opendir=no
10387 fi
10388 rm conftest.$ac_ext
10389 LIBS=$ac_func_search_save_LIBS
10390 fi
10391 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10392 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10393 ac_res=$ac_cv_search_opendir
10394 if test "$ac_res" != no; then
10395   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10396
10397 fi
10398
10399 else
10400   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10401 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10402 if test "${ac_cv_search_opendir+set}" = set; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405   ac_func_search_save_LIBS=$LIBS
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h.  */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h.  */
10412
10413 /* Override any GCC internal prototype to avoid an error.
10414    Use char because int might match the return type of a GCC
10415    builtin and then its argument prototype would still apply.  */
10416 #ifdef __cplusplus
10417 extern "C"
10418 #endif
10419 char opendir ();
10420 int
10421 main ()
10422 {
10423 return opendir ();
10424   ;
10425   return 0;
10426 }
10427 _ACEOF
10428 for ac_lib in '' x; do
10429   if test -z "$ac_lib"; then
10430     ac_res="none required"
10431   else
10432     ac_res=-l$ac_lib
10433     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10434   fi
10435   rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (ac_try="$ac_link"
10437 case "(($ac_try" in
10438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439   *) ac_try_echo=$ac_try;;
10440 esac
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442   (eval "$ac_link") 2>conftest.er1
10443   ac_status=$?
10444   grep -v '^ *+' conftest.er1 >conftest.err
10445   rm -f conftest.er1
10446   cat conftest.err >&5
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } &&
10449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450   { (case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_try") 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); }; } &&
10459          { ac_try='test -s conftest$ac_exeext'
10460   { (case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_try") 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; }; then
10469   ac_cv_search_opendir=$ac_res
10470 else
10471   echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474
10475 fi
10476
10477 rm -f core conftest.err conftest.$ac_objext \
10478       conftest$ac_exeext
10479   if test "${ac_cv_search_opendir+set}" = set; then
10480   break
10481 fi
10482 done
10483 if test "${ac_cv_search_opendir+set}" = set; then
10484   :
10485 else
10486   ac_cv_search_opendir=no
10487 fi
10488 rm conftest.$ac_ext
10489 LIBS=$ac_func_search_save_LIBS
10490 fi
10491 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10492 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10493 ac_res=$ac_cv_search_opendir
10494 if test "$ac_res" != no; then
10495   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10496
10497 fi
10498
10499 fi
10500
10501 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10502 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10503 if test "${ac_cv_header_mmap_anon+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506    ac_ext=c
10507 ac_cpp='$CPP $CPPFLAGS'
10508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511
10512   cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h.  */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h.  */
10518 #include <sys/mman.h>
10519 #include <unistd.h>
10520 #include <fcntl.h>
10521 int
10522 main ()
10523 {
10524 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10525   ;
10526   return 0;
10527 }
10528 _ACEOF
10529 rm -f conftest.$ac_objext
10530 if { (ac_try="$ac_compile"
10531 case "(($ac_try" in
10532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533   *) ac_try_echo=$ac_try;;
10534 esac
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536   (eval "$ac_compile") 2>conftest.er1
10537   ac_status=$?
10538   grep -v '^ *+' conftest.er1 >conftest.err
10539   rm -f conftest.er1
10540   cat conftest.err >&5
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); } &&
10543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544   { (case "(($ac_try" in
10545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546   *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549   (eval "$ac_try") 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; } &&
10553          { ac_try='test -s conftest.$ac_objext'
10554   { (case "(($ac_try" in
10555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556   *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559   (eval "$ac_try") 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563   ac_cv_header_mmap_anon=yes
10564 else
10565   echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568         ac_cv_header_mmap_anon=no
10569 fi
10570
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572   ac_ext=c
10573 ac_cpp='$CPP $CPPFLAGS'
10574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10577
10578
10579 fi
10580 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10581 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10582 if test "$ac_cv_header_mmap_anon" = yes; then
10583
10584 cat >>confdefs.h <<\_ACEOF
10585 #define HAVE_MMAP_ANONYMOUS 1
10586 _ACEOF
10587
10588 fi
10589
10590 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10591 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10592 if test "${ac_cv_header_stat_broken+set}" = set; then
10593   echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595   cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h.  */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h.  */
10601 #include <sys/types.h>
10602 #include <sys/stat.h>
10603
10604 #if defined S_ISBLK && defined S_IFDIR
10605 # if S_ISBLK (S_IFDIR)
10606 You lose.
10607 # endif
10608 #endif
10609
10610 #if defined S_ISBLK && defined S_IFCHR
10611 # if S_ISBLK (S_IFCHR)
10612 You lose.
10613 # endif
10614 #endif
10615
10616 #if defined S_ISLNK && defined S_IFREG
10617 # if S_ISLNK (S_IFREG)
10618 You lose.
10619 # endif
10620 #endif
10621
10622 #if defined S_ISSOCK && defined S_IFREG
10623 # if S_ISSOCK (S_IFREG)
10624 You lose.
10625 # endif
10626 #endif
10627
10628 _ACEOF
10629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10630   $EGREP "You lose" >/dev/null 2>&1; then
10631   ac_cv_header_stat_broken=yes
10632 else
10633   ac_cv_header_stat_broken=no
10634 fi
10635 rm -f conftest*
10636
10637 fi
10638 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10639 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10640 if test $ac_cv_header_stat_broken = yes; then
10641
10642 cat >>confdefs.h <<\_ACEOF
10643 #define STAT_MACROS_BROKEN 1
10644 _ACEOF
10645
10646 fi
10647
10648 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10649 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10650 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653   cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h.  */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h.  */
10659 #include <sys/types.h>
10660 #include <sys/wait.h>
10661 #ifndef WEXITSTATUS
10662 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10663 #endif
10664 #ifndef WIFEXITED
10665 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10666 #endif
10667
10668 int
10669 main ()
10670 {
10671   int s;
10672   wait (&s);
10673   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 rm -f conftest.$ac_objext
10679 if { (ac_try="$ac_compile"
10680 case "(($ac_try" in
10681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682   *) ac_try_echo=$ac_try;;
10683 esac
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685   (eval "$ac_compile") 2>conftest.er1
10686   ac_status=$?
10687   grep -v '^ *+' conftest.er1 >conftest.err
10688   rm -f conftest.er1
10689   cat conftest.err >&5
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } &&
10692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10702          { ac_try='test -s conftest.$ac_objext'
10703   { (case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708   (eval "$ac_try") 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; }; then
10712   ac_cv_header_sys_wait_h=yes
10713 else
10714   echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10716
10717         ac_cv_header_sys_wait_h=no
10718 fi
10719
10720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10721 fi
10722 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10723 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10724 if test $ac_cv_header_sys_wait_h = yes; then
10725
10726 cat >>confdefs.h <<\_ACEOF
10727 #define HAVE_SYS_WAIT_H 1
10728 _ACEOF
10729
10730 fi
10731
10732 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10733 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10734 if test "${ac_cv_header_time+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 #include <sys/types.h>
10744 #include <sys/time.h>
10745 #include <time.h>
10746
10747 int
10748 main ()
10749 {
10750 if ((struct tm *) 0)
10751 return 0;
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext
10757 if { (ac_try="$ac_compile"
10758 case "(($ac_try" in
10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760   *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763   (eval "$ac_compile") 2>conftest.er1
10764   ac_status=$?
10765   grep -v '^ *+' conftest.er1 >conftest.err
10766   rm -f conftest.er1
10767   cat conftest.err >&5
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } &&
10770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771   { (case "(($ac_try" in
10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773   *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776   (eval "$ac_try") 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; } &&
10780          { ac_try='test -s conftest.$ac_objext'
10781   { (case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_try") 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); }; }; then
10790   ac_cv_header_time=yes
10791 else
10792   echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795         ac_cv_header_time=no
10796 fi
10797
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 fi
10800 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10801 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10802 if test $ac_cv_header_time = yes; then
10803
10804 cat >>confdefs.h <<\_ACEOF
10805 #define TIME_WITH_SYS_TIME 1
10806 _ACEOF
10807
10808 fi
10809
10810
10811 ac_ext=cpp
10812 ac_cpp='$CXXCPP $CPPFLAGS'
10813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10816
10817
10818 for ac_header in cxxabi.h
10819 do
10820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826   cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832 #include <stddef.h>
10833
10834
10835 #include <$ac_header>
10836 _ACEOF
10837 rm -f conftest.$ac_objext
10838 if { (ac_try="$ac_compile"
10839 case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_compile") 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10852   { (case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_try") 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; } &&
10861          { ac_try='test -s conftest.$ac_objext'
10862   { (case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_try") 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   eval "$as_ac_Header=yes"
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876         eval "$as_ac_Header=no"
10877 fi
10878
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 fi
10881 ac_res=`eval echo '${'$as_ac_Header'}'`
10882                { echo "$as_me:$LINENO: result: $ac_res" >&5
10883 echo "${ECHO_T}$ac_res" >&6; }
10884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10885   cat >>confdefs.h <<_ACEOF
10886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10887 _ACEOF
10888
10889 fi
10890
10891 done
10892
10893 ac_ext=c
10894 ac_cpp='$CPP $CPPFLAGS'
10895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10898
10899
10900
10901
10902
10903
10904
10905 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10906 do
10907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 fi
10914 ac_res=`eval echo '${'$as_ac_Header'}'`
10915                { echo "$as_me:$LINENO: result: $ac_res" >&5
10916 echo "${ECHO_T}$ac_res" >&6; }
10917 else
10918   # Is the header compilable?
10919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h.  */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h.  */
10927 $ac_includes_default
10928 #include <$ac_header>
10929 _ACEOF
10930 rm -f conftest.$ac_objext
10931 if { (ac_try="$ac_compile"
10932 case "(($ac_try" in
10933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934   *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937   (eval "$ac_compile") 2>conftest.er1
10938   ac_status=$?
10939   grep -v '^ *+' conftest.er1 >conftest.err
10940   rm -f conftest.er1
10941   cat conftest.err >&5
10942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); } &&
10944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945   { (case "(($ac_try" in
10946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947   *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950   (eval "$ac_try") 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; } &&
10954          { ac_try='test -s conftest.$ac_objext'
10955   { (case "(($ac_try" in
10956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957   *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960   (eval "$ac_try") 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); }; }; then
10964   ac_header_compiler=yes
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969         ac_header_compiler=no
10970 fi
10971
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10974 echo "${ECHO_T}$ac_header_compiler" >&6; }
10975
10976 # Is the header present?
10977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
10986 _ACEOF
10987 if { (ac_try="$ac_cpp conftest.$ac_ext"
10988 case "(($ac_try" in
10989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990   *) ac_try_echo=$ac_try;;
10991 esac
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10994   ac_status=$?
10995   grep -v '^ *+' conftest.er1 >conftest.err
10996   rm -f conftest.er1
10997   cat conftest.err >&5
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } >/dev/null; then
11000   if test -s conftest.err; then
11001     ac_cpp_err=$ac_c_preproc_warn_flag
11002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11003   else
11004     ac_cpp_err=
11005   fi
11006 else
11007   ac_cpp_err=yes
11008 fi
11009 if test -z "$ac_cpp_err"; then
11010   ac_header_preproc=yes
11011 else
11012   echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015   ac_header_preproc=no
11016 fi
11017
11018 rm -f conftest.err conftest.$ac_ext
11019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11020 echo "${ECHO_T}$ac_header_preproc" >&6; }
11021
11022 # So?  What about this header?
11023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11024   yes:no: )
11025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11029     ac_header_preproc=yes
11030     ;;
11031   no:yes:* )
11032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11044     ( cat <<\_ASBOX
11045 ## ------------------------------------ ##
11046 ## Report this to http://llvm.org/bugs/ ##
11047 ## ------------------------------------ ##
11048 _ASBOX
11049      ) | sed "s/^/$as_me: WARNING:     /" >&2
11050     ;;
11051 esac
11052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11055   echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057   eval "$as_ac_Header=\$ac_header_preproc"
11058 fi
11059 ac_res=`eval echo '${'$as_ac_Header'}'`
11060                { echo "$as_me:$LINENO: result: $ac_res" >&5
11061 echo "${ECHO_T}$ac_res" >&6; }
11062
11063 fi
11064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11065   cat >>confdefs.h <<_ACEOF
11066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11067 _ACEOF
11068
11069 fi
11070
11071 done
11072
11073
11074
11075
11076
11077
11078
11079 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11080 do
11081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 fi
11088 ac_res=`eval echo '${'$as_ac_Header'}'`
11089                { echo "$as_me:$LINENO: result: $ac_res" >&5
11090 echo "${ECHO_T}$ac_res" >&6; }
11091 else
11092   # Is the header compilable?
11093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 $ac_includes_default
11102 #include <$ac_header>
11103 _ACEOF
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111   (eval "$ac_compile") 2>conftest.er1
11112   ac_status=$?
11113   grep -v '^ *+' conftest.er1 >conftest.err
11114   rm -f conftest.er1
11115   cat conftest.err >&5
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); } &&
11118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119   { (case "(($ac_try" in
11120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121   *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124   (eval "$ac_try") 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; } &&
11128          { ac_try='test -s conftest.$ac_objext'
11129   { (case "(($ac_try" in
11130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131   *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134   (eval "$ac_try") 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; }; then
11138   ac_header_compiler=yes
11139 else
11140   echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143         ac_header_compiler=no
11144 fi
11145
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11149
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h.  */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h.  */
11159 #include <$ac_header>
11160 _ACEOF
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164   *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168   ac_status=$?
11169   grep -v '^ *+' conftest.er1 >conftest.err
11170   rm -f conftest.er1
11171   cat conftest.err >&5
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); } >/dev/null; then
11174   if test -s conftest.err; then
11175     ac_cpp_err=$ac_c_preproc_warn_flag
11176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11177   else
11178     ac_cpp_err=
11179   fi
11180 else
11181   ac_cpp_err=yes
11182 fi
11183 if test -z "$ac_cpp_err"; then
11184   ac_header_preproc=yes
11185 else
11186   echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189   ac_header_preproc=no
11190 fi
11191
11192 rm -f conftest.err conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6; }
11195
11196 # So?  What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198   yes:no: )
11199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203     ac_header_preproc=yes
11204     ;;
11205   no:yes:* )
11206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218     ( cat <<\_ASBOX
11219 ## ------------------------------------ ##
11220 ## Report this to http://llvm.org/bugs/ ##
11221 ## ------------------------------------ ##
11222 _ASBOX
11223      ) | sed "s/^/$as_me: WARNING:     /" >&2
11224     ;;
11225 esac
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   eval "$as_ac_Header=\$ac_header_preproc"
11232 fi
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234                { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11236
11237 fi
11238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239   cat >>confdefs.h <<_ACEOF
11240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11241 _ACEOF
11242
11243 fi
11244
11245 done
11246
11247
11248 for ac_header in utime.h
11249 do
11250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 fi
11257 ac_res=`eval echo '${'$as_ac_Header'}'`
11258                { echo "$as_me:$LINENO: result: $ac_res" >&5
11259 echo "${ECHO_T}$ac_res" >&6; }
11260 else
11261   # Is the header compilable?
11262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11264 cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 $ac_includes_default
11271 #include <$ac_header>
11272 _ACEOF
11273 rm -f conftest.$ac_objext
11274 if { (ac_try="$ac_compile"
11275 case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_compile") 2>conftest.er1
11281   ac_status=$?
11282   grep -v '^ *+' conftest.er1 >conftest.err
11283   rm -f conftest.er1
11284   cat conftest.err >&5
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); } &&
11287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11288   { (case "(($ac_try" in
11289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290   *) ac_try_echo=$ac_try;;
11291 esac
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293   (eval "$ac_try") 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); }; } &&
11297          { ac_try='test -s conftest.$ac_objext'
11298   { (case "(($ac_try" in
11299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300   *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303   (eval "$ac_try") 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); }; }; then
11307   ac_header_compiler=yes
11308 else
11309   echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312         ac_header_compiler=no
11313 fi
11314
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317 echo "${ECHO_T}$ac_header_compiler" >&6; }
11318
11319 # Is the header present?
11320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328 #include <$ac_header>
11329 _ACEOF
11330 if { (ac_try="$ac_cpp conftest.$ac_ext"
11331 case "(($ac_try" in
11332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333   *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11337   ac_status=$?
11338   grep -v '^ *+' conftest.er1 >conftest.err
11339   rm -f conftest.er1
11340   cat conftest.err >&5
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } >/dev/null; then
11343   if test -s conftest.err; then
11344     ac_cpp_err=$ac_c_preproc_warn_flag
11345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11346   else
11347     ac_cpp_err=
11348   fi
11349 else
11350   ac_cpp_err=yes
11351 fi
11352 if test -z "$ac_cpp_err"; then
11353   ac_header_preproc=yes
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358   ac_header_preproc=no
11359 fi
11360
11361 rm -f conftest.err conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11363 echo "${ECHO_T}$ac_header_preproc" >&6; }
11364
11365 # So?  What about this header?
11366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11367   yes:no: )
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11372     ac_header_preproc=yes
11373     ;;
11374   no:yes:* )
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11378 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11382 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11387     ( cat <<\_ASBOX
11388 ## ------------------------------------ ##
11389 ## Report this to http://llvm.org/bugs/ ##
11390 ## ------------------------------------ ##
11391 _ASBOX
11392      ) | sed "s/^/$as_me: WARNING:     /" >&2
11393     ;;
11394 esac
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 else
11400   eval "$as_ac_Header=\$ac_header_preproc"
11401 fi
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403                { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11405
11406 fi
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408   cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11410 _ACEOF
11411
11412 fi
11413
11414 done
11415
11416
11417
11418
11419
11420
11421 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11422 do
11423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11428   echo $ECHO_N "(cached) $ECHO_C" >&6
11429 fi
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431                { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11433 else
11434   # Is the header compilable?
11435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 $ac_includes_default
11444 #include <$ac_header>
11445 _ACEOF
11446 rm -f conftest.$ac_objext
11447 if { (ac_try="$ac_compile"
11448 case "(($ac_try" in
11449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450   *) ac_try_echo=$ac_try;;
11451 esac
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453   (eval "$ac_compile") 2>conftest.er1
11454   ac_status=$?
11455   grep -v '^ *+' conftest.er1 >conftest.err
11456   rm -f conftest.er1
11457   cat conftest.err >&5
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } &&
11460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11461   { (case "(($ac_try" in
11462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463   *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466   (eval "$ac_try") 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; } &&
11470          { ac_try='test -s conftest.$ac_objext'
11471   { (case "(($ac_try" in
11472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473   *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476   (eval "$ac_try") 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; }; then
11480   ac_header_compiler=yes
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485         ac_header_compiler=no
11486 fi
11487
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11490 echo "${ECHO_T}$ac_header_compiler" >&6; }
11491
11492 # Is the header present?
11493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 #include <$ac_header>
11502 _ACEOF
11503 if { (ac_try="$ac_cpp conftest.$ac_ext"
11504 case "(($ac_try" in
11505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506   *) ac_try_echo=$ac_try;;
11507 esac
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11510   ac_status=$?
11511   grep -v '^ *+' conftest.er1 >conftest.err
11512   rm -f conftest.er1
11513   cat conftest.err >&5
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); } >/dev/null; then
11516   if test -s conftest.err; then
11517     ac_cpp_err=$ac_c_preproc_warn_flag
11518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11519   else
11520     ac_cpp_err=
11521   fi
11522 else
11523   ac_cpp_err=yes
11524 fi
11525 if test -z "$ac_cpp_err"; then
11526   ac_header_preproc=yes
11527 else
11528   echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531   ac_header_preproc=no
11532 fi
11533
11534 rm -f conftest.err conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 echo "${ECHO_T}$ac_header_preproc" >&6; }
11537
11538 # So?  What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540   yes:no: )
11541     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545     ac_header_preproc=yes
11546     ;;
11547   no:yes:* )
11548     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11552     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11555 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11560     ( cat <<\_ASBOX
11561 ## ------------------------------------ ##
11562 ## Report this to http://llvm.org/bugs/ ##
11563 ## ------------------------------------ ##
11564 _ASBOX
11565      ) | sed "s/^/$as_me: WARNING:     /" >&2
11566     ;;
11567 esac
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   eval "$as_ac_Header=\$ac_header_preproc"
11574 fi
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576                { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11578
11579 fi
11580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581   cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11583 _ACEOF
11584
11585 fi
11586
11587 done
11588
11589
11590
11591
11592 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11593 do
11594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599   echo $ECHO_N "(cached) $ECHO_C" >&6
11600 fi
11601 ac_res=`eval echo '${'$as_ac_Header'}'`
11602                { echo "$as_me:$LINENO: result: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11604 else
11605   # Is the header compilable?
11606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11608 cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h.  */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h.  */
11614 $ac_includes_default
11615 #include <$ac_header>
11616 _ACEOF
11617 rm -f conftest.$ac_objext
11618 if { (ac_try="$ac_compile"
11619 case "(($ac_try" in
11620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621   *) ac_try_echo=$ac_try;;
11622 esac
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624   (eval "$ac_compile") 2>conftest.er1
11625   ac_status=$?
11626   grep -v '^ *+' conftest.er1 >conftest.err
11627   rm -f conftest.er1
11628   cat conftest.err >&5
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } &&
11631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11632   { (case "(($ac_try" in
11633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634   *) ac_try_echo=$ac_try;;
11635 esac
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637   (eval "$ac_try") 2>&5
11638   ac_status=$?
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); }; } &&
11641          { ac_try='test -s conftest.$ac_objext'
11642   { (case "(($ac_try" in
11643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644   *) ac_try_echo=$ac_try;;
11645 esac
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647   (eval "$ac_try") 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); }; }; then
11651   ac_header_compiler=yes
11652 else
11653   echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11655
11656         ac_header_compiler=no
11657 fi
11658
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11661 echo "${ECHO_T}$ac_header_compiler" >&6; }
11662
11663 # Is the header present?
11664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11666 cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 #include <$ac_header>
11673 _ACEOF
11674 if { (ac_try="$ac_cpp conftest.$ac_ext"
11675 case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11681   ac_status=$?
11682   grep -v '^ *+' conftest.er1 >conftest.err
11683   rm -f conftest.er1
11684   cat conftest.err >&5
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); } >/dev/null; then
11687   if test -s conftest.err; then
11688     ac_cpp_err=$ac_c_preproc_warn_flag
11689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11690   else
11691     ac_cpp_err=
11692   fi
11693 else
11694   ac_cpp_err=yes
11695 fi
11696 if test -z "$ac_cpp_err"; then
11697   ac_header_preproc=yes
11698 else
11699   echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702   ac_header_preproc=no
11703 fi
11704
11705 rm -f conftest.err conftest.$ac_ext
11706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11707 echo "${ECHO_T}$ac_header_preproc" >&6; }
11708
11709 # So?  What about this header?
11710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11711   yes:no: )
11712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11716     ac_header_preproc=yes
11717     ;;
11718   no:yes:* )
11719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11721     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11722 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11723     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11725     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11726 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11729     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11731     ( cat <<\_ASBOX
11732 ## ------------------------------------ ##
11733 ## Report this to http://llvm.org/bugs/ ##
11734 ## ------------------------------------ ##
11735 _ASBOX
11736      ) | sed "s/^/$as_me: WARNING:     /" >&2
11737     ;;
11738 esac
11739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   eval "$as_ac_Header=\$ac_header_preproc"
11745 fi
11746 ac_res=`eval echo '${'$as_ac_Header'}'`
11747                { echo "$as_me:$LINENO: result: $ac_res" >&5
11748 echo "${ECHO_T}$ac_res" >&6; }
11749
11750 fi
11751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11752   cat >>confdefs.h <<_ACEOF
11753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11754 _ACEOF
11755
11756 fi
11757
11758 done
11759
11760
11761 for ac_header in valgrind/valgrind.h
11762 do
11763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11765   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11768   echo $ECHO_N "(cached) $ECHO_C" >&6
11769 fi
11770 ac_res=`eval echo '${'$as_ac_Header'}'`
11771                { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11773 else
11774   # Is the header compilable?
11775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11777 cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h.  */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h.  */
11783 $ac_includes_default
11784 #include <$ac_header>
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (ac_try="$ac_compile"
11788 case "(($ac_try" in
11789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790   *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793   (eval "$ac_compile") 2>conftest.er1
11794   ac_status=$?
11795   grep -v '^ *+' conftest.er1 >conftest.err
11796   rm -f conftest.er1
11797   cat conftest.err >&5
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); } &&
11800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11801   { (case "(($ac_try" in
11802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803   *) ac_try_echo=$ac_try;;
11804 esac
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806   (eval "$ac_try") 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); }; } &&
11810          { ac_try='test -s conftest.$ac_objext'
11811   { (case "(($ac_try" in
11812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813   *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816   (eval "$ac_try") 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); }; }; then
11820   ac_header_compiler=yes
11821 else
11822   echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11824
11825         ac_header_compiler=no
11826 fi
11827
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11830 echo "${ECHO_T}$ac_header_compiler" >&6; }
11831
11832 # Is the header present?
11833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11835 cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h.  */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h.  */
11841 #include <$ac_header>
11842 _ACEOF
11843 if { (ac_try="$ac_cpp conftest.$ac_ext"
11844 case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } >/dev/null; then
11856   if test -s conftest.err; then
11857     ac_cpp_err=$ac_c_preproc_warn_flag
11858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11859   else
11860     ac_cpp_err=
11861   fi
11862 else
11863   ac_cpp_err=yes
11864 fi
11865 if test -z "$ac_cpp_err"; then
11866   ac_header_preproc=yes
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871   ac_header_preproc=no
11872 fi
11873
11874 rm -f conftest.err conftest.$ac_ext
11875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11876 echo "${ECHO_T}$ac_header_preproc" >&6; }
11877
11878 # So?  What about this header?
11879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11880   yes:no: )
11881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11885     ac_header_preproc=yes
11886     ;;
11887   no:yes:* )
11888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11900     ( cat <<\_ASBOX
11901 ## ------------------------------------ ##
11902 ## Report this to http://llvm.org/bugs/ ##
11903 ## ------------------------------------ ##
11904 _ASBOX
11905      ) | sed "s/^/$as_me: WARNING:     /" >&2
11906     ;;
11907 esac
11908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   eval "$as_ac_Header=\$ac_header_preproc"
11914 fi
11915 ac_res=`eval echo '${'$as_ac_Header'}'`
11916                { echo "$as_me:$LINENO: result: $ac_res" >&5
11917 echo "${ECHO_T}$ac_res" >&6; }
11918
11919 fi
11920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11921   cat >>confdefs.h <<_ACEOF
11922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11923 _ACEOF
11924
11925 fi
11926
11927 done
11928
11929
11930 for ac_header in fenv.h
11931 do
11932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937   echo $ECHO_N "(cached) $ECHO_C" >&6
11938 fi
11939 ac_res=`eval echo '${'$as_ac_Header'}'`
11940                { echo "$as_me:$LINENO: result: $ac_res" >&5
11941 echo "${ECHO_T}$ac_res" >&6; }
11942 else
11943   # Is the header compilable?
11944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 $ac_includes_default
11953 #include <$ac_header>
11954 _ACEOF
11955 rm -f conftest.$ac_objext
11956 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11963   ac_status=$?
11964   grep -v '^ *+' conftest.er1 >conftest.err
11965   rm -f conftest.er1
11966   cat conftest.err >&5
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } &&
11969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11970   { (case "(($ac_try" in
11971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972   *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975   (eval "$ac_try") 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; } &&
11979          { ac_try='test -s conftest.$ac_objext'
11980   { (case "(($ac_try" in
11981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982   *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985   (eval "$ac_try") 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   ac_header_compiler=yes
11990 else
11991   echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994         ac_header_compiler=no
11995 fi
11996
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11999 echo "${ECHO_T}$ac_header_compiler" >&6; }
12000
12001 # Is the header present?
12002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h.  */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h.  */
12010 #include <$ac_header>
12011 _ACEOF
12012 if { (ac_try="$ac_cpp conftest.$ac_ext"
12013 case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12019   ac_status=$?
12020   grep -v '^ *+' conftest.er1 >conftest.err
12021   rm -f conftest.er1
12022   cat conftest.err >&5
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); } >/dev/null; then
12025   if test -s conftest.err; then
12026     ac_cpp_err=$ac_c_preproc_warn_flag
12027     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12028   else
12029     ac_cpp_err=
12030   fi
12031 else
12032   ac_cpp_err=yes
12033 fi
12034 if test -z "$ac_cpp_err"; then
12035   ac_header_preproc=yes
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040   ac_header_preproc=no
12041 fi
12042
12043 rm -f conftest.err conftest.$ac_ext
12044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12045 echo "${ECHO_T}$ac_header_preproc" >&6; }
12046
12047 # So?  What about this header?
12048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12049   yes:no: )
12050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12054     ac_header_preproc=yes
12055     ;;
12056   no:yes:* )
12057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12069     ( cat <<\_ASBOX
12070 ## ------------------------------------ ##
12071 ## Report this to http://llvm.org/bugs/ ##
12072 ## ------------------------------------ ##
12073 _ASBOX
12074      ) | sed "s/^/$as_me: WARNING:     /" >&2
12075     ;;
12076 esac
12077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12080   echo $ECHO_N "(cached) $ECHO_C" >&6
12081 else
12082   eval "$as_ac_Header=\$ac_header_preproc"
12083 fi
12084 ac_res=`eval echo '${'$as_ac_Header'}'`
12085                { echo "$as_me:$LINENO: result: $ac_res" >&5
12086 echo "${ECHO_T}$ac_res" >&6; }
12087
12088 fi
12089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090   cat >>confdefs.h <<_ACEOF
12091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092 _ACEOF
12093
12094 fi
12095
12096 done
12097
12098 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12099 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12100 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h.  */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h.  */
12109 #include <fenv.h>
12110
12111 int
12112 main ()
12113 {
12114 #ifndef FE_ALL_EXCEPT
12115   char *p = (char *) FE_ALL_EXCEPT;
12116   return !p;
12117 #endif
12118
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (ac_try="$ac_compile"
12125 case "(($ac_try" in
12126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127   *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130   (eval "$ac_compile") 2>conftest.er1
12131   ac_status=$?
12132   grep -v '^ *+' conftest.er1 >conftest.err
12133   rm -f conftest.er1
12134   cat conftest.err >&5
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } &&
12137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12138   { (case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_try") 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; } &&
12147          { ac_try='test -s conftest.$ac_objext'
12148   { (case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_try") 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); }; }; then
12157   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12158 else
12159   echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162         ac_cv_have_decl_FE_ALL_EXCEPT=no
12163 fi
12164
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12166 fi
12167 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12168 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12169 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12170
12171 cat >>confdefs.h <<_ACEOF
12172 #define HAVE_DECL_FE_ALL_EXCEPT 1
12173 _ACEOF
12174
12175
12176 else
12177   cat >>confdefs.h <<_ACEOF
12178 #define HAVE_DECL_FE_ALL_EXCEPT 0
12179 _ACEOF
12180
12181
12182 fi
12183 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12184 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12185 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12186   echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188   cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194 #include <fenv.h>
12195
12196 int
12197 main ()
12198 {
12199 #ifndef FE_INEXACT
12200   char *p = (char *) FE_INEXACT;
12201   return !p;
12202 #endif
12203
12204   ;
12205   return 0;
12206 }
12207 _ACEOF
12208 rm -f conftest.$ac_objext
12209 if { (ac_try="$ac_compile"
12210 case "(($ac_try" in
12211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212   *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215   (eval "$ac_compile") 2>conftest.er1
12216   ac_status=$?
12217   grep -v '^ *+' conftest.er1 >conftest.err
12218   rm -f conftest.er1
12219   cat conftest.err >&5
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } &&
12222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12223   { (case "(($ac_try" in
12224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225   *) ac_try_echo=$ac_try;;
12226 esac
12227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228   (eval "$ac_try") 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); }; } &&
12232          { ac_try='test -s conftest.$ac_objext'
12233   { (case "(($ac_try" in
12234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235   *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238   (eval "$ac_try") 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; }; then
12242   ac_cv_have_decl_FE_INEXACT=yes
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247         ac_cv_have_decl_FE_INEXACT=no
12248 fi
12249
12250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 fi
12252 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12253 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12254 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12255
12256 cat >>confdefs.h <<_ACEOF
12257 #define HAVE_DECL_FE_INEXACT 1
12258 _ACEOF
12259
12260
12261 else
12262   cat >>confdefs.h <<_ACEOF
12263 #define HAVE_DECL_FE_INEXACT 0
12264 _ACEOF
12265
12266
12267 fi
12268
12269
12270 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12271
12272 for ac_header in pthread.h
12273 do
12274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12276   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12279   echo $ECHO_N "(cached) $ECHO_C" >&6
12280 fi
12281 ac_res=`eval echo '${'$as_ac_Header'}'`
12282                { echo "$as_me:$LINENO: result: $ac_res" >&5
12283 echo "${ECHO_T}$ac_res" >&6; }
12284 else
12285   # Is the header compilable?
12286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294 $ac_includes_default
12295 #include <$ac_header>
12296 _ACEOF
12297 rm -f conftest.$ac_objext
12298 if { (ac_try="$ac_compile"
12299 case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304   (eval "$ac_compile") 2>conftest.er1
12305   ac_status=$?
12306   grep -v '^ *+' conftest.er1 >conftest.err
12307   rm -f conftest.er1
12308   cat conftest.err >&5
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } &&
12311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12312   { (case "(($ac_try" in
12313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314   *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317   (eval "$ac_try") 2>&5
12318   ac_status=$?
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); }; } &&
12321          { ac_try='test -s conftest.$ac_objext'
12322   { (case "(($ac_try" in
12323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324   *) ac_try_echo=$ac_try;;
12325 esac
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327   (eval "$ac_try") 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; }; then
12331   ac_header_compiler=yes
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336         ac_header_compiler=no
12337 fi
12338
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12341 echo "${ECHO_T}$ac_header_compiler" >&6; }
12342
12343 # Is the header present?
12344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352 #include <$ac_header>
12353 _ACEOF
12354 if { (ac_try="$ac_cpp conftest.$ac_ext"
12355 case "(($ac_try" in
12356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357   *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } >/dev/null; then
12367   if test -s conftest.err; then
12368     ac_cpp_err=$ac_c_preproc_warn_flag
12369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12370   else
12371     ac_cpp_err=
12372   fi
12373 else
12374   ac_cpp_err=yes
12375 fi
12376 if test -z "$ac_cpp_err"; then
12377   ac_header_preproc=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382   ac_header_preproc=no
12383 fi
12384
12385 rm -f conftest.err conftest.$ac_ext
12386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12387 echo "${ECHO_T}$ac_header_preproc" >&6; }
12388
12389 # So?  What about this header?
12390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12391   yes:no: )
12392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12396     ac_header_preproc=yes
12397     ;;
12398   no:yes:* )
12399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12411     ( cat <<\_ASBOX
12412 ## ------------------------------------ ##
12413 ## Report this to http://llvm.org/bugs/ ##
12414 ## ------------------------------------ ##
12415 _ASBOX
12416      ) | sed "s/^/$as_me: WARNING:     /" >&2
12417     ;;
12418 esac
12419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   eval "$as_ac_Header=\$ac_header_preproc"
12425 fi
12426 ac_res=`eval echo '${'$as_ac_Header'}'`
12427                { echo "$as_me:$LINENO: result: $ac_res" >&5
12428 echo "${ECHO_T}$ac_res" >&6; }
12429
12430 fi
12431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12432   cat >>confdefs.h <<_ACEOF
12433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12434 _ACEOF
12435  HAVE_PTHREAD=1
12436
12437 else
12438   HAVE_PTHREAD=0
12439
12440 fi
12441
12442 done
12443
12444 else
12445   HAVE_PTHREAD=0
12446
12447 fi
12448 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12449
12450 for ac_header in zlib.h
12451 do
12452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12454   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 fi
12459 ac_res=`eval echo '${'$as_ac_Header'}'`
12460                { echo "$as_me:$LINENO: result: $ac_res" >&5
12461 echo "${ECHO_T}$ac_res" >&6; }
12462 else
12463   # Is the header compilable?
12464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h.  */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h.  */
12472 $ac_includes_default
12473 #include <$ac_header>
12474 _ACEOF
12475 rm -f conftest.$ac_objext
12476 if { (ac_try="$ac_compile"
12477 case "(($ac_try" in
12478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479   *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482   (eval "$ac_compile") 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } &&
12489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12490   { (case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_try") 2>&5
12496   ac_status=$?
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); }; } &&
12499          { ac_try='test -s conftest.$ac_objext'
12500   { (case "(($ac_try" in
12501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502   *) ac_try_echo=$ac_try;;
12503 esac
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505   (eval "$ac_try") 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); }; }; then
12509   ac_header_compiler=yes
12510 else
12511   echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514         ac_header_compiler=no
12515 fi
12516
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12519 echo "${ECHO_T}$ac_header_compiler" >&6; }
12520
12521 # Is the header present?
12522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530 #include <$ac_header>
12531 _ACEOF
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12539   ac_status=$?
12540   grep -v '^ *+' conftest.er1 >conftest.err
12541   rm -f conftest.er1
12542   cat conftest.err >&5
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); } >/dev/null; then
12545   if test -s conftest.err; then
12546     ac_cpp_err=$ac_c_preproc_warn_flag
12547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12548   else
12549     ac_cpp_err=
12550   fi
12551 else
12552   ac_cpp_err=yes
12553 fi
12554 if test -z "$ac_cpp_err"; then
12555   ac_header_preproc=yes
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560   ac_header_preproc=no
12561 fi
12562
12563 rm -f conftest.err conftest.$ac_ext
12564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12565 echo "${ECHO_T}$ac_header_preproc" >&6; }
12566
12567 # So?  What about this header?
12568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12569   yes:no: )
12570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12574     ac_header_preproc=yes
12575     ;;
12576   no:yes:* )
12577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12589     ( cat <<\_ASBOX
12590 ## ------------------------------------ ##
12591 ## Report this to http://llvm.org/bugs/ ##
12592 ## ------------------------------------ ##
12593 _ASBOX
12594      ) | sed "s/^/$as_me: WARNING:     /" >&2
12595     ;;
12596 esac
12597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12600   echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602   eval "$as_ac_Header=\$ac_header_preproc"
12603 fi
12604 ac_res=`eval echo '${'$as_ac_Header'}'`
12605                { echo "$as_me:$LINENO: result: $ac_res" >&5
12606 echo "${ECHO_T}$ac_res" >&6; }
12607
12608 fi
12609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12610   cat >>confdefs.h <<_ACEOF
12611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12612 _ACEOF
12613  HAVE_LIBZ=1
12614
12615 else
12616   HAVE_LIBZ=0
12617
12618 fi
12619
12620 done
12621
12622 else
12623   HAVE_LIBZ=0
12624
12625 fi
12626
12627 if test "$llvm_cv_enable_libffi" = "yes" ; then
12628
12629
12630 for ac_header in ffi.h ffi/ffi.h
12631 do
12632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12634   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12637   echo $ECHO_N "(cached) $ECHO_C" >&6
12638 fi
12639 ac_res=`eval echo '${'$as_ac_Header'}'`
12640                { echo "$as_me:$LINENO: result: $ac_res" >&5
12641 echo "${ECHO_T}$ac_res" >&6; }
12642 else
12643   # Is the header compilable?
12644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12646 cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h.  */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h.  */
12652 $ac_includes_default
12653 #include <$ac_header>
12654 _ACEOF
12655 rm -f conftest.$ac_objext
12656 if { (ac_try="$ac_compile"
12657 case "(($ac_try" in
12658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659   *) ac_try_echo=$ac_try;;
12660 esac
12661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662   (eval "$ac_compile") 2>conftest.er1
12663   ac_status=$?
12664   grep -v '^ *+' conftest.er1 >conftest.err
12665   rm -f conftest.er1
12666   cat conftest.err >&5
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); } &&
12669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12670   { (case "(($ac_try" in
12671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672   *) ac_try_echo=$ac_try;;
12673 esac
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675   (eval "$ac_try") 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); }; } &&
12679          { ac_try='test -s conftest.$ac_objext'
12680   { (case "(($ac_try" in
12681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682   *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685   (eval "$ac_try") 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; }; then
12689   ac_header_compiler=yes
12690 else
12691   echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694         ac_header_compiler=no
12695 fi
12696
12697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12699 echo "${ECHO_T}$ac_header_compiler" >&6; }
12700
12701 # Is the header present?
12702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12704 cat >conftest.$ac_ext <<_ACEOF
12705 /* confdefs.h.  */
12706 _ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h.  */
12710 #include <$ac_header>
12711 _ACEOF
12712 if { (ac_try="$ac_cpp conftest.$ac_ext"
12713 case "(($ac_try" in
12714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715   *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12719   ac_status=$?
12720   grep -v '^ *+' conftest.er1 >conftest.err
12721   rm -f conftest.er1
12722   cat conftest.err >&5
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); } >/dev/null; then
12725   if test -s conftest.err; then
12726     ac_cpp_err=$ac_c_preproc_warn_flag
12727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12728   else
12729     ac_cpp_err=
12730   fi
12731 else
12732   ac_cpp_err=yes
12733 fi
12734 if test -z "$ac_cpp_err"; then
12735   ac_header_preproc=yes
12736 else
12737   echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12739
12740   ac_header_preproc=no
12741 fi
12742
12743 rm -f conftest.err conftest.$ac_ext
12744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12745 echo "${ECHO_T}$ac_header_preproc" >&6; }
12746
12747 # So?  What about this header?
12748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12749   yes:no: )
12750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12754     ac_header_preproc=yes
12755     ;;
12756   no:yes:* )
12757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12769     ( cat <<\_ASBOX
12770 ## ------------------------------------ ##
12771 ## Report this to http://llvm.org/bugs/ ##
12772 ## ------------------------------------ ##
12773 _ASBOX
12774      ) | sed "s/^/$as_me: WARNING:     /" >&2
12775     ;;
12776 esac
12777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782   eval "$as_ac_Header=\$ac_header_preproc"
12783 fi
12784 ac_res=`eval echo '${'$as_ac_Header'}'`
12785                { echo "$as_me:$LINENO: result: $ac_res" >&5
12786 echo "${ECHO_T}$ac_res" >&6; }
12787
12788 fi
12789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12790   cat >>confdefs.h <<_ACEOF
12791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12792 _ACEOF
12793
12794 fi
12795
12796 done
12797
12798 fi
12799
12800
12801 for ac_header in CrashReporterClient.h
12802 do
12803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12805   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12808   echo $ECHO_N "(cached) $ECHO_C" >&6
12809 fi
12810 ac_res=`eval echo '${'$as_ac_Header'}'`
12811                { echo "$as_me:$LINENO: result: $ac_res" >&5
12812 echo "${ECHO_T}$ac_res" >&6; }
12813 else
12814   # Is the header compilable?
12815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h.  */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h.  */
12823 $ac_includes_default
12824 #include <$ac_header>
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (ac_try="$ac_compile"
12828 case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_compile") 2>conftest.er1
12834   ac_status=$?
12835   grep -v '^ *+' conftest.er1 >conftest.err
12836   rm -f conftest.er1
12837   cat conftest.err >&5
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } &&
12840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); }; } &&
12850          { ac_try='test -s conftest.$ac_objext'
12851   { (case "(($ac_try" in
12852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853   *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856   (eval "$ac_try") 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   ac_header_compiler=yes
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865         ac_header_compiler=no
12866 fi
12867
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12870 echo "${ECHO_T}$ac_header_compiler" >&6; }
12871
12872 # Is the header present?
12873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 #include <$ac_header>
12882 _ACEOF
12883 if { (ac_try="$ac_cpp conftest.$ac_ext"
12884 case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12890   ac_status=$?
12891   grep -v '^ *+' conftest.er1 >conftest.err
12892   rm -f conftest.er1
12893   cat conftest.err >&5
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); } >/dev/null; then
12896   if test -s conftest.err; then
12897     ac_cpp_err=$ac_c_preproc_warn_flag
12898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12899   else
12900     ac_cpp_err=
12901   fi
12902 else
12903   ac_cpp_err=yes
12904 fi
12905 if test -z "$ac_cpp_err"; then
12906   ac_header_preproc=yes
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911   ac_header_preproc=no
12912 fi
12913
12914 rm -f conftest.err conftest.$ac_ext
12915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12916 echo "${ECHO_T}$ac_header_preproc" >&6; }
12917
12918 # So?  What about this header?
12919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12920   yes:no: )
12921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12925     ac_header_preproc=yes
12926     ;;
12927   no:yes:* )
12928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12940     ( cat <<\_ASBOX
12941 ## ------------------------------------ ##
12942 ## Report this to http://llvm.org/bugs/ ##
12943 ## ------------------------------------ ##
12944 _ASBOX
12945      ) | sed "s/^/$as_me: WARNING:     /" >&2
12946     ;;
12947 esac
12948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953   eval "$as_ac_Header=\$ac_header_preproc"
12954 fi
12955 ac_res=`eval echo '${'$as_ac_Header'}'`
12956                { echo "$as_me:$LINENO: result: $ac_res" >&5
12957 echo "${ECHO_T}$ac_res" >&6; }
12958
12959 fi
12960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12961   cat >>confdefs.h <<_ACEOF
12962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12963 _ACEOF
12964
12965 fi
12966
12967 done
12968
12969
12970 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
12971 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
12972 cat >conftest.$ac_ext <<_ACEOF
12973
12974   /* confdefs.h.  */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h.  */
12979
12980     extern const char *__crashreporter_info__;
12981     int main() {
12982       __crashreporter_info__ = "test";
12983       return 0;
12984     }
12985
12986
12987 _ACEOF
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (ac_try="$ac_link"
12990 case "(($ac_try" in
12991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992   *) ac_try_echo=$ac_try;;
12993 esac
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995   (eval "$ac_link") 2>conftest.er1
12996   ac_status=$?
12997   grep -v '^ *+' conftest.er1 >conftest.err
12998   rm -f conftest.er1
12999   cat conftest.err >&5
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } &&
13002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13003   { (case "(($ac_try" in
13004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005   *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008   (eval "$ac_try") 2>&5
13009   ac_status=$?
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); }; } &&
13012          { ac_try='test -s conftest$ac_exeext'
13013   { (case "(($ac_try" in
13014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015   *) ac_try_echo=$ac_try;;
13016 esac
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018   (eval "$ac_try") 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; }; then
13022
13023   { echo "$as_me:$LINENO: result: yes" >&5
13024 echo "${ECHO_T}yes" >&6; }
13025
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_CRASHREPORTER_INFO 1
13028 _ACEOF
13029
13030
13031 else
13032   echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13034
13035
13036   { echo "$as_me:$LINENO: result: no" >&5
13037 echo "${ECHO_T}no" >&6; }
13038
13039 cat >>confdefs.h <<\_ACEOF
13040 #define HAVE_CRASHREPORTER_INFO 0
13041 _ACEOF
13042
13043
13044 fi
13045
13046 rm -f core conftest.err conftest.$ac_objext \
13047       conftest$ac_exeext conftest.$ac_ext
13048
13049
13050
13051   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13052 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13053 if test "${ac_cv_huge_val_sanity+set}" = set; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056
13057     ac_ext=cpp
13058 ac_cpp='$CXXCPP $CPPFLAGS'
13059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13062
13063     ac_save_CXXFLAGS=$CXXFLAGS
13064     CXXFLAGS="$CXXFLAGS -pedantic"
13065     if test "$cross_compiling" = yes; then
13066   ac_cv_huge_val_sanity=yes
13067 else
13068   cat >conftest.$ac_ext <<_ACEOF
13069 /* confdefs.h.  */
13070 _ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h.  */
13074 #include <math.h>
13075 int
13076 main ()
13077 {
13078 double x = HUGE_VAL; return x != x;
13079   ;
13080   return 0;
13081 }
13082 _ACEOF
13083 rm -f conftest$ac_exeext
13084 if { (ac_try="$ac_link"
13085 case "(($ac_try" in
13086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087   *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090   (eval "$ac_link") 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13094   { (case "(($ac_try" in
13095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096   *) ac_try_echo=$ac_try;;
13097 esac
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099   (eval "$ac_try") 2>&5
13100   ac_status=$?
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); }; }; then
13103   ac_cv_huge_val_sanity=yes
13104 else
13105   echo "$as_me: program exited with status $ac_status" >&5
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109 ( exit $ac_status )
13110 ac_cv_huge_val_sanity=no
13111 fi
13112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13113 fi
13114
13115
13116     CXXFLAGS=$ac_save_CXXFLAGS
13117     ac_ext=c
13118 ac_cpp='$CPP $CPPFLAGS'
13119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13122
13123
13124 fi
13125 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13126 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13127   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13128
13129
13130 { echo "$as_me:$LINENO: checking for pid_t" >&5
13131 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13132 if test "${ac_cv_type_pid_t+set}" = set; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135   cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h.  */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h.  */
13141 $ac_includes_default
13142 typedef pid_t ac__type_new_;
13143 int
13144 main ()
13145 {
13146 if ((ac__type_new_ *) 0)
13147   return 0;
13148 if (sizeof (ac__type_new_))
13149   return 0;
13150   ;
13151   return 0;
13152 }
13153 _ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13162   ac_status=$?
13163   grep -v '^ *+' conftest.er1 >conftest.err
13164   rm -f conftest.er1
13165   cat conftest.err >&5
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } &&
13168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169   { (case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_try") 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }; } &&
13178          { ac_try='test -s conftest.$ac_objext'
13179   { (case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_try") 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); }; }; then
13188   ac_cv_type_pid_t=yes
13189 else
13190   echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193         ac_cv_type_pid_t=no
13194 fi
13195
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13197 fi
13198 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13199 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13200 if test $ac_cv_type_pid_t = yes; then
13201   :
13202 else
13203
13204 cat >>confdefs.h <<_ACEOF
13205 #define pid_t int
13206 _ACEOF
13207
13208 fi
13209
13210 { echo "$as_me:$LINENO: checking for size_t" >&5
13211 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13212 if test "${ac_cv_type_size_t+set}" = set; then
13213   echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215   cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h.  */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h.  */
13221 $ac_includes_default
13222 typedef size_t ac__type_new_;
13223 int
13224 main ()
13225 {
13226 if ((ac__type_new_ *) 0)
13227   return 0;
13228 if (sizeof (ac__type_new_))
13229   return 0;
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_compile") 2>conftest.er1
13242   ac_status=$?
13243   grep -v '^ *+' conftest.er1 >conftest.err
13244   rm -f conftest.er1
13245   cat conftest.err >&5
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } &&
13248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249   { (case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_try") 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; } &&
13258          { ac_try='test -s conftest.$ac_objext'
13259   { (case "(($ac_try" in
13260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261   *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264   (eval "$ac_try") 2>&5
13265   ac_status=$?
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); }; }; then
13268   ac_cv_type_size_t=yes
13269 else
13270   echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273         ac_cv_type_size_t=no
13274 fi
13275
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 fi
13278 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13279 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13280 if test $ac_cv_type_size_t = yes; then
13281   :
13282 else
13283
13284 cat >>confdefs.h <<_ACEOF
13285 #define size_t unsigned int
13286 _ACEOF
13287
13288 fi
13289
13290
13291 cat >>confdefs.h <<_ACEOF
13292 #define RETSIGTYPE void
13293 _ACEOF
13294
13295 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13296 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13297 if test "${ac_cv_struct_tm+set}" = set; then
13298   echo $ECHO_N "(cached) $ECHO_C" >&6
13299 else
13300   cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h.  */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h.  */
13306 #include <sys/types.h>
13307 #include <time.h>
13308
13309 int
13310 main ()
13311 {
13312 struct tm *tp; tp->tm_sec;
13313   ;
13314   return 0;
13315 }
13316 _ACEOF
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321   *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324   (eval "$ac_compile") 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } &&
13331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13332   { (case "(($ac_try" in
13333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334   *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337   (eval "$ac_try") 2>&5
13338   ac_status=$?
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }; } &&
13341          { ac_try='test -s conftest.$ac_objext'
13342   { (case "(($ac_try" in
13343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344   *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347   (eval "$ac_try") 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; }; then
13351   ac_cv_struct_tm=time.h
13352 else
13353   echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356         ac_cv_struct_tm=sys/time.h
13357 fi
13358
13359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 fi
13361 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13362 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13363 if test $ac_cv_struct_tm = sys/time.h; then
13364
13365 cat >>confdefs.h <<\_ACEOF
13366 #define TM_IN_SYS_TIME 1
13367 _ACEOF
13368
13369 fi
13370
13371 { echo "$as_me:$LINENO: checking for int64_t" >&5
13372 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13373 if test "${ac_cv_type_int64_t+set}" = set; then
13374   echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376   cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h.  */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h.  */
13382 $ac_includes_default
13383 typedef int64_t ac__type_new_;
13384 int
13385 main ()
13386 {
13387 if ((ac__type_new_ *) 0)
13388   return 0;
13389 if (sizeof (ac__type_new_))
13390   return 0;
13391   ;
13392   return 0;
13393 }
13394 _ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (ac_try="$ac_compile"
13397 case "(($ac_try" in
13398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399   *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402   (eval "$ac_compile") 2>conftest.er1
13403   ac_status=$?
13404   grep -v '^ *+' conftest.er1 >conftest.err
13405   rm -f conftest.er1
13406   cat conftest.err >&5
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } &&
13409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13410   { (case "(($ac_try" in
13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412   *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415   (eval "$ac_try") 2>&5
13416   ac_status=$?
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); }; } &&
13419          { ac_try='test -s conftest.$ac_objext'
13420   { (case "(($ac_try" in
13421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422   *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425   (eval "$ac_try") 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; }; then
13429   ac_cv_type_int64_t=yes
13430 else
13431   echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434         ac_cv_type_int64_t=no
13435 fi
13436
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438 fi
13439 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13440 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13441 if test $ac_cv_type_int64_t = yes; then
13442
13443 cat >>confdefs.h <<_ACEOF
13444 #define HAVE_INT64_T 1
13445 _ACEOF
13446
13447
13448 else
13449   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13450 echo "$as_me: error: Type int64_t required but not found" >&2;}
13451    { (exit 1); exit 1; }; }
13452 fi
13453
13454 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13455 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13456 if test "${ac_cv_type_uint64_t+set}" = set; then
13457   echo $ECHO_N "(cached) $ECHO_C" >&6
13458 else
13459   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.  */
13465 $ac_includes_default
13466 typedef uint64_t ac__type_new_;
13467 int
13468 main ()
13469 {
13470 if ((ac__type_new_ *) 0)
13471   return 0;
13472 if (sizeof (ac__type_new_))
13473   return 0;
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 rm -f conftest.$ac_objext
13479 if { (ac_try="$ac_compile"
13480 case "(($ac_try" in
13481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482   *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485   (eval "$ac_compile") 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493   { (case "(($ac_try" in
13494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495   *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498   (eval "$ac_try") 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; } &&
13502          { ac_try='test -s conftest.$ac_objext'
13503   { (case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_try") 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; }; then
13512   ac_cv_type_uint64_t=yes
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517         ac_cv_type_uint64_t=no
13518 fi
13519
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 fi
13522 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13523 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13524 if test $ac_cv_type_uint64_t = yes; then
13525
13526 cat >>confdefs.h <<_ACEOF
13527 #define HAVE_UINT64_T 1
13528 _ACEOF
13529
13530
13531 else
13532   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13533 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13534 if test "${ac_cv_type_u_int64_t+set}" = set; then
13535   echo $ECHO_N "(cached) $ECHO_C" >&6
13536 else
13537   cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h.  */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h.  */
13543 $ac_includes_default
13544 typedef u_int64_t ac__type_new_;
13545 int
13546 main ()
13547 {
13548 if ((ac__type_new_ *) 0)
13549   return 0;
13550 if (sizeof (ac__type_new_))
13551   return 0;
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560   *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563   (eval "$ac_compile") 2>conftest.er1
13564   ac_status=$?
13565   grep -v '^ *+' conftest.er1 >conftest.err
13566   rm -f conftest.er1
13567   cat conftest.err >&5
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } &&
13570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; } &&
13580          { ac_try='test -s conftest.$ac_objext'
13581   { (case "(($ac_try" in
13582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583   *) ac_try_echo=$ac_try;;
13584 esac
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586   (eval "$ac_try") 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); }; }; then
13590   ac_cv_type_u_int64_t=yes
13591 else
13592   echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595         ac_cv_type_u_int64_t=no
13596 fi
13597
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 fi
13600 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13601 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13602 if test $ac_cv_type_u_int64_t = yes; then
13603
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_U_INT64_T 1
13606 _ACEOF
13607
13608
13609 else
13610   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13611 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13612    { (exit 1); exit 1; }; }
13613 fi
13614
13615 fi
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13627 do
13628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634   cat >conftest.$ac_ext <<_ACEOF
13635 /* confdefs.h.  */
13636 _ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h.  */
13640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13642 #define $ac_func innocuous_$ac_func
13643
13644 /* System header to define __stub macros and hopefully few prototypes,
13645     which can conflict with char $ac_func (); below.
13646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13647     <limits.h> exists even on freestanding compilers.  */
13648
13649 #ifdef __STDC__
13650 # include <limits.h>
13651 #else
13652 # include <assert.h>
13653 #endif
13654
13655 #undef $ac_func
13656
13657 /* Override any GCC internal prototype to avoid an error.
13658    Use char because int might match the return type of a GCC
13659    builtin and then its argument prototype would still apply.  */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 char $ac_func ();
13664 /* The GNU C library defines this for functions which it implements
13665     to always fail with ENOSYS.  Some functions are actually named
13666     something starting with __ and the normal name is an alias.  */
13667 #if defined __stub_$ac_func || defined __stub___$ac_func
13668 choke me
13669 #endif
13670
13671 int
13672 main ()
13673 {
13674 return $ac_func ();
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (ac_try="$ac_link"
13681 case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686   (eval "$ac_link") 2>conftest.er1
13687   ac_status=$?
13688   grep -v '^ *+' conftest.er1 >conftest.err
13689   rm -f conftest.er1
13690   cat conftest.err >&5
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694   { (case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_try") 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; } &&
13703          { ac_try='test -s conftest$ac_exeext'
13704   { (case "(($ac_try" in
13705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706   *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709   (eval "$ac_try") 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713   eval "$as_ac_var=yes"
13714 else
13715   echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718         eval "$as_ac_var=no"
13719 fi
13720
13721 rm -f core conftest.err conftest.$ac_objext \
13722       conftest$ac_exeext conftest.$ac_ext
13723 fi
13724 ac_res=`eval echo '${'$as_ac_var'}'`
13725                { echo "$as_me:$LINENO: result: $ac_res" >&5
13726 echo "${ECHO_T}$ac_res" >&6; }
13727 if test `eval echo '${'$as_ac_var'}'` = yes; then
13728   cat >>confdefs.h <<_ACEOF
13729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13730 _ACEOF
13731
13732 fi
13733 done
13734
13735
13736
13737
13738
13739 for ac_func in powf fmodf strtof round
13740 do
13741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13745   echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747   cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h.  */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h.  */
13753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13755 #define $ac_func innocuous_$ac_func
13756
13757 /* System header to define __stub macros and hopefully few prototypes,
13758     which can conflict with char $ac_func (); below.
13759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13760     <limits.h> exists even on freestanding compilers.  */
13761
13762 #ifdef __STDC__
13763 # include <limits.h>
13764 #else
13765 # include <assert.h>
13766 #endif
13767
13768 #undef $ac_func
13769
13770 /* Override any GCC internal prototype to avoid an error.
13771    Use char because int might match the return type of a GCC
13772    builtin and then its argument prototype would still apply.  */
13773 #ifdef __cplusplus
13774 extern "C"
13775 #endif
13776 char $ac_func ();
13777 /* The GNU C library defines this for functions which it implements
13778     to always fail with ENOSYS.  Some functions are actually named
13779     something starting with __ and the normal name is an alias.  */
13780 #if defined __stub_$ac_func || defined __stub___$ac_func
13781 choke me
13782 #endif
13783
13784 int
13785 main ()
13786 {
13787 return $ac_func ();
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (ac_try="$ac_link"
13794 case "(($ac_try" in
13795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796   *) ac_try_echo=$ac_try;;
13797 esac
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799   (eval "$ac_link") 2>conftest.er1
13800   ac_status=$?
13801   grep -v '^ *+' conftest.er1 >conftest.err
13802   rm -f conftest.er1
13803   cat conftest.err >&5
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); } &&
13806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13807   { (case "(($ac_try" in
13808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809   *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812   (eval "$ac_try") 2>&5
13813   ac_status=$?
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); }; } &&
13816          { ac_try='test -s conftest$ac_exeext'
13817   { (case "(($ac_try" in
13818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819   *) ac_try_echo=$ac_try;;
13820 esac
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822   (eval "$ac_try") 2>&5
13823   ac_status=$?
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); }; }; then
13826   eval "$as_ac_var=yes"
13827 else
13828   echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831         eval "$as_ac_var=no"
13832 fi
13833
13834 rm -f core conftest.err conftest.$ac_objext \
13835       conftest$ac_exeext conftest.$ac_ext
13836 fi
13837 ac_res=`eval echo '${'$as_ac_var'}'`
13838                { echo "$as_me:$LINENO: result: $ac_res" >&5
13839 echo "${ECHO_T}$ac_res" >&6; }
13840 if test `eval echo '${'$as_ac_var'}'` = yes; then
13841   cat >>confdefs.h <<_ACEOF
13842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13843 _ACEOF
13844
13845 fi
13846 done
13847
13848
13849
13850
13851
13852
13853 for ac_func in log log2 log10 exp exp2
13854 do
13855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h.  */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h.  */
13867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13869 #define $ac_func innocuous_$ac_func
13870
13871 /* System header to define __stub macros and hopefully few prototypes,
13872     which can conflict with char $ac_func (); below.
13873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13874     <limits.h> exists even on freestanding compilers.  */
13875
13876 #ifdef __STDC__
13877 # include <limits.h>
13878 #else
13879 # include <assert.h>
13880 #endif
13881
13882 #undef $ac_func
13883
13884 /* Override any GCC internal prototype to avoid an error.
13885    Use char because int might match the return type of a GCC
13886    builtin and then its argument prototype would still apply.  */
13887 #ifdef __cplusplus
13888 extern "C"
13889 #endif
13890 char $ac_func ();
13891 /* The GNU C library defines this for functions which it implements
13892     to always fail with ENOSYS.  Some functions are actually named
13893     something starting with __ and the normal name is an alias.  */
13894 #if defined __stub_$ac_func || defined __stub___$ac_func
13895 choke me
13896 #endif
13897
13898 int
13899 main ()
13900 {
13901 return $ac_func ();
13902   ;
13903   return 0;
13904 }
13905 _ACEOF
13906 rm -f conftest.$ac_objext conftest$ac_exeext
13907 if { (ac_try="$ac_link"
13908 case "(($ac_try" in
13909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910   *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913   (eval "$ac_link") 2>conftest.er1
13914   ac_status=$?
13915   grep -v '^ *+' conftest.er1 >conftest.err
13916   rm -f conftest.er1
13917   cat conftest.err >&5
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); } &&
13920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13921   { (case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926   (eval "$ac_try") 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; } &&
13930          { ac_try='test -s conftest$ac_exeext'
13931   { (case "(($ac_try" in
13932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933   *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936   (eval "$ac_try") 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); }; }; then
13940   eval "$as_ac_var=yes"
13941 else
13942   echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945         eval "$as_ac_var=no"
13946 fi
13947
13948 rm -f core conftest.err conftest.$ac_objext \
13949       conftest$ac_exeext conftest.$ac_ext
13950 fi
13951 ac_res=`eval echo '${'$as_ac_var'}'`
13952                { echo "$as_me:$LINENO: result: $ac_res" >&5
13953 echo "${ECHO_T}$ac_res" >&6; }
13954 if test `eval echo '${'$as_ac_var'}'` = yes; then
13955   cat >>confdefs.h <<_ACEOF
13956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13957 _ACEOF
13958
13959 fi
13960 done
13961
13962
13963
13964
13965
13966
13967 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
13968 do
13969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13973   echo $ECHO_N "(cached) $ECHO_C" >&6
13974 else
13975   cat >conftest.$ac_ext <<_ACEOF
13976 /* confdefs.h.  */
13977 _ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h.  */
13981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13983 #define $ac_func innocuous_$ac_func
13984
13985 /* System header to define __stub macros and hopefully few prototypes,
13986     which can conflict with char $ac_func (); below.
13987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13988     <limits.h> exists even on freestanding compilers.  */
13989
13990 #ifdef __STDC__
13991 # include <limits.h>
13992 #else
13993 # include <assert.h>
13994 #endif
13995
13996 #undef $ac_func
13997
13998 /* Override any GCC internal prototype to avoid an error.
13999    Use char because int might match the return type of a GCC
14000    builtin and then its argument prototype would still apply.  */
14001 #ifdef __cplusplus
14002 extern "C"
14003 #endif
14004 char $ac_func ();
14005 /* The GNU C library defines this for functions which it implements
14006     to always fail with ENOSYS.  Some functions are actually named
14007     something starting with __ and the normal name is an alias.  */
14008 #if defined __stub_$ac_func || defined __stub___$ac_func
14009 choke me
14010 #endif
14011
14012 int
14013 main ()
14014 {
14015 return $ac_func ();
14016   ;
14017   return 0;
14018 }
14019 _ACEOF
14020 rm -f conftest.$ac_objext conftest$ac_exeext
14021 if { (ac_try="$ac_link"
14022 case "(($ac_try" in
14023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024   *) ac_try_echo=$ac_try;;
14025 esac
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027   (eval "$ac_link") 2>conftest.er1
14028   ac_status=$?
14029   grep -v '^ *+' conftest.er1 >conftest.err
14030   rm -f conftest.er1
14031   cat conftest.err >&5
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } &&
14034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14035   { (case "(($ac_try" in
14036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037   *) ac_try_echo=$ac_try;;
14038 esac
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040   (eval "$ac_try") 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; } &&
14044          { ac_try='test -s conftest$ac_exeext'
14045   { (case "(($ac_try" in
14046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047   *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050   (eval "$ac_try") 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; }; then
14054   eval "$as_ac_var=yes"
14055 else
14056   echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14058
14059         eval "$as_ac_var=no"
14060 fi
14061
14062 rm -f core conftest.err conftest.$ac_objext \
14063       conftest$ac_exeext conftest.$ac_ext
14064 fi
14065 ac_res=`eval echo '${'$as_ac_var'}'`
14066                { echo "$as_me:$LINENO: result: $ac_res" >&5
14067 echo "${ECHO_T}$ac_res" >&6; }
14068 if test `eval echo '${'$as_ac_var'}'` = yes; then
14069   cat >>confdefs.h <<_ACEOF
14070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14071 _ACEOF
14072
14073 fi
14074 done
14075
14076
14077
14078
14079 for ac_func in isatty mkdtemp mkstemp
14080 do
14081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087   cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h.  */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h.  */
14093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14095 #define $ac_func innocuous_$ac_func
14096
14097 /* System header to define __stub macros and hopefully few prototypes,
14098     which can conflict with char $ac_func (); below.
14099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14100     <limits.h> exists even on freestanding compilers.  */
14101
14102 #ifdef __STDC__
14103 # include <limits.h>
14104 #else
14105 # include <assert.h>
14106 #endif
14107
14108 #undef $ac_func
14109
14110 /* Override any GCC internal prototype to avoid an error.
14111    Use char because int might match the return type of a GCC
14112    builtin and then its argument prototype would still apply.  */
14113 #ifdef __cplusplus
14114 extern "C"
14115 #endif
14116 char $ac_func ();
14117 /* The GNU C library defines this for functions which it implements
14118     to always fail with ENOSYS.  Some functions are actually named
14119     something starting with __ and the normal name is an alias.  */
14120 #if defined __stub_$ac_func || defined __stub___$ac_func
14121 choke me
14122 #endif
14123
14124 int
14125 main ()
14126 {
14127 return $ac_func ();
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 rm -f conftest.$ac_objext conftest$ac_exeext
14133 if { (ac_try="$ac_link"
14134 case "(($ac_try" in
14135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136   *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139   (eval "$ac_link") 2>conftest.er1
14140   ac_status=$?
14141   grep -v '^ *+' conftest.er1 >conftest.err
14142   rm -f conftest.er1
14143   cat conftest.err >&5
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); } &&
14146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14147   { (case "(($ac_try" in
14148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149   *) ac_try_echo=$ac_try;;
14150 esac
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152   (eval "$ac_try") 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; } &&
14156          { ac_try='test -s conftest$ac_exeext'
14157   { (case "(($ac_try" in
14158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159   *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162   (eval "$ac_try") 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; }; then
14166   eval "$as_ac_var=yes"
14167 else
14168   echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171         eval "$as_ac_var=no"
14172 fi
14173
14174 rm -f core conftest.err conftest.$ac_objext \
14175       conftest$ac_exeext conftest.$ac_ext
14176 fi
14177 ac_res=`eval echo '${'$as_ac_var'}'`
14178                { echo "$as_me:$LINENO: result: $ac_res" >&5
14179 echo "${ECHO_T}$ac_res" >&6; }
14180 if test `eval echo '${'$as_ac_var'}'` = yes; then
14181   cat >>confdefs.h <<_ACEOF
14182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14183 _ACEOF
14184
14185 fi
14186 done
14187
14188
14189
14190
14191
14192
14193
14194 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14195 do
14196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202   cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h.  */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h.  */
14208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14210 #define $ac_func innocuous_$ac_func
14211
14212 /* System header to define __stub macros and hopefully few prototypes,
14213     which can conflict with char $ac_func (); below.
14214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14215     <limits.h> exists even on freestanding compilers.  */
14216
14217 #ifdef __STDC__
14218 # include <limits.h>
14219 #else
14220 # include <assert.h>
14221 #endif
14222
14223 #undef $ac_func
14224
14225 /* Override any GCC internal prototype to avoid an error.
14226    Use char because int might match the return type of a GCC
14227    builtin and then its argument prototype would still apply.  */
14228 #ifdef __cplusplus
14229 extern "C"
14230 #endif
14231 char $ac_func ();
14232 /* The GNU C library defines this for functions which it implements
14233     to always fail with ENOSYS.  Some functions are actually named
14234     something starting with __ and the normal name is an alias.  */
14235 #if defined __stub_$ac_func || defined __stub___$ac_func
14236 choke me
14237 #endif
14238
14239 int
14240 main ()
14241 {
14242 return $ac_func ();
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 rm -f conftest.$ac_objext conftest$ac_exeext
14248 if { (ac_try="$ac_link"
14249 case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_link") 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } &&
14261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14262   { (case "(($ac_try" in
14263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264   *) ac_try_echo=$ac_try;;
14265 esac
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267   (eval "$ac_try") 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; } &&
14271          { ac_try='test -s conftest$ac_exeext'
14272   { (case "(($ac_try" in
14273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274   *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277   (eval "$ac_try") 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; }; then
14281   eval "$as_ac_var=yes"
14282 else
14283   echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14285
14286         eval "$as_ac_var=no"
14287 fi
14288
14289 rm -f core conftest.err conftest.$ac_objext \
14290       conftest$ac_exeext conftest.$ac_ext
14291 fi
14292 ac_res=`eval echo '${'$as_ac_var'}'`
14293                { echo "$as_me:$LINENO: result: $ac_res" >&5
14294 echo "${ECHO_T}$ac_res" >&6; }
14295 if test `eval echo '${'$as_ac_var'}'` = yes; then
14296   cat >>confdefs.h <<_ACEOF
14297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14298 _ACEOF
14299
14300 fi
14301 done
14302
14303
14304
14305
14306 for ac_func in strerror strerror_r setenv
14307 do
14308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   cat >conftest.$ac_ext <<_ACEOF
14315 /* confdefs.h.  */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h.  */
14320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14322 #define $ac_func innocuous_$ac_func
14323
14324 /* System header to define __stub macros and hopefully few prototypes,
14325     which can conflict with char $ac_func (); below.
14326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14327     <limits.h> exists even on freestanding compilers.  */
14328
14329 #ifdef __STDC__
14330 # include <limits.h>
14331 #else
14332 # include <assert.h>
14333 #endif
14334
14335 #undef $ac_func
14336
14337 /* Override any GCC internal prototype to avoid an error.
14338    Use char because int might match the return type of a GCC
14339    builtin and then its argument prototype would still apply.  */
14340 #ifdef __cplusplus
14341 extern "C"
14342 #endif
14343 char $ac_func ();
14344 /* The GNU C library defines this for functions which it implements
14345     to always fail with ENOSYS.  Some functions are actually named
14346     something starting with __ and the normal name is an alias.  */
14347 #if defined __stub_$ac_func || defined __stub___$ac_func
14348 choke me
14349 #endif
14350
14351 int
14352 main ()
14353 {
14354 return $ac_func ();
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363   *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366   (eval "$ac_link") 2>conftest.er1
14367   ac_status=$?
14368   grep -v '^ *+' conftest.er1 >conftest.err
14369   rm -f conftest.er1
14370   cat conftest.err >&5
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14374   { (case "(($ac_try" in
14375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376   *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379   (eval "$ac_try") 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; } &&
14383          { ac_try='test -s conftest$ac_exeext'
14384   { (case "(($ac_try" in
14385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386   *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389   (eval "$ac_try") 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; }; then
14393   eval "$as_ac_var=yes"
14394 else
14395   echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398         eval "$as_ac_var=no"
14399 fi
14400
14401 rm -f core conftest.err conftest.$ac_objext \
14402       conftest$ac_exeext conftest.$ac_ext
14403 fi
14404 ac_res=`eval echo '${'$as_ac_var'}'`
14405                { echo "$as_me:$LINENO: result: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14407 if test `eval echo '${'$as_ac_var'}'` = yes; then
14408   cat >>confdefs.h <<_ACEOF
14409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14410 _ACEOF
14411
14412 fi
14413 done
14414
14415
14416
14417
14418
14419 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14420 do
14421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14425   echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427   cat >conftest.$ac_ext <<_ACEOF
14428 /* confdefs.h.  */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h.  */
14433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14435 #define $ac_func innocuous_$ac_func
14436
14437 /* System header to define __stub macros and hopefully few prototypes,
14438     which can conflict with char $ac_func (); below.
14439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14440     <limits.h> exists even on freestanding compilers.  */
14441
14442 #ifdef __STDC__
14443 # include <limits.h>
14444 #else
14445 # include <assert.h>
14446 #endif
14447
14448 #undef $ac_func
14449
14450 /* Override any GCC internal prototype to avoid an error.
14451    Use char because int might match the return type of a GCC
14452    builtin and then its argument prototype would still apply.  */
14453 #ifdef __cplusplus
14454 extern "C"
14455 #endif
14456 char $ac_func ();
14457 /* The GNU C library defines this for functions which it implements
14458     to always fail with ENOSYS.  Some functions are actually named
14459     something starting with __ and the normal name is an alias.  */
14460 #if defined __stub_$ac_func || defined __stub___$ac_func
14461 choke me
14462 #endif
14463
14464 int
14465 main ()
14466 {
14467 return $ac_func ();
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (ac_try="$ac_link"
14474 case "(($ac_try" in
14475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476   *) ac_try_echo=$ac_try;;
14477 esac
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479   (eval "$ac_link") 2>conftest.er1
14480   ac_status=$?
14481   grep -v '^ *+' conftest.er1 >conftest.err
14482   rm -f conftest.er1
14483   cat conftest.err >&5
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } &&
14486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14487   { (case "(($ac_try" in
14488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489   *) ac_try_echo=$ac_try;;
14490 esac
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492   (eval "$ac_try") 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); }; } &&
14496          { ac_try='test -s conftest$ac_exeext'
14497   { (case "(($ac_try" in
14498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499   *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502   (eval "$ac_try") 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; }; then
14506   eval "$as_ac_var=yes"
14507 else
14508   echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14510
14511         eval "$as_ac_var=no"
14512 fi
14513
14514 rm -f core conftest.err conftest.$ac_objext \
14515       conftest$ac_exeext conftest.$ac_ext
14516 fi
14517 ac_res=`eval echo '${'$as_ac_var'}'`
14518                { echo "$as_me:$LINENO: result: $ac_res" >&5
14519 echo "${ECHO_T}$ac_res" >&6; }
14520 if test `eval echo '${'$as_ac_var'}'` = yes; then
14521   cat >>confdefs.h <<_ACEOF
14522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14523 _ACEOF
14524
14525 fi
14526 done
14527
14528
14529
14530
14531
14532
14533 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14534 do
14535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14539   echo $ECHO_N "(cached) $ECHO_C" >&6
14540 else
14541   cat >conftest.$ac_ext <<_ACEOF
14542 /* confdefs.h.  */
14543 _ACEOF
14544 cat confdefs.h >>conftest.$ac_ext
14545 cat >>conftest.$ac_ext <<_ACEOF
14546 /* end confdefs.h.  */
14547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14549 #define $ac_func innocuous_$ac_func
14550
14551 /* System header to define __stub macros and hopefully few prototypes,
14552     which can conflict with char $ac_func (); below.
14553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14554     <limits.h> exists even on freestanding compilers.  */
14555
14556 #ifdef __STDC__
14557 # include <limits.h>
14558 #else
14559 # include <assert.h>
14560 #endif
14561
14562 #undef $ac_func
14563
14564 /* Override any GCC internal prototype to avoid an error.
14565    Use char because int might match the return type of a GCC
14566    builtin and then its argument prototype would still apply.  */
14567 #ifdef __cplusplus
14568 extern "C"
14569 #endif
14570 char $ac_func ();
14571 /* The GNU C library defines this for functions which it implements
14572     to always fail with ENOSYS.  Some functions are actually named
14573     something starting with __ and the normal name is an alias.  */
14574 #if defined __stub_$ac_func || defined __stub___$ac_func
14575 choke me
14576 #endif
14577
14578 int
14579 main ()
14580 {
14581 return $ac_func ();
14582   ;
14583   return 0;
14584 }
14585 _ACEOF
14586 rm -f conftest.$ac_objext conftest$ac_exeext
14587 if { (ac_try="$ac_link"
14588 case "(($ac_try" in
14589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590   *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593   (eval "$ac_link") 2>conftest.er1
14594   ac_status=$?
14595   grep -v '^ *+' conftest.er1 >conftest.err
14596   rm -f conftest.er1
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } &&
14600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601   { (case "(($ac_try" in
14602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603   *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606   (eval "$ac_try") 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; } &&
14610          { ac_try='test -s conftest$ac_exeext'
14611   { (case "(($ac_try" in
14612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613   *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616   (eval "$ac_try") 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620   eval "$as_ac_var=yes"
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625         eval "$as_ac_var=no"
14626 fi
14627
14628 rm -f core conftest.err conftest.$ac_objext \
14629       conftest$ac_exeext conftest.$ac_ext
14630 fi
14631 ac_res=`eval echo '${'$as_ac_var'}'`
14632                { echo "$as_me:$LINENO: result: $ac_res" >&5
14633 echo "${ECHO_T}$ac_res" >&6; }
14634 if test `eval echo '${'$as_ac_var'}'` = yes; then
14635   cat >>confdefs.h <<_ACEOF
14636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14637 _ACEOF
14638
14639 fi
14640 done
14641
14642
14643
14644 for ac_func in futimes futimens
14645 do
14646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14650   echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652   cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h.  */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h.  */
14658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14660 #define $ac_func innocuous_$ac_func
14661
14662 /* System header to define __stub macros and hopefully few prototypes,
14663     which can conflict with char $ac_func (); below.
14664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14665     <limits.h> exists even on freestanding compilers.  */
14666
14667 #ifdef __STDC__
14668 # include <limits.h>
14669 #else
14670 # include <assert.h>
14671 #endif
14672
14673 #undef $ac_func
14674
14675 /* Override any GCC internal prototype to avoid an error.
14676    Use char because int might match the return type of a GCC
14677    builtin and then its argument prototype would still apply.  */
14678 #ifdef __cplusplus
14679 extern "C"
14680 #endif
14681 char $ac_func ();
14682 /* The GNU C library defines this for functions which it implements
14683     to always fail with ENOSYS.  Some functions are actually named
14684     something starting with __ and the normal name is an alias.  */
14685 #if defined __stub_$ac_func || defined __stub___$ac_func
14686 choke me
14687 #endif
14688
14689 int
14690 main ()
14691 {
14692 return $ac_func ();
14693   ;
14694   return 0;
14695 }
14696 _ACEOF
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (ac_try="$ac_link"
14699 case "(($ac_try" in
14700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701   *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704   (eval "$ac_link") 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } &&
14711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712   { (case "(($ac_try" in
14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714   *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717   (eval "$ac_try") 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); }; } &&
14721          { ac_try='test -s conftest$ac_exeext'
14722   { (case "(($ac_try" in
14723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724   *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727   (eval "$ac_try") 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731   eval "$as_ac_var=yes"
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736         eval "$as_ac_var=no"
14737 fi
14738
14739 rm -f core conftest.err conftest.$ac_objext \
14740       conftest$ac_exeext conftest.$ac_ext
14741 fi
14742 ac_res=`eval echo '${'$as_ac_var'}'`
14743                { echo "$as_me:$LINENO: result: $ac_res" >&5
14744 echo "${ECHO_T}$ac_res" >&6; }
14745 if test `eval echo '${'$as_ac_var'}'` = yes; then
14746   cat >>confdefs.h <<_ACEOF
14747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14748 _ACEOF
14749
14750 fi
14751 done
14752
14753 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14754 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14755 if test "${llvm_cv_c_printf_a+set}" = set; then
14756   echo $ECHO_N "(cached) $ECHO_C" >&6
14757 else
14758   ac_ext=c
14759 ac_cpp='$CPP $CPPFLAGS'
14760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14763
14764  if test "$cross_compiling" = yes; then
14765   llvmac_cv_c_printf_a=no
14766 else
14767   cat >conftest.$ac_ext <<_ACEOF
14768
14769   /* confdefs.h.  */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h.  */
14774
14775 #include <stdio.h>
14776 #include <stdlib.h>
14777
14778 int
14779 main ()
14780 {
14781
14782 volatile double A, B;
14783 char Buffer[100];
14784 A = 1;
14785 A /= 10.0;
14786 sprintf(Buffer, "%a", A);
14787 B = atof(Buffer);
14788 if (A != B)
14789   return (1);
14790 if (A != 0x1.999999999999ap-4)
14791   return (1);
14792 return (0);
14793   ;
14794   return 0;
14795 }
14796 _ACEOF
14797 rm -f conftest$ac_exeext
14798 if { (ac_try="$ac_link"
14799 case "(($ac_try" in
14800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801   *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804   (eval "$ac_link") 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14808   { (case "(($ac_try" in
14809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810   *) ac_try_echo=$ac_try;;
14811 esac
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813   (eval "$ac_try") 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; }; then
14817   llvm_cv_c_printf_a=yes
14818 else
14819   echo "$as_me: program exited with status $ac_status" >&5
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 ( exit $ac_status )
14824 llvmac_cv_c_printf_a=no
14825 fi
14826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14827 fi
14828
14829
14830  ac_ext=c
14831 ac_cpp='$CPP $CPPFLAGS'
14832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14835
14836 fi
14837 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14838 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14839  if test "$llvm_cv_c_printf_a" = "yes"; then
14840
14841 cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_PRINTF_A 1
14843 _ACEOF
14844
14845  fi
14846
14847
14848
14849   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14850 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14851 if test "${ac_cv_func_rand48+set}" = set; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854
14855     ac_ext=cpp
14856 ac_cpp='$CXXCPP $CPPFLAGS'
14857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14860
14861     cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h.  */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h.  */
14867 #include <stdlib.h>
14868 int
14869 main ()
14870 {
14871 srand48(0);lrand48();drand48();
14872   ;
14873   return 0;
14874 }
14875 _ACEOF
14876 rm -f conftest.$ac_objext
14877 if { (ac_try="$ac_compile"
14878 case "(($ac_try" in
14879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880   *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883   (eval "$ac_compile") 2>conftest.er1
14884   ac_status=$?
14885   grep -v '^ *+' conftest.er1 >conftest.err
14886   rm -f conftest.er1
14887   cat conftest.err >&5
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); } &&
14890          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14891   { (case "(($ac_try" in
14892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893   *) ac_try_echo=$ac_try;;
14894 esac
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896   (eval "$ac_try") 2>&5
14897   ac_status=$?
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); }; } &&
14900          { ac_try='test -s conftest.$ac_objext'
14901   { (case "(($ac_try" in
14902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903   *) ac_try_echo=$ac_try;;
14904 esac
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906   (eval "$ac_try") 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; }; then
14910   ac_cv_func_rand48=yes
14911 else
14912   echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915         ac_cv_func_rand48=no
14916 fi
14917
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919     ac_ext=c
14920 ac_cpp='$CPP $CPPFLAGS'
14921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14924
14925
14926 fi
14927 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
14928 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
14929
14930 if test "$ac_cv_func_rand48" = "yes" ; then
14931
14932 cat >>confdefs.h <<\_ACEOF
14933 #define HAVE_RAND48 1
14934 _ACEOF
14935
14936 fi
14937
14938
14939 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
14940 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
14941 if test "${ac_cv_have_decl_arc4random+set}" = set; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944   cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h.  */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h.  */
14950 $ac_includes_default
14951 int
14952 main ()
14953 {
14954 #ifndef arc4random
14955   char *p = (char *) arc4random;
14956   return !p;
14957 #endif
14958
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext
14964 if { (ac_try="$ac_compile"
14965 case "(($ac_try" in
14966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967   *) ac_try_echo=$ac_try;;
14968 esac
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970   (eval "$ac_compile") 2>conftest.er1
14971   ac_status=$?
14972   grep -v '^ *+' conftest.er1 >conftest.err
14973   rm -f conftest.er1
14974   cat conftest.err >&5
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); } &&
14977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14978   { (case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983   (eval "$ac_try") 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); }; } &&
14987          { ac_try='test -s conftest.$ac_objext'
14988   { (case "(($ac_try" in
14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990   *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993   (eval "$ac_try") 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; }; then
14997   ac_cv_have_decl_arc4random=yes
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002         ac_cv_have_decl_arc4random=no
15003 fi
15004
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006 fi
15007 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15008 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15009 if test $ac_cv_have_decl_arc4random = yes; then
15010
15011 cat >>confdefs.h <<_ACEOF
15012 #define HAVE_DECL_ARC4RANDOM 1
15013 _ACEOF
15014
15015
15016 else
15017   cat >>confdefs.h <<_ACEOF
15018 #define HAVE_DECL_ARC4RANDOM 0
15019 _ACEOF
15020
15021
15022 fi
15023
15024
15025
15026 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15027 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15028 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15029   echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031   cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h.  */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h.  */
15037 $ac_includes_default
15038 int
15039 main ()
15040 {
15041 #ifndef strerror_s
15042   char *p = (char *) strerror_s;
15043   return !p;
15044 #endif
15045
15046   ;
15047   return 0;
15048 }
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054   *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057   (eval "$ac_compile") 2>conftest.er1
15058   ac_status=$?
15059   grep -v '^ *+' conftest.er1 >conftest.err
15060   rm -f conftest.er1
15061   cat conftest.err >&5
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); } &&
15064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15065   { (case "(($ac_try" in
15066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067   *) ac_try_echo=$ac_try;;
15068 esac
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070   (eval "$ac_try") 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); }; } &&
15074          { ac_try='test -s conftest.$ac_objext'
15075   { (case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080   (eval "$ac_try") 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); }; }; then
15084   ac_cv_have_decl_strerror_s=yes
15085 else
15086   echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15088
15089         ac_cv_have_decl_strerror_s=no
15090 fi
15091
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 fi
15094 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15095 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15096 if test $ac_cv_have_decl_strerror_s = yes; then
15097
15098 cat >>confdefs.h <<_ACEOF
15099 #define HAVE_DECL_STRERROR_S 1
15100 _ACEOF
15101
15102
15103 else
15104   cat >>confdefs.h <<_ACEOF
15105 #define HAVE_DECL_STRERROR_S 0
15106 _ACEOF
15107
15108
15109 fi
15110
15111
15112
15113 if test "$llvm_cv_os_type" = "MingW" ; then
15114   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15115 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15116 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15117   echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119   ac_check_lib_save_LIBS=$LIBS
15120 LIBS="-lgcc  $LIBS"
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h.  */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h.  */
15127
15128 /* Override any GCC internal prototype to avoid an error.
15129    Use char because int might match the return type of a GCC
15130    builtin and then its argument prototype would still apply.  */
15131 #ifdef __cplusplus
15132 extern "C"
15133 #endif
15134 char _alloca ();
15135 int
15136 main ()
15137 {
15138 return _alloca ();
15139   ;
15140   return 0;
15141 }
15142 _ACEOF
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (ac_try="$ac_link"
15145 case "(($ac_try" in
15146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147   *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150   (eval "$ac_link") 2>conftest.er1
15151   ac_status=$?
15152   grep -v '^ *+' conftest.er1 >conftest.err
15153   rm -f conftest.er1
15154   cat conftest.err >&5
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); } &&
15157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15158   { (case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_try") 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; } &&
15167          { ac_try='test -s conftest$ac_exeext'
15168   { (case "(($ac_try" in
15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170   *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173   (eval "$ac_try") 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; }; then
15177   ac_cv_lib_gcc__alloca=yes
15178 else
15179   echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182         ac_cv_lib_gcc__alloca=no
15183 fi
15184
15185 rm -f core conftest.err conftest.$ac_objext \
15186       conftest$ac_exeext conftest.$ac_ext
15187 LIBS=$ac_check_lib_save_LIBS
15188 fi
15189 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15190 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15191 if test $ac_cv_lib_gcc__alloca = yes; then
15192
15193 cat >>confdefs.h <<\_ACEOF
15194 #define HAVE__ALLOCA 1
15195 _ACEOF
15196
15197 fi
15198
15199   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15200 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15201 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15202   echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204   ac_check_lib_save_LIBS=$LIBS
15205 LIBS="-lgcc  $LIBS"
15206 cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h.  */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h.  */
15212
15213 /* Override any GCC internal prototype to avoid an error.
15214    Use char because int might match the return type of a GCC
15215    builtin and then its argument prototype would still apply.  */
15216 #ifdef __cplusplus
15217 extern "C"
15218 #endif
15219 char __alloca ();
15220 int
15221 main ()
15222 {
15223 return __alloca ();
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_link") 2>conftest.er1
15236   ac_status=$?
15237   grep -v '^ *+' conftest.er1 >conftest.err
15238   rm -f conftest.er1
15239   cat conftest.err >&5
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } &&
15242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15243   { (case "(($ac_try" in
15244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245   *) ac_try_echo=$ac_try;;
15246 esac
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248   (eval "$ac_try") 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }; } &&
15252          { ac_try='test -s conftest$ac_exeext'
15253   { (case "(($ac_try" in
15254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255   *) ac_try_echo=$ac_try;;
15256 esac
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258   (eval "$ac_try") 2>&5
15259   ac_status=$?
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); }; }; then
15262   ac_cv_lib_gcc___alloca=yes
15263 else
15264   echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267         ac_cv_lib_gcc___alloca=no
15268 fi
15269
15270 rm -f core conftest.err conftest.$ac_objext \
15271       conftest$ac_exeext conftest.$ac_ext
15272 LIBS=$ac_check_lib_save_LIBS
15273 fi
15274 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15275 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15276 if test $ac_cv_lib_gcc___alloca = yes; then
15277
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE___ALLOCA 1
15280 _ACEOF
15281
15282 fi
15283
15284   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15285 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15286 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289   ac_check_lib_save_LIBS=$LIBS
15290 LIBS="-lgcc  $LIBS"
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297
15298 /* Override any GCC internal prototype to avoid an error.
15299    Use char because int might match the return type of a GCC
15300    builtin and then its argument prototype would still apply.  */
15301 #ifdef __cplusplus
15302 extern "C"
15303 #endif
15304 char __chkstk ();
15305 int
15306 main ()
15307 {
15308 return __chkstk ();
15309   ;
15310   return 0;
15311 }
15312 _ACEOF
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (ac_try="$ac_link"
15315 case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320   (eval "$ac_link") 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } &&
15327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15328   { (case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333   (eval "$ac_try") 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; } &&
15337          { ac_try='test -s conftest$ac_exeext'
15338   { (case "(($ac_try" in
15339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340   *) ac_try_echo=$ac_try;;
15341 esac
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343   (eval "$ac_try") 2>&5
15344   ac_status=$?
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); }; }; then
15347   ac_cv_lib_gcc___chkstk=yes
15348 else
15349   echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352         ac_cv_lib_gcc___chkstk=no
15353 fi
15354
15355 rm -f core conftest.err conftest.$ac_objext \
15356       conftest$ac_exeext conftest.$ac_ext
15357 LIBS=$ac_check_lib_save_LIBS
15358 fi
15359 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15360 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15361 if test $ac_cv_lib_gcc___chkstk = yes; then
15362
15363 cat >>confdefs.h <<\_ACEOF
15364 #define HAVE___CHKSTK 1
15365 _ACEOF
15366
15367 fi
15368
15369   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15370 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15371 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15372   echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374   ac_check_lib_save_LIBS=$LIBS
15375 LIBS="-lgcc  $LIBS"
15376 cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382
15383 /* Override any GCC internal prototype to avoid an error.
15384    Use char because int might match the return type of a GCC
15385    builtin and then its argument prototype would still apply.  */
15386 #ifdef __cplusplus
15387 extern "C"
15388 #endif
15389 char ___chkstk ();
15390 int
15391 main ()
15392 {
15393 return ___chkstk ();
15394   ;
15395   return 0;
15396 }
15397 _ACEOF
15398 rm -f conftest.$ac_objext conftest$ac_exeext
15399 if { (ac_try="$ac_link"
15400 case "(($ac_try" in
15401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402   *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405   (eval "$ac_link") 2>conftest.er1
15406   ac_status=$?
15407   grep -v '^ *+' conftest.er1 >conftest.err
15408   rm -f conftest.er1
15409   cat conftest.err >&5
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); } &&
15412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15413   { (case "(($ac_try" in
15414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415   *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418   (eval "$ac_try") 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); }; } &&
15422          { ac_try='test -s conftest$ac_exeext'
15423   { (case "(($ac_try" in
15424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425   *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428   (eval "$ac_try") 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; }; then
15432   ac_cv_lib_gcc____chkstk=yes
15433 else
15434   echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15436
15437         ac_cv_lib_gcc____chkstk=no
15438 fi
15439
15440 rm -f core conftest.err conftest.$ac_objext \
15441       conftest$ac_exeext conftest.$ac_ext
15442 LIBS=$ac_check_lib_save_LIBS
15443 fi
15444 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15445 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15446 if test $ac_cv_lib_gcc____chkstk = yes; then
15447
15448 cat >>confdefs.h <<\_ACEOF
15449 #define HAVE____CHKSTK 1
15450 _ACEOF
15451
15452 fi
15453
15454
15455   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15456 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15457 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460   ac_check_lib_save_LIBS=$LIBS
15461 LIBS="-lgcc  $LIBS"
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468
15469 /* Override any GCC internal prototype to avoid an error.
15470    Use char because int might match the return type of a GCC
15471    builtin and then its argument prototype would still apply.  */
15472 #ifdef __cplusplus
15473 extern "C"
15474 #endif
15475 char __ashldi3 ();
15476 int
15477 main ()
15478 {
15479 return __ashldi3 ();
15480   ;
15481   return 0;
15482 }
15483 _ACEOF
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (ac_try="$ac_link"
15486 case "(($ac_try" in
15487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488   *) ac_try_echo=$ac_try;;
15489 esac
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491   (eval "$ac_link") 2>conftest.er1
15492   ac_status=$?
15493   grep -v '^ *+' conftest.er1 >conftest.err
15494   rm -f conftest.er1
15495   cat conftest.err >&5
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); } &&
15498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499   { (case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_try") 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; } &&
15508          { ac_try='test -s conftest$ac_exeext'
15509   { (case "(($ac_try" in
15510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511   *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514   (eval "$ac_try") 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   ac_cv_lib_gcc___ashldi3=yes
15519 else
15520   echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523         ac_cv_lib_gcc___ashldi3=no
15524 fi
15525
15526 rm -f core conftest.err conftest.$ac_objext \
15527       conftest$ac_exeext conftest.$ac_ext
15528 LIBS=$ac_check_lib_save_LIBS
15529 fi
15530 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15531 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15532 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15533
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE___ASHLDI3 1
15536 _ACEOF
15537
15538 fi
15539
15540   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15541 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15542 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15543   echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545   ac_check_lib_save_LIBS=$LIBS
15546 LIBS="-lgcc  $LIBS"
15547 cat >conftest.$ac_ext <<_ACEOF
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553
15554 /* Override any GCC internal prototype to avoid an error.
15555    Use char because int might match the return type of a GCC
15556    builtin and then its argument prototype would still apply.  */
15557 #ifdef __cplusplus
15558 extern "C"
15559 #endif
15560 char __ashrdi3 ();
15561 int
15562 main ()
15563 {
15564 return __ashrdi3 ();
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest.$ac_objext conftest$ac_exeext
15570 if { (ac_try="$ac_link"
15571 case "(($ac_try" in
15572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573   *) ac_try_echo=$ac_try;;
15574 esac
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576   (eval "$ac_link") 2>conftest.er1
15577   ac_status=$?
15578   grep -v '^ *+' conftest.er1 >conftest.err
15579   rm -f conftest.er1
15580   cat conftest.err >&5
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); } &&
15583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584   { (case "(($ac_try" in
15585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586   *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589   (eval "$ac_try") 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; } &&
15593          { ac_try='test -s conftest$ac_exeext'
15594   { (case "(($ac_try" in
15595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596   *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599   (eval "$ac_try") 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); }; }; then
15603   ac_cv_lib_gcc___ashrdi3=yes
15604 else
15605   echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608         ac_cv_lib_gcc___ashrdi3=no
15609 fi
15610
15611 rm -f core conftest.err conftest.$ac_objext \
15612       conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_check_lib_save_LIBS
15614 fi
15615 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15616 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15617 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15618
15619 cat >>confdefs.h <<\_ACEOF
15620 #define HAVE___ASHRDI3 1
15621 _ACEOF
15622
15623 fi
15624
15625   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15626 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15627 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15628   echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630   ac_check_lib_save_LIBS=$LIBS
15631 LIBS="-lgcc  $LIBS"
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638
15639 /* Override any GCC internal prototype to avoid an error.
15640    Use char because int might match the return type of a GCC
15641    builtin and then its argument prototype would still apply.  */
15642 #ifdef __cplusplus
15643 extern "C"
15644 #endif
15645 char __divdi3 ();
15646 int
15647 main ()
15648 {
15649 return __divdi3 ();
15650   ;
15651   return 0;
15652 }
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_link") 2>conftest.er1
15662   ac_status=$?
15663   grep -v '^ *+' conftest.er1 >conftest.err
15664   rm -f conftest.er1
15665   cat conftest.err >&5
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); } &&
15668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15669   { (case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_try") 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; } &&
15678          { ac_try='test -s conftest$ac_exeext'
15679   { (case "(($ac_try" in
15680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681   *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684   (eval "$ac_try") 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   ac_cv_lib_gcc___divdi3=yes
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693         ac_cv_lib_gcc___divdi3=no
15694 fi
15695
15696 rm -f core conftest.err conftest.$ac_objext \
15697       conftest$ac_exeext conftest.$ac_ext
15698 LIBS=$ac_check_lib_save_LIBS
15699 fi
15700 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15701 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15702 if test $ac_cv_lib_gcc___divdi3 = yes; then
15703
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE___DIVDI3 1
15706 _ACEOF
15707
15708 fi
15709
15710   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15711 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15712 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15713   echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715   ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lgcc  $LIBS"
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h.  */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h.  */
15723
15724 /* Override any GCC internal prototype to avoid an error.
15725    Use char because int might match the return type of a GCC
15726    builtin and then its argument prototype would still apply.  */
15727 #ifdef __cplusplus
15728 extern "C"
15729 #endif
15730 char __fixdfdi ();
15731 int
15732 main ()
15733 {
15734 return __fixdfdi ();
15735   ;
15736   return 0;
15737 }
15738 _ACEOF
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743   *) ac_try_echo=$ac_try;;
15744 esac
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746   (eval "$ac_link") 2>conftest.er1
15747   ac_status=$?
15748   grep -v '^ *+' conftest.er1 >conftest.err
15749   rm -f conftest.er1
15750   cat conftest.err >&5
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); } &&
15753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15754   { (case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_try") 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; } &&
15763          { ac_try='test -s conftest$ac_exeext'
15764   { (case "(($ac_try" in
15765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766   *) ac_try_echo=$ac_try;;
15767 esac
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769   (eval "$ac_try") 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; }; then
15773   ac_cv_lib_gcc___fixdfdi=yes
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778         ac_cv_lib_gcc___fixdfdi=no
15779 fi
15780
15781 rm -f core conftest.err conftest.$ac_objext \
15782       conftest$ac_exeext conftest.$ac_ext
15783 LIBS=$ac_check_lib_save_LIBS
15784 fi
15785 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15786 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15787 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15788
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE___FIXDFDI 1
15791 _ACEOF
15792
15793 fi
15794
15795   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15796 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15797 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15798   echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800   ac_check_lib_save_LIBS=$LIBS
15801 LIBS="-lgcc  $LIBS"
15802 cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h.  */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h.  */
15808
15809 /* Override any GCC internal prototype to avoid an error.
15810    Use char because int might match the return type of a GCC
15811    builtin and then its argument prototype would still apply.  */
15812 #ifdef __cplusplus
15813 extern "C"
15814 #endif
15815 char __fixsfdi ();
15816 int
15817 main ()
15818 {
15819 return __fixsfdi ();
15820   ;
15821   return 0;
15822 }
15823 _ACEOF
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828   *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831   (eval "$ac_link") 2>conftest.er1
15832   ac_status=$?
15833   grep -v '^ *+' conftest.er1 >conftest.err
15834   rm -f conftest.er1
15835   cat conftest.err >&5
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); } &&
15838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15839   { (case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_try") 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; } &&
15848          { ac_try='test -s conftest$ac_exeext'
15849   { (case "(($ac_try" in
15850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851   *) ac_try_echo=$ac_try;;
15852 esac
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854   (eval "$ac_try") 2>&5
15855   ac_status=$?
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); }; }; then
15858   ac_cv_lib_gcc___fixsfdi=yes
15859 else
15860   echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15862
15863         ac_cv_lib_gcc___fixsfdi=no
15864 fi
15865
15866 rm -f core conftest.err conftest.$ac_objext \
15867       conftest$ac_exeext conftest.$ac_ext
15868 LIBS=$ac_check_lib_save_LIBS
15869 fi
15870 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15871 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15872 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15873
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HAVE___FIXSFDI 1
15876 _ACEOF
15877
15878 fi
15879
15880   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15881 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15882 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15883   echo $ECHO_N "(cached) $ECHO_C" >&6
15884 else
15885   ac_check_lib_save_LIBS=$LIBS
15886 LIBS="-lgcc  $LIBS"
15887 cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h.  */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h.  */
15893
15894 /* Override any GCC internal prototype to avoid an error.
15895    Use char because int might match the return type of a GCC
15896    builtin and then its argument prototype would still apply.  */
15897 #ifdef __cplusplus
15898 extern "C"
15899 #endif
15900 char __floatdidf ();
15901 int
15902 main ()
15903 {
15904 return __floatdidf ();
15905   ;
15906   return 0;
15907 }
15908 _ACEOF
15909 rm -f conftest.$ac_objext conftest$ac_exeext
15910 if { (ac_try="$ac_link"
15911 case "(($ac_try" in
15912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913   *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916   (eval "$ac_link") 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } &&
15923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15924   { (case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929   (eval "$ac_try") 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); }; } &&
15933          { ac_try='test -s conftest$ac_exeext'
15934   { (case "(($ac_try" in
15935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936   *) ac_try_echo=$ac_try;;
15937 esac
15938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939   (eval "$ac_try") 2>&5
15940   ac_status=$?
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); }; }; then
15943   ac_cv_lib_gcc___floatdidf=yes
15944 else
15945   echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15947
15948         ac_cv_lib_gcc___floatdidf=no
15949 fi
15950
15951 rm -f core conftest.err conftest.$ac_objext \
15952       conftest$ac_exeext conftest.$ac_ext
15953 LIBS=$ac_check_lib_save_LIBS
15954 fi
15955 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15956 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15957 if test $ac_cv_lib_gcc___floatdidf = yes; then
15958
15959 cat >>confdefs.h <<\_ACEOF
15960 #define HAVE___FLOATDIDF 1
15961 _ACEOF
15962
15963 fi
15964
15965   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15966 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15967 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15968   echo $ECHO_N "(cached) $ECHO_C" >&6
15969 else
15970   ac_check_lib_save_LIBS=$LIBS
15971 LIBS="-lgcc  $LIBS"
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978
15979 /* Override any GCC internal prototype to avoid an error.
15980    Use char because int might match the return type of a GCC
15981    builtin and then its argument prototype would still apply.  */
15982 #ifdef __cplusplus
15983 extern "C"
15984 #endif
15985 char __lshrdi3 ();
15986 int
15987 main ()
15988 {
15989 return __lshrdi3 ();
15990   ;
15991   return 0;
15992 }
15993 _ACEOF
15994 rm -f conftest.$ac_objext conftest$ac_exeext
15995 if { (ac_try="$ac_link"
15996 case "(($ac_try" in
15997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998   *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001   (eval "$ac_link") 2>conftest.er1
16002   ac_status=$?
16003   grep -v '^ *+' conftest.er1 >conftest.err
16004   rm -f conftest.er1
16005   cat conftest.err >&5
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); } &&
16008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16009   { (case "(($ac_try" in
16010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011   *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014   (eval "$ac_try") 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; } &&
16018          { ac_try='test -s conftest$ac_exeext'
16019   { (case "(($ac_try" in
16020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021   *) ac_try_echo=$ac_try;;
16022 esac
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024   (eval "$ac_try") 2>&5
16025   ac_status=$?
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   (exit $ac_status); }; }; then
16028   ac_cv_lib_gcc___lshrdi3=yes
16029 else
16030   echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16032
16033         ac_cv_lib_gcc___lshrdi3=no
16034 fi
16035
16036 rm -f core conftest.err conftest.$ac_objext \
16037       conftest$ac_exeext conftest.$ac_ext
16038 LIBS=$ac_check_lib_save_LIBS
16039 fi
16040 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16041 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16042 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16043
16044 cat >>confdefs.h <<\_ACEOF
16045 #define HAVE___LSHRDI3 1
16046 _ACEOF
16047
16048 fi
16049
16050   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16051 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16052 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16053   echo $ECHO_N "(cached) $ECHO_C" >&6
16054 else
16055   ac_check_lib_save_LIBS=$LIBS
16056 LIBS="-lgcc  $LIBS"
16057 cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h.  */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h.  */
16063
16064 /* Override any GCC internal prototype to avoid an error.
16065    Use char because int might match the return type of a GCC
16066    builtin and then its argument prototype would still apply.  */
16067 #ifdef __cplusplus
16068 extern "C"
16069 #endif
16070 char __moddi3 ();
16071 int
16072 main ()
16073 {
16074 return __moddi3 ();
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (ac_try="$ac_link"
16081 case "(($ac_try" in
16082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083   *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086   (eval "$ac_link") 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } &&
16093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16094   { (case "(($ac_try" in
16095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096   *) ac_try_echo=$ac_try;;
16097 esac
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099   (eval "$ac_try") 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; } &&
16103          { ac_try='test -s conftest$ac_exeext'
16104   { (case "(($ac_try" in
16105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106   *) ac_try_echo=$ac_try;;
16107 esac
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109   (eval "$ac_try") 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; }; then
16113   ac_cv_lib_gcc___moddi3=yes
16114 else
16115   echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16117
16118         ac_cv_lib_gcc___moddi3=no
16119 fi
16120
16121 rm -f core conftest.err conftest.$ac_objext \
16122       conftest$ac_exeext conftest.$ac_ext
16123 LIBS=$ac_check_lib_save_LIBS
16124 fi
16125 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16126 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16127 if test $ac_cv_lib_gcc___moddi3 = yes; then
16128
16129 cat >>confdefs.h <<\_ACEOF
16130 #define HAVE___MODDI3 1
16131 _ACEOF
16132
16133 fi
16134
16135   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16136 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16137 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16138   echo $ECHO_N "(cached) $ECHO_C" >&6
16139 else
16140   ac_check_lib_save_LIBS=$LIBS
16141 LIBS="-lgcc  $LIBS"
16142 cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148
16149 /* Override any GCC internal prototype to avoid an error.
16150    Use char because int might match the return type of a GCC
16151    builtin and then its argument prototype would still apply.  */
16152 #ifdef __cplusplus
16153 extern "C"
16154 #endif
16155 char __udivdi3 ();
16156 int
16157 main ()
16158 {
16159 return __udivdi3 ();
16160   ;
16161   return 0;
16162 }
16163 _ACEOF
16164 rm -f conftest.$ac_objext conftest$ac_exeext
16165 if { (ac_try="$ac_link"
16166 case "(($ac_try" in
16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168   *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171   (eval "$ac_link") 2>conftest.er1
16172   ac_status=$?
16173   grep -v '^ *+' conftest.er1 >conftest.err
16174   rm -f conftest.er1
16175   cat conftest.err >&5
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } &&
16178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179   { (case "(($ac_try" in
16180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181   *) ac_try_echo=$ac_try;;
16182 esac
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184   (eval "$ac_try") 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; } &&
16188          { ac_try='test -s conftest$ac_exeext'
16189   { (case "(($ac_try" in
16190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191   *) ac_try_echo=$ac_try;;
16192 esac
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194   (eval "$ac_try") 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); }; }; then
16198   ac_cv_lib_gcc___udivdi3=yes
16199 else
16200   echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16202
16203         ac_cv_lib_gcc___udivdi3=no
16204 fi
16205
16206 rm -f core conftest.err conftest.$ac_objext \
16207       conftest$ac_exeext conftest.$ac_ext
16208 LIBS=$ac_check_lib_save_LIBS
16209 fi
16210 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16211 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16212 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16213
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE___UDIVDI3 1
16216 _ACEOF
16217
16218 fi
16219
16220   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16221 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16222 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16223   echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225   ac_check_lib_save_LIBS=$LIBS
16226 LIBS="-lgcc  $LIBS"
16227 cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h.  */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h.  */
16233
16234 /* Override any GCC internal prototype to avoid an error.
16235    Use char because int might match the return type of a GCC
16236    builtin and then its argument prototype would still apply.  */
16237 #ifdef __cplusplus
16238 extern "C"
16239 #endif
16240 char __umoddi3 ();
16241 int
16242 main ()
16243 {
16244 return __umoddi3 ();
16245   ;
16246   return 0;
16247 }
16248 _ACEOF
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (ac_try="$ac_link"
16251 case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256   (eval "$ac_link") 2>conftest.er1
16257   ac_status=$?
16258   grep -v '^ *+' conftest.er1 >conftest.err
16259   rm -f conftest.er1
16260   cat conftest.err >&5
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); } &&
16263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264   { (case "(($ac_try" in
16265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266   *) ac_try_echo=$ac_try;;
16267 esac
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269   (eval "$ac_try") 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; } &&
16273          { ac_try='test -s conftest$ac_exeext'
16274   { (case "(($ac_try" in
16275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276   *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279   (eval "$ac_try") 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; }; then
16283   ac_cv_lib_gcc___umoddi3=yes
16284 else
16285   echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288         ac_cv_lib_gcc___umoddi3=no
16289 fi
16290
16291 rm -f core conftest.err conftest.$ac_objext \
16292       conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_lib_save_LIBS
16294 fi
16295 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16296 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16297 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16298
16299 cat >>confdefs.h <<\_ACEOF
16300 #define HAVE___UMODDI3 1
16301 _ACEOF
16302
16303 fi
16304
16305
16306   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16307 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16308 if test "${ac_cv_lib_gcc___main+set}" = set; then
16309   echo $ECHO_N "(cached) $ECHO_C" >&6
16310 else
16311   ac_check_lib_save_LIBS=$LIBS
16312 LIBS="-lgcc  $LIBS"
16313 cat >conftest.$ac_ext <<_ACEOF
16314 /* confdefs.h.  */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h.  */
16319
16320 /* Override any GCC internal prototype to avoid an error.
16321    Use char because int might match the return type of a GCC
16322    builtin and then its argument prototype would still apply.  */
16323 #ifdef __cplusplus
16324 extern "C"
16325 #endif
16326 char __main ();
16327 int
16328 main ()
16329 {
16330 return __main ();
16331   ;
16332   return 0;
16333 }
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339   *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342   (eval "$ac_link") 2>conftest.er1
16343   ac_status=$?
16344   grep -v '^ *+' conftest.er1 >conftest.err
16345   rm -f conftest.er1
16346   cat conftest.err >&5
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } &&
16349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350   { (case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_try") 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; } &&
16359          { ac_try='test -s conftest$ac_exeext'
16360   { (case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_try") 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; }; then
16369   ac_cv_lib_gcc___main=yes
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374         ac_cv_lib_gcc___main=no
16375 fi
16376
16377 rm -f core conftest.err conftest.$ac_objext \
16378       conftest$ac_exeext conftest.$ac_ext
16379 LIBS=$ac_check_lib_save_LIBS
16380 fi
16381 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16382 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16383 if test $ac_cv_lib_gcc___main = yes; then
16384
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE___MAIN 1
16387 _ACEOF
16388
16389 fi
16390
16391   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16392 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16393 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16394   echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396   ac_check_lib_save_LIBS=$LIBS
16397 LIBS="-lgcc  $LIBS"
16398 cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404
16405 /* Override any GCC internal prototype to avoid an error.
16406    Use char because int might match the return type of a GCC
16407    builtin and then its argument prototype would still apply.  */
16408 #ifdef __cplusplus
16409 extern "C"
16410 #endif
16411 char __cmpdi2 ();
16412 int
16413 main ()
16414 {
16415 return __cmpdi2 ();
16416   ;
16417   return 0;
16418 }
16419 _ACEOF
16420 rm -f conftest.$ac_objext conftest$ac_exeext
16421 if { (ac_try="$ac_link"
16422 case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_link") 2>conftest.er1
16428   ac_status=$?
16429   grep -v '^ *+' conftest.er1 >conftest.err
16430   rm -f conftest.er1
16431   cat conftest.err >&5
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } &&
16434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435   { (case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440   (eval "$ac_try") 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; } &&
16444          { ac_try='test -s conftest$ac_exeext'
16445   { (case "(($ac_try" in
16446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447   *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450   (eval "$ac_try") 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; }; then
16454   ac_cv_lib_gcc___cmpdi2=yes
16455 else
16456   echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16458
16459         ac_cv_lib_gcc___cmpdi2=no
16460 fi
16461
16462 rm -f core conftest.err conftest.$ac_objext \
16463       conftest$ac_exeext conftest.$ac_ext
16464 LIBS=$ac_check_lib_save_LIBS
16465 fi
16466 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16467 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16468 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16469
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE___CMPDI2 1
16472 _ACEOF
16473
16474 fi
16475
16476 fi
16477
16478 if test "$llvm_cv_os_type" = "MingW" ; then
16479   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16480 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16481   cat >conftest.$ac_ext <<_ACEOF
16482
16483   /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488
16489     #include <windows.h>
16490     #include <imagehlp.h>
16491     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16492     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16493
16494
16495 _ACEOF
16496 rm -f conftest.$ac_objext
16497 if { (ac_try="$ac_compile"
16498 case "(($ac_try" in
16499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500   *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503   (eval "$ac_compile") 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16511   { (case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_try") 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; } &&
16520          { ac_try='test -s conftest.$ac_objext'
16521   { (case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_try") 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530
16531   { echo "$as_me:$LINENO: result: yes" >&5
16532 echo "${ECHO_T}yes" >&6; }
16533   llvm_cv_win32_elmcb_pcstr="PCSTR"
16534
16535 else
16536   echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539
16540   { echo "$as_me:$LINENO: result: no" >&5
16541 echo "${ECHO_T}no" >&6; }
16542   llvm_cv_win32_elmcb_pcstr="PSTR"
16543
16544 fi
16545
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547
16548 cat >>confdefs.h <<_ACEOF
16549 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16550 _ACEOF
16551
16552 fi
16553
16554
16555
16556   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16557 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16558 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16559   echo $ECHO_N "(cached) $ECHO_C" >&6
16560 else
16561
16562     ac_ext=cpp
16563 ac_cpp='$CXXCPP $CPPFLAGS'
16564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16567
16568     cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 #include <math.h>
16575 int
16576 main ()
16577 {
16578 float f; isnan(f);
16579   ;
16580   return 0;
16581 }
16582 _ACEOF
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587   *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590   (eval "$ac_compile") 2>conftest.er1
16591   ac_status=$?
16592   grep -v '^ *+' conftest.er1 >conftest.err
16593   rm -f conftest.er1
16594   cat conftest.err >&5
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); } &&
16597          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16598   { (case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_try") 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; } &&
16607          { ac_try='test -s conftest.$ac_objext'
16608   { (case "(($ac_try" in
16609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610   *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613   (eval "$ac_try") 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; }; then
16617   ac_cv_func_isnan_in_math_h=yes
16618 else
16619   echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16621
16622         ac_cv_func_isnan_in_math_h=no
16623 fi
16624
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626     ac_ext=c
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16631
16632
16633 fi
16634 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16635 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16636
16637
16638 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16639
16640 cat >>confdefs.h <<\_ACEOF
16641 #define HAVE_ISNAN_IN_MATH_H 1
16642 _ACEOF
16643
16644 fi
16645
16646
16647   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16648 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16649 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16650   echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652
16653     ac_ext=cpp
16654 ac_cpp='$CXXCPP $CPPFLAGS'
16655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16658
16659     cat >conftest.$ac_ext <<_ACEOF
16660 /* confdefs.h.  */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h.  */
16665 #include <cmath>
16666 int
16667 main ()
16668 {
16669 float f; isnan(f);
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest.$ac_objext
16675 if { (ac_try="$ac_compile"
16676 case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_compile") 2>conftest.er1
16682   ac_status=$?
16683   grep -v '^ *+' conftest.er1 >conftest.err
16684   rm -f conftest.er1
16685   cat conftest.err >&5
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); } &&
16688          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16689   { (case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_try") 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }; } &&
16698          { ac_try='test -s conftest.$ac_objext'
16699   { (case "(($ac_try" in
16700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701   *) ac_try_echo=$ac_try;;
16702 esac
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704   (eval "$ac_try") 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); }; }; then
16708   ac_cv_func_isnan_in_cmath=yes
16709 else
16710   echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16712
16713         ac_cv_func_isnan_in_cmath=no
16714 fi
16715
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717     ac_ext=c
16718 ac_cpp='$CPP $CPPFLAGS'
16719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16722
16723
16724 fi
16725 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16726 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16727
16728 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16729
16730 cat >>confdefs.h <<\_ACEOF
16731 #define HAVE_ISNAN_IN_CMATH 1
16732 _ACEOF
16733
16734 fi
16735
16736
16737   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16738 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16739 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16740   echo $ECHO_N "(cached) $ECHO_C" >&6
16741 else
16742
16743     ac_ext=cpp
16744 ac_cpp='$CXXCPP $CPPFLAGS'
16745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16748
16749     cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755 #include <cmath>
16756 int
16757 main ()
16758 {
16759 float f; std::isnan(f);
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 rm -f conftest.$ac_objext
16765 if { (ac_try="$ac_compile"
16766 case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_compile") 2>conftest.er1
16772   ac_status=$?
16773   grep -v '^ *+' conftest.er1 >conftest.err
16774   rm -f conftest.er1
16775   cat conftest.err >&5
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } &&
16778          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16779   { (case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_try") 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; } &&
16788          { ac_try='test -s conftest.$ac_objext'
16789   { (case "(($ac_try" in
16790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791   *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794   (eval "$ac_try") 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; }; then
16798   ac_cv_func_std_isnan_in_cmath=yes
16799 else
16800   echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803         ac_cv_func_std_isnan_in_cmath=no
16804 fi
16805
16806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16807     ac_ext=c
16808 ac_cpp='$CPP $CPPFLAGS'
16809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16812
16813
16814 fi
16815 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16816 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16817
16818 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16819
16820 cat >>confdefs.h <<\_ACEOF
16821 #define HAVE_STD_ISNAN_IN_CMATH 1
16822 _ACEOF
16823
16824 fi
16825
16826
16827
16828
16829   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16830 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16831 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834
16835     ac_ext=cpp
16836 ac_cpp='$CXXCPP $CPPFLAGS'
16837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16840
16841     cat >conftest.$ac_ext <<_ACEOF
16842 /* confdefs.h.  */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h.  */
16847 #include <math.h>
16848 int
16849 main ()
16850 {
16851 float f; isinf(f);
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext
16857 if { (ac_try="$ac_compile"
16858 case "(($ac_try" in
16859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860   *) ac_try_echo=$ac_try;;
16861 esac
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863   (eval "$ac_compile") 2>conftest.er1
16864   ac_status=$?
16865   grep -v '^ *+' conftest.er1 >conftest.err
16866   rm -f conftest.er1
16867   cat conftest.err >&5
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); } &&
16870          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16871   { (case "(($ac_try" in
16872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873   *) ac_try_echo=$ac_try;;
16874 esac
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876   (eval "$ac_try") 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; } &&
16880          { ac_try='test -s conftest.$ac_objext'
16881   { (case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_try") 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; }; then
16890   ac_cv_func_isinf_in_math_h=yes
16891 else
16892   echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16894
16895         ac_cv_func_isinf_in_math_h=no
16896 fi
16897
16898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16899     ac_ext=c
16900 ac_cpp='$CPP $CPPFLAGS'
16901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16904
16905
16906 fi
16907 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
16908 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
16909
16910 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
16911
16912 cat >>confdefs.h <<\_ACEOF
16913 #define HAVE_ISINF_IN_MATH_H 1
16914 _ACEOF
16915
16916 fi
16917
16918
16919   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
16920 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
16921 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
16922   echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16924
16925     ac_ext=cpp
16926 ac_cpp='$CXXCPP $CPPFLAGS'
16927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16930
16931     cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h.  */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h.  */
16937 #include <cmath>
16938 int
16939 main ()
16940 {
16941 float f; isinf(f);
16942   ;
16943   return 0;
16944 }
16945 _ACEOF
16946 rm -f conftest.$ac_objext
16947 if { (ac_try="$ac_compile"
16948 case "(($ac_try" in
16949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950   *) ac_try_echo=$ac_try;;
16951 esac
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953   (eval "$ac_compile") 2>conftest.er1
16954   ac_status=$?
16955   grep -v '^ *+' conftest.er1 >conftest.err
16956   rm -f conftest.er1
16957   cat conftest.err >&5
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); } &&
16960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16961   { (case "(($ac_try" in
16962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963   *) ac_try_echo=$ac_try;;
16964 esac
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966   (eval "$ac_try") 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }; } &&
16970          { ac_try='test -s conftest.$ac_objext'
16971   { (case "(($ac_try" in
16972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973   *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976   (eval "$ac_try") 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); }; }; then
16980   ac_cv_func_isinf_in_cmath=yes
16981 else
16982   echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16984
16985         ac_cv_func_isinf_in_cmath=no
16986 fi
16987
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989     ac_ext=c
16990 ac_cpp='$CPP $CPPFLAGS'
16991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16994
16995
16996 fi
16997 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
16998 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
16999
17000 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17001
17002 cat >>confdefs.h <<\_ACEOF
17003 #define HAVE_ISINF_IN_CMATH 1
17004 _ACEOF
17005
17006 fi
17007
17008
17009   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17010 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17011 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17012   echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014
17015     ac_ext=cpp
17016 ac_cpp='$CXXCPP $CPPFLAGS'
17017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17020
17021     cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 #include <cmath>
17028 int
17029 main ()
17030 {
17031 float f; std::isinf(f);
17032   ;
17033   return 0;
17034 }
17035 _ACEOF
17036 rm -f conftest.$ac_objext
17037 if { (ac_try="$ac_compile"
17038 case "(($ac_try" in
17039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040   *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043   (eval "$ac_compile") 2>conftest.er1
17044   ac_status=$?
17045   grep -v '^ *+' conftest.er1 >conftest.err
17046   rm -f conftest.er1
17047   cat conftest.err >&5
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); } &&
17050          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17051   { (case "(($ac_try" in
17052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053   *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056   (eval "$ac_try") 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; } &&
17060          { ac_try='test -s conftest.$ac_objext'
17061   { (case "(($ac_try" in
17062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063   *) ac_try_echo=$ac_try;;
17064 esac
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066   (eval "$ac_try") 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; }; then
17070   ac_cv_func_std_isinf_in_cmath=yes
17071 else
17072   echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075         ac_cv_func_std_isinf_in_cmath=no
17076 fi
17077
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079     ac_ext=c
17080 ac_cpp='$CPP $CPPFLAGS'
17081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17084
17085
17086 fi
17087 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17088 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17089
17090 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17091
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_STD_ISINF_IN_CMATH 1
17094 _ACEOF
17095
17096 fi
17097
17098
17099   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17100 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17101 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17102   echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104
17105     ac_ext=cpp
17106 ac_cpp='$CXXCPP $CPPFLAGS'
17107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17110
17111     cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h.  */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h.  */
17117 #include <ieeefp.h>
17118 int
17119 main ()
17120 {
17121 float f; finite(f);
17122   ;
17123   return 0;
17124 }
17125 _ACEOF
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133   (eval "$ac_compile") 2>conftest.er1
17134   ac_status=$?
17135   grep -v '^ *+' conftest.er1 >conftest.err
17136   rm -f conftest.er1
17137   cat conftest.err >&5
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); } &&
17140          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17141   { (case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_try") 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; } &&
17150          { ac_try='test -s conftest.$ac_objext'
17151   { (case "(($ac_try" in
17152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153   *) ac_try_echo=$ac_try;;
17154 esac
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156   (eval "$ac_try") 2>&5
17157   ac_status=$?
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); }; }; then
17160   ac_cv_func_finite_in_ieeefp_h=yes
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165         ac_cv_func_finite_in_ieeefp_h=no
17166 fi
17167
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17169     ac_ext=c
17170 ac_cpp='$CPP $CPPFLAGS'
17171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17174
17175
17176 fi
17177 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17178 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17179
17180 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17181
17182 cat >>confdefs.h <<\_ACEOF
17183 #define HAVE_FINITE_IN_IEEEFP_H 1
17184 _ACEOF
17185
17186 fi
17187
17188
17189
17190 if test "$llvm_cv_platform_type" = "Unix" ; then
17191
17192
17193 for ac_header in stdlib.h unistd.h
17194 do
17195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17197   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200   echo $ECHO_N "(cached) $ECHO_C" >&6
17201 fi
17202 ac_res=`eval echo '${'$as_ac_Header'}'`
17203                { echo "$as_me:$LINENO: result: $ac_res" >&5
17204 echo "${ECHO_T}$ac_res" >&6; }
17205 else
17206   # Is the header compilable?
17207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17209 cat >conftest.$ac_ext <<_ACEOF
17210 /* confdefs.h.  */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h.  */
17215 $ac_includes_default
17216 #include <$ac_header>
17217 _ACEOF
17218 rm -f conftest.$ac_objext
17219 if { (ac_try="$ac_compile"
17220 case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_compile") 2>conftest.er1
17226   ac_status=$?
17227   grep -v '^ *+' conftest.er1 >conftest.err
17228   rm -f conftest.er1
17229   cat conftest.err >&5
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } &&
17232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233   { (case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_try") 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; } &&
17242          { ac_try='test -s conftest.$ac_objext'
17243   { (case "(($ac_try" in
17244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245   *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248   (eval "$ac_try") 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; }; then
17252   ac_header_compiler=yes
17253 else
17254   echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257         ac_header_compiler=no
17258 fi
17259
17260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17262 echo "${ECHO_T}$ac_header_compiler" >&6; }
17263
17264 # Is the header present?
17265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17267 cat >conftest.$ac_ext <<_ACEOF
17268 /* confdefs.h.  */
17269 _ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h.  */
17273 #include <$ac_header>
17274 _ACEOF
17275 if { (ac_try="$ac_cpp conftest.$ac_ext"
17276 case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17282   ac_status=$?
17283   grep -v '^ *+' conftest.er1 >conftest.err
17284   rm -f conftest.er1
17285   cat conftest.err >&5
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); } >/dev/null; then
17288   if test -s conftest.err; then
17289     ac_cpp_err=$ac_c_preproc_warn_flag
17290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17291   else
17292     ac_cpp_err=
17293   fi
17294 else
17295   ac_cpp_err=yes
17296 fi
17297 if test -z "$ac_cpp_err"; then
17298   ac_header_preproc=yes
17299 else
17300   echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303   ac_header_preproc=no
17304 fi
17305
17306 rm -f conftest.err conftest.$ac_ext
17307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17308 echo "${ECHO_T}$ac_header_preproc" >&6; }
17309
17310 # So?  What about this header?
17311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17312   yes:no: )
17313     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17317     ac_header_preproc=yes
17318     ;;
17319   no:yes:* )
17320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17322     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17323 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17324     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17326     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17327 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17330     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17332     ( cat <<\_ASBOX
17333 ## ------------------------------------ ##
17334 ## Report this to http://llvm.org/bugs/ ##
17335 ## ------------------------------------ ##
17336 _ASBOX
17337      ) | sed "s/^/$as_me: WARNING:     /" >&2
17338     ;;
17339 esac
17340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17343   echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345   eval "$as_ac_Header=\$ac_header_preproc"
17346 fi
17347 ac_res=`eval echo '${'$as_ac_Header'}'`
17348                { echo "$as_me:$LINENO: result: $ac_res" >&5
17349 echo "${ECHO_T}$ac_res" >&6; }
17350
17351 fi
17352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17353   cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17355 _ACEOF
17356
17357 fi
17358
17359 done
17360
17361
17362 for ac_func in getpagesize
17363 do
17364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370   cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h.  */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h.  */
17376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17378 #define $ac_func innocuous_$ac_func
17379
17380 /* System header to define __stub macros and hopefully few prototypes,
17381     which can conflict with char $ac_func (); below.
17382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383     <limits.h> exists even on freestanding compilers.  */
17384
17385 #ifdef __STDC__
17386 # include <limits.h>
17387 #else
17388 # include <assert.h>
17389 #endif
17390
17391 #undef $ac_func
17392
17393 /* Override any GCC internal prototype to avoid an error.
17394    Use char because int might match the return type of a GCC
17395    builtin and then its argument prototype would still apply.  */
17396 #ifdef __cplusplus
17397 extern "C"
17398 #endif
17399 char $ac_func ();
17400 /* The GNU C library defines this for functions which it implements
17401     to always fail with ENOSYS.  Some functions are actually named
17402     something starting with __ and the normal name is an alias.  */
17403 #if defined __stub_$ac_func || defined __stub___$ac_func
17404 choke me
17405 #endif
17406
17407 int
17408 main ()
17409 {
17410 return $ac_func ();
17411   ;
17412   return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_link") 2>conftest.er1
17423   ac_status=$?
17424   grep -v '^ *+' conftest.er1 >conftest.err
17425   rm -f conftest.er1
17426   cat conftest.err >&5
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } &&
17429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17430   { (case "(($ac_try" in
17431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432   *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435   (eval "$ac_try") 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; } &&
17439          { ac_try='test -s conftest$ac_exeext'
17440   { (case "(($ac_try" in
17441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442   *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445   (eval "$ac_try") 2>&5
17446   ac_status=$?
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); }; }; then
17449   eval "$as_ac_var=yes"
17450 else
17451   echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17453
17454         eval "$as_ac_var=no"
17455 fi
17456
17457 rm -f core conftest.err conftest.$ac_objext \
17458       conftest$ac_exeext conftest.$ac_ext
17459 fi
17460 ac_res=`eval echo '${'$as_ac_var'}'`
17461                { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 if test `eval echo '${'$as_ac_var'}'` = yes; then
17464   cat >>confdefs.h <<_ACEOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466 _ACEOF
17467
17468 fi
17469 done
17470
17471 { echo "$as_me:$LINENO: checking for working mmap" >&5
17472 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17473 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17474   echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476   if test "$cross_compiling" = yes; then
17477   ac_cv_func_mmap_fixed_mapped=no
17478 else
17479   cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h.  */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h.  */
17485 $ac_includes_default
17486 /* malloc might have been renamed as rpl_malloc. */
17487 #undef malloc
17488
17489 /* Thanks to Mike Haertel and Jim Avera for this test.
17490    Here is a matrix of mmap possibilities:
17491         mmap private not fixed
17492         mmap private fixed at somewhere currently unmapped
17493         mmap private fixed at somewhere already mapped
17494         mmap shared not fixed
17495         mmap shared fixed at somewhere currently unmapped
17496         mmap shared fixed at somewhere already mapped
17497    For private mappings, we should verify that changes cannot be read()
17498    back from the file, nor mmap's back from the file at a different
17499    address.  (There have been systems where private was not correctly
17500    implemented like the infamous i386 svr4.0, and systems where the
17501    VM page cache was not coherent with the file system buffer cache
17502    like early versions of FreeBSD and possibly contemporary NetBSD.)
17503    For shared mappings, we should conversely verify that changes get
17504    propagated back to all the places they're supposed to be.
17505
17506    Grep wants private fixed already mapped.
17507    The main things grep needs to know about mmap are:
17508    * does it exist and is it safe to write into the mmap'd area
17509    * how to use it (BSD variants)  */
17510
17511 #include <fcntl.h>
17512 #include <sys/mman.h>
17513
17514 #if !STDC_HEADERS && !HAVE_STDLIB_H
17515 char *malloc ();
17516 #endif
17517
17518 /* This mess was copied from the GNU getpagesize.h.  */
17519 #if !HAVE_GETPAGESIZE
17520 /* Assume that all systems that can run configure have sys/param.h.  */
17521 # if !HAVE_SYS_PARAM_H
17522 #  define HAVE_SYS_PARAM_H 1
17523 # endif
17524
17525 # ifdef _SC_PAGESIZE
17526 #  define getpagesize() sysconf(_SC_PAGESIZE)
17527 # else /* no _SC_PAGESIZE */
17528 #  if HAVE_SYS_PARAM_H
17529 #   include <sys/param.h>
17530 #   ifdef EXEC_PAGESIZE
17531 #    define getpagesize() EXEC_PAGESIZE
17532 #   else /* no EXEC_PAGESIZE */
17533 #    ifdef NBPG
17534 #     define getpagesize() NBPG * CLSIZE
17535 #     ifndef CLSIZE
17536 #      define CLSIZE 1
17537 #     endif /* no CLSIZE */
17538 #    else /* no NBPG */
17539 #     ifdef NBPC
17540 #      define getpagesize() NBPC
17541 #     else /* no NBPC */
17542 #      ifdef PAGESIZE
17543 #       define getpagesize() PAGESIZE
17544 #      endif /* PAGESIZE */
17545 #     endif /* no NBPC */
17546 #    endif /* no NBPG */
17547 #   endif /* no EXEC_PAGESIZE */
17548 #  else /* no HAVE_SYS_PARAM_H */
17549 #   define getpagesize() 8192   /* punt totally */
17550 #  endif /* no HAVE_SYS_PARAM_H */
17551 # endif /* no _SC_PAGESIZE */
17552
17553 #endif /* no HAVE_GETPAGESIZE */
17554
17555 int
17556 main ()
17557 {
17558   char *data, *data2, *data3;
17559   int i, pagesize;
17560   int fd;
17561
17562   pagesize = getpagesize ();
17563
17564   /* First, make a file with some known garbage in it. */
17565   data = (char *) malloc (pagesize);
17566   if (!data)
17567     return 1;
17568   for (i = 0; i < pagesize; ++i)
17569     *(data + i) = rand ();
17570   umask (0);
17571   fd = creat ("conftest.mmap", 0600);
17572   if (fd < 0)
17573     return 1;
17574   if (write (fd, data, pagesize) != pagesize)
17575     return 1;
17576   close (fd);
17577
17578   /* Next, try to mmap the file at a fixed address which already has
17579      something else allocated at it.  If we can, also make sure that
17580      we see the same garbage.  */
17581   fd = open ("conftest.mmap", O_RDWR);
17582   if (fd < 0)
17583     return 1;
17584   data2 = (char *) malloc (2 * pagesize);
17585   if (!data2)
17586     return 1;
17587   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17588   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17589                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17590     return 1;
17591   for (i = 0; i < pagesize; ++i)
17592     if (*(data + i) != *(data2 + i))
17593       return 1;
17594
17595   /* Finally, make sure that changes to the mapped area do not
17596      percolate back to the file as seen by read().  (This is a bug on
17597      some variants of i386 svr4.0.)  */
17598   for (i = 0; i < pagesize; ++i)
17599     *(data2 + i) = *(data2 + i) + 1;
17600   data3 = (char *) malloc (pagesize);
17601   if (!data3)
17602     return 1;
17603   if (read (fd, data3, pagesize) != pagesize)
17604     return 1;
17605   for (i = 0; i < pagesize; ++i)
17606     if (*(data + i) != *(data3 + i))
17607       return 1;
17608   close (fd);
17609   return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest$ac_exeext
17613 if { (ac_try="$ac_link"
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_link") 2>&5
17620   ac_status=$?
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17623   { (case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_try") 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; }; then
17632   ac_cv_func_mmap_fixed_mapped=yes
17633 else
17634   echo "$as_me: program exited with status $ac_status" >&5
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17637
17638 ( exit $ac_status )
17639 ac_cv_func_mmap_fixed_mapped=no
17640 fi
17641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17642 fi
17643
17644
17645 fi
17646 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17647 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17648 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17649
17650 cat >>confdefs.h <<\_ACEOF
17651 #define HAVE_MMAP 1
17652 _ACEOF
17653
17654 fi
17655 rm -f conftest.mmap
17656
17657   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17658 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17659 if test "${ac_cv_func_mmap_file+set}" = set; then
17660   echo $ECHO_N "(cached) $ECHO_C" >&6
17661 else
17662    ac_ext=c
17663 ac_cpp='$CPP $CPPFLAGS'
17664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17667
17668   if test "$cross_compiling" = yes; then
17669   ac_cv_func_mmap_file=no
17670 else
17671   cat >conftest.$ac_ext <<_ACEOF
17672
17673     /* confdefs.h.  */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h.  */
17678
17679 #include <sys/types.h>
17680 #include <sys/mman.h>
17681 #include <fcntl.h>
17682
17683 int
17684 main ()
17685 {
17686
17687   int fd;
17688   fd = creat ("foo",0777);
17689   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17690   unlink ("foo");
17691   return (fd != (int) MAP_FAILED);
17692   ;
17693   return 0;
17694 }
17695 _ACEOF
17696 rm -f conftest$ac_exeext
17697 if { (ac_try="$ac_link"
17698 case "(($ac_try" in
17699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700   *) ac_try_echo=$ac_try;;
17701 esac
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703   (eval "$ac_link") 2>&5
17704   ac_status=$?
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17707   { (case "(($ac_try" in
17708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709   *) ac_try_echo=$ac_try;;
17710 esac
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712   (eval "$ac_try") 2>&5
17713   ac_status=$?
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); }; }; then
17716   ac_cv_func_mmap_file=yes
17717 else
17718   echo "$as_me: program exited with status $ac_status" >&5
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17721
17722 ( exit $ac_status )
17723 ac_cv_func_mmap_file=no
17724 fi
17725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17726 fi
17727
17728
17729   ac_ext=c
17730 ac_cpp='$CPP $CPPFLAGS'
17731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17734
17735
17736 fi
17737 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17738 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17739 if test "$ac_cv_func_mmap_file" = yes; then
17740
17741 cat >>confdefs.h <<\_ACEOF
17742 #define HAVE_MMAP_FILE
17743 _ACEOF
17744
17745    MMAP_FILE=yes
17746
17747 fi
17748
17749   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17750 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17751 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17752   echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754   if test "$llvm_cv_os_type" = "Interix" ; then
17755    ac_cv_need_dev_zero_for_mmap=yes
17756  else
17757    ac_cv_need_dev_zero_for_mmap=no
17758  fi
17759
17760 fi
17761 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17762 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17763 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17764
17765 cat >>confdefs.h <<\_ACEOF
17766 #define NEED_DEV_ZERO_FOR_MMAP 1
17767 _ACEOF
17768
17769 fi
17770
17771   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17772   then
17773     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17774 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17775   fi
17776   if test "$ac_cv_func_mmap_file" = "no"
17777   then
17778     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17779 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17780   fi
17781 fi
17782
17783 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17784 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17785 ac_ext=cpp
17786 ac_cpp='$CXXCPP $CPPFLAGS'
17787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17790
17791 cat >conftest.$ac_ext <<_ACEOF
17792
17793   /* confdefs.h.  */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h.  */
17798
17799     int main() {
17800       volatile unsigned long val = 1;
17801       __sync_synchronize();
17802       __sync_val_compare_and_swap(&val, 1, 0);
17803       __sync_add_and_fetch(&val, 1);
17804       __sync_sub_and_fetch(&val, 1);
17805       return 0;
17806     }
17807
17808
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_link") 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } &&
17824          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17825   { (case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_try") 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; } &&
17834          { ac_try='test -s conftest$ac_exeext'
17835   { (case "(($ac_try" in
17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837   *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840   (eval "$ac_try") 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; }; then
17844
17845   { echo "$as_me:$LINENO: result: yes" >&5
17846 echo "${ECHO_T}yes" >&6; }
17847
17848 cat >>confdefs.h <<\_ACEOF
17849 #define LLVM_HAS_ATOMICS 1
17850 _ACEOF
17851
17852
17853 else
17854   echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857
17858   { echo "$as_me:$LINENO: result: no" >&5
17859 echo "${ECHO_T}no" >&6; }
17860
17861 cat >>confdefs.h <<\_ACEOF
17862 #define LLVM_HAS_ATOMICS 0
17863 _ACEOF
17864
17865   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17866 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17867
17868 fi
17869
17870 rm -f core conftest.err conftest.$ac_objext \
17871       conftest$ac_exeext conftest.$ac_ext
17872 ac_ext=c
17873 ac_cpp='$CPP $CPPFLAGS'
17874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17877
17878
17879
17880 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17881   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17882 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17883 if test "${llvm_cv_linux_mixed+set}" = set; then
17884   echo $ECHO_N "(cached) $ECHO_C" >&6
17885 else
17886    ac_ext=c
17887 ac_cpp='$CPP $CPPFLAGS'
17888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17891
17892   cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h.  */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h.  */
17898 #ifndef __x86_64__
17899        error: Not x86-64 even if uname says so!
17900       #endif
17901
17902 int
17903 main ()
17904 {
17905
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (ac_try="$ac_compile"
17912 case "(($ac_try" in
17913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914   *) ac_try_echo=$ac_try;;
17915 esac
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917   (eval "$ac_compile") 2>conftest.er1
17918   ac_status=$?
17919   grep -v '^ *+' conftest.er1 >conftest.err
17920   rm -f conftest.er1
17921   cat conftest.err >&5
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } &&
17924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17925   { (case "(($ac_try" in
17926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927   *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930   (eval "$ac_try") 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; } &&
17934          { ac_try='test -s conftest.$ac_objext'
17935   { (case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_try") 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; }; then
17944   llvm_cv_linux_mixed=no
17945 else
17946   echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949         llvm_cv_linux_mixed=yes
17950 fi
17951
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953   ac_ext=c
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958
17959
17960 fi
17961 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17962 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17963
17964   if test "$llvm_cv_linux_mixed" = "yes"; then
17965     llvm_cv_target_arch="x86"
17966     ARCH="x86"
17967   fi
17968 fi
17969
17970
17971 for ac_func in __dso_handle
17972 do
17973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17977   echo $ECHO_N "(cached) $ECHO_C" >&6
17978 else
17979   cat >conftest.$ac_ext <<_ACEOF
17980 /* confdefs.h.  */
17981 _ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h.  */
17985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17987 #define $ac_func innocuous_$ac_func
17988
17989 /* System header to define __stub macros and hopefully few prototypes,
17990     which can conflict with char $ac_func (); below.
17991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992     <limits.h> exists even on freestanding compilers.  */
17993
17994 #ifdef __STDC__
17995 # include <limits.h>
17996 #else
17997 # include <assert.h>
17998 #endif
17999
18000 #undef $ac_func
18001
18002 /* Override any GCC internal prototype to avoid an error.
18003    Use char because int might match the return type of a GCC
18004    builtin and then its argument prototype would still apply.  */
18005 #ifdef __cplusplus
18006 extern "C"
18007 #endif
18008 char $ac_func ();
18009 /* The GNU C library defines this for functions which it implements
18010     to always fail with ENOSYS.  Some functions are actually named
18011     something starting with __ and the normal name is an alias.  */
18012 #if defined __stub_$ac_func || defined __stub___$ac_func
18013 choke me
18014 #endif
18015
18016 int
18017 main ()
18018 {
18019 return $ac_func ();
18020   ;
18021   return 0;
18022 }
18023 _ACEOF
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (ac_try="$ac_link"
18026 case "(($ac_try" in
18027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028   *) ac_try_echo=$ac_try;;
18029 esac
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031   (eval "$ac_link") 2>conftest.er1
18032   ac_status=$?
18033   grep -v '^ *+' conftest.er1 >conftest.err
18034   rm -f conftest.er1
18035   cat conftest.err >&5
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); } &&
18038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18039   { (case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044   (eval "$ac_try") 2>&5
18045   ac_status=$?
18046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047   (exit $ac_status); }; } &&
18048          { ac_try='test -s conftest$ac_exeext'
18049   { (case "(($ac_try" in
18050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051   *) ac_try_echo=$ac_try;;
18052 esac
18053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18054   (eval "$ac_try") 2>&5
18055   ac_status=$?
18056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057   (exit $ac_status); }; }; then
18058   eval "$as_ac_var=yes"
18059 else
18060   echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18062
18063         eval "$as_ac_var=no"
18064 fi
18065
18066 rm -f core conftest.err conftest.$ac_objext \
18067       conftest$ac_exeext conftest.$ac_ext
18068 fi
18069 ac_res=`eval echo '${'$as_ac_var'}'`
18070                { echo "$as_me:$LINENO: result: $ac_res" >&5
18071 echo "${ECHO_T}$ac_res" >&6; }
18072 if test `eval echo '${'$as_ac_var'}'` = yes; then
18073   cat >>confdefs.h <<_ACEOF
18074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18075 _ACEOF
18076
18077 fi
18078 done
18079
18080
18081 SHLIBEXT=$llvm_shlib_ext
18082
18083
18084 if test "${prefix}" = "NONE" ; then
18085   prefix="/usr/local"
18086 fi
18087 eval LLVM_PREFIX="${prefix}";
18088 eval LLVM_BINDIR="${prefix}/bin";
18089 eval LLVM_DATADIR="${prefix}/share/llvm";
18090 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18091 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18092 eval LLVM_INCLUDEDIR="${prefix}/include";
18093 eval LLVM_INFODIR="${prefix}/info";
18094 eval LLVM_MANDIR="${prefix}/man";
18095 LLVM_CONFIGTIME=`date`
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18107   LLVM_CONFIGTIME="(timestamp not enabled)"
18108 fi
18109
18110
18111 cat >>confdefs.h <<_ACEOF
18112 #define LLVM_PREFIX "$LLVM_PREFIX"
18113 _ACEOF
18114
18115
18116 cat >>confdefs.h <<_ACEOF
18117 #define LLVM_BINDIR "$LLVM_BINDIR"
18118 _ACEOF
18119
18120
18121 cat >>confdefs.h <<_ACEOF
18122 #define LLVM_DATADIR "$LLVM_DATADIR"
18123 _ACEOF
18124
18125
18126 cat >>confdefs.h <<_ACEOF
18127 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18128 _ACEOF
18129
18130
18131 cat >>confdefs.h <<_ACEOF
18132 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18133 _ACEOF
18134
18135
18136 cat >>confdefs.h <<_ACEOF
18137 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18138 _ACEOF
18139
18140
18141 cat >>confdefs.h <<_ACEOF
18142 #define LLVM_INFODIR "$LLVM_INFODIR"
18143 _ACEOF
18144
18145
18146 cat >>confdefs.h <<_ACEOF
18147 #define LLVM_MANDIR "$LLVM_MANDIR"
18148 _ACEOF
18149
18150
18151 cat >>confdefs.h <<_ACEOF
18152 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18153 _ACEOF
18154
18155
18156 cat >>confdefs.h <<_ACEOF
18157 #define LLVM_HOST_TRIPLE "$host"
18158 _ACEOF
18159
18160
18161 cat >>confdefs.h <<_ACEOF
18162 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18163 _ACEOF
18164
18165
18166 if test "$BINDINGS_TO_BUILD" = auto ; then
18167   BINDINGS_TO_BUILD=""
18168   if test "x$OCAMLFIND" != x ; then
18169     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18170   fi
18171   if test "x$GO" != x ; then
18172     if $GO run ${srcdir}/bindings/go/conftest.go ; then
18173       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18174     fi
18175   fi
18176 fi
18177 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18178
18179
18180 binding_prereqs_failed=0
18181 for a_binding in $BINDINGS_TO_BUILD ; do
18182   case "$a_binding" in
18183   ocaml)
18184     if test "x$OCAMLFIND" = x ; then
18185       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18186 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18187       binding_prereqs_failed=1
18188     fi
18189
18190     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18191       HAVE_OCAMLOPT=1
18192     else
18193       HAVE_OCAMLOPT=0
18194     fi
18195
18196
18197     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18198       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18199 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18200       binding_prereqs_failed=1
18201     fi
18202
18203     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18204       HAVE_OCAML_OUNIT=1
18205     else
18206       HAVE_OCAML_OUNIT=0
18207       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18208 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18209           fi
18210
18211
18212     if test "x$with_ocaml_libdir" != xauto ; then
18213       OCAML_LIBDIR=$with_ocaml_libdir
18214
18215     else
18216       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18217       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18218       then
18219         # ocaml stdlib is beneath our prefix; use stdlib
18220         OCAML_LIBDIR=$ocaml_stdlib
18221
18222       else
18223         # ocaml stdlib is outside our prefix; use libdir/ocaml
18224         OCAML_LIBDIR=${prefix}/lib/ocaml
18225
18226       fi
18227     fi
18228     ;;
18229   go)
18230     if test "x$GO" = x ; then
18231       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18232 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18233       binding_prereqs_failed=1
18234     else
18235       if $GO run ${srcdir}/bindings/go/conftest.go ; then
18236         :
18237       else
18238         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18239 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18240         binding_prereqs_failed=1
18241       fi
18242     fi
18243     ;;
18244   esac
18245 done
18246 if test "$binding_prereqs_failed" = 1 ; then
18247   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18248 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18249    { (exit 1); exit 1; }; }
18250 fi
18251
18252 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18253 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18254 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18255   echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18257    ac_ext=cpp
18258 ac_cpp='$CXXCPP $CPPFLAGS'
18259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18262
18263   oldcxxflags="$CXXFLAGS"
18264   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18265   cat >conftest.$ac_ext <<_ACEOF
18266 /* confdefs.h.  */
18267 _ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h.  */
18271 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18272 int
18273 main ()
18274 {
18275 X<int>().f();
18276   ;
18277   return 0;
18278 }
18279 _ACEOF
18280 rm -f conftest.$ac_objext
18281 if { (ac_try="$ac_compile"
18282 case "(($ac_try" in
18283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284   *) ac_try_echo=$ac_try;;
18285 esac
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287   (eval "$ac_compile") 2>conftest.er1
18288   ac_status=$?
18289   grep -v '^ *+' conftest.er1 >conftest.err
18290   rm -f conftest.er1
18291   cat conftest.err >&5
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); } &&
18294          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18295   { (case "(($ac_try" in
18296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297   *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300   (eval "$ac_try") 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); }; } &&
18304          { ac_try='test -s conftest.$ac_objext'
18305   { (case "(($ac_try" in
18306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307   *) ac_try_echo=$ac_try;;
18308 esac
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310   (eval "$ac_try") 2>&5
18311   ac_status=$?
18312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313   (exit $ac_status); }; }; then
18314   llvm_cv_cxx_visibility_inlines_hidden=yes
18315 else
18316   echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18318
18319         llvm_cv_cxx_visibility_inlines_hidden=no
18320 fi
18321
18322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18323   CXXFLAGS="$oldcxxflags"
18324   ac_ext=c
18325 ac_cpp='$CPP $CPPFLAGS'
18326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18329
18330
18331 fi
18332 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18333 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18334 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18335   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18336
18337 else
18338   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18339
18340 fi
18341
18342
18343 if test "$llvm_cv_link_use_r" = "yes" ; then
18344   RPATH="-Wl,-R"
18345 else
18346   RPATH="-Wl,-rpath"
18347 fi
18348
18349
18350 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18351   RDYNAMIC="-rdynamic"
18352 else
18353   RDYNAMIC=""
18354 fi
18355
18356
18357
18358 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18359
18360
18361
18362
18363
18364
18365 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18366
18367 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18368
18369 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18370
18371 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18372
18373 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18374
18375
18376 ac_config_files="$ac_config_files Makefile.config"
18377
18378
18379 ac_config_files="$ac_config_files llvm.spec"
18380
18381
18382 ac_config_files="$ac_config_files docs/doxygen.cfg"
18383
18384
18385 if test "${clang_src_root}" = ""; then
18386   clang_src_root="$srcdir/tools/clang"
18387 fi
18388 if test -f ${clang_src_root}/README.txt; then
18389     configh="include/clang/Config/config.h"
18390   doxy="docs/doxygen.cfg"
18391   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18392
18393   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18394
18395 fi
18396
18397 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18398
18399
18400 test "x$program_prefix" = "xNONE" && program_prefix=""
18401
18402
18403
18404 ac_config_commands="$ac_config_commands setup"
18405
18406 ac_config_commands="$ac_config_commands Makefile"
18407
18408
18409 ac_config_commands="$ac_config_commands Makefile.common"
18410
18411
18412 ac_config_commands="$ac_config_commands examples/Makefile"
18413
18414
18415 ac_config_commands="$ac_config_commands lib/Makefile"
18416
18417
18418 ac_config_commands="$ac_config_commands test/Makefile"
18419
18420
18421 ac_config_commands="$ac_config_commands test/Makefile.tests"
18422
18423
18424 ac_config_commands="$ac_config_commands unittests/Makefile"
18425
18426
18427 ac_config_commands="$ac_config_commands tools/Makefile"
18428
18429
18430 ac_config_commands="$ac_config_commands utils/Makefile"
18431
18432
18433 ac_config_commands="$ac_config_commands projects/Makefile"
18434
18435
18436 ac_config_commands="$ac_config_commands bindings/Makefile"
18437
18438
18439 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18440
18441
18442
18443 cat >confcache <<\_ACEOF
18444 # This file is a shell script that caches the results of configure
18445 # tests run on this system so they can be shared between configure
18446 # scripts and configure runs, see configure's option --config-cache.
18447 # It is not useful on other systems.  If it contains results you don't
18448 # want to keep, you may remove or edit it.
18449 #
18450 # config.status only pays attention to the cache file if you give it
18451 # the --recheck option to rerun configure.
18452 #
18453 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18454 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18455 # following values.
18456
18457 _ACEOF
18458
18459 # The following way of writing the cache mishandles newlines in values,
18460 # but we know of no workaround that is simple, portable, and efficient.
18461 # So, we kill variables containing newlines.
18462 # Ultrix sh set writes to stderr and can't be redirected directly,
18463 # and sets the high bit in the cache file unless we assign to the vars.
18464 (
18465   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18466     eval ac_val=\$$ac_var
18467     case $ac_val in #(
18468     *${as_nl}*)
18469       case $ac_var in #(
18470       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18471 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18472       esac
18473       case $ac_var in #(
18474       _ | IFS | as_nl) ;; #(
18475       *) $as_unset $ac_var ;;
18476       esac ;;
18477     esac
18478   done
18479
18480   (set) 2>&1 |
18481     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18482     *${as_nl}ac_space=\ *)
18483       # `set' does not quote correctly, so add quotes (double-quote
18484       # substitution turns \\\\ into \\, and sed turns \\ into \).
18485       sed -n \
18486         "s/'/'\\\\''/g;
18487           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18488       ;; #(
18489     *)
18490       # `set' quotes correctly as required by POSIX, so do not add quotes.
18491       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18492       ;;
18493     esac |
18494     sort
18495 ) |
18496   sed '
18497      /^ac_cv_env_/b end
18498      t clear
18499      :clear
18500      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18501      t end
18502      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18503      :end' >>confcache
18504 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18505   if test -w "$cache_file"; then
18506     test "x$cache_file" != "x/dev/null" &&
18507       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18508 echo "$as_me: updating cache $cache_file" >&6;}
18509     cat confcache >$cache_file
18510   else
18511     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18512 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18513   fi
18514 fi
18515 rm -f confcache
18516
18517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18518 # Let make expand exec_prefix.
18519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18520
18521 DEFS=-DHAVE_CONFIG_H
18522
18523 ac_libobjs=
18524 ac_ltlibobjs=
18525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18526   # 1. Remove the extension, and $U if already installed.
18527   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18528   ac_i=`echo "$ac_i" | sed "$ac_script"`
18529   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18530   #    will be set to the directory where LIBOBJS objects are built.
18531   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18532   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18533 done
18534 LIBOBJS=$ac_libobjs
18535
18536 LTLIBOBJS=$ac_ltlibobjs
18537
18538
18539
18540 : ${CONFIG_STATUS=./config.status}
18541 ac_clean_files_save=$ac_clean_files
18542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18545 cat >$CONFIG_STATUS <<_ACEOF
18546 #! $SHELL
18547 # Generated by $as_me.
18548 # Run this file to recreate the current configuration.
18549 # Compiler output produced by configure, useful for debugging
18550 # configure, is in config.log if it exists.
18551
18552 debug=false
18553 ac_cs_recheck=false
18554 ac_cs_silent=false
18555 SHELL=\${CONFIG_SHELL-$SHELL}
18556 _ACEOF
18557
18558 cat >>$CONFIG_STATUS <<\_ACEOF
18559 ## --------------------- ##
18560 ## M4sh Initialization.  ##
18561 ## --------------------- ##
18562
18563 # Be Bourne compatible
18564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18565   emulate sh
18566   NULLCMD=:
18567   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18568   # is contrary to our usage.  Disable this feature.
18569   alias -g '${1+"$@"}'='"$@"'
18570   setopt NO_GLOB_SUBST
18571 else
18572   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18573 fi
18574 BIN_SH=xpg4; export BIN_SH # for Tru64
18575 DUALCASE=1; export DUALCASE # for MKS sh
18576
18577
18578 # PATH needs CR
18579 # Avoid depending upon Character Ranges.
18580 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18581 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18582 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18583 as_cr_digits='0123456789'
18584 as_cr_alnum=$as_cr_Letters$as_cr_digits
18585
18586 # The user is always right.
18587 if test "${PATH_SEPARATOR+set}" != set; then
18588   echo "#! /bin/sh" >conf$$.sh
18589   echo  "exit 0"   >>conf$$.sh
18590   chmod +x conf$$.sh
18591   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18592     PATH_SEPARATOR=';'
18593   else
18594     PATH_SEPARATOR=:
18595   fi
18596   rm -f conf$$.sh
18597 fi
18598
18599 # Support unset when possible.
18600 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18601   as_unset=unset
18602 else
18603   as_unset=false
18604 fi
18605
18606
18607 # IFS
18608 # We need space, tab and new line, in precisely that order.  Quoting is
18609 # there to prevent editors from complaining about space-tab.
18610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18611 # splitting by setting IFS to empty value.)
18612 as_nl='
18613 '
18614 IFS=" ""        $as_nl"
18615
18616 # Find who we are.  Look in the path if we contain no directory separator.
18617 case $0 in
18618   *[\\/]* ) as_myself=$0 ;;
18619   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620 for as_dir in $PATH
18621 do
18622   IFS=$as_save_IFS
18623   test -z "$as_dir" && as_dir=.
18624   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18625 done
18626 IFS=$as_save_IFS
18627
18628      ;;
18629 esac
18630 # We did not find ourselves, most probably we were run as `sh COMMAND'
18631 # in which case we are not to be found in the path.
18632 if test "x$as_myself" = x; then
18633   as_myself=$0
18634 fi
18635 if test ! -f "$as_myself"; then
18636   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18637   { (exit 1); exit 1; }
18638 fi
18639
18640 # Work around bugs in pre-3.0 UWIN ksh.
18641 for as_var in ENV MAIL MAILPATH
18642 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18643 done
18644 PS1='$ '
18645 PS2='> '
18646 PS4='+ '
18647
18648 # NLS nuisances.
18649 for as_var in \
18650   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18651   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18652   LC_TELEPHONE LC_TIME
18653 do
18654   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18655     eval $as_var=C; export $as_var
18656   else
18657     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18658   fi
18659 done
18660
18661 # Required to use basename.
18662 if expr a : '\(a\)' >/dev/null 2>&1 &&
18663    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18664   as_expr=expr
18665 else
18666   as_expr=false
18667 fi
18668
18669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18670   as_basename=basename
18671 else
18672   as_basename=false
18673 fi
18674
18675
18676 # Name of the executable.
18677 as_me=`$as_basename -- "$0" ||
18678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18679          X"$0" : 'X\(//\)$' \| \
18680          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18681 echo X/"$0" |
18682     sed '/^.*\/\([^/][^/]*\)\/*$/{
18683             s//\1/
18684             q
18685           }
18686           /^X\/\(\/\/\)$/{
18687             s//\1/
18688             q
18689           }
18690           /^X\/\(\/\).*/{
18691             s//\1/
18692             q
18693           }
18694           s/.*/./; q'`
18695
18696 # CDPATH.
18697 $as_unset CDPATH
18698
18699
18700
18701   as_lineno_1=$LINENO
18702   as_lineno_2=$LINENO
18703   test "x$as_lineno_1" != "x$as_lineno_2" &&
18704   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18705
18706   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18707   # uniformly replaced by the line number.  The first 'sed' inserts a
18708   # line-number line after each line using $LINENO; the second 'sed'
18709   # does the real work.  The second script uses 'N' to pair each
18710   # line-number line with the line containing $LINENO, and appends
18711   # trailing '-' during substitution so that $LINENO is not a special
18712   # case at line end.
18713   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18714   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18715   # E. McMahon (1931-1989) for sed's syntax.  :-)
18716   sed -n '
18717     p
18718     /[$]LINENO/=
18719   ' <$as_myself |
18720     sed '
18721       s/[$]LINENO.*/&-/
18722       t lineno
18723       b
18724       :lineno
18725       N
18726       :loop
18727       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18728       t loop
18729       s/-\n.*//
18730     ' >$as_me.lineno &&
18731   chmod +x "$as_me.lineno" ||
18732     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18733    { (exit 1); exit 1; }; }
18734
18735   # Don't try to exec as it changes $[0], causing all sort of problems
18736   # (the dirname of $[0] is not the place where we might find the
18737   # original and so on.  Autoconf is especially sensitive to this).
18738   . "./$as_me.lineno"
18739   # Exit status is that of the last command.
18740   exit
18741 }
18742
18743
18744 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18745   as_dirname=dirname
18746 else
18747   as_dirname=false
18748 fi
18749
18750 ECHO_C= ECHO_N= ECHO_T=
18751 case `echo -n x` in
18752 -n*)
18753   case `echo 'x\c'` in
18754   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18755   *)   ECHO_C='\c';;
18756   esac;;
18757 *)
18758   ECHO_N='-n';;
18759 esac
18760
18761 if expr a : '\(a\)' >/dev/null 2>&1 &&
18762    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18763   as_expr=expr
18764 else
18765   as_expr=false
18766 fi
18767
18768 rm -f conf$$ conf$$.exe conf$$.file
18769 if test -d conf$$.dir; then
18770   rm -f conf$$.dir/conf$$.file
18771 else
18772   rm -f conf$$.dir
18773   mkdir conf$$.dir
18774 fi
18775 echo >conf$$.file
18776 if ln -s conf$$.file conf$$ 2>/dev/null; then
18777   as_ln_s='ln -s'
18778   # ... but there are two gotchas:
18779   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18780   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18781   # In both cases, we have to default to `cp -p'.
18782   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18783     as_ln_s='cp -p'
18784 elif ln conf$$.file conf$$ 2>/dev/null; then
18785   as_ln_s=ln
18786 else
18787   as_ln_s='cp -p'
18788 fi
18789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18790 rmdir conf$$.dir 2>/dev/null
18791
18792 if mkdir -p . 2>/dev/null; then
18793   as_mkdir_p=:
18794 else
18795   test -d ./-p && rmdir ./-p
18796   as_mkdir_p=false
18797 fi
18798
18799 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18800 # systems may use methods other than mode bits to determine executability.
18801 cat >conf$$.file <<_ASEOF
18802 #! /bin/sh
18803 exit 0
18804 _ASEOF
18805 chmod +x conf$$.file
18806 if test -x conf$$.file >/dev/null 2>&1; then
18807   as_executable_p="test -x"
18808 else
18809   as_executable_p=:
18810 fi
18811 rm -f conf$$.file
18812
18813 # Sed expression to map a string onto a valid CPP name.
18814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18815
18816 # Sed expression to map a string onto a valid variable name.
18817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18818
18819
18820 exec 6>&1
18821
18822 # Save the log message, to keep $[0] and so on meaningful, and to
18823 # report actual input values of CONFIG_FILES etc. instead of their
18824 # values after options handling.
18825 ac_log="
18826 This file was extended by LLVM $as_me 3.6.0svn, which was
18827 generated by GNU Autoconf 2.60.  Invocation command line was
18828
18829   CONFIG_FILES    = $CONFIG_FILES
18830   CONFIG_HEADERS  = $CONFIG_HEADERS
18831   CONFIG_LINKS    = $CONFIG_LINKS
18832   CONFIG_COMMANDS = $CONFIG_COMMANDS
18833   $ $0 $@
18834
18835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18836 "
18837
18838 _ACEOF
18839
18840 cat >>$CONFIG_STATUS <<_ACEOF
18841 # Files that config.status was made for.
18842 config_files="$ac_config_files"
18843 config_headers="$ac_config_headers"
18844 config_commands="$ac_config_commands"
18845
18846 _ACEOF
18847
18848 cat >>$CONFIG_STATUS <<\_ACEOF
18849 ac_cs_usage="\
18850 \`$as_me' instantiates files from templates according to the
18851 current configuration.
18852
18853 Usage: $0 [OPTIONS] [FILE]...
18854
18855   -h, --help       print this help, then exit
18856   -V, --version    print version number, then exit
18857   -q, --quiet      do not print progress messages
18858   -d, --debug      don't remove temporary files
18859       --recheck    update $as_me by reconfiguring in the same conditions
18860   --file=FILE[:TEMPLATE]
18861                    instantiate the configuration file FILE
18862   --header=FILE[:TEMPLATE]
18863                    instantiate the configuration header FILE
18864
18865 Configuration files:
18866 $config_files
18867
18868 Configuration headers:
18869 $config_headers
18870
18871 Configuration commands:
18872 $config_commands
18873
18874 Report bugs to <bug-autoconf@gnu.org>."
18875
18876 _ACEOF
18877 cat >>$CONFIG_STATUS <<_ACEOF
18878 ac_cs_version="\\
18879 LLVM config.status 3.6.0svn
18880 configured by $0, generated by GNU Autoconf 2.60,
18881   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18882
18883 Copyright (C) 2006 Free Software Foundation, Inc.
18884 This config.status script is free software; the Free Software Foundation
18885 gives unlimited permission to copy, distribute and modify it."
18886
18887 ac_pwd='$ac_pwd'
18888 srcdir='$srcdir'
18889 INSTALL='$INSTALL'
18890 _ACEOF
18891
18892 cat >>$CONFIG_STATUS <<\_ACEOF
18893 # If no file are specified by the user, then we need to provide default
18894 # value.  By we need to know if files were specified by the user.
18895 ac_need_defaults=:
18896 while test $# != 0
18897 do
18898   case $1 in
18899   --*=*)
18900     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18901     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18902     ac_shift=:
18903     ;;
18904   *)
18905     ac_option=$1
18906     ac_optarg=$2
18907     ac_shift=shift
18908     ;;
18909   esac
18910
18911   case $ac_option in
18912   # Handling of the options.
18913   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18914     ac_cs_recheck=: ;;
18915   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18916     echo "$ac_cs_version"; exit ;;
18917   --debug | --debu | --deb | --de | --d | -d )
18918     debug=: ;;
18919   --file | --fil | --fi | --f )
18920     $ac_shift
18921     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18922     ac_need_defaults=false;;
18923   --header | --heade | --head | --hea )
18924     $ac_shift
18925     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18926     ac_need_defaults=false;;
18927   --he | --h)
18928     # Conflict between --help and --header
18929     { echo "$as_me: error: ambiguous option: $1
18930 Try \`$0 --help' for more information." >&2
18931    { (exit 1); exit 1; }; };;
18932   --help | --hel | -h )
18933     echo "$ac_cs_usage"; exit ;;
18934   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18935   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18936     ac_cs_silent=: ;;
18937
18938   # This is an error.
18939   -*) { echo "$as_me: error: unrecognized option: $1
18940 Try \`$0 --help' for more information." >&2
18941    { (exit 1); exit 1; }; } ;;
18942
18943   *) ac_config_targets="$ac_config_targets $1"
18944      ac_need_defaults=false ;;
18945
18946   esac
18947   shift
18948 done
18949
18950 ac_configure_extra_args=
18951
18952 if $ac_cs_silent; then
18953   exec 6>/dev/null
18954   ac_configure_extra_args="$ac_configure_extra_args --silent"
18955 fi
18956
18957 _ACEOF
18958 cat >>$CONFIG_STATUS <<_ACEOF
18959 if \$ac_cs_recheck; then
18960   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18961   CONFIG_SHELL=$SHELL
18962   export CONFIG_SHELL
18963   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18964 fi
18965
18966 _ACEOF
18967 cat >>$CONFIG_STATUS <<\_ACEOF
18968 exec 5>>config.log
18969 {
18970   echo
18971   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18972 ## Running $as_me. ##
18973 _ASBOX
18974   echo "$ac_log"
18975 } >&5
18976
18977 _ACEOF
18978 cat >>$CONFIG_STATUS <<_ACEOF
18979 #
18980 # INIT-COMMANDS
18981 #
18982 llvm_src="${srcdir}"
18983
18984 _ACEOF
18985
18986 cat >>$CONFIG_STATUS <<\_ACEOF
18987
18988 # Handling of arguments.
18989 for ac_config_target in $ac_config_targets
18990 do
18991   case $ac_config_target in
18992     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18993     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18994     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18995     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18996     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18997     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18998     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18999     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19000     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19001     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19002     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19003     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19004     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19005     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19006     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19007     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19008     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19009     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19010     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19011     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19012     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19013     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19014     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19015     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19016     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19017     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19018
19019   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19020 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19021    { (exit 1); exit 1; }; };;
19022   esac
19023 done
19024
19025
19026 # If the user did not use the arguments to specify the items to instantiate,
19027 # then the envvar interface is used.  Set only those that are not.
19028 # We use the long form for the default assignment because of an extremely
19029 # bizarre bug on SunOS 4.1.3.
19030 if $ac_need_defaults; then
19031   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19032   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19033   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19034 fi
19035
19036 # Have a temporary directory for convenience.  Make it in the build tree
19037 # simply because there is no reason against having it here, and in addition,
19038 # creating and moving files from /tmp can sometimes cause problems.
19039 # Hook for its removal unless debugging.
19040 # Note that there is a small window in which the directory will not be cleaned:
19041 # after its creation but before its name has been assigned to `$tmp'.
19042 $debug ||
19043 {
19044   tmp=
19045   trap 'exit_status=$?
19046   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19047 ' 0
19048   trap '{ (exit 1); exit 1; }' 1 2 13 15
19049 }
19050 # Create a (secure) tmp directory for tmp files.
19051
19052 {
19053   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19054   test -n "$tmp" && test -d "$tmp"
19055 }  ||
19056 {
19057   tmp=./conf$$-$RANDOM
19058   (umask 077 && mkdir "$tmp")
19059 } ||
19060 {
19061    echo "$me: cannot create a temporary directory in ." >&2
19062    { (exit 1); exit 1; }
19063 }
19064
19065 #
19066 # Set up the sed scripts for CONFIG_FILES section.
19067 #
19068
19069 # No need to generate the scripts if there are no CONFIG_FILES.
19070 # This happens for instance when ./config.status config.h
19071 if test -n "$CONFIG_FILES"; then
19072
19073 _ACEOF
19074
19075
19076
19077 ac_delim='%!_!# '
19078 for ac_last_try in false false false false false :; do
19079   cat >conf$$subs.sed <<_ACEOF
19080 SHELL!$SHELL$ac_delim
19081 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19082 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19083 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19084 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19085 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19086 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19087 exec_prefix!$exec_prefix$ac_delim
19088 prefix!$prefix$ac_delim
19089 program_transform_name!$program_transform_name$ac_delim
19090 bindir!$bindir$ac_delim
19091 sbindir!$sbindir$ac_delim
19092 libexecdir!$libexecdir$ac_delim
19093 datarootdir!$datarootdir$ac_delim
19094 datadir!$datadir$ac_delim
19095 sysconfdir!$sysconfdir$ac_delim
19096 sharedstatedir!$sharedstatedir$ac_delim
19097 localstatedir!$localstatedir$ac_delim
19098 includedir!$includedir$ac_delim
19099 oldincludedir!$oldincludedir$ac_delim
19100 docdir!$docdir$ac_delim
19101 infodir!$infodir$ac_delim
19102 htmldir!$htmldir$ac_delim
19103 dvidir!$dvidir$ac_delim
19104 pdfdir!$pdfdir$ac_delim
19105 psdir!$psdir$ac_delim
19106 libdir!$libdir$ac_delim
19107 localedir!$localedir$ac_delim
19108 mandir!$mandir$ac_delim
19109 DEFS!$DEFS$ac_delim
19110 ECHO_C!$ECHO_C$ac_delim
19111 ECHO_N!$ECHO_N$ac_delim
19112 ECHO_T!$ECHO_T$ac_delim
19113 LIBS!$LIBS$ac_delim
19114 build_alias!$build_alias$ac_delim
19115 host_alias!$host_alias$ac_delim
19116 target_alias!$target_alias$ac_delim
19117 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19118 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19119 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19120 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19121 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19122 CC!$CC$ac_delim
19123 CFLAGS!$CFLAGS$ac_delim
19124 LDFLAGS!$LDFLAGS$ac_delim
19125 CPPFLAGS!$CPPFLAGS$ac_delim
19126 ac_ct_CC!$ac_ct_CC$ac_delim
19127 EXEEXT!$EXEEXT$ac_delim
19128 OBJEXT!$OBJEXT$ac_delim
19129 CXX!$CXX$ac_delim
19130 CXXFLAGS!$CXXFLAGS$ac_delim
19131 ac_ct_CXX!$ac_ct_CXX$ac_delim
19132 CPP!$CPP$ac_delim
19133 subdirs!$subdirs$ac_delim
19134 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19135 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19136 build!$build$ac_delim
19137 build_cpu!$build_cpu$ac_delim
19138 build_vendor!$build_vendor$ac_delim
19139 build_os!$build_os$ac_delim
19140 host!$host$ac_delim
19141 host_cpu!$host_cpu$ac_delim
19142 host_vendor!$host_vendor$ac_delim
19143 host_os!$host_os$ac_delim
19144 target!$target$ac_delim
19145 target_cpu!$target_cpu$ac_delim
19146 target_vendor!$target_vendor$ac_delim
19147 target_os!$target_os$ac_delim
19148 OS!$OS$ac_delim
19149 HOST_OS!$HOST_OS$ac_delim
19150 TARGET_OS!$TARGET_OS$ac_delim
19151 LINKALL!$LINKALL$ac_delim
19152 NOLINKALL!$NOLINKALL$ac_delim
19153 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19154 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19155 ARCH!$ARCH$ac_delim
19156 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19157 HOST_ARCH!$HOST_ARCH$ac_delim
19158 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19159 BUILD_CC!$BUILD_CC$ac_delim
19160 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19161 BUILD_CXX!$BUILD_CXX$ac_delim
19162 CVSBUILD!$CVSBUILD$ac_delim
19163 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19164 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19165 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19166 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19167 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19168 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19169 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19170 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19171 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19172 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19173 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19174 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19175 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19176 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19177 _ACEOF
19178
19179   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19180     break
19181   elif $ac_last_try; then
19182     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19183 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19184    { (exit 1); exit 1; }; }
19185   else
19186     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19187   fi
19188 done
19189
19190 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19191 if test -n "$ac_eof"; then
19192   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19193   ac_eof=`expr $ac_eof + 1`
19194 fi
19195
19196 cat >>$CONFIG_STATUS <<_ACEOF
19197 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19199 _ACEOF
19200 sed '
19201 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19202 s/^/s,@/; s/!/@,|#_!!_#|/
19203 :n
19204 t n
19205 s/'"$ac_delim"'$/,g/; t
19206 s/$/\\/; p
19207 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19208 ' >>$CONFIG_STATUS <conf$$subs.sed
19209 rm -f conf$$subs.sed
19210 cat >>$CONFIG_STATUS <<_ACEOF
19211 CEOF$ac_eof
19212 _ACEOF
19213
19214
19215 ac_delim='%!_!# '
19216 for ac_last_try in false false false false false :; do
19217   cat >conf$$subs.sed <<_ACEOF
19218 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19219 JIT!$JIT$ac_delim
19220 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19221 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19222 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19223 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19224 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19225 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19226 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19227 ENABLE_PIC!$ENABLE_PIC$ac_delim
19228 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19229 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19230 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19231 ALL_TARGETS!$ALL_TARGETS$ac_delim
19232 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19233 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19234 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19235 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19236 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19237 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19238 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19239 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19240 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19241 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19242 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19243 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19244 ifGNUmake!$ifGNUmake$ac_delim
19245 LN_S!$LN_S$ac_delim
19246 NM!$NM$ac_delim
19247 CMP!$CMP$ac_delim
19248 CP!$CP$ac_delim
19249 DATE!$DATE$ac_delim
19250 FIND!$FIND$ac_delim
19251 GREP!$GREP$ac_delim
19252 MKDIR!$MKDIR$ac_delim
19253 MV!$MV$ac_delim
19254 RANLIB!$RANLIB$ac_delim
19255 AR!$AR$ac_delim
19256 RM!$RM$ac_delim
19257 SED!$SED$ac_delim
19258 TAR!$TAR$ac_delim
19259 BINPWD!$BINPWD$ac_delim
19260 DOT!$DOT$ac_delim
19261 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19262 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19263 INSTALL_DATA!$INSTALL_DATA$ac_delim
19264 BZIP2!$BZIP2$ac_delim
19265 CAT!$CAT$ac_delim
19266 DOXYGEN!$DOXYGEN$ac_delim
19267 GROFF!$GROFF$ac_delim
19268 GZIPBIN!$GZIPBIN$ac_delim
19269 PDFROFF!$PDFROFF$ac_delim
19270 ZIP!$ZIP$ac_delim
19271 GO!$GO$ac_delim
19272 OCAMLFIND!$OCAMLFIND$ac_delim
19273 GAS!$GAS$ac_delim
19274 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19275 EGREP!$EGREP$ac_delim
19276 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19277 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19278 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19279 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19280 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19281 PYTHON!$PYTHON$ac_delim
19282 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19283 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19284 USE_OPROFILE!$USE_OPROFILE$ac_delim
19285 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19286 XML2CONFIG!$XML2CONFIG$ac_delim
19287 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19288 LIBXML2_INC!$LIBXML2_INC$ac_delim
19289 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19290 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19291 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19292 MMAP_FILE!$MMAP_FILE$ac_delim
19293 SHLIBEXT!$SHLIBEXT$ac_delim
19294 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19295 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19296 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19297 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19298 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19299 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19300 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19301 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19302 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19303 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19304 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19305 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19306 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19307 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19308 RPATH!$RPATH$ac_delim
19309 RDYNAMIC!$RDYNAMIC$ac_delim
19310 program_prefix!$program_prefix$ac_delim
19311 LIBOBJS!$LIBOBJS$ac_delim
19312 LTLIBOBJS!$LTLIBOBJS$ac_delim
19313 _ACEOF
19314
19315   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
19316     break
19317   elif $ac_last_try; then
19318     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19319 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19320    { (exit 1); exit 1; }; }
19321   else
19322     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19323   fi
19324 done
19325
19326 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19327 if test -n "$ac_eof"; then
19328   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19329   ac_eof=`expr $ac_eof + 1`
19330 fi
19331
19332 cat >>$CONFIG_STATUS <<_ACEOF
19333 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19335 _ACEOF
19336 sed '
19337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19338 s/^/s,@/; s/!/@,|#_!!_#|/
19339 :n
19340 t n
19341 s/'"$ac_delim"'$/,g/; t
19342 s/$/\\/; p
19343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19344 ' >>$CONFIG_STATUS <conf$$subs.sed
19345 rm -f conf$$subs.sed
19346 cat >>$CONFIG_STATUS <<_ACEOF
19347 :end
19348 s/|#_!!_#|//g
19349 CEOF$ac_eof
19350 _ACEOF
19351
19352
19353 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19354 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19355 # trailing colons and then remove the whole line if VPATH becomes empty
19356 # (actually we leave an empty line to preserve line numbers).
19357 if test "x$srcdir" = x.; then
19358   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19359 s/:*\$(srcdir):*/:/
19360 s/:*\${srcdir}:*/:/
19361 s/:*@srcdir@:*/:/
19362 s/^\([^=]*=[     ]*\):*/\1/
19363 s/:*$//
19364 s/^[^=]*=[       ]*$//
19365 }'
19366 fi
19367
19368 cat >>$CONFIG_STATUS <<\_ACEOF
19369 fi # test -n "$CONFIG_FILES"
19370
19371
19372 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19373 do
19374   case $ac_tag in
19375   :[FHLC]) ac_mode=$ac_tag; continue;;
19376   esac
19377   case $ac_mode$ac_tag in
19378   :[FHL]*:*);;
19379   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19380 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19381    { (exit 1); exit 1; }; };;
19382   :[FH]-) ac_tag=-:-;;
19383   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19384   esac
19385   ac_save_IFS=$IFS
19386   IFS=:
19387   set x $ac_tag
19388   IFS=$ac_save_IFS
19389   shift
19390   ac_file=$1
19391   shift
19392
19393   case $ac_mode in
19394   :L) ac_source=$1;;
19395   :[FH])
19396     ac_file_inputs=
19397     for ac_f
19398     do
19399       case $ac_f in
19400       -) ac_f="$tmp/stdin";;
19401       *) # Look for the file first in the build tree, then in the source tree
19402          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19403          # because $ac_f cannot contain `:'.
19404          test -f "$ac_f" ||
19405            case $ac_f in
19406            [\\/$]*) false;;
19407            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19408            esac ||
19409            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19410 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19411    { (exit 1); exit 1; }; };;
19412       esac
19413       ac_file_inputs="$ac_file_inputs $ac_f"
19414     done
19415
19416     # Let's still pretend it is `configure' which instantiates (i.e., don't
19417     # use $as_me), people would be surprised to read:
19418     #    /* config.h.  Generated by config.status.  */
19419     configure_input="Generated from "`IFS=:
19420           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19421     if test x"$ac_file" != x-; then
19422       configure_input="$ac_file.  $configure_input"
19423       { echo "$as_me:$LINENO: creating $ac_file" >&5
19424 echo "$as_me: creating $ac_file" >&6;}
19425     fi
19426
19427     case $ac_tag in
19428     *:-:* | *:-) cat >"$tmp/stdin";;
19429     esac
19430     ;;
19431   esac
19432
19433   ac_dir=`$as_dirname -- "$ac_file" ||
19434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19435          X"$ac_file" : 'X\(//\)[^/]' \| \
19436          X"$ac_file" : 'X\(//\)$' \| \
19437          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19438 echo X"$ac_file" |
19439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19440             s//\1/
19441             q
19442           }
19443           /^X\(\/\/\)[^/].*/{
19444             s//\1/
19445             q
19446           }
19447           /^X\(\/\/\)$/{
19448             s//\1/
19449             q
19450           }
19451           /^X\(\/\).*/{
19452             s//\1/
19453             q
19454           }
19455           s/.*/./; q'`
19456   { as_dir="$ac_dir"
19457   case $as_dir in #(
19458   -*) as_dir=./$as_dir;;
19459   esac
19460   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19461     as_dirs=
19462     while :; do
19463       case $as_dir in #(
19464       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19465       *) as_qdir=$as_dir;;
19466       esac
19467       as_dirs="'$as_qdir' $as_dirs"
19468       as_dir=`$as_dirname -- "$as_dir" ||
19469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19470          X"$as_dir" : 'X\(//\)[^/]' \| \
19471          X"$as_dir" : 'X\(//\)$' \| \
19472          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19473 echo X"$as_dir" |
19474     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19475             s//\1/
19476             q
19477           }
19478           /^X\(\/\/\)[^/].*/{
19479             s//\1/
19480             q
19481           }
19482           /^X\(\/\/\)$/{
19483             s//\1/
19484             q
19485           }
19486           /^X\(\/\).*/{
19487             s//\1/
19488             q
19489           }
19490           s/.*/./; q'`
19491       test -d "$as_dir" && break
19492     done
19493     test -z "$as_dirs" || eval "mkdir $as_dirs"
19494   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19495 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19496    { (exit 1); exit 1; }; }; }
19497   ac_builddir=.
19498
19499 case "$ac_dir" in
19500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19501 *)
19502   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19503   # A ".." for each directory in $ac_dir_suffix.
19504   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19505   case $ac_top_builddir_sub in
19506   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19507   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19508   esac ;;
19509 esac
19510 ac_abs_top_builddir=$ac_pwd
19511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19512 # for backward compatibility:
19513 ac_top_builddir=$ac_top_build_prefix
19514
19515 case $srcdir in
19516   .)  # We are building in place.
19517     ac_srcdir=.
19518     ac_top_srcdir=$ac_top_builddir_sub
19519     ac_abs_top_srcdir=$ac_pwd ;;
19520   [\\/]* | ?:[\\/]* )  # Absolute name.
19521     ac_srcdir=$srcdir$ac_dir_suffix;
19522     ac_top_srcdir=$srcdir
19523     ac_abs_top_srcdir=$srcdir ;;
19524   *) # Relative name.
19525     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19526     ac_top_srcdir=$ac_top_build_prefix$srcdir
19527     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19528 esac
19529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19530
19531
19532   case $ac_mode in
19533   :F)
19534   #
19535   # CONFIG_FILE
19536   #
19537
19538   case $INSTALL in
19539   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19540   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19541   esac
19542 _ACEOF
19543
19544 cat >>$CONFIG_STATUS <<\_ACEOF
19545 # If the template does not know about datarootdir, expand it.
19546 # FIXME: This hack should be removed a few years after 2.60.
19547 ac_datarootdir_hack=; ac_datarootdir_seen=
19548
19549 case `sed -n '/datarootdir/ {
19550   p
19551   q
19552 }
19553 /@datadir@/p
19554 /@docdir@/p
19555 /@infodir@/p
19556 /@localedir@/p
19557 /@mandir@/p
19558 ' $ac_file_inputs` in
19559 *datarootdir*) ac_datarootdir_seen=yes;;
19560 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19561   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19562 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19563 _ACEOF
19564 cat >>$CONFIG_STATUS <<_ACEOF
19565   ac_datarootdir_hack='
19566   s&@datadir@&$datadir&g
19567   s&@docdir@&$docdir&g
19568   s&@infodir@&$infodir&g
19569   s&@localedir@&$localedir&g
19570   s&@mandir@&$mandir&g
19571     s&\\\${datarootdir}&$datarootdir&g' ;;
19572 esac
19573 _ACEOF
19574
19575 # Neutralize VPATH when `$srcdir' = `.'.
19576 # Shell code in configure.ac might set extrasub.
19577 # FIXME: do we really want to maintain this feature?
19578 cat >>$CONFIG_STATUS <<_ACEOF
19579   sed "$ac_vpsub
19580 $extrasub
19581 _ACEOF
19582 cat >>$CONFIG_STATUS <<\_ACEOF
19583 :t
19584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19585 s&@configure_input@&$configure_input&;t t
19586 s&@top_builddir@&$ac_top_builddir_sub&;t t
19587 s&@srcdir@&$ac_srcdir&;t t
19588 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19589 s&@top_srcdir@&$ac_top_srcdir&;t t
19590 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19591 s&@builddir@&$ac_builddir&;t t
19592 s&@abs_builddir@&$ac_abs_builddir&;t t
19593 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19594 s&@INSTALL@&$ac_INSTALL&;t t
19595 $ac_datarootdir_hack
19596 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
19597
19598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19599   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19600   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19601   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19602 which seems to be undefined.  Please make sure it is defined." >&5
19603 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19604 which seems to be undefined.  Please make sure it is defined." >&2;}
19605
19606   rm -f "$tmp/stdin"
19607   case $ac_file in
19608   -) cat "$tmp/out"; rm -f "$tmp/out";;
19609   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19610   esac
19611  ;;
19612   :H)
19613   #
19614   # CONFIG_HEADER
19615   #
19616 _ACEOF
19617
19618 # Transform confdefs.h into a sed script `conftest.defines', that
19619 # substitutes the proper values into config.h.in to produce config.h.
19620 rm -f conftest.defines conftest.tail
19621 # First, append a space to every undef/define line, to ease matching.
19622 echo 's/$/ /' >conftest.defines
19623 # Then, protect against being on the right side of a sed subst, or in
19624 # an unquoted here document, in config.status.  If some macros were
19625 # called several times there might be several #defines for the same
19626 # symbol, which is useless.  But do not sort them, since the last
19627 # AC_DEFINE must be honored.
19628 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19629 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19630 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19631 # PARAMS is the parameter list in the macro definition--in most cases, it's
19632 # just an empty string.
19633 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19634 ac_dB='\\)[      (].*,\\1define\\2'
19635 ac_dC=' '
19636 ac_dD=' ,'
19637
19638 uniq confdefs.h |
19639   sed -n '
19640         t rset
19641         :rset
19642         s/^[     ]*#[    ]*define[       ][      ]*//
19643         t ok
19644         d
19645         :ok
19646         s/[\\&,]/\\&/g
19647         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19648         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19649   ' >>conftest.defines
19650
19651 # Remove the space that was appended to ease matching.
19652 # Then replace #undef with comments.  This is necessary, for
19653 # example, in the case of _POSIX_SOURCE, which is predefined and required
19654 # on some systems where configure will not decide to define it.
19655 # (The regexp can be short, since the line contains either #define or #undef.)
19656 echo 's/ $//
19657 s,^[     #]*u.*,/* & */,' >>conftest.defines
19658
19659 # Break up conftest.defines:
19660 ac_max_sed_lines=50
19661
19662 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19663 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19664 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19665 # et cetera.
19666 ac_in='$ac_file_inputs'
19667 ac_out='"$tmp/out1"'
19668 ac_nxt='"$tmp/out2"'
19669
19670 while :
19671 do
19672   # Write a here document:
19673     cat >>$CONFIG_STATUS <<_ACEOF
19674     # First, check the format of the line:
19675     cat >"\$tmp/defines.sed" <<\\CEOF
19676 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19677 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19678 b
19679 :def
19680 _ACEOF
19681   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19682   echo 'CEOF
19683     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19684   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19685   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19686   grep . conftest.tail >/dev/null || break
19687   rm -f conftest.defines
19688   mv conftest.tail conftest.defines
19689 done
19690 rm -f conftest.defines conftest.tail
19691
19692 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19693 cat >>$CONFIG_STATUS <<\_ACEOF
19694   if test x"$ac_file" != x-; then
19695     echo "/* $configure_input  */" >"$tmp/config.h"
19696     cat "$ac_result" >>"$tmp/config.h"
19697     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19698       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19699 echo "$as_me: $ac_file is unchanged" >&6;}
19700     else
19701       rm -f $ac_file
19702       mv "$tmp/config.h" $ac_file
19703     fi
19704   else
19705     echo "/* $configure_input  */"
19706     cat "$ac_result"
19707   fi
19708   rm -f "$tmp/out12"
19709  ;;
19710
19711   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19712 echo "$as_me: executing $ac_file commands" >&6;}
19713  ;;
19714   esac
19715
19716
19717   case $ac_file$ac_mode in
19718     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19719    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19720     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19721    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19722     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19723    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19724     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19725    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19726     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19727    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19728     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19729    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19730     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19731    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19732     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19733    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19734     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19735    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19736     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19737    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19738     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19739    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19740     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19741    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19742
19743   esac
19744 done # for ac_tag
19745
19746
19747 { (exit 0); exit 0; }
19748 _ACEOF
19749 chmod +x $CONFIG_STATUS
19750 ac_clean_files=$ac_clean_files_save
19751
19752
19753 # configure is writing to config.log, and then calls config.status.
19754 # config.status does its own redirection, appending to config.log.
19755 # Unfortunately, on DOS this fails, as config.log is still kept open
19756 # by configure, so config.status won't be able to write to it; its
19757 # output is simply discarded.  So we exec the FD to /dev/null,
19758 # effectively closing config.log, so it can be properly (re)opened and
19759 # appended to by config.status.  When coming back to configure, we
19760 # need to make the FD available again.
19761 if test "$no_create" != yes; then
19762   ac_cs_success=:
19763   ac_config_status_args=
19764   test "$silent" = yes &&
19765     ac_config_status_args="$ac_config_status_args --quiet"
19766   exec 5>/dev/null
19767   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19768   exec 5>>config.log
19769   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19770   # would make configure fail if this is the last instruction.
19771   $ac_cs_success || { (exit 1); exit 1; }
19772 fi
19773
19774 #
19775 # CONFIG_SUBDIRS section.
19776 #
19777 if test "$no_recursion" != yes; then
19778
19779   # Remove --cache-file and --srcdir arguments so they do not pile up.
19780   ac_sub_configure_args=
19781   ac_prev=
19782   eval "set x $ac_configure_args"
19783   shift
19784   for ac_arg
19785   do
19786     if test -n "$ac_prev"; then
19787       ac_prev=
19788       continue
19789     fi
19790     case $ac_arg in
19791     -cache-file | --cache-file | --cache-fil | --cache-fi \
19792     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19793       ac_prev=cache_file ;;
19794     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19795     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19796     | --c=*)
19797       ;;
19798     --config-cache | -C)
19799       ;;
19800     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19801       ac_prev=srcdir ;;
19802     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19803       ;;
19804     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19805       ac_prev=prefix ;;
19806     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19807       ;;
19808     *)
19809       case $ac_arg in
19810       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19811       esac
19812       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19813     esac
19814   done
19815
19816   # Always prepend --prefix to ensure using the same prefix
19817   # in subdir configurations.
19818   ac_arg="--prefix=$prefix"
19819   case $ac_arg in
19820   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19821   esac
19822   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19823
19824   ac_popdir=`pwd`
19825   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19826
19827     # Do not complain, so a configure script can configure whichever
19828     # parts of a large source tree are present.
19829     test -d "$srcdir/$ac_dir" || continue
19830
19831     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19832     echo "$as_me:$LINENO: $ac_msg" >&5
19833     echo "$ac_msg" >&6
19834     { as_dir="$ac_dir"
19835   case $as_dir in #(
19836   -*) as_dir=./$as_dir;;
19837   esac
19838   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19839     as_dirs=
19840     while :; do
19841       case $as_dir in #(
19842       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19843       *) as_qdir=$as_dir;;
19844       esac
19845       as_dirs="'$as_qdir' $as_dirs"
19846       as_dir=`$as_dirname -- "$as_dir" ||
19847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19848          X"$as_dir" : 'X\(//\)[^/]' \| \
19849          X"$as_dir" : 'X\(//\)$' \| \
19850          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19851 echo X"$as_dir" |
19852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19853             s//\1/
19854             q
19855           }
19856           /^X\(\/\/\)[^/].*/{
19857             s//\1/
19858             q
19859           }
19860           /^X\(\/\/\)$/{
19861             s//\1/
19862             q
19863           }
19864           /^X\(\/\).*/{
19865             s//\1/
19866             q
19867           }
19868           s/.*/./; q'`
19869       test -d "$as_dir" && break
19870     done
19871     test -z "$as_dirs" || eval "mkdir $as_dirs"
19872   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19873 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19874    { (exit 1); exit 1; }; }; }
19875     ac_builddir=.
19876
19877 case "$ac_dir" in
19878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19879 *)
19880   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19881   # A ".." for each directory in $ac_dir_suffix.
19882   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19883   case $ac_top_builddir_sub in
19884   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19885   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19886   esac ;;
19887 esac
19888 ac_abs_top_builddir=$ac_pwd
19889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19890 # for backward compatibility:
19891 ac_top_builddir=$ac_top_build_prefix
19892
19893 case $srcdir in
19894   .)  # We are building in place.
19895     ac_srcdir=.
19896     ac_top_srcdir=$ac_top_builddir_sub
19897     ac_abs_top_srcdir=$ac_pwd ;;
19898   [\\/]* | ?:[\\/]* )  # Absolute name.
19899     ac_srcdir=$srcdir$ac_dir_suffix;
19900     ac_top_srcdir=$srcdir
19901     ac_abs_top_srcdir=$srcdir ;;
19902   *) # Relative name.
19903     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19904     ac_top_srcdir=$ac_top_build_prefix$srcdir
19905     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19906 esac
19907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19908
19909
19910     cd "$ac_dir"
19911
19912     # Check for guested configure; otherwise get Cygnus style configure.
19913     if test -f "$ac_srcdir/configure.gnu"; then
19914       ac_sub_configure=$ac_srcdir/configure.gnu
19915     elif test -f "$ac_srcdir/configure"; then
19916       ac_sub_configure=$ac_srcdir/configure
19917     elif test -f "$ac_srcdir/configure.in"; then
19918       # This should be Cygnus configure.
19919       ac_sub_configure=$ac_aux_dir/configure
19920     else
19921       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19922 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19923       ac_sub_configure=
19924     fi
19925
19926     # The recursion is here.
19927     if test -n "$ac_sub_configure"; then
19928       # Make the cache file name correct relative to the subdirectory.
19929       case $cache_file in
19930       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19931       *) # Relative name.
19932         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19933       esac
19934
19935       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19936 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19937       # The eval makes quoting arguments work.
19938       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19939            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19940         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19941 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19942    { (exit 1); exit 1; }; }
19943     fi
19944
19945     cd "$ac_popdir"
19946   done
19947 fi
19948