Include stddef.h before including cxxabi.h
[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 OCAMLC
757 OCAMLOPT
758 OCAMLDEP
759 OCAMLDOC
760 GAS
761 HAVE_LINK_VERSION_SCRIPT
762 EGREP
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 NO_MAYBE_UNINITIALIZED
767 NO_UNINITIALIZED
768 PYTHON
769 HAVE_DLOPEN
770 HAVE_TERMINFO
771 USE_OPROFILE
772 USE_INTEL_JITEVENTS
773 XML2CONFIG
774 LIBXML2_LIBS
775 LIBXML2_INC
776 HAVE_PTHREAD
777 HAVE_LIBZ
778 HUGE_VAL_SANITY
779 MMAP_FILE
780 SHLIBEXT
781 LLVM_PREFIX
782 LLVM_BINDIR
783 LLVM_DATADIR
784 LLVM_DOCSDIR
785 LLVM_ETCDIR
786 LLVM_INCLUDEDIR
787 LLVM_INFODIR
788 LLVM_MANDIR
789 LLVM_CONFIGTIME
790 BINDINGS_TO_BUILD
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 program_prefix
796 LIBOBJS
797 LTLIBOBJS'
798 ac_subst_files=''
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 CPP'
810 ac_subdirs_all='projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/safecode
815 tools/polly'
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867   # If the previous option needs an argument, assign it.
868   if test -n "$ac_prev"; then
869     eval $ac_prev=\$ac_option
870     ac_prev=
871     continue
872   fi
873
874   case $ac_option in
875   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876   *)    ac_optarg=yes ;;
877   esac
878
879   # Accept the important Cygnus configure options, so we can diagnose typos.
880
881   case $ac_dashdash$ac_option in
882   --)
883     ac_dashdash=yes ;;
884
885   -bindir | --bindir | --bindi | --bind | --bin | --bi)
886     ac_prev=bindir ;;
887   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888     bindir=$ac_optarg ;;
889
890   -build | --build | --buil | --bui | --bu)
891     ac_prev=build_alias ;;
892   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893     build_alias=$ac_optarg ;;
894
895   -cache-file | --cache-file | --cache-fil | --cache-fi \
896   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897     ac_prev=cache_file ;;
898   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900     cache_file=$ac_optarg ;;
901
902   --config-cache | -C)
903     cache_file=config.cache ;;
904
905   -datadir | --datadir | --datadi | --datad)
906     ac_prev=datadir ;;
907   -datadir=* | --datadir=* | --datadi=* | --datad=*)
908     datadir=$ac_optarg ;;
909
910   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911   | --dataroo | --dataro | --datar)
912     ac_prev=datarootdir ;;
913   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915     datarootdir=$ac_optarg ;;
916
917   -disable-* | --disable-*)
918     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922    { (exit 1); exit 1; }; }
923     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924     eval enable_$ac_feature=no ;;
925
926   -docdir | --docdir | --docdi | --doc | --do)
927     ac_prev=docdir ;;
928   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929     docdir=$ac_optarg ;;
930
931   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932     ac_prev=dvidir ;;
933   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934     dvidir=$ac_optarg ;;
935
936   -enable-* | --enable-*)
937     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941    { (exit 1); exit 1; }; }
942     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943     eval enable_$ac_feature=\$ac_optarg ;;
944
945   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947   | --exec | --exe | --ex)
948     ac_prev=exec_prefix ;;
949   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951   | --exec=* | --exe=* | --ex=*)
952     exec_prefix=$ac_optarg ;;
953
954   -gas | --gas | --ga | --g)
955     # Obsolete; use --with-gas.
956     with_gas=yes ;;
957
958   -help | --help | --hel | --he | -h)
959     ac_init_help=long ;;
960   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961     ac_init_help=recursive ;;
962   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963     ac_init_help=short ;;
964
965   -host | --host | --hos | --ho)
966     ac_prev=host_alias ;;
967   -host=* | --host=* | --hos=* | --ho=*)
968     host_alias=$ac_optarg ;;
969
970   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971     ac_prev=htmldir ;;
972   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973   | --ht=*)
974     htmldir=$ac_optarg ;;
975
976   -includedir | --includedir | --includedi | --included | --include \
977   | --includ | --inclu | --incl | --inc)
978     ac_prev=includedir ;;
979   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980   | --includ=* | --inclu=* | --incl=* | --inc=*)
981     includedir=$ac_optarg ;;
982
983   -infodir | --infodir | --infodi | --infod | --info | --inf)
984     ac_prev=infodir ;;
985   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986     infodir=$ac_optarg ;;
987
988   -libdir | --libdir | --libdi | --libd)
989     ac_prev=libdir ;;
990   -libdir=* | --libdir=* | --libdi=* | --libd=*)
991     libdir=$ac_optarg ;;
992
993   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994   | --libexe | --libex | --libe)
995     ac_prev=libexecdir ;;
996   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997   | --libexe=* | --libex=* | --libe=*)
998     libexecdir=$ac_optarg ;;
999
1000   -localedir | --localedir | --localedi | --localed | --locale)
1001     ac_prev=localedir ;;
1002   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003     localedir=$ac_optarg ;;
1004
1005   -localstatedir | --localstatedir | --localstatedi | --localstated \
1006   | --localstate | --localstat | --localsta | --localst | --locals)
1007     ac_prev=localstatedir ;;
1008   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010     localstatedir=$ac_optarg ;;
1011
1012   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013     ac_prev=mandir ;;
1014   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015     mandir=$ac_optarg ;;
1016
1017   -nfp | --nfp | --nf)
1018     # Obsolete; use --without-fp.
1019     with_fp=no ;;
1020
1021   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022   | --no-cr | --no-c | -n)
1023     no_create=yes ;;
1024
1025   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027     no_recursion=yes ;;
1028
1029   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031   | --oldin | --oldi | --old | --ol | --o)
1032     ac_prev=oldincludedir ;;
1033   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036     oldincludedir=$ac_optarg ;;
1037
1038   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039     ac_prev=prefix ;;
1040   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041     prefix=$ac_optarg ;;
1042
1043   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044   | --program-pre | --program-pr | --program-p)
1045     ac_prev=program_prefix ;;
1046   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048     program_prefix=$ac_optarg ;;
1049
1050   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051   | --program-suf | --program-su | --program-s)
1052     ac_prev=program_suffix ;;
1053   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055     program_suffix=$ac_optarg ;;
1056
1057   -program-transform-name | --program-transform-name \
1058   | --program-transform-nam | --program-transform-na \
1059   | --program-transform-n | --program-transform- \
1060   | --program-transform | --program-transfor \
1061   | --program-transfo | --program-transf \
1062   | --program-trans | --program-tran \
1063   | --progr-tra | --program-tr | --program-t)
1064     ac_prev=program_transform_name ;;
1065   -program-transform-name=* | --program-transform-name=* \
1066   | --program-transform-nam=* | --program-transform-na=* \
1067   | --program-transform-n=* | --program-transform-=* \
1068   | --program-transform=* | --program-transfor=* \
1069   | --program-transfo=* | --program-transf=* \
1070   | --program-trans=* | --program-tran=* \
1071   | --progr-tra=* | --program-tr=* | --program-t=*)
1072     program_transform_name=$ac_optarg ;;
1073
1074   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075     ac_prev=pdfdir ;;
1076   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077     pdfdir=$ac_optarg ;;
1078
1079   -psdir | --psdir | --psdi | --psd | --ps)
1080     ac_prev=psdir ;;
1081   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082     psdir=$ac_optarg ;;
1083
1084   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085   | -silent | --silent | --silen | --sile | --sil)
1086     silent=yes ;;
1087
1088   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089     ac_prev=sbindir ;;
1090   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091   | --sbi=* | --sb=*)
1092     sbindir=$ac_optarg ;;
1093
1094   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096   | --sharedst | --shareds | --shared | --share | --shar \
1097   | --sha | --sh)
1098     ac_prev=sharedstatedir ;;
1099   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102   | --sha=* | --sh=*)
1103     sharedstatedir=$ac_optarg ;;
1104
1105   -site | --site | --sit)
1106     ac_prev=site ;;
1107   -site=* | --site=* | --sit=*)
1108     site=$ac_optarg ;;
1109
1110   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111     ac_prev=srcdir ;;
1112   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113     srcdir=$ac_optarg ;;
1114
1115   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116   | --syscon | --sysco | --sysc | --sys | --sy)
1117     ac_prev=sysconfdir ;;
1118   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120     sysconfdir=$ac_optarg ;;
1121
1122   -target | --target | --targe | --targ | --tar | --ta | --t)
1123     ac_prev=target_alias ;;
1124   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125     target_alias=$ac_optarg ;;
1126
1127   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128     verbose=yes ;;
1129
1130   -version | --version | --versio | --versi | --vers | -V)
1131     ac_init_version=: ;;
1132
1133   -with-* | --with-*)
1134     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137       { echo "$as_me: error: invalid package name: $ac_package" >&2
1138    { (exit 1); exit 1; }; }
1139     ac_package=`echo $ac_package| sed 's/-/_/g'`
1140     eval with_$ac_package=\$ac_optarg ;;
1141
1142   -without-* | --without-*)
1143     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid package name: $ac_package" >&2
1147    { (exit 1); exit 1; }; }
1148     ac_package=`echo $ac_package | sed 's/-/_/g'`
1149     eval with_$ac_package=no ;;
1150
1151   --x)
1152     # Obsolete; use --with-x.
1153     with_x=yes ;;
1154
1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156   | --x-incl | --x-inc | --x-in | --x-i)
1157     ac_prev=x_includes ;;
1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160     x_includes=$ac_optarg ;;
1161
1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164     ac_prev=x_libraries ;;
1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167     x_libraries=$ac_optarg ;;
1168
1169   -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171    { (exit 1); exit 1; }; }
1172     ;;
1173
1174   *=*)
1175     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179    { (exit 1); exit 1; }; }
1180     eval $ac_envvar=\$ac_optarg
1181     export $ac_envvar ;;
1182
1183   *)
1184     # FIXME: should be removed in autoconf 3.0.
1185     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189     ;;
1190
1191   esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196   { echo "$as_me: error: missing argument to $ac_option" >&2
1197    { (exit 1); exit 1; }; }
1198 fi
1199
1200 # Be sure to have absolute directory names.
1201 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202                 datadir sysconfdir sharedstatedir localstatedir includedir \
1203                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204                 libdir localedir mandir
1205 do
1206   eval ac_val=\$$ac_var
1207   case $ac_val in
1208     [\\/$]* | ?:[\\/]* )  continue;;
1209     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210   esac
1211   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212    { (exit 1); exit 1; }; }
1213 done
1214
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1221
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224   if test "x$build_alias" = x; then
1225     cross_compiling=maybe
1226     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227     If a cross compiler is detected then cross compile mode will be used." >&2
1228   elif test "x$build_alias" != "x$host_alias"; then
1229     cross_compiling=yes
1230   fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242   { echo "$as_me: error: Working directory cannot be determined" >&2
1243    { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245   { echo "$as_me: error: pwd does not report name of working directory" >&2
1246    { (exit 1); exit 1; }; }
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251   ac_srcdir_defaulted=yes
1252   # Try the directory containing this script, then the parent directory.
1253   ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255          X"$0" : 'X\(//\)[^/]' \| \
1256          X"$0" : 'X\(//\)$' \| \
1257          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258 echo X"$0" |
1259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)[^/].*/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\).*/{
1272             s//\1/
1273             q
1274           }
1275           s/.*/./; q'`
1276   srcdir=$ac_confdir
1277   if test ! -r "$srcdir/$ac_unique_file"; then
1278     srcdir=..
1279   fi
1280 else
1281   ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286    { (exit 1); exit 1; }; }
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291    { (exit 1); exit 1; }; }
1292         pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295   srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_env_${ac_var}_value=\$${ac_var}
1306   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314   # Omit some internal or obsolete options to make the list less imposing.
1315   # This message is too long to be a string in the A/UX 3.1 sh.
1316   cat <<_ACEOF
1317 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327   -h, --help              display this help and exit
1328       --help=short        display options specific to this package
1329       --help=recursive    display the short help of all the included packages
1330   -V, --version           display version information and exit
1331   -q, --quiet, --silent   do not print \`checking...' messages
1332       --cache-file=FILE   cache test results in FILE [disabled]
1333   -C, --config-cache      alias for \`--cache-file=config.cache'
1334   -n, --no-create         do not create output files
1335       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338   --prefix=PREFIX         install architecture-independent files in PREFIX
1339                           [$ac_default_prefix]
1340   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                           [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351   --bindir=DIR           user executables [EPREFIX/bin]
1352   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1353   --libexecdir=DIR       program executables [EPREFIX/libexec]
1354   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1355   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1356   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1357   --libdir=DIR           object code libraries [EPREFIX/lib]
1358   --includedir=DIR       C header files [PREFIX/include]
1359   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1360   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1361   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1362   --infodir=DIR          info documentation [DATAROOTDIR/info]
1363   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1364   --mandir=DIR           man documentation [DATAROOTDIR/man]
1365   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1366   --htmldir=DIR          html documentation [DOCDIR]
1367   --dvidir=DIR           dvi documentation [DOCDIR]
1368   --pdfdir=DIR           pdf documentation [DOCDIR]
1369   --psdir=DIR            ps documentation [DOCDIR]
1370 _ACEOF
1371
1372   cat <<\_ACEOF
1373
1374 System types:
1375   --build=BUILD     configure for building on BUILD [guessed]
1376   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377   --target=TARGET   configure for building compilers for TARGET [HOST]
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382   case $ac_init_help in
1383      short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1384    esac
1385   cat <<\_ACEOF
1386
1387 Optional Features:
1388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390   --enable-polly          Use polly if available (default is YES)
1391   --enable-libcpp         Use libc++ if available (default is NO)
1392   --enable-compiler-version-checks
1393                           Check the version of the host compiler (default is
1394                           YES)
1395   --enable-cxx1y          Use c++1y if available (default is NO)
1396   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1397   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1398   --enable-clang-plugin-support
1399                           Enable plugin support in clang (default is YES)
1400   --enable-clang-static-analyzer
1401                           Enable building of clang Static Analyzer (default is
1402                           YES)
1403   --enable-optimized      Compile with optimizations enabled (default is NO)
1404   --enable-profiling      Compile with profiling enabled (default is NO)
1405   --enable-assertions     Compile with assertion checks enabled (default is
1406                           YES)
1407   --enable-werror         Compile with -Werror enabled (default is NO)
1408   --enable-expensive-checks
1409                           Compile with expensive debug checks enabled (default
1410                           is NO)
1411   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1412                           NO)
1413   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1414                           optimization is on and YES if it's off)
1415   --enable-keep-symbols   Do not strip installed executables)
1416   --enable-jit            Enable Just In Time Compiling (default is YES)
1417   --enable-docs           Build documents (default is YES)
1418   --enable-doxygen        Build doxygen documentation (default is NO)
1419   --enable-threads        Use threads if available (default is YES)
1420   --enable-pthreads       Use pthreads if available (default is YES)
1421   --enable-zlib           Use zlib for compression/decompression if available
1422                           (default is YES)
1423   --enable-pic            Build LLVM with Position Independent Code (default
1424                           is YES)
1425   --enable-shared         Build a shared library and link tools against it
1426                           (default is NO)
1427   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1428                           Win32 DLL (default is NO)
1429   --enable-timestamps     Enable embedding timestamp information in build
1430                           (default is YES)
1431   --enable-backtraces     Enable embedding backtraces on crash (default is
1432                           YES)
1433   --enable-crash-overrides
1434                           Enable crash handling overrides (default is YES)
1435   --enable-targets        Build specific host targets: all or
1436                           target1,target2,... Valid targets are: host, x86,
1437                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1439                           cpp (default=all)
1440   --enable-experimental-targets
1441                           Build experimental host targets: disable or
1442                           target1,target2,... (default=disable)
1443   --enable-bindings       Build specific language bindings:
1444                           all,auto,none,{binding-name} (default=auto)
1445   --enable-terminfo       Query the terminfo database if available (default is
1446                           YES)
1447   --enable-libedit        Use libedit if available (default is YES)
1448   --enable-libffi         Check for the presence of libffi (default is NO)
1449
1450 Optional Packages:
1451   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453   --with-optimize-option  Select the compiler options to use for optimized
1454                           builds
1455   --with-extra-options    Specify additional options to compile LLVM with
1456   --with-extra-ld-options Specify additional options to link LLVM with
1457   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1458                           is stdlib)
1459   --with-clang-srcdir     Directory to the out-of-tree Clang source
1460   --with-clang-resource-dir
1461                           Relative directory from the Clang binary for
1462                           resource files
1463   --with-c-include-dirs   Colon separated list of directories clang will
1464                           search for headers
1465   --with-gcc-toolchain    Directory where gcc is installed.
1466   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1467   --with-binutils-include Specify path to binutils/include/ containing
1468                           plugin-api.h file for gold plugin.
1469   --with-bug-report-url   Specify the URL where bug reports should be
1470                           submitted (default=http://llvm.org/bugs/)
1471   --with-internal-prefix  Installation directory for internal files
1472   --with-python           path to python
1473   --with-oprofile=<prefix>
1474                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1475   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1476
1477
1478 Some influential environment variables:
1479   CC          C compiler command
1480   CFLAGS      C compiler flags
1481   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482               nonstandard directory <lib dir>
1483   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484               you have headers in a nonstandard directory <include dir>
1485   CXX         C++ compiler command
1486   CXXFLAGS    C++ compiler flags
1487   CPP         C preprocessor
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <http://llvm.org/bugs/>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" || continue
1501     ac_builddir=.
1502
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *)
1506   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507   # A ".." for each directory in $ac_dir_suffix.
1508   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509   case $ac_top_builddir_sub in
1510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512   esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1518
1519 case $srcdir in
1520   .)  # We are building in place.
1521     ac_srcdir=.
1522     ac_top_srcdir=$ac_top_builddir_sub
1523     ac_abs_top_srcdir=$ac_pwd ;;
1524   [\\/]* | ?:[\\/]* )  # Absolute name.
1525     ac_srcdir=$srcdir$ac_dir_suffix;
1526     ac_top_srcdir=$srcdir
1527     ac_abs_top_srcdir=$srcdir ;;
1528   *) # Relative name.
1529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530     ac_top_srcdir=$ac_top_build_prefix$srcdir
1531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535     cd "$ac_dir" || { ac_status=$?; continue; }
1536     # Check for guested configure.
1537     if test -f "$ac_srcdir/configure.gnu"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540     elif test -f "$ac_srcdir/configure"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure" --help=recursive
1543     else
1544       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545     fi || ac_status=$?
1546     cd "$ac_pwd" || { ac_status=$?; break; }
1547   done
1548 fi
1549
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552   cat <<\_ACEOF
1553 LLVM configure 3.6.0svn
1554 generated by GNU Autoconf 2.60
1555
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1560
1561 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1562 _ACEOF
1563   exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by LLVM $as_me 3.6.0svn, which was
1570 generated by GNU Autoconf 2.60.  Invocation command line was
1571
1572   $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1590
1591 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1592 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1595 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1596 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1597 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&5 <<_ACEOF
1613
1614
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1618
1619 _ACEOF
1620
1621
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633   for ac_arg
1634   do
1635     case $ac_arg in
1636     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638     | -silent | --silent | --silen | --sile | --sil)
1639       continue ;;
1640     *\'*)
1641       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642     esac
1643     case $ac_pass in
1644     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645     2)
1646       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647       if test $ac_must_keep_next = true; then
1648         ac_must_keep_next=false # Got value, back to normal.
1649       else
1650         case $ac_arg in
1651           *=* | --config-cache | -C | -disable-* | --disable-* \
1652           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654           | -with-* | --with-* | -without-* | --without-* | --x)
1655             case "$ac_configure_args0 " in
1656               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657             esac
1658             ;;
1659           -* ) ac_must_keep_next=true ;;
1660         esac
1661       fi
1662       ac_configure_args="$ac_configure_args '$ac_arg'"
1663       ;;
1664     esac
1665   done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log.  We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676   # Save into config.log some information that might help in debugging.
1677   {
1678     echo
1679
1680     cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685     echo
1686     # The following way of writing the cache mishandles newlines in values,
1687 (
1688   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689     eval ac_val=\$$ac_var
1690     case $ac_val in #(
1691     *${as_nl}*)
1692       case $ac_var in #(
1693       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695       esac
1696       case $ac_var in #(
1697       _ | IFS | as_nl) ;; #(
1698       *) $as_unset $ac_var ;;
1699       esac ;;
1700     esac
1701   done
1702   (set) 2>&1 |
1703     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704     *${as_nl}ac_space=\ *)
1705       sed -n \
1706         "s/'\''/'\''\\\\'\'''\''/g;
1707           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708       ;; #(
1709     *)
1710       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711       ;;
1712     esac |
1713     sort
1714 )
1715     echo
1716
1717     cat <<\_ASBOX
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1721 _ASBOX
1722     echo
1723     for ac_var in $ac_subst_vars
1724     do
1725       eval ac_val=\$$ac_var
1726       case $ac_val in
1727       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728       esac
1729       echo "$ac_var='\''$ac_val'\''"
1730     done | sort
1731     echo
1732
1733     if test -n "$ac_subst_files"; then
1734       cat <<\_ASBOX
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1738 _ASBOX
1739       echo
1740       for ac_var in $ac_subst_files
1741       do
1742         eval ac_val=\$$ac_var
1743         case $ac_val in
1744         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745         esac
1746         echo "$ac_var='\''$ac_val'\''"
1747       done | sort
1748       echo
1749     fi
1750
1751     if test -s confdefs.h; then
1752       cat <<\_ASBOX
1753 ## ----------- ##
1754 ## confdefs.h. ##
1755 ## ----------- ##
1756 _ASBOX
1757       echo
1758       cat confdefs.h
1759       echo
1760     fi
1761     test "$ac_signal" != 0 &&
1762       echo "$as_me: caught signal $ac_signal"
1763     echo "$as_me: exit $exit_status"
1764   } >&5
1765   rm -f core *.core core.conftest.* &&
1766     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767     exit $exit_status
1768 ' 0
1769 for ac_signal in 1 2 13 15; do
1770   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 done
1772 ac_signal=0
1773
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1776
1777 # Predefined preprocessor variables.
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 _ACEOF
1802
1803
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807   set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 else
1811   set x "$ac_default_prefix/share/config.site" \
1812         "$ac_default_prefix/etc/config.site"
1813 fi
1814 shift
1815 for ac_site_file
1816 do
1817   if test -r "$ac_site_file"; then
1818     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820     sed 's/^/| /' "$ac_site_file" >&5
1821     . "$ac_site_file"
1822   fi
1823 done
1824
1825 if test -r "$cache_file"; then
1826   # Some versions of bash will fail to source /dev/null (special
1827   # files actually), so we avoid doing that.
1828   if test -f "$cache_file"; then
1829     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1831     case $cache_file in
1832       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833       *)                      . "./$cache_file";;
1834     esac
1835   fi
1836 else
1837   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1839   >$cache_file
1840 fi
1841
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847   eval ac_new_set=\$ac_env_${ac_var}_set
1848   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849   eval ac_new_val=\$ac_env_${ac_var}_value
1850   case $ac_old_set,$ac_new_set in
1851     set,)
1852       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854       ac_cache_corrupted=: ;;
1855     ,set)
1856       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858       ac_cache_corrupted=: ;;
1859     ,);;
1860     *)
1861       if test "x$ac_old_val" != "x$ac_new_val"; then
1862         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1865 echo "$as_me:   former value:  $ac_old_val" >&2;}
1866         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1867 echo "$as_me:   current value: $ac_new_val" >&2;}
1868         ac_cache_corrupted=:
1869       fi;;
1870   esac
1871   # Pass precious variables to config.status.
1872   if test "$ac_new_set" = set; then
1873     case $ac_new_val in
1874     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875     *) ac_arg=$ac_var=$ac_new_val ;;
1876     esac
1877     case " $ac_configure_args " in
1878       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1879       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880     esac
1881   fi
1882 done
1883 if $ac_cache_corrupted; then
1884   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
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
1915 ac_ext=c
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
1923 LLVM_VERSION_MAJOR=3
1924 LLVM_VERSION_MINOR=6
1925 LLVM_VERSION_PATCH=0
1926 LLVM_VERSION_SUFFIX=svn
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1941 _ACEOF
1942
1943
1944
1945
1946
1947
1948
1949 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1950
1951
1952
1953
1954
1955
1956
1957 ac_aux_dir=
1958 for ac_dir in autoconf "$srcdir"/autoconf; do
1959   if test -f "$ac_dir/install-sh"; then
1960     ac_aux_dir=$ac_dir
1961     ac_install_sh="$ac_aux_dir/install-sh -c"
1962     break
1963   elif test -f "$ac_dir/install.sh"; then
1964     ac_aux_dir=$ac_dir
1965     ac_install_sh="$ac_aux_dir/install.sh -c"
1966     break
1967   elif test -f "$ac_dir/shtool"; then
1968     ac_aux_dir=$ac_dir
1969     ac_install_sh="$ac_aux_dir/shtool install -c"
1970     break
1971   fi
1972 done
1973 if test -z "$ac_aux_dir"; then
1974   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1975 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1976    { (exit 1); exit 1; }; }
1977 fi
1978
1979 # These three variables are undocumented and unsupported,
1980 # and are intended to be withdrawn in a future Autoconf release.
1981 # They can cause serious problems if a builder's source tree is in a directory
1982 # whose full name contains unusual characters.
1983 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1984 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1985 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1986
1987
1988
1989 if test ${srcdir} != "." ; then
1990   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1991     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1992 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1993    { (exit 1); exit 1; }; }
1994   fi
1995 fi
1996
1997 : ${CFLAGS=}
1998 : ${CXXFLAGS=}
1999
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006   for ac_prog in clang gcc
2007   do
2008     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$CC"; then
2016   ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2025     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031 IFS=$as_save_IFS
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037   { echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6; }
2039 else
2040   { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2042 fi
2043
2044
2045     test -n "$CC" && break
2046   done
2047 fi
2048 if test -z "$CC"; then
2049   ac_ct_CC=$CC
2050   for ac_prog in clang gcc
2051 do
2052   # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 set dummy $ac_prog; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$ac_ct_CC"; then
2060   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2069     ac_cv_prog_ac_ct_CC="$ac_prog"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 fi
2078 fi
2079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080 if test -n "$ac_ct_CC"; then
2081   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082 echo "${ECHO_T}$ac_ct_CC" >&6; }
2083 else
2084   { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2086 fi
2087
2088
2089   test -n "$ac_ct_CC" && break
2090 done
2091
2092   if test "x$ac_ct_CC" = x; then
2093     CC=""
2094   else
2095     case $cross_compiling:$ac_tool_warned in
2096 yes:)
2097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet.  If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&5
2100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet.  If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2103 ac_tool_warned=yes ;;
2104 esac
2105     CC=$ac_ct_CC
2106   fi
2107 fi
2108
2109
2110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&2;}
2114    { (exit 1); exit 1; }; }
2115
2116 # Provide some information about the compiler.
2117 echo "$as_me:$LINENO: checking for C compiler version" >&5
2118 ac_compiler=`set X $ac_compile; echo $2`
2119 { (ac_try="$ac_compiler --version >&5"
2120 case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125   (eval "$ac_compiler --version >&5") 2>&5
2126   ac_status=$?
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); }
2129 { (ac_try="$ac_compiler -v >&5"
2130 case "(($ac_try" in
2131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132   *) ac_try_echo=$ac_try;;
2133 esac
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135   (eval "$ac_compiler -v >&5") 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }
2139 { (ac_try="$ac_compiler -V >&5"
2140 case "(($ac_try" in
2141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142   *) ac_try_echo=$ac_try;;
2143 esac
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145   (eval "$ac_compiler -V >&5") 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }
2149
2150 cat >conftest.$ac_ext <<_ACEOF
2151 /* confdefs.h.  */
2152 _ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h.  */
2156
2157 int
2158 main ()
2159 {
2160
2161   ;
2162   return 0;
2163 }
2164 _ACEOF
2165 ac_clean_files_save=$ac_clean_files
2166 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2167 # Try to create an executable without -o first, disregard a.out.
2168 # It will help us diagnose broken compilers, and finding out an intuition
2169 # of exeext.
2170 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2171 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2172 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2173 #
2174 # List of possible output files, starting from the most likely.
2175 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2176 # only as a last resort.  b.out is created by i960 compilers.
2177 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2178 #
2179 # The IRIX 6 linker writes into existing files which may not be
2180 # executable, retaining their permissions.  Remove them first so a
2181 # subsequent execution test works.
2182 ac_rmfiles=
2183 for ac_file in $ac_files
2184 do
2185   case $ac_file in
2186     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2187     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2188   esac
2189 done
2190 rm -f $ac_rmfiles
2191
2192 if { (ac_try="$ac_link_default"
2193 case "(($ac_try" in
2194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195   *) ac_try_echo=$ac_try;;
2196 esac
2197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2198   (eval "$ac_link_default") 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }; then
2202   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2204 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2205 # so that the user can short-circuit this test for compilers unknown to
2206 # Autoconf.
2207 for ac_file in $ac_files
2208 do
2209   test -f "$ac_file" || continue
2210   case $ac_file in
2211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2212         ;;
2213     [ab].out )
2214         # We found the default executable, but exeext='' is most
2215         # certainly right.
2216         break;;
2217     *.* )
2218         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2219         then :; else
2220            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2221         fi
2222         # We set ac_cv_exeext here because the later test for it is not
2223         # safe: cross compilers may not add the suffix if given an `-o'
2224         # argument, so we may need to know it at that point already.
2225         # Even if this section looks crufty: it has the advantage of
2226         # actually working.
2227         break;;
2228     * )
2229         break;;
2230   esac
2231 done
2232 test "$ac_cv_exeext" = no && ac_cv_exeext=
2233
2234 else
2235   echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&2;}
2242    { (exit 77); exit 77; }; }
2243 fi
2244
2245 ac_exeext=$ac_cv_exeext
2246 { echo "$as_me:$LINENO: result: $ac_file" >&5
2247 echo "${ECHO_T}$ac_file" >&6; }
2248
2249 # Check that the compiler produces executables we can run.  If not, either
2250 # the compiler is broken, or we cross compile.
2251 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2252 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2253 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2254 # If not cross compiling, check that we can run a simple program.
2255 if test "$cross_compiling" != yes; then
2256   if { ac_try='./$ac_file'
2257   { (case "(($ac_try" in
2258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259   *) ac_try_echo=$ac_try;;
2260 esac
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262   (eval "$ac_try") 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; }; then
2266     cross_compiling=no
2267   else
2268     if test "$cross_compiling" = maybe; then
2269         cross_compiling=yes
2270     else
2271         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&2;}
2277    { (exit 1); exit 1; }; }
2278     fi
2279   fi
2280 fi
2281 { echo "$as_me:$LINENO: result: yes" >&5
2282 echo "${ECHO_T}yes" >&6; }
2283
2284 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2285 ac_clean_files=$ac_clean_files_save
2286 # Check that the compiler produces executables we can run.  If not, either
2287 # the compiler is broken, or we cross compile.
2288 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2289 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2290 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2291 echo "${ECHO_T}$cross_compiling" >&6; }
2292
2293 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2294 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2295 if { (ac_try="$ac_link"
2296 case "(($ac_try" in
2297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298   *) ac_try_echo=$ac_try;;
2299 esac
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301   (eval "$ac_link") 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }; then
2305   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2306 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2307 # work properly (i.e., refer to `conftest.exe'), while it won't with
2308 # `rm'.
2309 for ac_file in conftest.exe conftest conftest.*; do
2310   test -f "$ac_file" || continue
2311   case $ac_file in
2312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2313     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2314           break;;
2315     * ) break;;
2316   esac
2317 done
2318 else
2319   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2320 See \`config.log' for more details." >&5
2321 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&2;}
2323    { (exit 1); exit 1; }; }
2324 fi
2325
2326 rm -f conftest$ac_cv_exeext
2327 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2328 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2329
2330 rm -f conftest.$ac_ext
2331 EXEEXT=$ac_cv_exeext
2332 ac_exeext=$EXEEXT
2333 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2334 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2335 if test "${ac_cv_objext+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h.  */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h.  */
2344
2345 int
2346 main ()
2347 {
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 rm -f conftest.o conftest.obj
2354 if { (ac_try="$ac_compile"
2355 case "(($ac_try" in
2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357   *) ac_try_echo=$ac_try;;
2358 esac
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360   (eval "$ac_compile") 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; then
2364   for ac_file in conftest.o conftest.obj conftest.*; do
2365   test -f "$ac_file" || continue;
2366   case $ac_file in
2367     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2368     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2369        break;;
2370   esac
2371 done
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2379 See \`config.log' for more details." >&2;}
2380    { (exit 1); exit 1; }; }
2381 fi
2382
2383 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2384 fi
2385 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2386 echo "${ECHO_T}$ac_cv_objext" >&6; }
2387 OBJEXT=$ac_cv_objext
2388 ac_objext=$OBJEXT
2389 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2390 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2391 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   cat >conftest.$ac_ext <<_ACEOF
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400
2401 int
2402 main ()
2403 {
2404 #ifndef __GNUC__
2405        choke me
2406 #endif
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419   (eval "$ac_compile") 2>conftest.er1
2420   ac_status=$?
2421   grep -v '^ *+' conftest.er1 >conftest.err
2422   rm -f conftest.er1
2423   cat conftest.err >&5
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } &&
2426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2427   { (case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432   (eval "$ac_try") 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; } &&
2436          { ac_try='test -s conftest.$ac_objext'
2437   { (case "(($ac_try" in
2438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439   *) ac_try_echo=$ac_try;;
2440 esac
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442   (eval "$ac_try") 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }; }; then
2446   ac_compiler_gnu=yes
2447 else
2448   echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450
2451         ac_compiler_gnu=no
2452 fi
2453
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2456
2457 fi
2458 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2460 GCC=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CFLAGS=${CFLAGS+set}
2462 ac_save_CFLAGS=$CFLAGS
2463 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2464 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_cc_g+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   ac_save_c_werror_flag=$ac_c_werror_flag
2469    ac_c_werror_flag=yes
2470    ac_cv_prog_cc_g=no
2471    CFLAGS="-g"
2472    cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h.  */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h.  */
2478
2479 int
2480 main ()
2481 {
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (ac_try="$ac_compile"
2489 case "(($ac_try" in
2490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491   *) ac_try_echo=$ac_try;;
2492 esac
2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494   (eval "$ac_compile") 2>conftest.er1
2495   ac_status=$?
2496   grep -v '^ *+' conftest.er1 >conftest.err
2497   rm -f conftest.er1
2498   cat conftest.err >&5
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); } &&
2501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2502   { (case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507   (eval "$ac_try") 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; } &&
2511          { ac_try='test -s conftest.$ac_objext'
2512   { (case "(($ac_try" in
2513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514   *) ac_try_echo=$ac_try;;
2515 esac
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517   (eval "$ac_try") 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; }; then
2521   ac_cv_prog_cc_g=yes
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526         CFLAGS=""
2527       cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h.  */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h.  */
2533
2534 int
2535 main ()
2536 {
2537
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (ac_try="$ac_compile"
2544 case "(($ac_try" in
2545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546   *) ac_try_echo=$ac_try;;
2547 esac
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549   (eval "$ac_compile") 2>conftest.er1
2550   ac_status=$?
2551   grep -v '^ *+' conftest.er1 >conftest.err
2552   rm -f conftest.er1
2553   cat conftest.err >&5
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2557   { (case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562   (eval "$ac_try") 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; } &&
2566          { ac_try='test -s conftest.$ac_objext'
2567   { (case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572   (eval "$ac_try") 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; }; then
2576   :
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581         ac_c_werror_flag=$ac_save_c_werror_flag
2582          CFLAGS="-g"
2583          cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589
2590 int
2591 main ()
2592 {
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (ac_try="$ac_compile"
2600 case "(($ac_try" in
2601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602   *) ac_try_echo=$ac_try;;
2603 esac
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605   (eval "$ac_compile") 2>conftest.er1
2606   ac_status=$?
2607   grep -v '^ *+' conftest.er1 >conftest.err
2608   rm -f conftest.er1
2609   cat conftest.err >&5
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); } &&
2612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2613   { (case "(($ac_try" in
2614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615   *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618   (eval "$ac_try") 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (case "(($ac_try" in
2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625   *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628   (eval "$ac_try") 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   ac_cv_prog_cc_g=yes
2633 else
2634   echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637
2638 fi
2639
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 fi
2642
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2645
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647    ac_c_werror_flag=$ac_save_c_werror_flag
2648 fi
2649 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2650 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2651 if test "$ac_test_CFLAGS" = set; then
2652   CFLAGS=$ac_save_CFLAGS
2653 elif test $ac_cv_prog_cc_g = yes; then
2654   if test "$GCC" = yes; then
2655     CFLAGS="-g -O2"
2656   else
2657     CFLAGS="-g"
2658   fi
2659 else
2660   if test "$GCC" = yes; then
2661     CFLAGS="-O2"
2662   else
2663     CFLAGS=
2664   fi
2665 fi
2666 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2667 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2668 if test "${ac_cv_prog_cc_c89+set}" = set; then
2669   echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671   ac_cv_prog_cc_c89=no
2672 ac_save_CC=$CC
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679 #include <stdarg.h>
2680 #include <stdio.h>
2681 #include <sys/types.h>
2682 #include <sys/stat.h>
2683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2684 struct buf { int x; };
2685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2686 static char *e (p, i)
2687      char **p;
2688      int i;
2689 {
2690   return p[i];
2691 }
2692 static char *f (char * (*g) (char **, int), char **p, ...)
2693 {
2694   char *s;
2695   va_list v;
2696   va_start (v,p);
2697   s = g (p, va_arg (v,int));
2698   va_end (v);
2699   return s;
2700 }
2701
2702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2703    function prototypes and stuff, but not '\xHH' hex character constants.
2704    These don't provoke an error unfortunately, instead are silently treated
2705    as 'x'.  The following induces an error, until -std is added to get
2706    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2707    array size at least.  It's necessary to write '\x00'==0 to get something
2708    that's true only with -std.  */
2709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2710
2711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2712    inside strings and character constants.  */
2713 #define FOO(x) 'x'
2714 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2715
2716 int test (int i, double x);
2717 struct s1 {int (*f) (int a);};
2718 struct s2 {int (*f) (double a);};
2719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2720 int argc;
2721 char **argv;
2722 int
2723 main ()
2724 {
2725 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2731         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732 do
2733   CC="$ac_save_CC $ac_arg"
2734   rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_compile") 2>conftest.er1
2742   ac_status=$?
2743   grep -v '^ *+' conftest.er1 >conftest.err
2744   rm -f conftest.er1
2745   cat conftest.err >&5
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); } &&
2748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2749   { (case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_try") 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; } &&
2758          { ac_try='test -s conftest.$ac_objext'
2759   { (case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764   (eval "$ac_try") 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }; }; then
2768   ac_cv_prog_cc_c89=$ac_arg
2769 else
2770   echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2772
2773
2774 fi
2775
2776 rm -f core conftest.err conftest.$ac_objext
2777   test "x$ac_cv_prog_cc_c89" != "xno" && break
2778 done
2779 rm -f conftest.$ac_ext
2780 CC=$ac_save_CC
2781
2782 fi
2783 # AC_CACHE_VAL
2784 case "x$ac_cv_prog_cc_c89" in
2785   x)
2786     { echo "$as_me:$LINENO: result: none needed" >&5
2787 echo "${ECHO_T}none needed" >&6; } ;;
2788   xno)
2789     { echo "$as_me:$LINENO: result: unsupported" >&5
2790 echo "${ECHO_T}unsupported" >&6; } ;;
2791   *)
2792     CC="$CC $ac_cv_prog_cc_c89"
2793     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2795 esac
2796
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803
2804 ac_ext=cpp
2805 ac_cpp='$CXXCPP $CPPFLAGS'
2806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2809 if test -z "$CXX"; then
2810   if test -n "$CCC"; then
2811     CXX=$CCC
2812   else
2813     if test -n "$ac_tool_prefix"; then
2814   for ac_prog in clang++ g++
2815   do
2816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_CXX+set}" = set; then
2821   echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823   if test -n "$CXX"; then
2824   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831   for ac_exec_ext in '' $ac_executable_extensions; do
2832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2833     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 CXX=$ac_cv_prog_CXX
2844 if test -n "$CXX"; then
2845   { echo "$as_me:$LINENO: result: $CXX" >&5
2846 echo "${ECHO_T}$CXX" >&6; }
2847 else
2848   { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2850 fi
2851
2852
2853     test -n "$CXX" && break
2854   done
2855 fi
2856 if test -z "$CXX"; then
2857   ac_ct_CXX=$CXX
2858   for ac_prog in clang++ g++
2859 do
2860   # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2865   echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867   if test -n "$ac_ct_CXX"; then
2868   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875   for ac_exec_ext in '' $ac_executable_extensions; do
2876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877     ac_cv_prog_ac_ct_CXX="$ac_prog"
2878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879     break 2
2880   fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2888 if test -n "$ac_ct_CXX"; then
2889   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2890 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2891 else
2892   { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2894 fi
2895
2896
2897   test -n "$ac_ct_CXX" && break
2898 done
2899
2900   if test "x$ac_ct_CXX" = x; then
2901     CXX="g++"
2902   else
2903     case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet.  If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&5
2908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet.  If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2911 ac_tool_warned=yes ;;
2912 esac
2913     CXX=$ac_ct_CXX
2914   fi
2915 fi
2916
2917   fi
2918 fi
2919 # Provide some information about the compiler.
2920 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2921 ac_compiler=`set X $ac_compile; echo $2`
2922 { (ac_try="$ac_compiler --version >&5"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928   (eval "$ac_compiler --version >&5") 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }
2932 { (ac_try="$ac_compiler -v >&5"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938   (eval "$ac_compiler -v >&5") 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }
2942 { (ac_try="$ac_compiler -V >&5"
2943 case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_compiler -V >&5") 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }
2952
2953 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2954 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2955 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964
2965 int
2966 main ()
2967 {
2968 #ifndef __GNUC__
2969        choke me
2970 #endif
2971
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2978 case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983   (eval "$ac_compile") 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } &&
2990          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2991   { (case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_try") 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); }; } &&
3000          { ac_try='test -s conftest.$ac_objext'
3001   { (case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_try") 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; }; then
3010   ac_compiler_gnu=yes
3011 else
3012   echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015         ac_compiler_gnu=no
3016 fi
3017
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3020
3021 fi
3022 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3023 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3024 GXX=`test $ac_compiler_gnu = yes && echo yes`
3025 ac_test_CXXFLAGS=${CXXFLAGS+set}
3026 ac_save_CXXFLAGS=$CXXFLAGS
3027 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3028 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_cxx_g+set}" = set; then
3030   echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3033    ac_cxx_werror_flag=yes
3034    ac_cv_prog_cxx_g=no
3035    CXXFLAGS="-g"
3036    cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042
3043 int
3044 main ()
3045 {
3046
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_compile") 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } &&
3065          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3066   { (case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_try") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }; } &&
3075          { ac_try='test -s conftest.$ac_objext'
3076   { (case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_try") 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   ac_cv_prog_cxx_g=yes
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090         CXXFLAGS=""
3091       cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h.  */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h.  */
3097
3098 int
3099 main ()
3100 {
3101
3102   ;
3103   return 0;
3104 }
3105 _ACEOF
3106 rm -f conftest.$ac_objext
3107 if { (ac_try="$ac_compile"
3108 case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113   (eval "$ac_compile") 2>conftest.er1
3114   ac_status=$?
3115   grep -v '^ *+' conftest.er1 >conftest.err
3116   rm -f conftest.er1
3117   cat conftest.err >&5
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); } &&
3120          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3121   { (case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_try") 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; } &&
3130          { ac_try='test -s conftest.$ac_objext'
3131   { (case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_try") 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; }; then
3140   :
3141 else
3142   echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3144
3145         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3146          CXXFLAGS="-g"
3147          cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153
3154 int
3155 main ()
3156 {
3157
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166   *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169   (eval "$ac_compile") 2>conftest.er1
3170   ac_status=$?
3171   grep -v '^ *+' conftest.er1 >conftest.err
3172   rm -f conftest.er1
3173   cat conftest.err >&5
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); } &&
3176          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3177   { (case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_try") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; } &&
3186          { ac_try='test -s conftest.$ac_objext'
3187   { (case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_try") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; }; then
3196   ac_cv_prog_cxx_g=yes
3197 else
3198   echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3209
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3212 fi
3213 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3214 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3215 if test "$ac_test_CXXFLAGS" = set; then
3216   CXXFLAGS=$ac_save_CXXFLAGS
3217 elif test $ac_cv_prog_cxx_g = yes; then
3218   if test "$GXX" = yes; then
3219     CXXFLAGS="-g -O2"
3220   else
3221     CXXFLAGS="-g"
3222   fi
3223 else
3224   if test "$GXX" = yes; then
3225     CXXFLAGS="-O2"
3226   else
3227     CXXFLAGS=
3228   fi
3229 fi
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3242 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3243 # On Suns, sometimes $CPP names a directory.
3244 if test -n "$CPP" && test -d "$CPP"; then
3245   CPP=
3246 fi
3247 if test -z "$CPP"; then
3248   if test "${ac_cv_prog_CPP+set}" = set; then
3249   echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251       # Double quotes because CPP needs to be expanded
3252     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3253     do
3254       ac_preproc_ok=false
3255 for ac_c_preproc_warn_flag in '' yes
3256 do
3257   # Use a header file that comes with gcc, so configuring glibc
3258   # with a fresh cross-compiler works.
3259   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3260   # <limits.h> exists even on freestanding compilers.
3261   # On the NeXT, cc -E runs the code through the compiler's parser,
3262   # not just through cpp. "Syntax error" is here to catch this case.
3263   cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 #ifdef __STDC__
3270 # include <limits.h>
3271 #else
3272 # include <assert.h>
3273 #endif
3274                      Syntax error
3275 _ACEOF
3276 if { (ac_try="$ac_cpp conftest.$ac_ext"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3283   ac_status=$?
3284   grep -v '^ *+' conftest.er1 >conftest.err
3285   rm -f conftest.er1
3286   cat conftest.err >&5
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); } >/dev/null; then
3289   if test -s conftest.err; then
3290     ac_cpp_err=$ac_c_preproc_warn_flag
3291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292   else
3293     ac_cpp_err=
3294   fi
3295 else
3296   ac_cpp_err=yes
3297 fi
3298 if test -z "$ac_cpp_err"; then
3299   :
3300 else
3301   echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304   # Broken: fails on valid input.
3305 continue
3306 fi
3307
3308 rm -f conftest.err conftest.$ac_ext
3309
3310   # OK, works on sane cases.  Now check whether nonexistent headers
3311   # can be detected and how.
3312   cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h.  */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h.  */
3318 #include <ac_nonexistent.h>
3319 _ACEOF
3320 if { (ac_try="$ac_cpp conftest.$ac_ext"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3327   ac_status=$?
3328   grep -v '^ *+' conftest.er1 >conftest.err
3329   rm -f conftest.er1
3330   cat conftest.err >&5
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } >/dev/null; then
3333   if test -s conftest.err; then
3334     ac_cpp_err=$ac_c_preproc_warn_flag
3335     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3336   else
3337     ac_cpp_err=
3338   fi
3339 else
3340   ac_cpp_err=yes
3341 fi
3342 if test -z "$ac_cpp_err"; then
3343   # Broken: success on invalid input.
3344 continue
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349   # Passes both tests.
3350 ac_preproc_ok=:
3351 break
3352 fi
3353
3354 rm -f conftest.err conftest.$ac_ext
3355
3356 done
3357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358 rm -f conftest.err conftest.$ac_ext
3359 if $ac_preproc_ok; then
3360   break
3361 fi
3362
3363     done
3364     ac_cv_prog_CPP=$CPP
3365
3366 fi
3367   CPP=$ac_cv_prog_CPP
3368 else
3369   ac_cv_prog_CPP=$CPP
3370 fi
3371 { echo "$as_me:$LINENO: result: $CPP" >&5
3372 echo "${ECHO_T}$CPP" >&6; }
3373 ac_preproc_ok=false
3374 for ac_c_preproc_warn_flag in '' yes
3375 do
3376   # Use a header file that comes with gcc, so configuring glibc
3377   # with a fresh cross-compiler works.
3378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379   # <limits.h> exists even on freestanding compilers.
3380   # On the NeXT, cc -E runs the code through the compiler's parser,
3381   # not just through cpp. "Syntax error" is here to catch this case.
3382   cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #ifdef __STDC__
3389 # include <limits.h>
3390 #else
3391 # include <assert.h>
3392 #endif
3393                      Syntax error
3394 _ACEOF
3395 if { (ac_try="$ac_cpp conftest.$ac_ext"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } >/dev/null; then
3408   if test -s conftest.err; then
3409     ac_cpp_err=$ac_c_preproc_warn_flag
3410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411   else
3412     ac_cpp_err=
3413   fi
3414 else
3415   ac_cpp_err=yes
3416 fi
3417 if test -z "$ac_cpp_err"; then
3418   :
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Broken: fails on valid input.
3424 continue
3425 fi
3426
3427 rm -f conftest.err conftest.$ac_ext
3428
3429   # OK, works on sane cases.  Now check whether nonexistent headers
3430   # can be detected and how.
3431   cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } >/dev/null; then
3452   if test -s conftest.err; then
3453     ac_cpp_err=$ac_c_preproc_warn_flag
3454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455   else
3456     ac_cpp_err=
3457   fi
3458 else
3459   ac_cpp_err=yes
3460 fi
3461 if test -z "$ac_cpp_err"; then
3462   # Broken: success on invalid input.
3463 continue
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468   # Passes both tests.
3469 ac_preproc_ok=:
3470 break
3471 fi
3472
3473 rm -f conftest.err conftest.$ac_ext
3474
3475 done
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3479   :
3480 else
3481   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details." >&5
3483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&2;}
3485    { (exit 1); exit 1; }; }
3486 fi
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495 if test "$CXX" = "clang++" ; then
3496   { echo "$as_me:$LINENO: checking whether clang works" >&5
3497 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3498   ac_ext=cpp
3499 ac_cpp='$CXXCPP $CPPFLAGS'
3500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3503
3504
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511 #include <limits>
3512 #if __has_include (<cxxabi.h>)
3513 #include <cxxabi.h>
3514 #endif
3515 #if __has_include (<unwind.h>)
3516 #include <unwind.h>
3517 #endif
3518
3519 int
3520 main ()
3521 {
3522
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3529 case "(($ac_try" in
3530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531   *) ac_try_echo=$ac_try;;
3532 esac
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534   (eval "$ac_compile") 2>conftest.er1
3535   ac_status=$?
3536   grep -v '^ *+' conftest.er1 >conftest.err
3537   rm -f conftest.er1
3538   cat conftest.err >&5
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); } &&
3541          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3542   { (case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_try") 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; } &&
3551          { ac_try='test -s conftest.$ac_objext'
3552   { (case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_try") 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }; }; then
3561
3562   { echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6; }
3564
3565 else
3566   echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569
3570   { echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6; }
3572   { { 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
3573 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;}
3574    { (exit 1); exit 1; }; }
3575
3576 fi
3577
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579   ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584
3585 fi
3586
3587 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3588 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3589 ac_ext=cpp
3590 ac_cpp='$CXXCPP $CPPFLAGS'
3591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3594
3595 llvm_cv_cxx_compiler=unknown
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602 #if ! __clang__
3603                                     #error
3604                                     #endif
3605
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614   (eval "$ac_compile") 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } &&
3621          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3622   { (case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627   (eval "$ac_try") 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637   (eval "$ac_try") 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; }; then
3641   llvm_cv_cxx_compiler=clang
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646         cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 #if ! __GNUC__
3653                                                        #error
3654                                                        #endif
3655
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3659 case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664   (eval "$ac_compile") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } &&
3671          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3672   { (case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677   (eval "$ac_try") 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; } &&
3681          { ac_try='test -s conftest.$ac_objext'
3682   { (case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687   (eval "$ac_try") 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; }; then
3691   llvm_cv_cxx_compiler=gcc
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696
3697 fi
3698
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 fi
3701
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 ac_ext=c
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708
3709 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3710 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3711
3712
3713
3714 if test -d ${srcdir}/projects/test-suite ; then
3715   subdirs="$subdirs projects/test-suite"
3716
3717 fi
3718
3719 if test -d ${srcdir}/projects/llvm-test ; then
3720   subdirs="$subdirs projects/llvm-test"
3721
3722 fi
3723
3724 if test -d ${srcdir}/projects/poolalloc ; then
3725   subdirs="$subdirs projects/poolalloc"
3726
3727 fi
3728
3729 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3730   subdirs="$subdirs projects/llvm-poolalloc"
3731
3732 fi
3733
3734 for i in `ls ${srcdir}/projects`
3735 do
3736   if test -d ${srcdir}/projects/${i} ; then
3737     case ${i} in
3738       safecode)     subdirs="$subdirs projects/safecode"
3739  ;;
3740       compiler-rt)       ;;
3741       test-suite)     ;;
3742       llvm-test)      ;;
3743       poolalloc)      ;;
3744       llvm-poolalloc) ;;
3745       *)
3746         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3747 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3748         ;;
3749     esac
3750   fi
3751 done
3752
3753 # Check whether --enable-polly was given.
3754 if test "${enable_polly+set}" = set; then
3755   enableval=$enable_polly;
3756 else
3757   enableval=default
3758 fi
3759
3760 case "$enableval" in
3761   yes) ENABLE_POLLY=1
3762  ;;
3763   no)  ENABLE_POLLY=0
3764  ;;
3765   default) ENABLE_POLLY=1
3766  ;;
3767   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3768 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3769    { (exit 1); exit 1; }; } ;;
3770 esac
3771
3772
3773 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3774   LLVM_HAS_POLLY=1
3775
3776   subdirs="$subdirs tools/polly"
3777
3778 fi
3779
3780
3781 # Make sure we can run config.sub.
3782 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3783   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3784 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3785    { (exit 1); exit 1; }; }
3786
3787 { echo "$as_me:$LINENO: checking build system type" >&5
3788 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3789 if test "${ac_cv_build+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   ac_build_alias=$build_alias
3793 test "x$ac_build_alias" = x &&
3794   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3795 test "x$ac_build_alias" = x &&
3796   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3797 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3798    { (exit 1); exit 1; }; }
3799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3800   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3802    { (exit 1); exit 1; }; }
3803
3804 fi
3805 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3806 echo "${ECHO_T}$ac_cv_build" >&6; }
3807 case $ac_cv_build in
3808 *-*-*) ;;
3809 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3810 echo "$as_me: error: invalid value of canonical build" >&2;}
3811    { (exit 1); exit 1; }; };;
3812 esac
3813 build=$ac_cv_build
3814 ac_save_IFS=$IFS; IFS='-'
3815 set x $ac_cv_build
3816 shift
3817 build_cpu=$1
3818 build_vendor=$2
3819 shift; shift
3820 # Remember, the first character of IFS is used to create $*,
3821 # except with old shells:
3822 build_os=$*
3823 IFS=$ac_save_IFS
3824 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3825
3826
3827 { echo "$as_me:$LINENO: checking host system type" >&5
3828 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3829 if test "${ac_cv_host+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   if test "x$host_alias" = x; then
3833   ac_cv_host=$ac_cv_build
3834 else
3835   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3836     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3837 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3838    { (exit 1); exit 1; }; }
3839 fi
3840
3841 fi
3842 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3843 echo "${ECHO_T}$ac_cv_host" >&6; }
3844 case $ac_cv_host in
3845 *-*-*) ;;
3846 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3847 echo "$as_me: error: invalid value of canonical host" >&2;}
3848    { (exit 1); exit 1; }; };;
3849 esac
3850 host=$ac_cv_host
3851 ac_save_IFS=$IFS; IFS='-'
3852 set x $ac_cv_host
3853 shift
3854 host_cpu=$1
3855 host_vendor=$2
3856 shift; shift
3857 # Remember, the first character of IFS is used to create $*,
3858 # except with old shells:
3859 host_os=$*
3860 IFS=$ac_save_IFS
3861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3862
3863
3864 { echo "$as_me:$LINENO: checking target system type" >&5
3865 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3866 if test "${ac_cv_target+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   if test "x$target_alias" = x; then
3870   ac_cv_target=$ac_cv_host
3871 else
3872   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3873     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3874 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3875    { (exit 1); exit 1; }; }
3876 fi
3877
3878 fi
3879 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3880 echo "${ECHO_T}$ac_cv_target" >&6; }
3881 case $ac_cv_target in
3882 *-*-*) ;;
3883 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3884 echo "$as_me: error: invalid value of canonical target" >&2;}
3885    { (exit 1); exit 1; }; };;
3886 esac
3887 target=$ac_cv_target
3888 ac_save_IFS=$IFS; IFS='-'
3889 set x $ac_cv_target
3890 shift
3891 target_cpu=$1
3892 target_vendor=$2
3893 shift; shift
3894 # Remember, the first character of IFS is used to create $*,
3895 # except with old shells:
3896 target_os=$*
3897 IFS=$ac_save_IFS
3898 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3899
3900
3901 # The aliases save the names the user supplied, while $host etc.
3902 # will get canonicalized.
3903 test -n "$target_alias" &&
3904   test "$program_prefix$program_suffix$program_transform_name" = \
3905     NONENONEs,x,x, &&
3906   program_prefix=${target_alias}-
3907
3908 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3909 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3910 if test "${llvm_cv_os_type+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   case $host in
3914   *-*-aix*)
3915     llvm_cv_link_all_option="-Wl,--whole-archive"
3916     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3917     llvm_cv_os_type="AIX"
3918     llvm_cv_platform_type="Unix" ;;
3919   *-*-irix*)
3920     llvm_cv_link_all_option="-Wl,--whole-archive"
3921     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922     llvm_cv_os_type="IRIX"
3923     llvm_cv_platform_type="Unix" ;;
3924   *-*-cygwin*)
3925     llvm_cv_link_all_option="-Wl,--whole-archive"
3926     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927     llvm_cv_os_type="Cygwin"
3928     llvm_cv_platform_type="Unix" ;;
3929   *-*-darwin*)
3930     llvm_cv_link_all_option="-Wl,-all_load"
3931     llvm_cv_no_link_all_option="-Wl,-noall_load"
3932     llvm_cv_os_type="Darwin"
3933     llvm_cv_platform_type="Unix" ;;
3934   *-*-minix*)
3935     llvm_cv_link_all_option="-Wl,-all_load"
3936     llvm_cv_no_link_all_option="-Wl,-noall_load"
3937     llvm_cv_os_type="Minix"
3938     llvm_cv_platform_type="Unix" ;;
3939   *-*-freebsd*)
3940     llvm_cv_link_all_option="-Wl,--whole-archive"
3941     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942     llvm_cv_os_type="FreeBSD"
3943     llvm_cv_platform_type="Unix" ;;
3944   *-*-kfreebsd-gnu)
3945     llvm_cv_link_all_option="-Wl,--whole-archive"
3946     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947     llvm_cv_os_type="GNU/kFreeBSD"
3948     llvm_cv_platform_type="Unix" ;;
3949   *-*-openbsd*)
3950     llvm_cv_link_all_option="-Wl,--whole-archive"
3951     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952     llvm_cv_os_type="OpenBSD"
3953     llvm_cv_platform_type="Unix" ;;
3954   *-*-netbsd*)
3955     llvm_cv_link_all_option="-Wl,--whole-archive"
3956     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957     llvm_cv_os_type="NetBSD"
3958     llvm_cv_platform_type="Unix" ;;
3959   *-*-dragonfly*)
3960     llvm_cv_link_all_option="-Wl,--whole-archive"
3961     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962     llvm_cv_os_type="DragonFly"
3963     llvm_cv_platform_type="Unix" ;;
3964   *-*-hpux*)
3965     llvm_cv_link_all_option="-Wl,--whole-archive"
3966     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967     llvm_cv_os_type="HP-UX"
3968     llvm_cv_platform_type="Unix" ;;
3969   *-*-interix*)
3970     llvm_cv_link_all_option="-Wl,--whole-archive"
3971     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972     llvm_cv_os_type="Interix"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-linux*)
3975     llvm_cv_link_all_option="-Wl,--whole-archive"
3976     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977     llvm_cv_os_type="Linux"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-gnu*)
3980     llvm_cv_link_all_option="-Wl,--whole-archive"
3981     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982     llvm_cv_os_type="GNU"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-solaris*)
3985     llvm_cv_link_all_option="-Wl,-z,allextract"
3986     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3987     llvm_cv_os_type="SunOS"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-win32*)
3990     llvm_cv_link_all_option="-Wl,--whole-archive"
3991     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992     llvm_cv_os_type="Win32"
3993     llvm_cv_platform_type="Win32" ;;
3994   *-*-mingw*)
3995     llvm_cv_link_all_option="-Wl,--whole-archive"
3996     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997     llvm_cv_os_type="MingW"
3998     llvm_cv_platform_type="Win32" ;;
3999   *-*-haiku*)
4000     llvm_cv_link_all_option="-Wl,--whole-archive"
4001     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002     llvm_cv_os_type="Haiku"
4003     llvm_cv_platform_type="Unix" ;;
4004   *-unknown-eabi*)
4005     llvm_cv_link_all_option="-Wl,--whole-archive"
4006     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007     llvm_cv_os_type="Freestanding"
4008     llvm_cv_platform_type="Unix" ;;
4009   *-unknown-elf*)
4010     llvm_cv_link_all_option="-Wl,--whole-archive"
4011     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012     llvm_cv_os_type="Freestanding"
4013     llvm_cv_platform_type="Unix" ;;
4014   *)
4015     llvm_cv_link_all_option=""
4016     llvm_cv_no_link_all_option=""
4017     llvm_cv_os_type="Unknown"
4018     llvm_cv_platform_type="Unknown" ;;
4019 esac
4020 fi
4021 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4022 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4023
4024 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4025 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4026 if test "${llvm_cv_target_os_type+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   case $target in
4030   *-*-aix*)
4031     llvm_cv_target_os_type="AIX" ;;
4032   *-*-irix*)
4033     llvm_cv_target_os_type="IRIX" ;;
4034   *-*-cygwin*)
4035     llvm_cv_target_os_type="Cygwin" ;;
4036   *-*-darwin*)
4037     llvm_cv_target_os_type="Darwin" ;;
4038   *-*-minix*)
4039     llvm_cv_target_os_type="Minix" ;;
4040   *-*-freebsd*)
4041     llvm_cv_target_os_type="FreeBSD" ;;
4042   *-*-kfreebsd-gnu)
4043     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4044   *-*-openbsd*)
4045     llvm_cv_target_os_type="OpenBSD" ;;
4046   *-*-netbsd*)
4047     llvm_cv_target_os_type="NetBSD" ;;
4048   *-*-dragonfly*)
4049     llvm_cv_target_os_type="DragonFly" ;;
4050   *-*-hpux*)
4051     llvm_cv_target_os_type="HP-UX" ;;
4052   *-*-interix*)
4053     llvm_cv_target_os_type="Interix" ;;
4054   *-*-linux*)
4055     llvm_cv_target_os_type="Linux" ;;
4056   *-*-gnu*)
4057     llvm_cv_target_os_type="GNU" ;;
4058   *-*-solaris*)
4059     llvm_cv_target_os_type="SunOS" ;;
4060   *-*-win32*)
4061     llvm_cv_target_os_type="Win32" ;;
4062   *-*-mingw*)
4063     llvm_cv_target_os_type="MingW" ;;
4064   *-*-haiku*)
4065     llvm_cv_target_os_type="Haiku" ;;
4066   *-*-rtems*)
4067     llvm_cv_target_os_type="RTEMS" ;;
4068   *-*-nacl*)
4069     llvm_cv_target_os_type="NativeClient" ;;
4070   *-unknown-eabi*)
4071     llvm_cv_target_os_type="Freestanding" ;;
4072   *)
4073     llvm_cv_target_os_type="Unknown" ;;
4074 esac
4075 fi
4076 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4077 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4078
4079 if test "$llvm_cv_os_type" = "Unknown" ; then
4080   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4081 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4082    { (exit 1); exit 1; }; }
4083 fi
4084
4085 OS=$llvm_cv_os_type
4086
4087 HOST_OS=$llvm_cv_os_type
4088
4089 TARGET_OS=$llvm_cv_target_os_type
4090
4091
4092 LINKALL=$llvm_cv_link_all_option
4093
4094 NOLINKALL=$llvm_cv_no_link_all_option
4095
4096
4097 case $llvm_cv_platform_type in
4098   Unix)
4099
4100 cat >>confdefs.h <<\_ACEOF
4101 #define LLVM_ON_UNIX 1
4102 _ACEOF
4103
4104     LLVM_ON_UNIX=1
4105
4106     LLVM_ON_WIN32=0
4107
4108     ;;
4109   Win32)
4110
4111 cat >>confdefs.h <<\_ACEOF
4112 #define LLVM_ON_WIN32 1
4113 _ACEOF
4114
4115     LLVM_ON_UNIX=0
4116
4117     LLVM_ON_WIN32=1
4118
4119     ;;
4120 esac
4121
4122 { echo "$as_me:$LINENO: checking target architecture" >&5
4123 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4124 if test "${llvm_cv_target_arch+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   case $target in
4128   i?86-*)                 llvm_cv_target_arch="x86" ;;
4129   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4130   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4131   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4132   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4133   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4134   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4135   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4136   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4137   xcore-*)                llvm_cv_target_arch="XCore" ;;
4138   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4139   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4140   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4141   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4142   *)                      llvm_cv_target_arch="Unknown" ;;
4143 esac
4144 fi
4145 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4146 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4147
4148 if test "$llvm_cv_target_arch" = "Unknown" ; then
4149   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4150 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4151 fi
4152
4153 case "$llvm_cv_target_arch" in
4154     x86)     LLVM_NATIVE_ARCH="X86" ;;
4155     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4156     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4157 esac
4158
4159 ARCH=$llvm_cv_target_arch
4160
4161 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4162
4163
4164 case $host in
4165   i?86-*)                 host_arch="x86" ;;
4166   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4167   sparc*-*)               host_arch="Sparc" ;;
4168   powerpc*-*)             host_arch="PowerPC" ;;
4169   arm64*-*)               host_arch="AArch64" ;;
4170   arm*-*)                 host_arch="ARM" ;;
4171   aarch64*-*)             host_arch="AArch64" ;;
4172   mips-* | mips64-*)      host_arch="Mips" ;;
4173   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4174   xcore-*)                host_arch="XCore" ;;
4175   msp430-*)               host_arch="MSP430" ;;
4176   hexagon-*)              host_arch="Hexagon" ;;
4177   s390x-*)                host_arch="SystemZ" ;;
4178   *)                      host_arch="Unknown" ;;
4179 esac
4180
4181 if test "$host_arch" = "Unknown" ; then
4182   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4183 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4184 fi
4185
4186 HOST_ARCH=$host_arch
4187
4188
4189 if test "$cross_compiling" = yes; then
4190   LLVM_CROSS_COMPILING=1
4191
4192
4193 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4194 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4195 if test "${ac_cv_build_exeext+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4199   ac_cv_build_exeext=.exe
4200 else
4201   ac_build_prefix=${build_alias}-
4202
4203   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_build_prefix}gcc; ac_word=$2
4205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4207 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   if test -n "$BUILD_CC"; then
4211   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4220     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225 done
4226 IFS=$as_save_IFS
4227
4228 fi
4229 fi
4230 BUILD_CC=$ac_cv_prog_BUILD_CC
4231 if test -n "$BUILD_CC"; then
4232   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4233 echo "${ECHO_T}$BUILD_CC" >&6; }
4234 else
4235   { echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6; }
4237 fi
4238
4239
4240   if test -z "$BUILD_CC"; then
4241      # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$BUILD_CC"; then
4249   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4258     ac_cv_prog_BUILD_CC="gcc"
4259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 BUILD_CC=$ac_cv_prog_BUILD_CC
4269 if test -n "$BUILD_CC"; then
4270   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4271 echo "${ECHO_T}$BUILD_CC" >&6; }
4272 else
4273   { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4275 fi
4276
4277
4278      if test -z "$BUILD_CC"; then
4279        # Extract the first word of "cc", so it can be a program name with args.
4280 set dummy cc; ac_word=$2
4281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4283 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   if test -n "$BUILD_CC"; then
4287   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4288 else
4289   ac_prog_rejected=no
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293   IFS=$as_save_IFS
4294   test -z "$as_dir" && as_dir=.
4295   for ac_exec_ext in '' $ac_executable_extensions; do
4296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4297     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4298        ac_prog_rejected=yes
4299        continue
4300      fi
4301     ac_cv_prog_BUILD_CC="cc"
4302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306 done
4307 IFS=$as_save_IFS
4308
4309 if test $ac_prog_rejected = yes; then
4310   # We found a bogon in the path, so make sure we never use it.
4311   set dummy $ac_cv_prog_BUILD_CC
4312   shift
4313   if test $# != 0; then
4314     # We chose a different compiler from the bogus one.
4315     # However, it has the same basename, so the bogon will be chosen
4316     # first if we set BUILD_CC to just the basename; use the full file name.
4317     shift
4318     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4319   fi
4320 fi
4321 fi
4322 fi
4323 BUILD_CC=$ac_cv_prog_BUILD_CC
4324 if test -n "$BUILD_CC"; then
4325   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4326 echo "${ECHO_T}$BUILD_CC" >&6; }
4327 else
4328   { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4330 fi
4331
4332
4333      fi
4334   fi
4335   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4336 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4337    { (exit 1); exit 1; }; }
4338   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4339   rm -f conftest*
4340   echo 'int main () { return 0; }' > conftest.$ac_ext
4341   ac_cv_build_exeext=
4342   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4343   (eval $ac_build_link) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; then
4347     for file in conftest.*; do
4348       case $file in
4349       *.c | *.o | *.obj | *.dSYM) ;;
4350       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4351       esac
4352     done
4353   else
4354     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4355 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4356    { (exit 1); exit 1; }; }
4357   fi
4358   rm -f conftest*
4359   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4360 fi
4361 fi
4362
4363 BUILD_EXEEXT=""
4364 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4365 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4366 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4367 ac_build_exeext=$BUILD_EXEEXT
4368
4369   ac_build_prefix=${build_alias}-
4370   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4371 set dummy ${ac_build_prefix}g++; ac_word=$2
4372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   if test -n "$BUILD_CXX"; then
4378   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385   for ac_exec_ext in '' $ac_executable_extensions; do
4386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4387     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392 done
4393 IFS=$as_save_IFS
4394
4395 fi
4396 fi
4397 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4398 if test -n "$BUILD_CXX"; then
4399   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4400 echo "${ECHO_T}$BUILD_CXX" >&6; }
4401 else
4402   { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4404 fi
4405
4406
4407   if test -z "$BUILD_CXX"; then
4408      # Extract the first word of "g++", so it can be a program name with args.
4409 set dummy g++; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   if test -n "$BUILD_CXX"; then
4416   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4425     ac_cv_prog_BUILD_CXX="g++"
4426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4436 if test -n "$BUILD_CXX"; then
4437   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4438 echo "${ECHO_T}$BUILD_CXX" >&6; }
4439 else
4440   { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4442 fi
4443
4444
4445      if test -z "$BUILD_CXX"; then
4446        # Extract the first word of "c++", so it can be a program name with args.
4447 set dummy c++; ac_word=$2
4448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4450 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   if test -n "$BUILD_CXX"; then
4454   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4455 else
4456   ac_prog_rejected=no
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4464     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4465        ac_prog_rejected=yes
4466        continue
4467      fi
4468     ac_cv_prog_BUILD_CXX="c++"
4469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476 if test $ac_prog_rejected = yes; then
4477   # We found a bogon in the path, so make sure we never use it.
4478   set dummy $ac_cv_prog_BUILD_CXX
4479   shift
4480   if test $# != 0; then
4481     # We chose a different compiler from the bogus one.
4482     # However, it has the same basename, so the bogon will be chosen
4483     # first if we set BUILD_CXX to just the basename; use the full file name.
4484     shift
4485     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4486   fi
4487 fi
4488 fi
4489 fi
4490 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4491 if test -n "$BUILD_CXX"; then
4492   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4493 echo "${ECHO_T}$BUILD_CXX" >&6; }
4494 else
4495   { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4497 fi
4498
4499
4500      fi
4501   fi
4502 else
4503   LLVM_CROSS_COMPILING=0
4504
4505 fi
4506
4507 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4508   cvsbuild="yes"
4509   optimize="no"
4510   CVSBUILD=CVSBUILD=1
4511
4512 else
4513   cvsbuild="no"
4514   optimize="yes"
4515 fi
4516
4517
4518 # Check whether --enable-libcpp was given.
4519 if test "${enable_libcpp+set}" = set; then
4520   enableval=$enable_libcpp;
4521 else
4522   enableval=default
4523 fi
4524
4525 case "$enableval" in
4526   yes) ENABLE_LIBCPP=1
4527  ;;
4528   no)  ENABLE_LIBCPP=0
4529  ;;
4530   default) ENABLE_LIBCPP=0
4531 ;;
4532   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4533 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4534    { (exit 1); exit 1; }; } ;;
4535 esac
4536
4537 # Check whether --enable-compiler-version-checks was given.
4538 if test "${enable_compiler_version_checks+set}" = set; then
4539   enableval=$enable_compiler_version_checks;
4540 else
4541   enableval=default
4542 fi
4543
4544 case "$enableval" in
4545   no)
4546     ;;
4547   yes|default)
4548     ac_ext=cpp
4549 ac_cpp='$CXXCPP $CPPFLAGS'
4550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4553
4554     case "$llvm_cv_cxx_compiler" in
4555     clang)
4556       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4557 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4558       cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564
4565 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4566 #error This version of Clang is too old to build LLVM
4567 #endif
4568
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4572 case "(($ac_try" in
4573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574   *) ac_try_echo=$ac_try;;
4575 esac
4576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4577   (eval "$ac_compile") 2>conftest.er1
4578   ac_status=$?
4579   grep -v '^ *+' conftest.er1 >conftest.err
4580   rm -f conftest.er1
4581   cat conftest.err >&5
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } &&
4584          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4585   { (case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590   (eval "$ac_try") 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; } &&
4594          { ac_try='test -s conftest.$ac_objext'
4595   { (case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600   (eval "$ac_try") 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; }; then
4604   { echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6; }
4606 else
4607   echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610         { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612            { { echo "$as_me:$LINENO: error:
4613 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4614 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4615 bypass these sanity checks." >&5
4616 echo "$as_me: error:
4617 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4618 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4619 bypass these sanity checks." >&2;}
4620    { (exit 1); exit 1; }; }
4621 fi
4622
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624
4625                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4626         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4627 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4628         llvm_cv_old_cxxflags="$CXXFLAGS"
4629         CXXFLAGS="$CXXFLAGS -std=c++0x"
4630         cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636
4637 #include <atomic>
4638 std::atomic<float> x(0.0f);
4639 int main() { return (float)x; }
4640
4641 _ACEOF
4642 rm -f conftest.$ac_objext conftest$ac_exeext
4643 if { (ac_try="$ac_link"
4644 case "(($ac_try" in
4645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646   *) ac_try_echo=$ac_try;;
4647 esac
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649   (eval "$ac_link") 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } &&
4656          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4657   { (case "(($ac_try" in
4658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659   *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662   (eval "$ac_try") 2>&5
4663   ac_status=$?
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); }; } &&
4666          { ac_try='test -s conftest$ac_exeext'
4667   { (case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672   (eval "$ac_try") 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   { echo "$as_me:$LINENO: result: yes" >&5
4677 echo "${ECHO_T}yes" >&6; }
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682         { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4684              { { echo "$as_me:$LINENO: error:
4685 We detected a missing feature in the standard C++ library that was known to be
4686 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4687 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4688 than 4.7. You will need to update your system and ensure Clang uses the newer
4689 standard library.
4690
4691 If this error is incorrect or you need to force things to work, you may pass
4692 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4693 echo "$as_me: error:
4694 We detected a missing feature in the standard C++ library that was known to be
4695 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4696 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4697 than 4.7. You will need to update your system and ensure Clang uses the newer
4698 standard library.
4699
4700 If this error is incorrect or you need to force things to work, you may pass
4701 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4702    { (exit 1); exit 1; }; }
4703 fi
4704
4705 rm -f core conftest.err conftest.$ac_objext \
4706       conftest$ac_exeext conftest.$ac_ext
4707         CXXFLAGS="$llvm_cv_old_cxxflags"
4708       fi
4709       ;;
4710     gcc)
4711       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4712 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4713       cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719
4720 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4721 #error This version of GCC is too old to build LLVM
4722 #endif
4723
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (ac_try="$ac_compile"
4727 case "(($ac_try" in
4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729   *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732   (eval "$ac_compile") 2>conftest.er1
4733   ac_status=$?
4734   grep -v '^ *+' conftest.er1 >conftest.err
4735   rm -f conftest.er1
4736   cat conftest.err >&5
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } &&
4739          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4740   { (case "(($ac_try" in
4741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742   *) ac_try_echo=$ac_try;;
4743 esac
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745   (eval "$ac_try") 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; } &&
4749          { ac_try='test -s conftest.$ac_objext'
4750   { (case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755   (eval "$ac_try") 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   { echo "$as_me:$LINENO: result: yes" >&5
4760 echo "${ECHO_T}yes" >&6; }
4761 else
4762   echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765         { echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6; }
4767            { { echo "$as_me:$LINENO: error:
4768 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4769 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4770 bypass these sanity checks." >&5
4771 echo "$as_me: error:
4772 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4773 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4774 bypass these sanity checks." >&2;}
4775    { (exit 1); exit 1; }; }
4776 fi
4777
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779       ;;
4780     unknown)
4781       ;;
4782     esac
4783     ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789     ;;
4790   *)
4791     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4792 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4793    { (exit 1); exit 1; }; }
4794     ;;
4795 esac
4796
4797 # Check whether --enable-cxx1y was given.
4798 if test "${enable_cxx1y+set}" = set; then
4799   enableval=$enable_cxx1y;
4800 else
4801   enableval=default
4802 fi
4803
4804 case "$enableval" in
4805   yes) ENABLE_CXX1Y=1
4806  ;;
4807   no)  ENABLE_CXX1Y=0
4808  ;;
4809   default) ENABLE_CXX1Y=0
4810 ;;
4811   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4813    { (exit 1); exit 1; }; } ;;
4814 esac
4815
4816 # Check whether --enable-split-dwarf was given.
4817 if test "${enable_split_dwarf+set}" = set; then
4818   enableval=$enable_split_dwarf;
4819 else
4820   enableval=default
4821 fi
4822
4823 case "$enableval" in
4824   yes) ENABLE_SPLIT_DWARF=1
4825  ;;
4826   no)  ENABLE_SPLIT_DWARF=0
4827  ;;
4828   default) ENABLE_SPLIT_DWARF=0
4829 ;;
4830   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4831 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4832    { (exit 1); exit 1; }; } ;;
4833 esac
4834
4835 clang_arcmt="yes"
4836 # Check whether --enable-clang-arcmt was given.
4837 if test "${enable_clang_arcmt+set}" = set; then
4838   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4839 else
4840   enableval="yes"
4841 fi
4842
4843 case "$enableval" in
4844   yes) ENABLE_CLANG_ARCMT=1
4845  ;;
4846   no)  ENABLE_CLANG_ARCMT=0
4847  ;;
4848   default) ENABLE_CLANG_ARCMT=1
4849 ;;
4850   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4852    { (exit 1); exit 1; }; } ;;
4853 esac
4854
4855 clang_plugin_support="yes"
4856 # Check whether --enable-clang-plugin-support was given.
4857 if test "${enable_clang_plugin_support+set}" = set; then
4858   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4859 else
4860   enableval="yes"
4861 fi
4862
4863 case "$enableval" in
4864   yes) CLANG_PLUGIN_SUPPORT=1
4865  ;;
4866   no)  CLANG_PLUGIN_SUPPORT=0
4867  ;;
4868   default) CLANG_PLUGIN_SUPPORT=1
4869 ;;
4870   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4872    { (exit 1); exit 1; }; } ;;
4873 esac
4874
4875 clang_static_analyzer="yes"
4876 # Check whether --enable-clang-static-analyzer was given.
4877 if test "${enable_clang_static_analyzer+set}" = set; then
4878   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4879 else
4880   enableval="yes"
4881 fi
4882
4883 case "$enableval" in
4884   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4885  ;;
4886   no)
4887     if test ${clang_arcmt} != "no" ; then
4888       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4889 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4890    { (exit 1); exit 1; }; }
4891     fi
4892     ENABLE_CLANG_STATIC_ANALYZER=0
4893
4894     ;;
4895   default) ENABLE_CLANG_STATIC_ANALYZER=1
4896 ;;
4897   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4899    { (exit 1); exit 1; }; } ;;
4900 esac
4901
4902 # Check whether --enable-optimized was given.
4903 if test "${enable_optimized+set}" = set; then
4904   enableval=$enable_optimized;
4905 else
4906   enableval=$optimize
4907 fi
4908
4909 if test ${enableval} = "no" ; then
4910   ENABLE_OPTIMIZED=
4911
4912 else
4913   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4914
4915 fi
4916
4917 # Check whether --enable-profiling was given.
4918 if test "${enable_profiling+set}" = set; then
4919   enableval=$enable_profiling;
4920 else
4921   enableval="no"
4922 fi
4923
4924 if test ${enableval} = "no" ; then
4925   ENABLE_PROFILING=
4926
4927 else
4928   ENABLE_PROFILING=ENABLE_PROFILING=1
4929
4930 fi
4931
4932 # Check whether --enable-assertions was given.
4933 if test "${enable_assertions+set}" = set; then
4934   enableval=$enable_assertions;
4935 else
4936   enableval="yes"
4937 fi
4938
4939 if test ${enableval} = "yes" ; then
4940   DISABLE_ASSERTIONS=
4941
4942 else
4943   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4944
4945 fi
4946
4947 # Check whether --enable-werror was given.
4948 if test "${enable_werror+set}" = set; then
4949   enableval=$enable_werror;
4950 else
4951   enableval="no"
4952 fi
4953
4954 case "$enableval" in
4955   yes) ENABLE_WERROR=1
4956  ;;
4957   no)  ENABLE_WERROR=0
4958  ;;
4959   default) ENABLE_WERROR=0
4960 ;;
4961   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4962 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4963    { (exit 1); exit 1; }; } ;;
4964 esac
4965
4966 # Check whether --enable-expensive-checks was given.
4967 if test "${enable_expensive_checks+set}" = set; then
4968   enableval=$enable_expensive_checks;
4969 else
4970   enableval="no"
4971 fi
4972
4973 if test ${enableval} = "yes" ; then
4974   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4975
4976   EXPENSIVE_CHECKS=yes
4977
4978 else
4979   ENABLE_EXPENSIVE_CHECKS=
4980
4981   EXPENSIVE_CHECKS=no
4982
4983 fi
4984
4985 # Check whether --enable-debug-runtime was given.
4986 if test "${enable_debug_runtime+set}" = set; then
4987   enableval=$enable_debug_runtime;
4988 else
4989   enableval=no
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   DEBUG_RUNTIME=
4994
4995 else
4996   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4997
4998 fi
4999
5000 # Check whether --enable-debug-symbols was given.
5001 if test "${enable_debug_symbols+set}" = set; then
5002   enableval=$enable_debug_symbols;
5003 else
5004   enableval=no
5005 fi
5006
5007 if test ${enableval} = "no" ; then
5008   DEBUG_SYMBOLS=
5009
5010 else
5011   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5012
5013 fi
5014
5015 # Check whether --enable-keep-symbols was given.
5016 if test "${enable_keep_symbols+set}" = set; then
5017   enableval=$enable_keep_symbols;
5018 else
5019   enableval=no
5020 fi
5021
5022 if test ${enableval} = "no" ; then
5023   KEEP_SYMBOLS=
5024
5025 else
5026   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5027
5028 fi
5029
5030 # Check whether --enable-jit was given.
5031 if test "${enable_jit+set}" = set; then
5032   enableval=$enable_jit;
5033 else
5034   enableval=default
5035 fi
5036
5037 if test ${enableval} = "no"
5038 then
5039   JIT=
5040
5041 else
5042   case "$llvm_cv_target_arch" in
5043     x86)         TARGET_HAS_JIT=1
5044  ;;
5045     Sparc)       TARGET_HAS_JIT=0
5046  ;;
5047     PowerPC)     TARGET_HAS_JIT=1
5048  ;;
5049     x86_64)      TARGET_HAS_JIT=1
5050  ;;
5051     ARM)         TARGET_HAS_JIT=1
5052  ;;
5053     Mips)        TARGET_HAS_JIT=1
5054  ;;
5055     XCore)       TARGET_HAS_JIT=0
5056  ;;
5057     MSP430)      TARGET_HAS_JIT=0
5058  ;;
5059     Hexagon)     TARGET_HAS_JIT=0
5060  ;;
5061     NVPTX)       TARGET_HAS_JIT=0
5062  ;;
5063     SystemZ)     TARGET_HAS_JIT=1
5064  ;;
5065     *)           TARGET_HAS_JIT=0
5066  ;;
5067   esac
5068 fi
5069
5070 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5071 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5072
5073
5074 # Check whether --enable-docs was given.
5075 if test "${enable_docs+set}" = set; then
5076   enableval=$enable_docs;
5077 else
5078   enableval=default
5079 fi
5080
5081 case "$enableval" in
5082   yes) ENABLE_DOCS=1
5083  ;;
5084   no)  ENABLE_DOCS=0
5085  ;;
5086   default) ENABLE_DOCS=1
5087  ;;
5088   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5090    { (exit 1); exit 1; }; } ;;
5091 esac
5092
5093 # Check whether --enable-doxygen was given.
5094 if test "${enable_doxygen+set}" = set; then
5095   enableval=$enable_doxygen;
5096 else
5097   enableval=default
5098 fi
5099
5100 case "$enableval" in
5101   yes) ENABLE_DOXYGEN=1
5102  ;;
5103   no)  ENABLE_DOXYGEN=0
5104  ;;
5105   default) ENABLE_DOXYGEN=0
5106  ;;
5107   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5109    { (exit 1); exit 1; }; } ;;
5110 esac
5111
5112 # Check whether --enable-threads was given.
5113 if test "${enable_threads+set}" = set; then
5114   enableval=$enable_threads;
5115 else
5116   enableval=default
5117 fi
5118
5119 case "$enableval" in
5120   yes) LLVM_ENABLE_THREADS=1
5121  ;;
5122   no)  LLVM_ENABLE_THREADS=0
5123  ;;
5124   default) LLVM_ENABLE_THREADS=1
5125  ;;
5126   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5128    { (exit 1); exit 1; }; } ;;
5129 esac
5130
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5133 _ACEOF
5134
5135
5136 # Check whether --enable-pthreads was given.
5137 if test "${enable_pthreads+set}" = set; then
5138   enableval=$enable_pthreads;
5139 else
5140   enableval=default
5141 fi
5142
5143 case "$enableval" in
5144   yes) ENABLE_PTHREADS=1
5145  ;;
5146   no)  ENABLE_PTHREADS=0
5147  ;;
5148   default) ENABLE_PTHREADS=1
5149  ;;
5150   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5151 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5152    { (exit 1); exit 1; }; } ;;
5153 esac
5154
5155 # Check whether --enable-zlib was given.
5156 if test "${enable_zlib+set}" = set; then
5157   enableval=$enable_zlib;
5158 else
5159   enableval=default
5160 fi
5161
5162 case "$enableval" in
5163   yes) LLVM_ENABLE_ZLIB=1
5164  ;;
5165   no)  LLVM_ENABLE_ZLIB=0
5166  ;;
5167   default) LLVM_ENABLE_ZLIB=1
5168  ;;
5169   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5171    { (exit 1); exit 1; }; } ;;
5172 esac
5173
5174 cat >>confdefs.h <<_ACEOF
5175 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5176 _ACEOF
5177
5178
5179 # Check whether --enable-pic was given.
5180 if test "${enable_pic+set}" = set; then
5181   enableval=$enable_pic;
5182 else
5183   enableval=default
5184 fi
5185
5186 case "$enableval" in
5187   yes) ENABLE_PIC=1
5188  ;;
5189   no)  ENABLE_PIC=0
5190  ;;
5191   default) ENABLE_PIC=1
5192  ;;
5193   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5195    { (exit 1); exit 1; }; } ;;
5196 esac
5197
5198 cat >>confdefs.h <<_ACEOF
5199 #define ENABLE_PIC $ENABLE_PIC
5200 _ACEOF
5201
5202
5203 # Check whether --enable-shared was given.
5204 if test "${enable_shared+set}" = set; then
5205   enableval=$enable_shared;
5206 else
5207   enableval=default
5208 fi
5209
5210 case "$enableval" in
5211   yes) ENABLE_SHARED=1
5212  ;;
5213   no)  ENABLE_SHARED=0
5214  ;;
5215   default) ENABLE_SHARED=0
5216  ;;
5217   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5219    { (exit 1); exit 1; }; } ;;
5220 esac
5221
5222 # Check whether --enable-embed-stdcxx was given.
5223 if test "${enable_embed_stdcxx+set}" = set; then
5224   enableval=$enable_embed_stdcxx;
5225 else
5226   enableval=default
5227 fi
5228
5229 case "$enableval" in
5230   yes) ENABLE_EMBED_STDCXX=1
5231  ;;
5232   no)  ENABLE_EMBED_STDCXX=0
5233  ;;
5234   default) ENABLE_EMBED_STDCXX=0
5235  ;;
5236   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5237 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5238    { (exit 1); exit 1; }; } ;;
5239 esac
5240
5241 # Check whether --enable-timestamps was given.
5242 if test "${enable_timestamps+set}" = set; then
5243   enableval=$enable_timestamps;
5244 else
5245   enableval=default
5246 fi
5247
5248 case "$enableval" in
5249   yes) ENABLE_TIMESTAMPS=1
5250  ;;
5251   no)  ENABLE_TIMESTAMPS=0
5252  ;;
5253   default) ENABLE_TIMESTAMPS=1
5254  ;;
5255   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5256 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5257    { (exit 1); exit 1; }; } ;;
5258 esac
5259
5260 cat >>confdefs.h <<_ACEOF
5261 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5262 _ACEOF
5263
5264
5265 # Check whether --enable-backtraces was given.
5266 if test "${enable_backtraces+set}" = set; then
5267   enableval=$enable_backtraces; case "$enableval" in
5268     yes) llvm_cv_enable_backtraces="yes" ;;
5269     no)  llvm_cv_enable_backtraces="no"  ;;
5270     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5272    { (exit 1); exit 1; }; } ;;
5273   esac
5274 else
5275   llvm_cv_enable_backtraces="yes"
5276 fi
5277
5278 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5279
5280 cat >>confdefs.h <<\_ACEOF
5281 #define ENABLE_BACKTRACES 1
5282 _ACEOF
5283
5284 fi
5285
5286 # Check whether --enable-crash-overrides was given.
5287 if test "${enable_crash_overrides+set}" = set; then
5288   enableval=$enable_crash_overrides; case "$enableval" in
5289     yes) llvm_cv_enable_crash_overrides="yes" ;;
5290     no)  llvm_cv_enable_crash_overrides="no"  ;;
5291     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5293    { (exit 1); exit 1; }; } ;;
5294   esac
5295 else
5296   llvm_cv_enable_crash_overrides="yes"
5297 fi
5298
5299 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5300
5301 cat >>confdefs.h <<\_ACEOF
5302 #define ENABLE_CRASH_OVERRIDES 1
5303 _ACEOF
5304
5305 fi
5306
5307 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5308 ALL_TARGETS=$ALL_TARGETS
5309
5310
5311 TARGETS_TO_BUILD=""
5312 # Check whether --enable-targets was given.
5313 if test "${enable_targets+set}" = set; then
5314   enableval=$enable_targets;
5315 else
5316   enableval=all
5317 fi
5318
5319 if test "$enableval" = host-only ; then
5320   enableval=host
5321 fi
5322 case "$enableval" in
5323   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5324   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5325       case "$a_target" in
5326         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5332         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5333         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5338         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5339         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5340         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5341         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5342         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5343         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5344         host) case "$llvm_cv_target_arch" in
5345             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5347             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5348             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5349             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5350             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5351             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5352             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5353             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5354             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5355             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5356             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5357             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5358 echo "$as_me: error: Can not set target to build" >&2;}
5359    { (exit 1); exit 1; }; } ;;
5360           esac ;;
5361         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5362 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5363    { (exit 1); exit 1; }; } ;;
5364       esac
5365   done
5366   ;;
5367 esac
5368
5369 # Check whether --enable-experimental-targets was given.
5370 if test "${enable_experimental_targets+set}" = set; then
5371   enableval=$enable_experimental_targets;
5372 else
5373   enableval=disable
5374 fi
5375
5376
5377 if test ${enableval} != "disable"
5378 then
5379   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5380 fi
5381
5382 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5383
5384
5385 for a_target in $TARGETS_TO_BUILD; do
5386   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5390 _ACEOF
5391
5392     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5394     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5395     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5396     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5398     fi
5399     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5401     fi
5402
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5405 _ACEOF
5406
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5410 _ACEOF
5411
5412
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5415 _ACEOF
5416
5417
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5420 _ACEOF
5421
5422     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5423
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5426 _ACEOF
5427
5428     fi
5429     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5433 _ACEOF
5434
5435     fi
5436   fi
5437 done
5438
5439 LLVM_ENUM_TARGETS=""
5440 LLVM_ENUM_ASM_PRINTERS=""
5441 LLVM_ENUM_ASM_PARSERS=""
5442 LLVM_ENUM_DISASSEMBLERS=""
5443 for target_to_build in $TARGETS_TO_BUILD; do
5444   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5445   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5446     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5447   fi
5448   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5450   fi
5451   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5453   fi
5454 done
5455
5456
5457
5458
5459
5460
5461 # Check whether --with-optimize-option was given.
5462 if test "${with_optimize_option+set}" = set; then
5463   withval=$with_optimize_option;
5464 else
5465   withval=default
5466 fi
5467
5468 { echo "$as_me:$LINENO: checking optimization flags" >&5
5469 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5470 case "$withval" in
5471   default)
5472     case "$llvm_cv_os_type" in
5473     FreeBSD) optimize_option=-O2 ;;
5474     MingW) optimize_option=-O2 ;;
5475     *)     optimize_option=-O3 ;;
5476     esac ;;
5477   *) optimize_option="$withval" ;;
5478 esac
5479 OPTIMIZE_OPTION=$optimize_option
5480
5481 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5482 echo "${ECHO_T}$optimize_option" >&6; }
5483
5484
5485 # Check whether --with-extra-options was given.
5486 if test "${with_extra_options+set}" = set; then
5487   withval=$with_extra_options;
5488 else
5489   withval=default
5490 fi
5491
5492 case "$withval" in
5493   default) EXTRA_OPTIONS= ;;
5494   *) EXTRA_OPTIONS=$withval ;;
5495 esac
5496 EXTRA_OPTIONS=$EXTRA_OPTIONS
5497
5498
5499
5500 # Check whether --with-extra-ld-options was given.
5501 if test "${with_extra_ld_options+set}" = set; then
5502   withval=$with_extra_ld_options;
5503 else
5504   withval=default
5505 fi
5506
5507 case "$withval" in
5508   default) EXTRA_LD_OPTIONS= ;;
5509   *) EXTRA_LD_OPTIONS=$withval ;;
5510 esac
5511 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5512
5513
5514 # Check whether --enable-bindings was given.
5515 if test "${enable_bindings+set}" = set; then
5516   enableval=$enable_bindings;
5517 else
5518   enableval=default
5519 fi
5520
5521 BINDINGS_TO_BUILD=""
5522 case "$enableval" in
5523   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5524   all ) BINDINGS_TO_BUILD="ocaml" ;;
5525   none | no) BINDINGS_TO_BUILD="" ;;
5526   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527       case "$a_binding" in
5528         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5529         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531    { (exit 1); exit 1; }; } ;;
5532       esac
5533   done
5534   ;;
5535 esac
5536
5537
5538 # Check whether --with-ocaml-libdir was given.
5539 if test "${with_ocaml_libdir+set}" = set; then
5540   withval=$with_ocaml_libdir;
5541 else
5542   withval=auto
5543 fi
5544
5545 case "$withval" in
5546   auto) with_ocaml_libdir="$withval" ;;
5547   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5548   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550    { (exit 1); exit 1; }; } ;;
5551 esac
5552
5553
5554 # Check whether --with-clang-srcdir was given.
5555 if test "${with_clang_srcdir+set}" = set; then
5556   withval=$with_clang_srcdir;
5557 else
5558   withval="-"
5559 fi
5560
5561 case "$withval" in
5562   -) clang_src_root="" ;;
5563   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564   *) clang_src_root="$ac_pwd/$withval" ;;
5565 esac
5566 CLANG_SRC_ROOT=$clang_src_root
5567
5568
5569
5570 # Check whether --with-clang-resource-dir was given.
5571 if test "${with_clang_resource_dir+set}" = set; then
5572   withval=$with_clang_resource_dir;
5573 else
5574   withval=""
5575 fi
5576
5577
5578 cat >>confdefs.h <<_ACEOF
5579 #define CLANG_RESOURCE_DIR "$withval"
5580 _ACEOF
5581
5582
5583
5584 # Check whether --with-c-include-dirs was given.
5585 if test "${with_c_include_dirs+set}" = set; then
5586   withval=$with_c_include_dirs;
5587 else
5588   withval=""
5589 fi
5590
5591
5592 cat >>confdefs.h <<_ACEOF
5593 #define C_INCLUDE_DIRS "$withval"
5594 _ACEOF
5595
5596
5597 # Clang normally uses the system c++ headers and libraries. With this option,
5598 # clang will use the ones provided by a gcc installation instead. This option should
5599 # be passed the same value that was used with --prefix when configuring gcc.
5600
5601 # Check whether --with-gcc-toolchain was given.
5602 if test "${with_gcc_toolchain+set}" = set; then
5603   withval=$with_gcc_toolchain;
5604 else
5605   withval=""
5606 fi
5607
5608
5609 cat >>confdefs.h <<_ACEOF
5610 #define GCC_INSTALL_PREFIX "$withval"
5611 _ACEOF
5612
5613
5614
5615 # Check whether --with-default-sysroot was given.
5616 if test "${with_default_sysroot+set}" = set; then
5617   withval=$with_default_sysroot;
5618 else
5619   withval=""
5620 fi
5621
5622
5623 cat >>confdefs.h <<_ACEOF
5624 #define DEFAULT_SYSROOT "$withval"
5625 _ACEOF
5626
5627
5628
5629 # Check whether --with-binutils-include was given.
5630 if test "${with_binutils_include+set}" = set; then
5631   withval=$with_binutils_include;
5632 else
5633   withval=default
5634 fi
5635
5636 case "$withval" in
5637   default) WITH_BINUTILS_INCDIR=default ;;
5638   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5639   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641    { (exit 1); exit 1; }; } ;;
5642 esac
5643 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5645
5646   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5648      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650    { (exit 1); exit 1; }; };
5651   fi
5652 fi
5653
5654
5655 # Check whether --with-bug-report-url was given.
5656 if test "${with_bug_report_url+set}" = set; then
5657   withval=$with_bug_report_url;
5658 else
5659   withval="http://llvm.org/bugs/"
5660 fi
5661
5662
5663 cat >>confdefs.h <<_ACEOF
5664 #define BUG_REPORT_URL "$withval"
5665 _ACEOF
5666
5667
5668 # Check whether --enable-terminfo was given.
5669 if test "${enable_terminfo+set}" = set; then
5670   enableval=$enable_terminfo; case "$enableval" in
5671     yes) llvm_cv_enable_terminfo="yes" ;;
5672     no)  llvm_cv_enable_terminfo="no"  ;;
5673     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5674 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5675    { (exit 1); exit 1; }; } ;;
5676   esac
5677 else
5678   llvm_cv_enable_terminfo="yes"
5679 fi
5680
5681 case "$llvm_cv_enable_terminfo" in
5682   yes) ENABLE_TERMINFO=1
5683  ;;
5684   no)  ENABLE_TERMINFO=0
5685  ;;
5686 esac
5687
5688 # Check whether --enable-libedit was given.
5689 if test "${enable_libedit+set}" = set; then
5690   enableval=$enable_libedit; case "$enableval" in
5691     yes) llvm_cv_enable_libedit="yes" ;;
5692     no)  llvm_cv_enable_libedit="no"  ;;
5693     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5694 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5695    { (exit 1); exit 1; }; } ;;
5696   esac
5697 else
5698   llvm_cv_enable_libedit="yes"
5699 fi
5700
5701
5702 # Check whether --enable-libffi was given.
5703 if test "${enable_libffi+set}" = set; then
5704   enableval=$enable_libffi; case "$enableval" in
5705     yes) llvm_cv_enable_libffi="yes" ;;
5706     no)  llvm_cv_enable_libffi="no"  ;;
5707     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5708 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5709    { (exit 1); exit 1; }; } ;;
5710   esac
5711 else
5712   llvm_cv_enable_libffi=no
5713 fi
5714
5715
5716
5717 # Check whether --with-internal-prefix was given.
5718 if test "${with_internal_prefix+set}" = set; then
5719   withval=$with_internal_prefix;
5720 else
5721   withval=""
5722 fi
5723
5724 INTERNAL_PREFIX=$withval
5725
5726
5727
5728 { echo "$as_me:$LINENO: checking for GNU make" >&5
5729 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5730 if test "${llvm_cv_gnu_make_command+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   llvm_cv_gnu_make_command=''
5734  for a in "$MAKE" make gmake gnumake ; do
5735   if test -z "$a" ; then continue ; fi ;
5736   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5737   then
5738    llvm_cv_gnu_make_command=$a ;
5739    break;
5740   fi
5741  done
5742 fi
5743 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5744 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5745  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5746    ifGNUmake='' ;
5747  else
5748    ifGNUmake='#' ;
5749    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5750 echo "${ECHO_T}\"Not found\"" >&6; };
5751  fi
5752
5753
5754 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5756 LN_S=$as_ln_s
5757 if test "$LN_S" = "ln -s"; then
5758   { echo "$as_me:$LINENO: result: yes" >&5
5759 echo "${ECHO_T}yes" >&6; }
5760 else
5761   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5762 echo "${ECHO_T}no, using $LN_S" >&6; }
5763 fi
5764
5765 # Extract the first word of "nm", so it can be a program name with args.
5766 set dummy nm; ac_word=$2
5767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5769 if test "${ac_cv_path_NM+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   case $NM in
5773   [\\/]* | ?:[\\/]*)
5774   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5775   ;;
5776   *)
5777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782   for ac_exec_ext in '' $ac_executable_extensions; do
5783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5784     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791
5792   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5793   ;;
5794 esac
5795 fi
5796 NM=$ac_cv_path_NM
5797 if test -n "$NM"; then
5798   { echo "$as_me:$LINENO: result: $NM" >&5
5799 echo "${ECHO_T}$NM" >&6; }
5800 else
5801   { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5803 fi
5804
5805
5806 # Extract the first word of "cmp", so it can be a program name with args.
5807 set dummy cmp; ac_word=$2
5808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810 if test "${ac_cv_path_CMP+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   case $CMP in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823   for ac_exec_ext in '' $ac_executable_extensions; do
5824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5825     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5834   ;;
5835 esac
5836 fi
5837 CMP=$ac_cv_path_CMP
5838 if test -n "$CMP"; then
5839   { echo "$as_me:$LINENO: result: $CMP" >&5
5840 echo "${ECHO_T}$CMP" >&6; }
5841 else
5842   { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5844 fi
5845
5846
5847 # Extract the first word of "cp", so it can be a program name with args.
5848 set dummy cp; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_path_CP+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   case $CP in
5855   [\\/]* | ?:[\\/]*)
5856   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5857   ;;
5858   *)
5859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5866     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5875   ;;
5876 esac
5877 fi
5878 CP=$ac_cv_path_CP
5879 if test -n "$CP"; then
5880   { echo "$as_me:$LINENO: result: $CP" >&5
5881 echo "${ECHO_T}$CP" >&6; }
5882 else
5883   { echo "$as_me:$LINENO: result: no" >&5
5884 echo "${ECHO_T}no" >&6; }
5885 fi
5886
5887
5888 # Extract the first word of "date", so it can be a program name with args.
5889 set dummy date; ac_word=$2
5890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5892 if test "${ac_cv_path_DATE+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   case $DATE in
5896   [\\/]* | ?:[\\/]*)
5897   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5898   ;;
5899   *)
5900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5907     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5916   ;;
5917 esac
5918 fi
5919 DATE=$ac_cv_path_DATE
5920 if test -n "$DATE"; then
5921   { echo "$as_me:$LINENO: result: $DATE" >&5
5922 echo "${ECHO_T}$DATE" >&6; }
5923 else
5924   { echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6; }
5926 fi
5927
5928
5929 # Extract the first word of "find", so it can be a program name with args.
5930 set dummy find; ac_word=$2
5931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5933 if test "${ac_cv_path_FIND+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   case $FIND in
5937   [\\/]* | ?:[\\/]*)
5938   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5939   ;;
5940   *)
5941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5948     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954 IFS=$as_save_IFS
5955
5956   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5957   ;;
5958 esac
5959 fi
5960 FIND=$ac_cv_path_FIND
5961 if test -n "$FIND"; then
5962   { echo "$as_me:$LINENO: result: $FIND" >&5
5963 echo "${ECHO_T}$FIND" >&6; }
5964 else
5965   { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5967 fi
5968
5969
5970 # Extract the first word of "grep", so it can be a program name with args.
5971 set dummy grep; ac_word=$2
5972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5974 if test "${ac_cv_path_GREP+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   case $GREP in
5978   [\\/]* | ?:[\\/]*)
5979   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5980   ;;
5981   *)
5982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985   IFS=$as_save_IFS
5986   test -z "$as_dir" && as_dir=.
5987   for ac_exec_ext in '' $ac_executable_extensions; do
5988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5989     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991     break 2
5992   fi
5993 done
5994 done
5995 IFS=$as_save_IFS
5996
5997   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5998   ;;
5999 esac
6000 fi
6001 GREP=$ac_cv_path_GREP
6002 if test -n "$GREP"; then
6003   { echo "$as_me:$LINENO: result: $GREP" >&5
6004 echo "${ECHO_T}$GREP" >&6; }
6005 else
6006   { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6008 fi
6009
6010
6011 # Extract the first word of "mkdir", so it can be a program name with args.
6012 set dummy mkdir; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_path_MKDIR+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   case $MKDIR in
6019   [\\/]* | ?:[\\/]*)
6020   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6021   ;;
6022   *)
6023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026   IFS=$as_save_IFS
6027   test -z "$as_dir" && as_dir=.
6028   for ac_exec_ext in '' $ac_executable_extensions; do
6029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6030     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032     break 2
6033   fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6039   ;;
6040 esac
6041 fi
6042 MKDIR=$ac_cv_path_MKDIR
6043 if test -n "$MKDIR"; then
6044   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6045 echo "${ECHO_T}$MKDIR" >&6; }
6046 else
6047   { echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6; }
6049 fi
6050
6051
6052 # Extract the first word of "mv", so it can be a program name with args.
6053 set dummy mv; ac_word=$2
6054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056 if test "${ac_cv_path_MV+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   case $MV in
6060   [\\/]* | ?:[\\/]*)
6061   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6062   ;;
6063   *)
6064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069   for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6080   ;;
6081 esac
6082 fi
6083 MV=$ac_cv_path_MV
6084 if test -n "$MV"; then
6085   { echo "$as_me:$LINENO: result: $MV" >&5
6086 echo "${ECHO_T}$MV" >&6; }
6087 else
6088   { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6090 fi
6091
6092
6093 if test -n "$ac_tool_prefix"; then
6094   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_RANLIB+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   if test -n "$RANLIB"; then
6102   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109   for ac_exec_ext in '' $ac_executable_extensions; do
6110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 RANLIB=$ac_cv_prog_RANLIB
6122 if test -n "$RANLIB"; then
6123   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6124 echo "${ECHO_T}$RANLIB" >&6; }
6125 else
6126   { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_prog_RANLIB"; then
6133   ac_ct_RANLIB=$RANLIB
6134   # Extract the first word of "ranlib", so it can be a program name with args.
6135 set dummy ranlib; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   if test -n "$ac_ct_RANLIB"; then
6142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149   for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_prog_ac_ct_RANLIB="ranlib"
6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6162 if test -n "$ac_ct_RANLIB"; then
6163   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6165 else
6166   { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6168 fi
6169
6170   if test "x$ac_ct_RANLIB" = x; then
6171     RANLIB=":"
6172   else
6173     case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176 whose name does not start with the host triplet.  If you think this
6177 configuration is useful to you, please write to autoconf@gnu.org." >&5
6178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet.  If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183     RANLIB=$ac_ct_RANLIB
6184   fi
6185 else
6186   RANLIB="$ac_cv_prog_RANLIB"
6187 fi
6188
6189 if test -n "$ac_tool_prefix"; then
6190   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}ar; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_AR+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if test -n "$AR"; then
6198   ac_cv_prog_AR="$AR" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205   for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_prog_AR="${ac_tool_prefix}ar"
6208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 AR=$ac_cv_prog_AR
6218 if test -n "$AR"; then
6219   { echo "$as_me:$LINENO: result: $AR" >&5
6220 echo "${ECHO_T}$AR" >&6; }
6221 else
6222   { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 fi
6225
6226
6227 fi
6228 if test -z "$ac_cv_prog_AR"; then
6229   ac_ct_AR=$AR
6230   # Extract the first word of "ar", so it can be a program name with args.
6231 set dummy ar; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   if test -n "$ac_ct_AR"; then
6238   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_ac_ct_AR="ar"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6258 if test -n "$ac_ct_AR"; then
6259   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6260 echo "${ECHO_T}$ac_ct_AR" >&6; }
6261 else
6262   { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6264 fi
6265
6266   if test "x$ac_ct_AR" = x; then
6267     AR="false"
6268   else
6269     case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272 whose name does not start with the host triplet.  If you think this
6273 configuration is useful to you, please write to autoconf@gnu.org." >&5
6274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet.  If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277 ac_tool_warned=yes ;;
6278 esac
6279     AR=$ac_ct_AR
6280   fi
6281 else
6282   AR="$ac_cv_prog_AR"
6283 fi
6284
6285 # Extract the first word of "rm", so it can be a program name with args.
6286 set dummy rm; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_path_RM+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   case $RM in
6293   [\\/]* | ?:[\\/]*)
6294   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6295   ;;
6296   *)
6297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302   for ac_exec_ext in '' $ac_executable_extensions; do
6303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6304     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6313   ;;
6314 esac
6315 fi
6316 RM=$ac_cv_path_RM
6317 if test -n "$RM"; then
6318   { echo "$as_me:$LINENO: result: $RM" >&5
6319 echo "${ECHO_T}$RM" >&6; }
6320 else
6321   { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6323 fi
6324
6325
6326 # Extract the first word of "sed", so it can be a program name with args.
6327 set dummy sed; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_SED+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   case $SED in
6334   [\\/]* | ?:[\\/]*)
6335   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6336   ;;
6337   *)
6338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343   for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6354   ;;
6355 esac
6356 fi
6357 SED=$ac_cv_path_SED
6358 if test -n "$SED"; then
6359   { echo "$as_me:$LINENO: result: $SED" >&5
6360 echo "${ECHO_T}$SED" >&6; }
6361 else
6362   { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6364 fi
6365
6366
6367 # Extract the first word of "tar", so it can be a program name with args.
6368 set dummy tar; ac_word=$2
6369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371 if test "${ac_cv_path_TAR+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   case $TAR in
6375   [\\/]* | ?:[\\/]*)
6376   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6377   ;;
6378   *)
6379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384   for ac_exec_ext in '' $ac_executable_extensions; do
6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6395   ;;
6396 esac
6397 fi
6398 TAR=$ac_cv_path_TAR
6399 if test -n "$TAR"; then
6400   { echo "$as_me:$LINENO: result: $TAR" >&5
6401 echo "${ECHO_T}$TAR" >&6; }
6402 else
6403   { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6405 fi
6406
6407
6408 # Extract the first word of "pwd", so it can be a program name with args.
6409 set dummy pwd; ac_word=$2
6410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6412 if test "${ac_cv_path_BINPWD+set}" = set; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415   case $BINPWD in
6416   [\\/]* | ?:[\\/]*)
6417   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6418   ;;
6419   *)
6420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425   for ac_exec_ext in '' $ac_executable_extensions; do
6426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6427     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432 done
6433 IFS=$as_save_IFS
6434
6435   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6436   ;;
6437 esac
6438 fi
6439 BINPWD=$ac_cv_path_BINPWD
6440 if test -n "$BINPWD"; then
6441   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6442 echo "${ECHO_T}$BINPWD" >&6; }
6443 else
6444   { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6446 fi
6447
6448
6449
6450 # Extract the first word of "dot", so it can be a program name with args.
6451 set dummy dot; ac_word=$2
6452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454 if test "${ac_cv_path_DOT+set}" = set; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457   case $DOT in
6458   [\\/]* | ?:[\\/]*)
6459   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6460   ;;
6461   *)
6462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467   for ac_exec_ext in '' $ac_executable_extensions; do
6468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6476
6477   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6478   ;;
6479 esac
6480 fi
6481 DOT=$ac_cv_path_DOT
6482 if test -n "$DOT"; then
6483   { echo "$as_me:$LINENO: result: $DOT" >&5
6484 echo "${ECHO_T}$DOT" >&6; }
6485 else
6486   { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6488 fi
6489
6490
6491 if test "$DOT" != "echo dot" ; then
6492
6493 cat >>confdefs.h <<\_ACEOF
6494 #define HAVE_DOT 1
6495 _ACEOF
6496
6497     if test "$llvm_cv_os_type" = "MingW" ; then
6498     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6499   fi
6500
6501 cat >>confdefs.h <<_ACEOF
6502 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6503 _ACEOF
6504
6505 fi
6506
6507 # Find a good install program.  We prefer a C program (faster),
6508 # so one script is as good as another.  But avoid the broken or
6509 # incompatible versions:
6510 # SysV /etc/install, /usr/sbin/install
6511 # SunOS /usr/etc/install
6512 # IRIX /sbin/install
6513 # AIX /bin/install
6514 # AmigaOS /C/install, which installs bootblocks on floppy discs
6515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6518 # OS/2's system install, which has a completely different semantic
6519 # ./install, which can be erroneously created by make from ./install.sh.
6520 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6521 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6522 if test -z "$INSTALL"; then
6523 if test "${ac_cv_path_install+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531   # Account for people who put trailing slashes in PATH elements.
6532 case $as_dir/ in
6533   ./ | .// | /cC/* | \
6534   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6535   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6536   /usr/ucb/* ) ;;
6537   *)
6538     # OSF1 and SCO ODT 3.0 have their own names for install.
6539     # Don't use installbsd from OSF since it installs stuff as root
6540     # by default.
6541     for ac_prog in ginstall scoinst install; do
6542       for ac_exec_ext in '' $ac_executable_extensions; do
6543         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6544           if test $ac_prog = install &&
6545             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6546             # AIX install.  It has an incompatible calling convention.
6547             :
6548           elif test $ac_prog = install &&
6549             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6550             # program-specific install script used by HP pwplus--don't use.
6551             :
6552           else
6553             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6554             break 3
6555           fi
6556         fi
6557       done
6558     done
6559     ;;
6560 esac
6561 done
6562 IFS=$as_save_IFS
6563
6564
6565 fi
6566   if test "${ac_cv_path_install+set}" = set; then
6567     INSTALL=$ac_cv_path_install
6568   else
6569     # As a last resort, use the slow shell script.  Don't cache a
6570     # value for INSTALL within a source directory, because that will
6571     # break other packages using the cache if that directory is
6572     # removed, or if the value is a relative name.
6573     INSTALL=$ac_install_sh
6574   fi
6575 fi
6576 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6577 echo "${ECHO_T}$INSTALL" >&6; }
6578
6579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6580 # It thinks the first close brace ends the variable substitution.
6581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6582
6583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6584
6585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6586
6587 case "$INSTALL" in
6588  [\\/$]* | ?:[\\/]* ) ;;
6589  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6590 esac
6591
6592 # Extract the first word of "bzip2", so it can be a program name with args.
6593 set dummy bzip2; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_path_BZIP2+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   case $BZIP2 in
6600   [\\/]* | ?:[\\/]*)
6601   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6602   ;;
6603   *)
6604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607   IFS=$as_save_IFS
6608   test -z "$as_dir" && as_dir=.
6609   for ac_exec_ext in '' $ac_executable_extensions; do
6610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6611     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613     break 2
6614   fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619   ;;
6620 esac
6621 fi
6622 BZIP2=$ac_cv_path_BZIP2
6623 if test -n "$BZIP2"; then
6624   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6625 echo "${ECHO_T}$BZIP2" >&6; }
6626 else
6627   { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6629 fi
6630
6631
6632 # Extract the first word of "cat", so it can be a program name with args.
6633 set dummy cat; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_path_CAT+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   case $CAT in
6640   [\\/]* | ?:[\\/]*)
6641   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6642   ;;
6643   *)
6644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647   IFS=$as_save_IFS
6648   test -z "$as_dir" && as_dir=.
6649   for ac_exec_ext in '' $ac_executable_extensions; do
6650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6651     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653     break 2
6654   fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659   ;;
6660 esac
6661 fi
6662 CAT=$ac_cv_path_CAT
6663 if test -n "$CAT"; then
6664   { echo "$as_me:$LINENO: result: $CAT" >&5
6665 echo "${ECHO_T}$CAT" >&6; }
6666 else
6667   { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6669 fi
6670
6671
6672 # Extract the first word of "doxygen", so it can be a program name with args.
6673 set dummy doxygen; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   case $DOXYGEN in
6680   [\\/]* | ?:[\\/]*)
6681   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6682   ;;
6683   *)
6684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689   for ac_exec_ext in '' $ac_executable_extensions; do
6690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699   ;;
6700 esac
6701 fi
6702 DOXYGEN=$ac_cv_path_DOXYGEN
6703 if test -n "$DOXYGEN"; then
6704   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6705 echo "${ECHO_T}$DOXYGEN" >&6; }
6706 else
6707   { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6709 fi
6710
6711
6712 # Extract the first word of "groff", so it can be a program name with args.
6713 set dummy groff; ac_word=$2
6714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6716 if test "${ac_cv_path_GROFF+set}" = set; then
6717   echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719   case $GROFF in
6720   [\\/]* | ?:[\\/]*)
6721   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6722   ;;
6723   *)
6724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729   for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739   ;;
6740 esac
6741 fi
6742 GROFF=$ac_cv_path_GROFF
6743 if test -n "$GROFF"; then
6744   { echo "$as_me:$LINENO: result: $GROFF" >&5
6745 echo "${ECHO_T}$GROFF" >&6; }
6746 else
6747   { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6749 fi
6750
6751
6752 # Extract the first word of "gzip", so it can be a program name with args.
6753 set dummy gzip; ac_word=$2
6754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6756 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   case $GZIPBIN in
6760   [\\/]* | ?:[\\/]*)
6761   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6762   ;;
6763   *)
6764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769   for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779   ;;
6780 esac
6781 fi
6782 GZIPBIN=$ac_cv_path_GZIPBIN
6783 if test -n "$GZIPBIN"; then
6784   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6785 echo "${ECHO_T}$GZIPBIN" >&6; }
6786 else
6787   { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6789 fi
6790
6791
6792 # Extract the first word of "pdfroff", so it can be a program name with args.
6793 set dummy pdfroff; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_PDFROFF+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   case $PDFROFF in
6800   [\\/]* | ?:[\\/]*)
6801   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6802   ;;
6803   *)
6804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809   for ac_exec_ext in '' $ac_executable_extensions; do
6810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819   ;;
6820 esac
6821 fi
6822 PDFROFF=$ac_cv_path_PDFROFF
6823 if test -n "$PDFROFF"; then
6824   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6825 echo "${ECHO_T}$PDFROFF" >&6; }
6826 else
6827   { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6829 fi
6830
6831
6832 # Extract the first word of "zip", so it can be a program name with args.
6833 set dummy zip; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_path_ZIP+set}" = set; then
6837   echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839   case $ZIP in
6840   [\\/]* | ?:[\\/]*)
6841   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6842   ;;
6843   *)
6844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849   for ac_exec_ext in '' $ac_executable_extensions; do
6850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6851     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859   ;;
6860 esac
6861 fi
6862 ZIP=$ac_cv_path_ZIP
6863 if test -n "$ZIP"; then
6864   { echo "$as_me:$LINENO: result: $ZIP" >&5
6865 echo "${ECHO_T}$ZIP" >&6; }
6866 else
6867   { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6869 fi
6870
6871
6872 # Extract the first word of "go", so it can be a program name with args.
6873 set dummy go; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_GO+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   case $GO in
6880   [\\/]* | ?:[\\/]*)
6881   ac_cv_path_GO="$GO" # Let the user override the test with a path.
6882   ;;
6883   *)
6884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889   for ac_exec_ext in '' $ac_executable_extensions; do
6890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6891     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899   ;;
6900 esac
6901 fi
6902 GO=$ac_cv_path_GO
6903 if test -n "$GO"; then
6904   { echo "$as_me:$LINENO: result: $GO" >&5
6905 echo "${ECHO_T}$GO" >&6; }
6906 else
6907   { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6909 fi
6910
6911
6912 for ac_prog in ocamlc
6913 do
6914   # Extract the first word of "$ac_prog", so it can be a program name with args.
6915 set dummy $ac_prog; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_OCAMLC+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   case $OCAMLC in
6922   [\\/]* | ?:[\\/]*)
6923   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6924   ;;
6925   *)
6926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931   for ac_exec_ext in '' $ac_executable_extensions; do
6932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941   ;;
6942 esac
6943 fi
6944 OCAMLC=$ac_cv_path_OCAMLC
6945 if test -n "$OCAMLC"; then
6946   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6947 echo "${ECHO_T}$OCAMLC" >&6; }
6948 else
6949   { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6951 fi
6952
6953
6954   test -n "$OCAMLC" && break
6955 done
6956
6957 for ac_prog in ocamlopt
6958 do
6959   # Extract the first word of "$ac_prog", so it can be a program name with args.
6960 set dummy $ac_prog; ac_word=$2
6961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966   case $OCAMLOPT in
6967   [\\/]* | ?:[\\/]*)
6968   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6969   ;;
6970   *)
6971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976   for ac_exec_ext in '' $ac_executable_extensions; do
6977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6978     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980     break 2
6981   fi
6982 done
6983 done
6984 IFS=$as_save_IFS
6985
6986   ;;
6987 esac
6988 fi
6989 OCAMLOPT=$ac_cv_path_OCAMLOPT
6990 if test -n "$OCAMLOPT"; then
6991   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6992 echo "${ECHO_T}$OCAMLOPT" >&6; }
6993 else
6994   { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6996 fi
6997
6998
6999   test -n "$OCAMLOPT" && break
7000 done
7001
7002 for ac_prog in ocamldep
7003 do
7004   # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7009   echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011   case $OCAMLDEP in
7012   [\\/]* | ?:[\\/]*)
7013   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7014   ;;
7015   *)
7016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021   for ac_exec_ext in '' $ac_executable_extensions; do
7022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7023     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031   ;;
7032 esac
7033 fi
7034 OCAMLDEP=$ac_cv_path_OCAMLDEP
7035 if test -n "$OCAMLDEP"; then
7036   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7037 echo "${ECHO_T}$OCAMLDEP" >&6; }
7038 else
7039   { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7041 fi
7042
7043
7044   test -n "$OCAMLDEP" && break
7045 done
7046
7047 for ac_prog in ocamldoc
7048 do
7049   # Extract the first word of "$ac_prog", so it can be a program name with args.
7050 set dummy $ac_prog; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   case $OCAMLDOC in
7057   [\\/]* | ?:[\\/]*)
7058   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7059   ;;
7060   *)
7061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066   for ac_exec_ext in '' $ac_executable_extensions; do
7067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076   ;;
7077 esac
7078 fi
7079 OCAMLDOC=$ac_cv_path_OCAMLDOC
7080 if test -n "$OCAMLDOC"; then
7081   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7082 echo "${ECHO_T}$OCAMLDOC" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088
7089   test -n "$OCAMLDOC" && break
7090 done
7091
7092 for ac_prog in gas as
7093 do
7094   # Extract the first word of "$ac_prog", so it can be a program name with args.
7095 set dummy $ac_prog; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_path_GAS+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   case $GAS in
7102   [\\/]* | ?:[\\/]*)
7103   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7104   ;;
7105   *)
7106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111   for ac_exec_ext in '' $ac_executable_extensions; do
7112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7113     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118 done
7119 IFS=$as_save_IFS
7120
7121   ;;
7122 esac
7123 fi
7124 GAS=$ac_cv_path_GAS
7125 if test -n "$GAS"; then
7126   { echo "$as_me:$LINENO: result: $GAS" >&5
7127 echo "${ECHO_T}$GAS" >&6; }
7128 else
7129   { echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6; }
7131 fi
7132
7133
7134   test -n "$GAS" && break
7135 done
7136
7137
7138 { echo "$as_me:$LINENO: checking for linker version" >&5
7139 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7140 if test "${llvm_cv_link_version+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143
7144    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7145
7146    # Check for ld64.
7147    if (echo "$version_string" | grep -q "ld64"); then
7148      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7149    else
7150      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7151    fi
7152
7153 fi
7154 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7155 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7156
7157 cat >>confdefs.h <<_ACEOF
7158 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7159 _ACEOF
7160
7161
7162
7163
7164 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7165 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7166 if test "${llvm_cv_link_use_r+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169    ac_ext=c
7170 ac_cpp='$CPP $CPPFLAGS'
7171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7174
7175   oldcflags="$CFLAGS"
7176   CFLAGS="$CFLAGS -Wl,-R."
7177   cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h.  */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h.  */
7183
7184 int
7185 main ()
7186 {
7187
7188   ;
7189   return 0;
7190 }
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (ac_try="$ac_link"
7194 case "(($ac_try" in
7195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196   *) ac_try_echo=$ac_try;;
7197 esac
7198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7199   (eval "$ac_link") 2>conftest.er1
7200   ac_status=$?
7201   grep -v '^ *+' conftest.er1 >conftest.err
7202   rm -f conftest.er1
7203   cat conftest.err >&5
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); } &&
7206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7207   { (case "(($ac_try" in
7208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209   *) ac_try_echo=$ac_try;;
7210 esac
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212   (eval "$ac_try") 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); }; } &&
7216          { ac_try='test -s conftest$ac_exeext'
7217   { (case "(($ac_try" in
7218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219   *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222   (eval "$ac_try") 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; }; then
7226   llvm_cv_link_use_r=yes
7227 else
7228   echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231         llvm_cv_link_use_r=no
7232 fi
7233
7234 rm -f core conftest.err conftest.$ac_objext \
7235       conftest$ac_exeext conftest.$ac_ext
7236   CFLAGS="$oldcflags"
7237   ac_ext=c
7238 ac_cpp='$CPP $CPPFLAGS'
7239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7242
7243
7244 fi
7245 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7246 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7247 if test "$llvm_cv_link_use_r" = yes ; then
7248
7249 cat >>confdefs.h <<\_ACEOF
7250 #define HAVE_LINK_R 1
7251 _ACEOF
7252
7253   fi
7254
7255
7256 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7257 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7258 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261    ac_ext=c
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266
7267   oldcflags="$CFLAGS"
7268   CFLAGS="$CFLAGS -rdynamic"
7269   cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h.  */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h.  */
7275
7276 int
7277 main ()
7278 {
7279
7280   ;
7281   return 0;
7282 }
7283 _ACEOF
7284 rm -f conftest.$ac_objext conftest$ac_exeext
7285 if { (ac_try="$ac_link"
7286 case "(($ac_try" in
7287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288   *) ac_try_echo=$ac_try;;
7289 esac
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291   (eval "$ac_link") 2>conftest.er1
7292   ac_status=$?
7293   grep -v '^ *+' conftest.er1 >conftest.err
7294   rm -f conftest.er1
7295   cat conftest.err >&5
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); } &&
7298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7299   { (case "(($ac_try" in
7300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301   *) ac_try_echo=$ac_try;;
7302 esac
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304   (eval "$ac_try") 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }; } &&
7308          { ac_try='test -s conftest$ac_exeext'
7309   { (case "(($ac_try" in
7310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311   *) ac_try_echo=$ac_try;;
7312 esac
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314   (eval "$ac_try") 2>&5
7315   ac_status=$?
7316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317   (exit $ac_status); }; }; then
7318   llvm_cv_link_use_export_dynamic=yes
7319 else
7320   echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7322
7323         llvm_cv_link_use_export_dynamic=no
7324 fi
7325
7326 rm -f core conftest.err conftest.$ac_objext \
7327       conftest$ac_exeext conftest.$ac_ext
7328   CFLAGS="$oldcflags"
7329   ac_ext=c
7330 ac_cpp='$CPP $CPPFLAGS'
7331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7334
7335
7336 fi
7337 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7338 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7339 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7340
7341 cat >>confdefs.h <<\_ACEOF
7342 #define HAVE_LINK_EXPORT_DYNAMIC 1
7343 _ACEOF
7344
7345   fi
7346
7347
7348 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7349 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7350 if test "${llvm_cv_link_use_version_script+set}" = set; then
7351   echo $ECHO_N "(cached) $ECHO_C" >&6
7352 else
7353    ac_ext=c
7354 ac_cpp='$CPP $CPPFLAGS'
7355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7358
7359   oldcflags="$CFLAGS"
7360
7361   # The following code is from the autoconf manual,
7362   # "11.13: Limitations of Usual Tools".
7363   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7364   # Use mktemp if possible; otherwise fall back on mkdir,
7365   # with $RANDOM to make collisions less likely.
7366   : ${TMPDIR=/tmp}
7367   {
7368     tmp=`
7369       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7370     ` &&
7371     test -n "$tmp" && test -d "$tmp"
7372   } || {
7373     tmp=$TMPDIR/foo$$-$RANDOM
7374     (umask 077 && mkdir "$tmp")
7375   } || exit $?
7376
7377   echo "{" > "$tmp/export.map"
7378   echo "  global: main;" >> "$tmp/export.map"
7379   echo "  local: *;" >> "$tmp/export.map"
7380   echo "};" >> "$tmp/export.map"
7381
7382   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7383   cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389
7390 int
7391 main ()
7392 {
7393
7394   ;
7395   return 0;
7396 }
7397 _ACEOF
7398 rm -f conftest.$ac_objext conftest$ac_exeext
7399 if { (ac_try="$ac_link"
7400 case "(($ac_try" in
7401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402   *) ac_try_echo=$ac_try;;
7403 esac
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405   (eval "$ac_link") 2>conftest.er1
7406   ac_status=$?
7407   grep -v '^ *+' conftest.er1 >conftest.err
7408   rm -f conftest.er1
7409   cat conftest.err >&5
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } &&
7412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7413   { (case "(($ac_try" in
7414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415   *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418   (eval "$ac_try") 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); }; } &&
7422          { ac_try='test -s conftest$ac_exeext'
7423   { (case "(($ac_try" in
7424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425   *) ac_try_echo=$ac_try;;
7426 esac
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428   (eval "$ac_try") 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); }; }; then
7432   llvm_cv_link_use_version_script=yes
7433 else
7434   echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7436
7437         llvm_cv_link_use_version_script=no
7438 fi
7439
7440 rm -f core conftest.err conftest.$ac_objext \
7441       conftest$ac_exeext conftest.$ac_ext
7442   rm "$tmp/export.map"
7443   rmdir "$tmp"
7444   CFLAGS="$oldcflags"
7445   ac_ext=c
7446 ac_cpp='$CPP $CPPFLAGS'
7447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7450
7451
7452 fi
7453 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7454 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7455 if test "$llvm_cv_link_use_version_script" = yes ; then
7456   HAVE_LINK_VERSION_SCRIPT=1
7457
7458   fi
7459
7460
7461
7462 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7463 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7464 if test "${ac_cv_path_GREP+set}" = set; then
7465   echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467   # Extract the first word of "grep ggrep" to use in msg output
7468 if test -z "$GREP"; then
7469 set dummy grep ggrep; ac_prog_name=$2
7470 if test "${ac_cv_path_GREP+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   ac_path_GREP_found=false
7474 # Loop through the user's path and test for each of PROGNAME-LIST
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480   for ac_prog in grep ggrep; do
7481   for ac_exec_ext in '' $ac_executable_extensions; do
7482     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7483     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7484     # Check for GNU ac_path_GREP and select it if it is found.
7485   # Check for GNU $ac_path_GREP
7486 case `"$ac_path_GREP" --version 2>&1` in
7487 *GNU*)
7488   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7489 *)
7490   ac_count=0
7491   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7492   while :
7493   do
7494     cat "conftest.in" "conftest.in" >"conftest.tmp"
7495     mv "conftest.tmp" "conftest.in"
7496     cp "conftest.in" "conftest.nl"
7497     echo 'GREP' >> "conftest.nl"
7498     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7499     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7500     ac_count=`expr $ac_count + 1`
7501     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7502       # Best one so far, save it but keep looking for a better one
7503       ac_cv_path_GREP="$ac_path_GREP"
7504       ac_path_GREP_max=$ac_count
7505     fi
7506     # 10*(2^10) chars as input seems more than enough
7507     test $ac_count -gt 10 && break
7508   done
7509   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7510 esac
7511
7512
7513     $ac_path_GREP_found && break 3
7514   done
7515 done
7516
7517 done
7518 IFS=$as_save_IFS
7519
7520
7521 fi
7522
7523 GREP="$ac_cv_path_GREP"
7524 if test -z "$GREP"; then
7525   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7526 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7527    { (exit 1); exit 1; }; }
7528 fi
7529
7530 else
7531   ac_cv_path_GREP=$GREP
7532 fi
7533
7534
7535 fi
7536 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7537 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7538  GREP="$ac_cv_path_GREP"
7539
7540
7541 { echo "$as_me:$LINENO: checking for egrep" >&5
7542 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7543 if test "${ac_cv_path_EGREP+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7547    then ac_cv_path_EGREP="$GREP -E"
7548    else
7549      # Extract the first word of "egrep" to use in msg output
7550 if test -z "$EGREP"; then
7551 set dummy egrep; ac_prog_name=$2
7552 if test "${ac_cv_path_EGREP+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   ac_path_EGREP_found=false
7556 # Loop through the user's path and test for each of PROGNAME-LIST
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7559 do
7560   IFS=$as_save_IFS
7561   test -z "$as_dir" && as_dir=.
7562   for ac_prog in egrep; do
7563   for ac_exec_ext in '' $ac_executable_extensions; do
7564     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7565     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7566     # Check for GNU ac_path_EGREP and select it if it is found.
7567   # Check for GNU $ac_path_EGREP
7568 case `"$ac_path_EGREP" --version 2>&1` in
7569 *GNU*)
7570   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7571 *)
7572   ac_count=0
7573   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7574   while :
7575   do
7576     cat "conftest.in" "conftest.in" >"conftest.tmp"
7577     mv "conftest.tmp" "conftest.in"
7578     cp "conftest.in" "conftest.nl"
7579     echo 'EGREP' >> "conftest.nl"
7580     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7581     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7582     ac_count=`expr $ac_count + 1`
7583     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7584       # Best one so far, save it but keep looking for a better one
7585       ac_cv_path_EGREP="$ac_path_EGREP"
7586       ac_path_EGREP_max=$ac_count
7587     fi
7588     # 10*(2^10) chars as input seems more than enough
7589     test $ac_count -gt 10 && break
7590   done
7591   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7592 esac
7593
7594
7595     $ac_path_EGREP_found && break 3
7596   done
7597 done
7598
7599 done
7600 IFS=$as_save_IFS
7601
7602
7603 fi
7604
7605 EGREP="$ac_cv_path_EGREP"
7606 if test -z "$EGREP"; then
7607   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7609    { (exit 1); exit 1; }; }
7610 fi
7611
7612 else
7613   ac_cv_path_EGREP=$EGREP
7614 fi
7615
7616
7617    fi
7618 fi
7619 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7620 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7621  EGREP="$ac_cv_path_EGREP"
7622
7623
7624 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7625 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7626 if test "${ac_cv_header_stdc+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h.  */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h.  */
7635 #include <stdlib.h>
7636 #include <stdarg.h>
7637 #include <string.h>
7638 #include <float.h>
7639
7640 int
7641 main ()
7642 {
7643
7644   ;
7645   return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652   *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655   (eval "$ac_compile") 2>conftest.er1
7656   ac_status=$?
7657   grep -v '^ *+' conftest.er1 >conftest.err
7658   rm -f conftest.er1
7659   cat conftest.err >&5
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); } &&
7662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7663   { (case "(($ac_try" in
7664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665   *) ac_try_echo=$ac_try;;
7666 esac
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668   (eval "$ac_try") 2>&5
7669   ac_status=$?
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); }; } &&
7672          { ac_try='test -s conftest.$ac_objext'
7673   { (case "(($ac_try" in
7674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675   *) ac_try_echo=$ac_try;;
7676 esac
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678   (eval "$ac_try") 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); }; }; then
7682   ac_cv_header_stdc=yes
7683 else
7684   echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7686
7687         ac_cv_header_stdc=no
7688 fi
7689
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691
7692 if test $ac_cv_header_stdc = yes; then
7693   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7694   cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h.  */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h.  */
7700 #include <string.h>
7701
7702 _ACEOF
7703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7704   $EGREP "memchr" >/dev/null 2>&1; then
7705   :
7706 else
7707   ac_cv_header_stdc=no
7708 fi
7709 rm -f conftest*
7710
7711 fi
7712
7713 if test $ac_cv_header_stdc = yes; then
7714   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7715   cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h.  */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h.  */
7721 #include <stdlib.h>
7722
7723 _ACEOF
7724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7725   $EGREP "free" >/dev/null 2>&1; then
7726   :
7727 else
7728   ac_cv_header_stdc=no
7729 fi
7730 rm -f conftest*
7731
7732 fi
7733
7734 if test $ac_cv_header_stdc = yes; then
7735   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7736   if test "$cross_compiling" = yes; then
7737   :
7738 else
7739   cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745 #include <ctype.h>
7746 #include <stdlib.h>
7747 #if ((' ' & 0x0FF) == 0x020)
7748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7750 #else
7751 # define ISLOWER(c) \
7752                    (('a' <= (c) && (c) <= 'i') \
7753                      || ('j' <= (c) && (c) <= 'r') \
7754                      || ('s' <= (c) && (c) <= 'z'))
7755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7756 #endif
7757
7758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7759 int
7760 main ()
7761 {
7762   int i;
7763   for (i = 0; i < 256; i++)
7764     if (XOR (islower (i), ISLOWER (i))
7765         || toupper (i) != TOUPPER (i))
7766       return 2;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7772 case "(($ac_try" in
7773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774   *) ac_try_echo=$ac_try;;
7775 esac
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777   (eval "$ac_link") 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7781   { (case "(($ac_try" in
7782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783   *) ac_try_echo=$ac_try;;
7784 esac
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786   (eval "$ac_try") 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; }; then
7790   :
7791 else
7792   echo "$as_me: program exited with status $ac_status" >&5
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796 ( exit $ac_status )
7797 ac_cv_header_stdc=no
7798 fi
7799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7800 fi
7801
7802
7803 fi
7804 fi
7805 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7806 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7807 if test $ac_cv_header_stdc = yes; then
7808
7809 cat >>confdefs.h <<\_ACEOF
7810 #define STDC_HEADERS 1
7811 _ACEOF
7812
7813 fi
7814
7815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7826                   inttypes.h stdint.h unistd.h
7827 do
7828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h.  */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h.  */
7840 $ac_includes_default
7841
7842 #include <$ac_header>
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7846 case "(($ac_try" in
7847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848   *) ac_try_echo=$ac_try;;
7849 esac
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851   (eval "$ac_compile") 2>conftest.er1
7852   ac_status=$?
7853   grep -v '^ *+' conftest.er1 >conftest.err
7854   rm -f conftest.er1
7855   cat conftest.err >&5
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); } &&
7858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7859   { (case "(($ac_try" in
7860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861   *) ac_try_echo=$ac_try;;
7862 esac
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864   (eval "$ac_try") 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; } &&
7868          { ac_try='test -s conftest.$ac_objext'
7869   { (case "(($ac_try" in
7870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871   *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874   (eval "$ac_try") 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; }; then
7878   eval "$as_ac_Header=yes"
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883         eval "$as_ac_Header=no"
7884 fi
7885
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 fi
7888 ac_res=`eval echo '${'$as_ac_Header'}'`
7889                { echo "$as_me:$LINENO: result: $ac_res" >&5
7890 echo "${ECHO_T}$ac_res" >&6; }
7891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7892   cat >>confdefs.h <<_ACEOF
7893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7894 _ACEOF
7895
7896 fi
7897
7898 done
7899
7900
7901
7902 for ac_header in errno.h
7903 do
7904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7906   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 fi
7911 ac_res=`eval echo '${'$as_ac_Header'}'`
7912                { echo "$as_me:$LINENO: result: $ac_res" >&5
7913 echo "${ECHO_T}$ac_res" >&6; }
7914 else
7915   # Is the header compilable?
7916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7918 cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924 $ac_includes_default
7925 #include <$ac_header>
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (ac_try="$ac_compile"
7929 case "(($ac_try" in
7930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931   *) ac_try_echo=$ac_try;;
7932 esac
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934   (eval "$ac_compile") 2>conftest.er1
7935   ac_status=$?
7936   grep -v '^ *+' conftest.er1 >conftest.err
7937   rm -f conftest.er1
7938   cat conftest.err >&5
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } &&
7941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7942   { (case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947   (eval "$ac_try") 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; } &&
7951          { ac_try='test -s conftest.$ac_objext'
7952   { (case "(($ac_try" in
7953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954   *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957   (eval "$ac_try") 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); }; }; then
7961   ac_header_compiler=yes
7962 else
7963   echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966         ac_header_compiler=no
7967 fi
7968
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7971 echo "${ECHO_T}$ac_header_compiler" >&6; }
7972
7973 # Is the header present?
7974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7976 cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982 #include <$ac_header>
7983 _ACEOF
7984 if { (ac_try="$ac_cpp conftest.$ac_ext"
7985 case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } >/dev/null; then
7997   if test -s conftest.err; then
7998     ac_cpp_err=$ac_c_preproc_warn_flag
7999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8000   else
8001     ac_cpp_err=
8002   fi
8003 else
8004   ac_cpp_err=yes
8005 fi
8006 if test -z "$ac_cpp_err"; then
8007   ac_header_preproc=yes
8008 else
8009   echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8011
8012   ac_header_preproc=no
8013 fi
8014
8015 rm -f conftest.err conftest.$ac_ext
8016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8017 echo "${ECHO_T}$ac_header_preproc" >&6; }
8018
8019 # So?  What about this header?
8020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8021   yes:no: )
8022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8026     ac_header_preproc=yes
8027     ;;
8028   no:yes:* )
8029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8041     ( cat <<\_ASBOX
8042 ## ------------------------------------ ##
8043 ## Report this to http://llvm.org/bugs/ ##
8044 ## ------------------------------------ ##
8045 _ASBOX
8046      ) | sed "s/^/$as_me: WARNING:     /" >&2
8047     ;;
8048 esac
8049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   eval "$as_ac_Header=\$ac_header_preproc"
8055 fi
8056 ac_res=`eval echo '${'$as_ac_Header'}'`
8057                { echo "$as_me:$LINENO: result: $ac_res" >&5
8058 echo "${ECHO_T}$ac_res" >&6; }
8059
8060 fi
8061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8062   cat >>confdefs.h <<_ACEOF
8063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8064 _ACEOF
8065
8066 fi
8067
8068 done
8069
8070
8071 case "$llvm_cv_os_type" in
8072   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8073   Darwin) llvm_shlib_ext=.dylib ;;
8074   *) llvm_shlib_ext=.so ;;
8075 esac
8076
8077
8078 cat >>confdefs.h <<_ACEOF
8079 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8080 _ACEOF
8081
8082
8083 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8084 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8085
8086 ICC=no
8087 IXX=no
8088 case $CC in
8089   icc*|icpc*)
8090     ICC=yes
8091     IXX=yes
8092     ;;
8093    *)
8094     ;;
8095 esac
8096
8097 if test "$GCC" != "yes" && test "$ICC" != "yes"
8098 then
8099   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8100 echo "$as_me: error: gcc|icc required but not found" >&2;}
8101    { (exit 1); exit 1; }; }
8102 fi
8103
8104 if test "$GXX" != "yes" && test "$IXX" != "yes"
8105 then
8106   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8107 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8108    { (exit 1); exit 1; }; }
8109 fi
8110
8111 if test "$GCC" = "yes"
8112 then
8113   cat >conftest.$ac_ext <<_ACEOF
8114
8115   /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120
8121     #if !defined(__GNUC__) || __GNUC__ < 3
8122     #error Unsupported GCC version
8123     #endif
8124
8125
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8129 case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_compile") 2>conftest.er1
8135   ac_status=$?
8136   grep -v '^ *+' conftest.er1 >conftest.err
8137   rm -f conftest.er1
8138   cat conftest.err >&5
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } &&
8141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142   { (case "(($ac_try" in
8143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144   *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147   (eval "$ac_try") 2>&5
8148   ac_status=$?
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); }; } &&
8151          { ac_try='test -s conftest.$ac_objext'
8152   { (case "(($ac_try" in
8153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154   *) ac_try_echo=$ac_try;;
8155 esac
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157   (eval "$ac_try") 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); }; }; then
8161   :
8162 else
8163   echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8165
8166         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8167 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8168    { (exit 1); exit 1; }; }
8169 fi
8170
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 fi
8173
8174 if test -z "$llvm_cv_gnu_make_command"
8175 then
8176   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8177 echo "$as_me: error: GNU Make required but not found" >&2;}
8178    { (exit 1); exit 1; }; }
8179 fi
8180
8181 { echo "$as_me:$LINENO: result: ok" >&5
8182 echo "${ECHO_T}ok" >&6; }
8183
8184 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8185 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8186 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8187
8188 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8189
8190 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8191
8192
8193 NO_UNINITIALIZED=
8194 NO_MAYBE_UNINITIALIZED=
8195 if test "$GXX" = "yes"
8196 then
8197   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8198
8199         if test -z "$NO_MAYBE_UNINITIALIZED"
8200   then
8201     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8202
8203   fi
8204 fi
8205 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8206 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8207
8208
8209 # Check whether --with-python was given.
8210 if test "${with_python+set}" = set; then
8211   withval=$with_python; PYTHON="$withval"
8212 fi
8213
8214
8215 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8216   { echo "$as_me:$LINENO: checking for python" >&5
8217 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8218   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8219 echo "${ECHO_T}user defined: $with_python" >&6; }
8220 else
8221   if test -n "$PYTHON" ; then
8222     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8223 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8224   fi
8225
8226   # Extract the first word of "python python2 python26", so it can be a program name with args.
8227 set dummy python python2 python26; ac_word=$2
8228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8230 if test "${ac_cv_path_PYTHON+set}" = set; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   case $PYTHON in
8234   [\\/]* | ?:[\\/]*)
8235   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8236   ;;
8237   *)
8238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241   IFS=$as_save_IFS
8242   test -z "$as_dir" && as_dir=.
8243   for ac_exec_ext in '' $ac_executable_extensions; do
8244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8245     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247     break 2
8248   fi
8249 done
8250 done
8251 IFS=$as_save_IFS
8252
8253   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8254 echo "${ECHO_T}not found" >&6; }
8255                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8256 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8257    { (exit 1); exit 1; }; }"
8258   ;;
8259 esac
8260 fi
8261 PYTHON=$ac_cv_path_PYTHON
8262 if test -n "$PYTHON"; then
8263   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8264 echo "${ECHO_T}$PYTHON" >&6; }
8265 else
8266   { echo "$as_me:$LINENO: result: no" >&5
8267 echo "${ECHO_T}no" >&6; }
8268 fi
8269
8270
8271 fi
8272
8273 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8274 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8275 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8276 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8277 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8278 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8279 if test "$ac_python_version_major" -gt "2" || \
8280    (test "$ac_python_version_major" -eq "2" && \
8281     test "$ac_python_version_minor" -ge "5") ; then
8282   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8283 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8284 else
8285   { echo "$as_me:$LINENO: result: not found" >&5
8286 echo "${ECHO_T}not found" >&6; }
8287   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8288 See \`config.log' for more details." >&5
8289 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8290 See \`config.log' for more details." >&2;}
8291    { (exit 1); exit 1; }; }
8292 fi
8293
8294
8295
8296 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8297 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8298 if test "${ac_cv_lib_m_sin+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   ac_check_lib_save_LIBS=$LIBS
8302 LIBS="-lm  $LIBS"
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h.  */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h.  */
8309
8310 /* Override any GCC internal prototype to avoid an error.
8311    Use char because int might match the return type of a GCC
8312    builtin and then its argument prototype would still apply.  */
8313 #ifdef __cplusplus
8314 extern "C"
8315 #endif
8316 char sin ();
8317 int
8318 main ()
8319 {
8320 return sin ();
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (ac_try="$ac_link"
8327 case "(($ac_try" in
8328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329   *) ac_try_echo=$ac_try;;
8330 esac
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332   (eval "$ac_link") 2>conftest.er1
8333   ac_status=$?
8334   grep -v '^ *+' conftest.er1 >conftest.err
8335   rm -f conftest.er1
8336   cat conftest.err >&5
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } &&
8339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8340   { (case "(($ac_try" in
8341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342   *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345   (eval "$ac_try") 2>&5
8346   ac_status=$?
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); }; } &&
8349          { ac_try='test -s conftest$ac_exeext'
8350   { (case "(($ac_try" in
8351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352   *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355   (eval "$ac_try") 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; }; then
8359   ac_cv_lib_m_sin=yes
8360 else
8361   echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364         ac_cv_lib_m_sin=no
8365 fi
8366
8367 rm -f core conftest.err conftest.$ac_objext \
8368       conftest$ac_exeext conftest.$ac_ext
8369 LIBS=$ac_check_lib_save_LIBS
8370 fi
8371 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8372 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8373 if test $ac_cv_lib_m_sin = yes; then
8374   cat >>confdefs.h <<_ACEOF
8375 #define HAVE_LIBM 1
8376 _ACEOF
8377
8378   LIBS="-lm $LIBS"
8379
8380 fi
8381
8382 if test "$llvm_cv_os_type" = "MingW" ; then
8383
8384 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8385 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8386 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-limagehlp  $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397
8398
8399 int
8400 main ()
8401 {
8402 return main ();
8403   ;
8404   return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (ac_try="$ac_link"
8409 case "(($ac_try" in
8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411   *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414   (eval "$ac_link") 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422   { (case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_try") 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; } &&
8431          { ac_try='test -s conftest$ac_exeext'
8432   { (case "(($ac_try" in
8433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434   *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437   (eval "$ac_try") 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; }; then
8441   ac_cv_lib_imagehlp_main=yes
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446         ac_cv_lib_imagehlp_main=no
8447 fi
8448
8449 rm -f core conftest.err conftest.$ac_objext \
8450       conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8452 fi
8453 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8454 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8455 if test $ac_cv_lib_imagehlp_main = yes; then
8456   cat >>confdefs.h <<_ACEOF
8457 #define HAVE_LIBIMAGEHLP 1
8458 _ACEOF
8459
8460   LIBS="-limagehlp $LIBS"
8461
8462 fi
8463
8464
8465 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8466 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8467 if test "${ac_cv_lib_psapi_main+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   ac_check_lib_save_LIBS=$LIBS
8471 LIBS="-lpsapi  $LIBS"
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478
8479
8480 int
8481 main ()
8482 {
8483 return main ();
8484   ;
8485   return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8490 case "(($ac_try" in
8491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492   *) ac_try_echo=$ac_try;;
8493 esac
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495   (eval "$ac_link") 2>conftest.er1
8496   ac_status=$?
8497   grep -v '^ *+' conftest.er1 >conftest.err
8498   rm -f conftest.er1
8499   cat conftest.err >&5
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); } &&
8502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8503   { (case "(($ac_try" in
8504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505   *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508   (eval "$ac_try") 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; } &&
8512          { ac_try='test -s conftest$ac_exeext'
8513   { (case "(($ac_try" in
8514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515   *) ac_try_echo=$ac_try;;
8516 esac
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518   (eval "$ac_try") 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; }; then
8522   ac_cv_lib_psapi_main=yes
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527         ac_cv_lib_psapi_main=no
8528 fi
8529
8530 rm -f core conftest.err conftest.$ac_objext \
8531       conftest$ac_exeext conftest.$ac_ext
8532 LIBS=$ac_check_lib_save_LIBS
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8535 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8536 if test $ac_cv_lib_psapi_main = yes; then
8537   cat >>confdefs.h <<_ACEOF
8538 #define HAVE_LIBPSAPI 1
8539 _ACEOF
8540
8541   LIBS="-lpsapi $LIBS"
8542
8543 fi
8544
8545
8546 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8547 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8548 if test "${ac_cv_lib_shell32_main+set}" = set; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   ac_check_lib_save_LIBS=$LIBS
8552 LIBS="-lshell32  $LIBS"
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559
8560
8561 int
8562 main ()
8563 {
8564 return main ();
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (ac_try="$ac_link"
8571 case "(($ac_try" in
8572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573   *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576   (eval "$ac_link") 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } &&
8583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8584   { (case "(($ac_try" in
8585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586   *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589   (eval "$ac_try") 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; } &&
8593          { ac_try='test -s conftest$ac_exeext'
8594   { (case "(($ac_try" in
8595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596   *) ac_try_echo=$ac_try;;
8597 esac
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599   (eval "$ac_try") 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; }; then
8603   ac_cv_lib_shell32_main=yes
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608         ac_cv_lib_shell32_main=no
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext \
8612       conftest$ac_exeext conftest.$ac_ext
8613 LIBS=$ac_check_lib_save_LIBS
8614 fi
8615 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8616 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8617 if test $ac_cv_lib_shell32_main = yes; then
8618   cat >>confdefs.h <<_ACEOF
8619 #define HAVE_LIBSHELL32 1
8620 _ACEOF
8621
8622   LIBS="-lshell32 $LIBS"
8623
8624 fi
8625
8626 fi
8627
8628 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8629 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8630 if test "${ac_cv_search_dlopen+set}" = set; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   ac_func_search_save_LIBS=$LIBS
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640
8641 /* Override any GCC internal prototype to avoid an error.
8642    Use char because int might match the return type of a GCC
8643    builtin and then its argument prototype would still apply.  */
8644 #ifdef __cplusplus
8645 extern "C"
8646 #endif
8647 char dlopen ();
8648 int
8649 main ()
8650 {
8651 return dlopen ();
8652   ;
8653   return 0;
8654 }
8655 _ACEOF
8656 for ac_lib in '' dl; do
8657   if test -z "$ac_lib"; then
8658     ac_res="none required"
8659   else
8660     ac_res=-l$ac_lib
8661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8662   fi
8663   rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (ac_try="$ac_link"
8665 case "(($ac_try" in
8666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667   *) ac_try_echo=$ac_try;;
8668 esac
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670   (eval "$ac_link") 2>conftest.er1
8671   ac_status=$?
8672   grep -v '^ *+' conftest.er1 >conftest.err
8673   rm -f conftest.er1
8674   cat conftest.err >&5
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } &&
8677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8678   { (case "(($ac_try" in
8679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680   *) ac_try_echo=$ac_try;;
8681 esac
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683   (eval "$ac_try") 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; } &&
8687          { ac_try='test -s conftest$ac_exeext'
8688   { (case "(($ac_try" in
8689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690   *) ac_try_echo=$ac_try;;
8691 esac
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693   (eval "$ac_try") 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; }; then
8697   ac_cv_search_dlopen=$ac_res
8698 else
8699   echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702
8703 fi
8704
8705 rm -f core conftest.err conftest.$ac_objext \
8706       conftest$ac_exeext
8707   if test "${ac_cv_search_dlopen+set}" = set; then
8708   break
8709 fi
8710 done
8711 if test "${ac_cv_search_dlopen+set}" = set; then
8712   :
8713 else
8714   ac_cv_search_dlopen=no
8715 fi
8716 rm conftest.$ac_ext
8717 LIBS=$ac_func_search_save_LIBS
8718 fi
8719 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8720 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8721 ac_res=$ac_cv_search_dlopen
8722 if test "$ac_res" != no; then
8723   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8724
8725
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_DLOPEN 1
8728 _ACEOF
8729
8730 HAVE_DLOPEN='1'
8731
8732
8733 else
8734   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8735 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8736 fi
8737
8738
8739 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8740 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8741 if test "${ac_cv_search_clock_gettime+set}" = set; then
8742   echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744   ac_func_search_save_LIBS=$LIBS
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751
8752 /* Override any GCC internal prototype to avoid an error.
8753    Use char because int might match the return type of a GCC
8754    builtin and then its argument prototype would still apply.  */
8755 #ifdef __cplusplus
8756 extern "C"
8757 #endif
8758 char clock_gettime ();
8759 int
8760 main ()
8761 {
8762 return clock_gettime ();
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 for ac_lib in '' rt; do
8768   if test -z "$ac_lib"; then
8769     ac_res="none required"
8770   else
8771     ac_res=-l$ac_lib
8772     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8773   fi
8774   rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8776 case "(($ac_try" in
8777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778   *) ac_try_echo=$ac_try;;
8779 esac
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781   (eval "$ac_link") 2>conftest.er1
8782   ac_status=$?
8783   grep -v '^ *+' conftest.er1 >conftest.err
8784   rm -f conftest.er1
8785   cat conftest.err >&5
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } &&
8788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8789   { (case "(($ac_try" in
8790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791   *) ac_try_echo=$ac_try;;
8792 esac
8793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794   (eval "$ac_try") 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; } &&
8798          { ac_try='test -s conftest$ac_exeext'
8799   { (case "(($ac_try" in
8800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801   *) ac_try_echo=$ac_try;;
8802 esac
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804   (eval "$ac_try") 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; }; then
8808   ac_cv_search_clock_gettime=$ac_res
8809 else
8810   echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8812
8813
8814 fi
8815
8816 rm -f core conftest.err conftest.$ac_objext \
8817       conftest$ac_exeext
8818   if test "${ac_cv_search_clock_gettime+set}" = set; then
8819   break
8820 fi
8821 done
8822 if test "${ac_cv_search_clock_gettime+set}" = set; then
8823   :
8824 else
8825   ac_cv_search_clock_gettime=no
8826 fi
8827 rm conftest.$ac_ext
8828 LIBS=$ac_func_search_save_LIBS
8829 fi
8830 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8831 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8832 ac_res=$ac_cv_search_clock_gettime
8833 if test "$ac_res" != no; then
8834   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8835
8836 fi
8837
8838
8839 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8840     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8841 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8842 if test "${ac_cv_search_setupterm+set}" = set; then
8843   echo $ECHO_N "(cached) $ECHO_C" >&6
8844 else
8845   ac_func_search_save_LIBS=$LIBS
8846 cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h.  */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h.  */
8852
8853 /* Override any GCC internal prototype to avoid an error.
8854    Use char because int might match the return type of a GCC
8855    builtin and then its argument prototype would still apply.  */
8856 #ifdef __cplusplus
8857 extern "C"
8858 #endif
8859 char setupterm ();
8860 int
8861 main ()
8862 {
8863 return setupterm ();
8864   ;
8865   return 0;
8866 }
8867 _ACEOF
8868 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8869   if test -z "$ac_lib"; then
8870     ac_res="none required"
8871   else
8872     ac_res=-l$ac_lib
8873     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8874   fi
8875   rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (ac_try="$ac_link"
8877 case "(($ac_try" in
8878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879   *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882   (eval "$ac_link") 2>conftest.er1
8883   ac_status=$?
8884   grep -v '^ *+' conftest.er1 >conftest.err
8885   rm -f conftest.er1
8886   cat conftest.err >&5
8887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888   (exit $ac_status); } &&
8889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8890   { (case "(($ac_try" in
8891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892   *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895   (eval "$ac_try") 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); }; } &&
8899          { ac_try='test -s conftest$ac_exeext'
8900   { (case "(($ac_try" in
8901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902   *) ac_try_echo=$ac_try;;
8903 esac
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905   (eval "$ac_try") 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); }; }; then
8909   ac_cv_search_setupterm=$ac_res
8910 else
8911   echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8913
8914
8915 fi
8916
8917 rm -f core conftest.err conftest.$ac_objext \
8918       conftest$ac_exeext
8919   if test "${ac_cv_search_setupterm+set}" = set; then
8920   break
8921 fi
8922 done
8923 if test "${ac_cv_search_setupterm+set}" = set; then
8924   :
8925 else
8926   ac_cv_search_setupterm=no
8927 fi
8928 rm conftest.$ac_ext
8929 LIBS=$ac_func_search_save_LIBS
8930 fi
8931 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8932 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8933 ac_res=$ac_cv_search_setupterm
8934 if test "$ac_res" != no; then
8935   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8936
8937
8938 cat >>confdefs.h <<\_ACEOF
8939 #define HAVE_TERMINFO 1
8940 _ACEOF
8941
8942 HAVE_TERMINFO='1'
8943
8944
8945 fi
8946
8947 fi
8948
8949 if test "$llvm_cv_enable_libedit" = "yes" ; then
8950   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8951 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8952 if test "${ac_cv_search_el_init+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   ac_func_search_save_LIBS=$LIBS
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962
8963 /* Override any GCC internal prototype to avoid an error.
8964    Use char because int might match the return type of a GCC
8965    builtin and then its argument prototype would still apply.  */
8966 #ifdef __cplusplus
8967 extern "C"
8968 #endif
8969 char el_init ();
8970 int
8971 main ()
8972 {
8973 return el_init ();
8974   ;
8975   return 0;
8976 }
8977 _ACEOF
8978 for ac_lib in '' edit; do
8979   if test -z "$ac_lib"; then
8980     ac_res="none required"
8981   else
8982     ac_res=-l$ac_lib
8983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8984   fi
8985   rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (ac_try="$ac_link"
8987 case "(($ac_try" in
8988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989   *) ac_try_echo=$ac_try;;
8990 esac
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992   (eval "$ac_link") 2>conftest.er1
8993   ac_status=$?
8994   grep -v '^ *+' conftest.er1 >conftest.err
8995   rm -f conftest.er1
8996   cat conftest.err >&5
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); } &&
8999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9000   { (case "(($ac_try" in
9001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002   *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005   (eval "$ac_try") 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }; } &&
9009          { ac_try='test -s conftest$ac_exeext'
9010   { (case "(($ac_try" in
9011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012   *) ac_try_echo=$ac_try;;
9013 esac
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015   (eval "$ac_try") 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; }; then
9019   ac_cv_search_el_init=$ac_res
9020 else
9021   echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9023
9024
9025 fi
9026
9027 rm -f core conftest.err conftest.$ac_objext \
9028       conftest$ac_exeext
9029   if test "${ac_cv_search_el_init+set}" = set; then
9030   break
9031 fi
9032 done
9033 if test "${ac_cv_search_el_init+set}" = set; then
9034   :
9035 else
9036   ac_cv_search_el_init=no
9037 fi
9038 rm conftest.$ac_ext
9039 LIBS=$ac_func_search_save_LIBS
9040 fi
9041 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9042 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9043 ac_res=$ac_cv_search_el_init
9044 if test "$ac_res" != no; then
9045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9046
9047 cat >>confdefs.h <<\_ACEOF
9048 #define HAVE_LIBEDIT 1
9049 _ACEOF
9050
9051 fi
9052
9053 fi
9054
9055 if test "$llvm_cv_enable_libffi" = "yes" ; then
9056   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9057 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9058 if test "${ac_cv_search_ffi_call+set}" = set; then
9059   echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061   ac_func_search_save_LIBS=$LIBS
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h.  */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h.  */
9068
9069 /* Override any GCC internal prototype to avoid an error.
9070    Use char because int might match the return type of a GCC
9071    builtin and then its argument prototype would still apply.  */
9072 #ifdef __cplusplus
9073 extern "C"
9074 #endif
9075 char ffi_call ();
9076 int
9077 main ()
9078 {
9079 return ffi_call ();
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 for ac_lib in '' ffi; do
9085   if test -z "$ac_lib"; then
9086     ac_res="none required"
9087   else
9088     ac_res=-l$ac_lib
9089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9090   fi
9091   rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (ac_try="$ac_link"
9093 case "(($ac_try" in
9094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095   *) ac_try_echo=$ac_try;;
9096 esac
9097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9098   (eval "$ac_link") 2>conftest.er1
9099   ac_status=$?
9100   grep -v '^ *+' conftest.er1 >conftest.err
9101   rm -f conftest.er1
9102   cat conftest.err >&5
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); } &&
9105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9106   { (case "(($ac_try" in
9107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108   *) ac_try_echo=$ac_try;;
9109 esac
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111   (eval "$ac_try") 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; } &&
9115          { ac_try='test -s conftest$ac_exeext'
9116   { (case "(($ac_try" in
9117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118   *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121   (eval "$ac_try") 2>&5
9122   ac_status=$?
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); }; }; then
9125   ac_cv_search_ffi_call=$ac_res
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130
9131 fi
9132
9133 rm -f core conftest.err conftest.$ac_objext \
9134       conftest$ac_exeext
9135   if test "${ac_cv_search_ffi_call+set}" = set; then
9136   break
9137 fi
9138 done
9139 if test "${ac_cv_search_ffi_call+set}" = set; then
9140   :
9141 else
9142   ac_cv_search_ffi_call=no
9143 fi
9144 rm conftest.$ac_ext
9145 LIBS=$ac_func_search_save_LIBS
9146 fi
9147 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9148 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9149 ac_res=$ac_cv_search_ffi_call
9150 if test "$ac_res" != no; then
9151   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9152
9153 cat >>confdefs.h <<\_ACEOF
9154 #define HAVE_FFI_CALL 1
9155 _ACEOF
9156
9157 else
9158   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9159 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9160    { (exit 1); exit 1; }; }
9161 fi
9162
9163 fi
9164
9165 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9166 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9167 if test "${ac_cv_search_mallinfo+set}" = set; then
9168   echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170   ac_func_search_save_LIBS=$LIBS
9171 cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h.  */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h.  */
9177
9178 /* Override any GCC internal prototype to avoid an error.
9179    Use char because int might match the return type of a GCC
9180    builtin and then its argument prototype would still apply.  */
9181 #ifdef __cplusplus
9182 extern "C"
9183 #endif
9184 char mallinfo ();
9185 int
9186 main ()
9187 {
9188 return mallinfo ();
9189   ;
9190   return 0;
9191 }
9192 _ACEOF
9193 for ac_lib in '' malloc; do
9194   if test -z "$ac_lib"; then
9195     ac_res="none required"
9196   else
9197     ac_res=-l$ac_lib
9198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9199   fi
9200   rm -f conftest.$ac_objext conftest$ac_exeext
9201 if { (ac_try="$ac_link"
9202 case "(($ac_try" in
9203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204   *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207   (eval "$ac_link") 2>conftest.er1
9208   ac_status=$?
9209   grep -v '^ *+' conftest.er1 >conftest.err
9210   rm -f conftest.er1
9211   cat conftest.err >&5
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); } &&
9214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9215   { (case "(($ac_try" in
9216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217   *) ac_try_echo=$ac_try;;
9218 esac
9219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220   (eval "$ac_try") 2>&5
9221   ac_status=$?
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); }; } &&
9224          { ac_try='test -s conftest$ac_exeext'
9225   { (case "(($ac_try" in
9226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227   *) ac_try_echo=$ac_try;;
9228 esac
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230   (eval "$ac_try") 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; }; then
9234   ac_cv_search_mallinfo=$ac_res
9235 else
9236   echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9238
9239
9240 fi
9241
9242 rm -f core conftest.err conftest.$ac_objext \
9243       conftest$ac_exeext
9244   if test "${ac_cv_search_mallinfo+set}" = set; then
9245   break
9246 fi
9247 done
9248 if test "${ac_cv_search_mallinfo+set}" = set; then
9249   :
9250 else
9251   ac_cv_search_mallinfo=no
9252 fi
9253 rm conftest.$ac_ext
9254 LIBS=$ac_func_search_save_LIBS
9255 fi
9256 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9257 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9258 ac_res=$ac_cv_search_mallinfo
9259 if test "$ac_res" != no; then
9260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9261
9262 cat >>confdefs.h <<\_ACEOF
9263 #define HAVE_MALLINFO 1
9264 _ACEOF
9265
9266 fi
9267
9268
9269 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9270
9271 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9272 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9273 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-lpthread  $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284
9285 /* Override any GCC internal prototype to avoid an error.
9286    Use char because int might match the return type of a GCC
9287    builtin and then its argument prototype would still apply.  */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char pthread_mutex_init ();
9292 int
9293 main ()
9294 {
9295 return pthread_mutex_init ();
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (ac_try="$ac_link"
9302 case "(($ac_try" in
9303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304   *) ac_try_echo=$ac_try;;
9305 esac
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307   (eval "$ac_link") 2>conftest.er1
9308   ac_status=$?
9309   grep -v '^ *+' conftest.er1 >conftest.err
9310   rm -f conftest.er1
9311   cat conftest.err >&5
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } &&
9314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9315   { (case "(($ac_try" in
9316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317   *) ac_try_echo=$ac_try;;
9318 esac
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320   (eval "$ac_try") 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; } &&
9324          { ac_try='test -s conftest$ac_exeext'
9325   { (case "(($ac_try" in
9326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327   *) ac_try_echo=$ac_try;;
9328 esac
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330   (eval "$ac_try") 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; }; then
9334   ac_cv_lib_pthread_pthread_mutex_init=yes
9335 else
9336   echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9338
9339         ac_cv_lib_pthread_pthread_mutex_init=no
9340 fi
9341
9342 rm -f core conftest.err conftest.$ac_objext \
9343       conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
9345 fi
9346 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9347 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9348 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9349   cat >>confdefs.h <<_ACEOF
9350 #define HAVE_LIBPTHREAD 1
9351 _ACEOF
9352
9353   LIBS="-lpthread $LIBS"
9354
9355 fi
9356
9357   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9358 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9359 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9360   echo $ECHO_N "(cached) $ECHO_C" >&6
9361 else
9362   ac_func_search_save_LIBS=$LIBS
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369
9370 /* Override any GCC internal prototype to avoid an error.
9371    Use char because int might match the return type of a GCC
9372    builtin and then its argument prototype would still apply.  */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 char pthread_mutex_lock ();
9377 int
9378 main ()
9379 {
9380 return pthread_mutex_lock ();
9381   ;
9382   return 0;
9383 }
9384 _ACEOF
9385 for ac_lib in '' pthread; do
9386   if test -z "$ac_lib"; then
9387     ac_res="none required"
9388   else
9389     ac_res=-l$ac_lib
9390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9391   fi
9392   rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9394 case "(($ac_try" in
9395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396   *) ac_try_echo=$ac_try;;
9397 esac
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399   (eval "$ac_link") 2>conftest.er1
9400   ac_status=$?
9401   grep -v '^ *+' conftest.er1 >conftest.err
9402   rm -f conftest.er1
9403   cat conftest.err >&5
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } &&
9406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9407   { (case "(($ac_try" in
9408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409   *) ac_try_echo=$ac_try;;
9410 esac
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412   (eval "$ac_try") 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); }; } &&
9416          { ac_try='test -s conftest$ac_exeext'
9417   { (case "(($ac_try" in
9418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419   *) ac_try_echo=$ac_try;;
9420 esac
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422   (eval "$ac_try") 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   ac_cv_search_pthread_mutex_lock=$ac_res
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431
9432 fi
9433
9434 rm -f core conftest.err conftest.$ac_objext \
9435       conftest$ac_exeext
9436   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9437   break
9438 fi
9439 done
9440 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9441   :
9442 else
9443   ac_cv_search_pthread_mutex_lock=no
9444 fi
9445 rm conftest.$ac_ext
9446 LIBS=$ac_func_search_save_LIBS
9447 fi
9448 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9449 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9450 ac_res=$ac_cv_search_pthread_mutex_lock
9451 if test "$ac_res" != no; then
9452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9453
9454 cat >>confdefs.h <<\_ACEOF
9455 #define HAVE_PTHREAD_MUTEX_LOCK 1
9456 _ACEOF
9457
9458 fi
9459
9460   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9461 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9462 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   ac_func_search_save_LIBS=$LIBS
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h.  */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h.  */
9472
9473 /* Override any GCC internal prototype to avoid an error.
9474    Use char because int might match the return type of a GCC
9475    builtin and then its argument prototype would still apply.  */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char pthread_rwlock_init ();
9480 int
9481 main ()
9482 {
9483 return pthread_rwlock_init ();
9484   ;
9485   return 0;
9486 }
9487 _ACEOF
9488 for ac_lib in '' pthread; do
9489   if test -z "$ac_lib"; then
9490     ac_res="none required"
9491   else
9492     ac_res=-l$ac_lib
9493     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9494   fi
9495   rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9497 case "(($ac_try" in
9498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499   *) ac_try_echo=$ac_try;;
9500 esac
9501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502   (eval "$ac_link") 2>conftest.er1
9503   ac_status=$?
9504   grep -v '^ *+' conftest.er1 >conftest.err
9505   rm -f conftest.er1
9506   cat conftest.err >&5
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } &&
9509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9510   { (case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515   (eval "$ac_try") 2>&5
9516   ac_status=$?
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); }; } &&
9519          { ac_try='test -s conftest$ac_exeext'
9520   { (case "(($ac_try" in
9521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522   *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525   (eval "$ac_try") 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); }; }; then
9529   ac_cv_search_pthread_rwlock_init=$ac_res
9530 else
9531   echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534
9535 fi
9536
9537 rm -f core conftest.err conftest.$ac_objext \
9538       conftest$ac_exeext
9539   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9540   break
9541 fi
9542 done
9543 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9544   :
9545 else
9546   ac_cv_search_pthread_rwlock_init=no
9547 fi
9548 rm conftest.$ac_ext
9549 LIBS=$ac_func_search_save_LIBS
9550 fi
9551 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9552 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9553 ac_res=$ac_cv_search_pthread_rwlock_init
9554 if test "$ac_res" != no; then
9555   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9556
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_PTHREAD_RWLOCK_INIT 1
9559 _ACEOF
9560
9561 fi
9562
9563   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9564 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9565 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568   ac_func_search_save_LIBS=$LIBS
9569 cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h.  */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h.  */
9575
9576 /* Override any GCC internal prototype to avoid an error.
9577    Use char because int might match the return type of a GCC
9578    builtin and then its argument prototype would still apply.  */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 char pthread_getspecific ();
9583 int
9584 main ()
9585 {
9586 return pthread_getspecific ();
9587   ;
9588   return 0;
9589 }
9590 _ACEOF
9591 for ac_lib in '' pthread; do
9592   if test -z "$ac_lib"; then
9593     ac_res="none required"
9594   else
9595     ac_res=-l$ac_lib
9596     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9597   fi
9598   rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9600 case "(($ac_try" in
9601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602   *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605   (eval "$ac_link") 2>conftest.er1
9606   ac_status=$?
9607   grep -v '^ *+' conftest.er1 >conftest.err
9608   rm -f conftest.er1
9609   cat conftest.err >&5
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } &&
9612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9613   { (case "(($ac_try" in
9614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615   *) ac_try_echo=$ac_try;;
9616 esac
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618   (eval "$ac_try") 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; } &&
9622          { ac_try='test -s conftest$ac_exeext'
9623   { (case "(($ac_try" in
9624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625   *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628   (eval "$ac_try") 2>&5
9629   ac_status=$?
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); }; }; then
9632   ac_cv_search_pthread_getspecific=$ac_res
9633 else
9634   echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637
9638 fi
9639
9640 rm -f core conftest.err conftest.$ac_objext \
9641       conftest$ac_exeext
9642   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9643   break
9644 fi
9645 done
9646 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9647   :
9648 else
9649   ac_cv_search_pthread_getspecific=no
9650 fi
9651 rm conftest.$ac_ext
9652 LIBS=$ac_func_search_save_LIBS
9653 fi
9654 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9655 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9656 ac_res=$ac_cv_search_pthread_getspecific
9657 if test "$ac_res" != no; then
9658   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9659
9660 cat >>confdefs.h <<\_ACEOF
9661 #define HAVE_PTHREAD_GETSPECIFIC 1
9662 _ACEOF
9663
9664 fi
9665
9666 fi
9667
9668 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9669
9670 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9671 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9672 if test "${ac_cv_lib_z_compress2+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675   ac_check_lib_save_LIBS=$LIBS
9676 LIBS="-lz  $LIBS"
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h.  */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h.  */
9683
9684 /* Override any GCC internal prototype to avoid an error.
9685    Use char because int might match the return type of a GCC
9686    builtin and then its argument prototype would still apply.  */
9687 #ifdef __cplusplus
9688 extern "C"
9689 #endif
9690 char compress2 ();
9691 int
9692 main ()
9693 {
9694 return compress2 ();
9695   ;
9696   return 0;
9697 }
9698 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9701 case "(($ac_try" in
9702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703   *) ac_try_echo=$ac_try;;
9704 esac
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706   (eval "$ac_link") 2>conftest.er1
9707   ac_status=$?
9708   grep -v '^ *+' conftest.er1 >conftest.err
9709   rm -f conftest.er1
9710   cat conftest.err >&5
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } &&
9713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714   { (case "(($ac_try" in
9715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716   *) ac_try_echo=$ac_try;;
9717 esac
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719   (eval "$ac_try") 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); }; } &&
9723          { ac_try='test -s conftest$ac_exeext'
9724   { (case "(($ac_try" in
9725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726   *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729   (eval "$ac_try") 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); }; }; then
9733   ac_cv_lib_z_compress2=yes
9734 else
9735   echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738         ac_cv_lib_z_compress2=no
9739 fi
9740
9741 rm -f core conftest.err conftest.$ac_objext \
9742       conftest$ac_exeext conftest.$ac_ext
9743 LIBS=$ac_check_lib_save_LIBS
9744 fi
9745 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9746 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9747 if test $ac_cv_lib_z_compress2 = yes; then
9748   cat >>confdefs.h <<_ACEOF
9749 #define HAVE_LIBZ 1
9750 _ACEOF
9751
9752   LIBS="-lz $LIBS"
9753
9754 fi
9755
9756 fi
9757
9758
9759 # Check whether --with-oprofile was given.
9760 if test "${with_oprofile+set}" = set; then
9761   withval=$with_oprofile;
9762       USE_OPROFILE=1
9763
9764       case "$withval" in
9765         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9766         no) llvm_cv_oppath=
9767             USE_OPROFILE=0
9768  ;;
9769         *) llvm_cv_oppath="${withval}/lib/oprofile"
9770            CPPFLAGS="-I${withval}/include";;
9771       esac
9772       case $llvm_cv_os_type in
9773         Linux)
9774           if test -n "$llvm_cv_oppath" ; then
9775             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9776                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9777 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9778 if test "${ac_cv_search_bfd_init+set}" = set; then
9779   echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781   ac_func_search_save_LIBS=$LIBS
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h.  */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h.  */
9788
9789 /* Override any GCC internal prototype to avoid an error.
9790    Use char because int might match the return type of a GCC
9791    builtin and then its argument prototype would still apply.  */
9792 #ifdef __cplusplus
9793 extern "C"
9794 #endif
9795 char bfd_init ();
9796 int
9797 main ()
9798 {
9799 return bfd_init ();
9800   ;
9801   return 0;
9802 }
9803 _ACEOF
9804 for ac_lib in '' bfd; do
9805   if test -z "$ac_lib"; then
9806     ac_res="none required"
9807   else
9808     ac_res=-l$ac_lib
9809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9810   fi
9811   rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (ac_try="$ac_link"
9813 case "(($ac_try" in
9814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815   *) ac_try_echo=$ac_try;;
9816 esac
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818   (eval "$ac_link") 2>conftest.er1
9819   ac_status=$?
9820   grep -v '^ *+' conftest.er1 >conftest.err
9821   rm -f conftest.er1
9822   cat conftest.err >&5
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); } &&
9825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9826   { (case "(($ac_try" in
9827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828   *) ac_try_echo=$ac_try;;
9829 esac
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831   (eval "$ac_try") 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; } &&
9835          { ac_try='test -s conftest$ac_exeext'
9836   { (case "(($ac_try" in
9837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838   *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841   (eval "$ac_try") 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; }; then
9845   ac_cv_search_bfd_init=$ac_res
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850
9851 fi
9852
9853 rm -f core conftest.err conftest.$ac_objext \
9854       conftest$ac_exeext
9855   if test "${ac_cv_search_bfd_init+set}" = set; then
9856   break
9857 fi
9858 done
9859 if test "${ac_cv_search_bfd_init+set}" = set; then
9860   :
9861 else
9862   ac_cv_search_bfd_init=no
9863 fi
9864 rm conftest.$ac_ext
9865 LIBS=$ac_func_search_save_LIBS
9866 fi
9867 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9868 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9869 ac_res=$ac_cv_search_bfd_init
9870 if test "$ac_res" != no; then
9871   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9872
9873 fi
9874
9875             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9876 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9877 if test "${ac_cv_search_op_open_agent+set}" = set; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   ac_func_search_save_LIBS=$LIBS
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887
9888 /* Override any GCC internal prototype to avoid an error.
9889    Use char because int might match the return type of a GCC
9890    builtin and then its argument prototype would still apply.  */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 char op_open_agent ();
9895 int
9896 main ()
9897 {
9898 return op_open_agent ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 for ac_lib in '' opagent; do
9904   if test -z "$ac_lib"; then
9905     ac_res="none required"
9906   else
9907     ac_res=-l$ac_lib
9908     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9909   fi
9910   rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (ac_try="$ac_link"
9912 case "(($ac_try" in
9913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914   *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917   (eval "$ac_link") 2>conftest.er1
9918   ac_status=$?
9919   grep -v '^ *+' conftest.er1 >conftest.err
9920   rm -f conftest.er1
9921   cat conftest.err >&5
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); } &&
9924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9925   { (case "(($ac_try" in
9926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927   *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930   (eval "$ac_try") 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; } &&
9934          { ac_try='test -s conftest$ac_exeext'
9935   { (case "(($ac_try" in
9936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937   *) ac_try_echo=$ac_try;;
9938 esac
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940   (eval "$ac_try") 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); }; }; then
9944   ac_cv_search_op_open_agent=$ac_res
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949
9950 fi
9951
9952 rm -f core conftest.err conftest.$ac_objext \
9953       conftest$ac_exeext
9954   if test "${ac_cv_search_op_open_agent+set}" = set; then
9955   break
9956 fi
9957 done
9958 if test "${ac_cv_search_op_open_agent+set}" = set; then
9959   :
9960 else
9961   ac_cv_search_op_open_agent=no
9962 fi
9963 rm conftest.$ac_ext
9964 LIBS=$ac_func_search_save_LIBS
9965 fi
9966 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9967 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9968 ac_res=$ac_cv_search_op_open_agent
9969 if test "$ac_res" != no; then
9970   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9971
9972 else
9973
9974               echo "Error! You need to have libopagent around."
9975               exit -1
9976
9977 fi
9978
9979             if test "${ac_cv_header_opagent_h+set}" = set; then
9980   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9981 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9982 if test "${ac_cv_header_opagent_h+set}" = set; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 fi
9985 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9986 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9987 else
9988   # Is the header compilable?
9989 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9990 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997 $ac_includes_default
9998 #include <opagent.h>
9999 _ACEOF
10000 rm -f conftest.$ac_objext
10001 if { (ac_try="$ac_compile"
10002 case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_compile") 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } &&
10014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015   { (case "(($ac_try" in
10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017   *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020   (eval "$ac_try") 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); }; } &&
10024          { ac_try='test -s conftest.$ac_objext'
10025   { (case "(($ac_try" in
10026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027   *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030   (eval "$ac_try") 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; }; then
10034   ac_header_compiler=yes
10035 else
10036   echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039         ac_header_compiler=no
10040 fi
10041
10042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10044 echo "${ECHO_T}$ac_header_compiler" >&6; }
10045
10046 # Is the header present?
10047 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10048 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10049 cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h.  */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h.  */
10055 #include <opagent.h>
10056 _ACEOF
10057 if { (ac_try="$ac_cpp conftest.$ac_ext"
10058 case "(($ac_try" in
10059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060   *) ac_try_echo=$ac_try;;
10061 esac
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } >/dev/null; then
10070   if test -s conftest.err; then
10071     ac_cpp_err=$ac_c_preproc_warn_flag
10072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10073   else
10074     ac_cpp_err=
10075   fi
10076 else
10077   ac_cpp_err=yes
10078 fi
10079 if test -z "$ac_cpp_err"; then
10080   ac_header_preproc=yes
10081 else
10082   echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085   ac_header_preproc=no
10086 fi
10087
10088 rm -f conftest.err conftest.$ac_ext
10089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10090 echo "${ECHO_T}$ac_header_preproc" >&6; }
10091
10092 # So?  What about this header?
10093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10094   yes:no: )
10095     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10096 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10097     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10098 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10099     ac_header_preproc=yes
10100     ;;
10101   no:yes:* )
10102     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10103 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10104     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10105 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10106     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10107 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10108     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10109 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10110     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10111 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10112     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10113 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10114     ( cat <<\_ASBOX
10115 ## ------------------------------------ ##
10116 ## Report this to http://llvm.org/bugs/ ##
10117 ## ------------------------------------ ##
10118 _ASBOX
10119      ) | sed "s/^/$as_me: WARNING:     /" >&2
10120     ;;
10121 esac
10122 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10123 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10124 if test "${ac_cv_header_opagent_h+set}" = set; then
10125   echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127   ac_cv_header_opagent_h=$ac_header_preproc
10128 fi
10129 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10130 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10131
10132 fi
10133 if test $ac_cv_header_opagent_h = yes; then
10134   :
10135 else
10136
10137               echo "Error! You need to have opagent.h around."
10138               exit -1
10139
10140 fi
10141
10142
10143           fi ;;
10144         *)
10145           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10146 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10147    { (exit 1); exit 1; }; } ;;
10148       esac
10149
10150 else
10151
10152       USE_OPROFILE=0
10153
10154
10155 fi
10156
10157
10158 cat >>confdefs.h <<_ACEOF
10159 #define LLVM_USE_OPROFILE $USE_OPROFILE
10160 _ACEOF
10161
10162
10163
10164 # Check whether --with-intel-jitevents was given.
10165 if test "${with_intel_jitevents+set}" = set; then
10166   withval=$with_intel_jitevents;
10167        case "$withval" in
10168           yes) USE_INTEL_JITEVENTS=1
10169 ;;
10170           no)  USE_INTEL_JITEVENTS=0
10171 ;;
10172           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10173 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10174    { (exit 1); exit 1; }; };;
10175        esac
10176
10177       case $llvm_cv_os_type in
10178         Linux|Win32|Cygwin|MingW) ;;
10179         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10180 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10181    { (exit 1); exit 1; }; };;
10182       esac
10183
10184       case "$llvm_cv_target_arch" in
10185         x86|x86_64) ;;
10186         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10187 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10188    { (exit 1); exit 1; }; };;
10189       esac
10190
10191 else
10192
10193       USE_INTEL_JITEVENTS=0
10194
10195
10196 fi
10197
10198
10199 cat >>confdefs.h <<_ACEOF
10200 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10201 _ACEOF
10202
10203
10204 for ac_prog in xml2-config
10205 do
10206   # Extract the first word of "$ac_prog", so it can be a program name with args.
10207 set dummy $ac_prog; ac_word=$2
10208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10210 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213   if test -n "$XML2CONFIG"; then
10214   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10215 else
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10218 do
10219   IFS=$as_save_IFS
10220   test -z "$as_dir" && as_dir=.
10221   for ac_exec_ext in '' $ac_executable_extensions; do
10222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10223     ac_cv_prog_XML2CONFIG="$ac_prog"
10224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10225     break 2
10226   fi
10227 done
10228 done
10229 IFS=$as_save_IFS
10230
10231 fi
10232 fi
10233 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10234 if test -n "$XML2CONFIG"; then
10235   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10236 echo "${ECHO_T}$XML2CONFIG" >&6; }
10237 else
10238   { echo "$as_me:$LINENO: result: no" >&5
10239 echo "${ECHO_T}no" >&6; }
10240 fi
10241
10242
10243   test -n "$XML2CONFIG" && break
10244 done
10245
10246
10247 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10248 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10249 if test "x$XML2CONFIG" = "x"; then
10250  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10251 echo "${ECHO_T}xml2-config not found" >&6; }
10252 else
10253  LIBXML2_INC=`$XML2CONFIG --cflags`
10254  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10255 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10256  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10257 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10258 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10259   echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261   ac_check_lib_save_LIBS=$LIBS
10262 LIBS="-lxml2  $LIBS"
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h.  */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h.  */
10269
10270 /* Override any GCC internal prototype to avoid an error.
10271    Use char because int might match the return type of a GCC
10272    builtin and then its argument prototype would still apply.  */
10273 #ifdef __cplusplus
10274 extern "C"
10275 #endif
10276 char xmlReadFile ();
10277 int
10278 main ()
10279 {
10280 return xmlReadFile ();
10281   ;
10282   return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (ac_try="$ac_link"
10287 case "(($ac_try" in
10288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289   *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292   (eval "$ac_link") 2>conftest.er1
10293   ac_status=$?
10294   grep -v '^ *+' conftest.er1 >conftest.err
10295   rm -f conftest.er1
10296   cat conftest.err >&5
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); } &&
10299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300   { (case "(($ac_try" in
10301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302   *) ac_try_echo=$ac_try;;
10303 esac
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305   (eval "$ac_try") 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; } &&
10309          { ac_try='test -s conftest$ac_exeext'
10310   { (case "(($ac_try" in
10311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312   *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315   (eval "$ac_try") 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }; }; then
10319   ac_cv_lib_xml2_xmlReadFile=yes
10320 else
10321   echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324         ac_cv_lib_xml2_xmlReadFile=no
10325 fi
10326
10327 rm -f core conftest.err conftest.$ac_objext \
10328       conftest$ac_exeext conftest.$ac_ext
10329 LIBS=$ac_check_lib_save_LIBS
10330 fi
10331 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10332 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10333 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10334
10335 cat >>confdefs.h <<\_ACEOF
10336 #define CLANG_HAVE_LIBXML 1
10337 _ACEOF
10338
10339                                 LIBXML2_LIBS="-lxml2"
10340 fi
10341
10342 fi
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352 ac_header_dirent=no
10353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10354   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10355 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10356 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h.  */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h.  */
10366 #include <sys/types.h>
10367 #include <$ac_hdr>
10368
10369 int
10370 main ()
10371 {
10372 if ((DIR *) 0)
10373 return 0;
10374   ;
10375   return 0;
10376 }
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382   *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385   (eval "$ac_compile") 2>conftest.er1
10386   ac_status=$?
10387   grep -v '^ *+' conftest.er1 >conftest.err
10388   rm -f conftest.er1
10389   cat conftest.err >&5
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); } &&
10392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10393   { (case "(($ac_try" in
10394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395   *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398   (eval "$ac_try") 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); }; } &&
10402          { ac_try='test -s conftest.$ac_objext'
10403   { (case "(($ac_try" in
10404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405   *) ac_try_echo=$ac_try;;
10406 esac
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408   (eval "$ac_try") 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); }; }; then
10412   eval "$as_ac_Header=yes"
10413 else
10414   echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417         eval "$as_ac_Header=no"
10418 fi
10419
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421 fi
10422 ac_res=`eval echo '${'$as_ac_Header'}'`
10423                { echo "$as_me:$LINENO: result: $ac_res" >&5
10424 echo "${ECHO_T}$ac_res" >&6; }
10425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10426   cat >>confdefs.h <<_ACEOF
10427 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10428 _ACEOF
10429
10430 ac_header_dirent=$ac_hdr; break
10431 fi
10432
10433 done
10434 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10435 if test $ac_header_dirent = dirent.h; then
10436   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10437 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10438 if test "${ac_cv_search_opendir+set}" = set; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441   ac_func_search_save_LIBS=$LIBS
10442 cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h.  */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h.  */
10448
10449 /* Override any GCC internal prototype to avoid an error.
10450    Use char because int might match the return type of a GCC
10451    builtin and then its argument prototype would still apply.  */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 char opendir ();
10456 int
10457 main ()
10458 {
10459 return opendir ();
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 for ac_lib in '' dir; do
10465   if test -z "$ac_lib"; then
10466     ac_res="none required"
10467   else
10468     ac_res=-l$ac_lib
10469     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10470   fi
10471   rm -f conftest.$ac_objext conftest$ac_exeext
10472 if { (ac_try="$ac_link"
10473 case "(($ac_try" in
10474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475   *) ac_try_echo=$ac_try;;
10476 esac
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478   (eval "$ac_link") 2>conftest.er1
10479   ac_status=$?
10480   grep -v '^ *+' conftest.er1 >conftest.err
10481   rm -f conftest.er1
10482   cat conftest.err >&5
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); } &&
10485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10486   { (case "(($ac_try" in
10487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488   *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491   (eval "$ac_try") 2>&5
10492   ac_status=$?
10493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494   (exit $ac_status); }; } &&
10495          { ac_try='test -s conftest$ac_exeext'
10496   { (case "(($ac_try" in
10497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498   *) ac_try_echo=$ac_try;;
10499 esac
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501   (eval "$ac_try") 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; }; then
10505   ac_cv_search_opendir=$ac_res
10506 else
10507   echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510
10511 fi
10512
10513 rm -f core conftest.err conftest.$ac_objext \
10514       conftest$ac_exeext
10515   if test "${ac_cv_search_opendir+set}" = set; then
10516   break
10517 fi
10518 done
10519 if test "${ac_cv_search_opendir+set}" = set; then
10520   :
10521 else
10522   ac_cv_search_opendir=no
10523 fi
10524 rm conftest.$ac_ext
10525 LIBS=$ac_func_search_save_LIBS
10526 fi
10527 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10528 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10529 ac_res=$ac_cv_search_opendir
10530 if test "$ac_res" != no; then
10531   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10532
10533 fi
10534
10535 else
10536   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10537 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10538 if test "${ac_cv_search_opendir+set}" = set; then
10539   echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541   ac_func_search_save_LIBS=$LIBS
10542 cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h.  */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h.  */
10548
10549 /* Override any GCC internal prototype to avoid an error.
10550    Use char because int might match the return type of a GCC
10551    builtin and then its argument prototype would still apply.  */
10552 #ifdef __cplusplus
10553 extern "C"
10554 #endif
10555 char opendir ();
10556 int
10557 main ()
10558 {
10559 return opendir ();
10560   ;
10561   return 0;
10562 }
10563 _ACEOF
10564 for ac_lib in '' x; do
10565   if test -z "$ac_lib"; then
10566     ac_res="none required"
10567   else
10568     ac_res=-l$ac_lib
10569     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10570   fi
10571   rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (ac_try="$ac_link"
10573 case "(($ac_try" in
10574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575   *) ac_try_echo=$ac_try;;
10576 esac
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578   (eval "$ac_link") 2>conftest.er1
10579   ac_status=$?
10580   grep -v '^ *+' conftest.er1 >conftest.err
10581   rm -f conftest.er1
10582   cat conftest.err >&5
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); } &&
10585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10586   { (case "(($ac_try" in
10587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588   *) ac_try_echo=$ac_try;;
10589 esac
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591   (eval "$ac_try") 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); }; } &&
10595          { ac_try='test -s conftest$ac_exeext'
10596   { (case "(($ac_try" in
10597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598   *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601   (eval "$ac_try") 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); }; }; then
10605   ac_cv_search_opendir=$ac_res
10606 else
10607   echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10609
10610
10611 fi
10612
10613 rm -f core conftest.err conftest.$ac_objext \
10614       conftest$ac_exeext
10615   if test "${ac_cv_search_opendir+set}" = set; then
10616   break
10617 fi
10618 done
10619 if test "${ac_cv_search_opendir+set}" = set; then
10620   :
10621 else
10622   ac_cv_search_opendir=no
10623 fi
10624 rm conftest.$ac_ext
10625 LIBS=$ac_func_search_save_LIBS
10626 fi
10627 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10628 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10629 ac_res=$ac_cv_search_opendir
10630 if test "$ac_res" != no; then
10631   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10632
10633 fi
10634
10635 fi
10636
10637 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10638 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10639 if test "${ac_cv_header_mmap_anon+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642    ac_ext=c
10643 ac_cpp='$CPP $CPPFLAGS'
10644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10647
10648   cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654 #include <sys/mman.h>
10655 #include <unistd.h>
10656 #include <fcntl.h>
10657 int
10658 main ()
10659 {
10660 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext
10666 if { (ac_try="$ac_compile"
10667 case "(($ac_try" in
10668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669   *) ac_try_echo=$ac_try;;
10670 esac
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672   (eval "$ac_compile") 2>conftest.er1
10673   ac_status=$?
10674   grep -v '^ *+' conftest.er1 >conftest.err
10675   rm -f conftest.er1
10676   cat conftest.err >&5
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); } &&
10679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; } &&
10689          { ac_try='test -s conftest.$ac_objext'
10690   { (case "(($ac_try" in
10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692   *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695   (eval "$ac_try") 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; }; then
10699   ac_cv_header_mmap_anon=yes
10700 else
10701   echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704         ac_cv_header_mmap_anon=no
10705 fi
10706
10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10708   ac_ext=c
10709 ac_cpp='$CPP $CPPFLAGS'
10710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10713
10714
10715 fi
10716 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10717 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10718 if test "$ac_cv_header_mmap_anon" = yes; then
10719
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_MMAP_ANONYMOUS 1
10722 _ACEOF
10723
10724 fi
10725
10726 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10727 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10728 if test "${ac_cv_header_stat_broken+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 #include <sys/types.h>
10738 #include <sys/stat.h>
10739
10740 #if defined S_ISBLK && defined S_IFDIR
10741 # if S_ISBLK (S_IFDIR)
10742 You lose.
10743 # endif
10744 #endif
10745
10746 #if defined S_ISBLK && defined S_IFCHR
10747 # if S_ISBLK (S_IFCHR)
10748 You lose.
10749 # endif
10750 #endif
10751
10752 #if defined S_ISLNK && defined S_IFREG
10753 # if S_ISLNK (S_IFREG)
10754 You lose.
10755 # endif
10756 #endif
10757
10758 #if defined S_ISSOCK && defined S_IFREG
10759 # if S_ISSOCK (S_IFREG)
10760 You lose.
10761 # endif
10762 #endif
10763
10764 _ACEOF
10765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10766   $EGREP "You lose" >/dev/null 2>&1; then
10767   ac_cv_header_stat_broken=yes
10768 else
10769   ac_cv_header_stat_broken=no
10770 fi
10771 rm -f conftest*
10772
10773 fi
10774 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10775 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10776 if test $ac_cv_header_stat_broken = yes; then
10777
10778 cat >>confdefs.h <<\_ACEOF
10779 #define STAT_MACROS_BROKEN 1
10780 _ACEOF
10781
10782 fi
10783
10784 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10785 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10786 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10787   echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789   cat >conftest.$ac_ext <<_ACEOF
10790 /* confdefs.h.  */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h.  */
10795 #include <sys/types.h>
10796 #include <sys/wait.h>
10797 #ifndef WEXITSTATUS
10798 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10799 #endif
10800 #ifndef WIFEXITED
10801 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10802 #endif
10803
10804 int
10805 main ()
10806 {
10807   int s;
10808   wait (&s);
10809   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10810   ;
10811   return 0;
10812 }
10813 _ACEOF
10814 rm -f conftest.$ac_objext
10815 if { (ac_try="$ac_compile"
10816 case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821   (eval "$ac_compile") 2>conftest.er1
10822   ac_status=$?
10823   grep -v '^ *+' conftest.er1 >conftest.err
10824   rm -f conftest.er1
10825   cat conftest.err >&5
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } &&
10828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10829   { (case "(($ac_try" in
10830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831   *) ac_try_echo=$ac_try;;
10832 esac
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834   (eval "$ac_try") 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; } &&
10838          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; }; then
10848   ac_cv_header_sys_wait_h=yes
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853         ac_cv_header_sys_wait_h=no
10854 fi
10855
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 fi
10858 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10859 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10860 if test $ac_cv_header_sys_wait_h = yes; then
10861
10862 cat >>confdefs.h <<\_ACEOF
10863 #define HAVE_SYS_WAIT_H 1
10864 _ACEOF
10865
10866 fi
10867
10868 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10869 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10870 if test "${ac_cv_header_time+set}" = set; then
10871   echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873   cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h.  */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h.  */
10879 #include <sys/types.h>
10880 #include <sys/time.h>
10881 #include <time.h>
10882
10883 int
10884 main ()
10885 {
10886 if ((struct tm *) 0)
10887 return 0;
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 rm -f conftest.$ac_objext
10893 if { (ac_try="$ac_compile"
10894 case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_compile") 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907   { (case "(($ac_try" in
10908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909   *) ac_try_echo=$ac_try;;
10910 esac
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912   (eval "$ac_try") 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; } &&
10916          { ac_try='test -s conftest.$ac_objext'
10917   { (case "(($ac_try" in
10918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919   *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922   (eval "$ac_try") 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }; }; then
10926   ac_cv_header_time=yes
10927 else
10928   echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10930
10931         ac_cv_header_time=no
10932 fi
10933
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 fi
10936 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10937 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10938 if test $ac_cv_header_time = yes; then
10939
10940 cat >>confdefs.h <<\_ACEOF
10941 #define TIME_WITH_SYS_TIME 1
10942 _ACEOF
10943
10944 fi
10945
10946
10947 ac_ext=cpp
10948 ac_cpp='$CXXCPP $CPPFLAGS'
10949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10952
10953
10954 for ac_header in cxxabi.h
10955 do
10956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10960   echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962   cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 #include <stddef.h>
10969
10970
10971 #include <$ac_header>
10972 _ACEOF
10973 rm -f conftest.$ac_objext
10974 if { (ac_try="$ac_compile"
10975 case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980   (eval "$ac_compile") 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } &&
10987          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }; } &&
10997          { ac_try='test -s conftest.$ac_objext'
10998   { (case "(($ac_try" in
10999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000   *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003   (eval "$ac_try") 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; }; then
11007   eval "$as_ac_Header=yes"
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012         eval "$as_ac_Header=no"
11013 fi
11014
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 fi
11017 ac_res=`eval echo '${'$as_ac_Header'}'`
11018                { echo "$as_me:$LINENO: result: $ac_res" >&5
11019 echo "${ECHO_T}$ac_res" >&6; }
11020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11021   cat >>confdefs.h <<_ACEOF
11022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11023 _ACEOF
11024
11025 fi
11026
11027 done
11028
11029 ac_ext=c
11030 ac_cpp='$CPP $CPPFLAGS'
11031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11034
11035
11036
11037
11038
11039
11040
11041 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11042 do
11043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11048   echo $ECHO_N "(cached) $ECHO_C" >&6
11049 fi
11050 ac_res=`eval echo '${'$as_ac_Header'}'`
11051                { echo "$as_me:$LINENO: result: $ac_res" >&5
11052 echo "${ECHO_T}$ac_res" >&6; }
11053 else
11054   # Is the header compilable?
11055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11057 cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h.  */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h.  */
11063 $ac_includes_default
11064 #include <$ac_header>
11065 _ACEOF
11066 rm -f conftest.$ac_objext
11067 if { (ac_try="$ac_compile"
11068 case "(($ac_try" in
11069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070   *) ac_try_echo=$ac_try;;
11071 esac
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073   (eval "$ac_compile") 2>conftest.er1
11074   ac_status=$?
11075   grep -v '^ *+' conftest.er1 >conftest.err
11076   rm -f conftest.er1
11077   cat conftest.err >&5
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } &&
11080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11081   { (case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086   (eval "$ac_try") 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); }; } &&
11090          { ac_try='test -s conftest.$ac_objext'
11091   { (case "(($ac_try" in
11092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093   *) ac_try_echo=$ac_try;;
11094 esac
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096   (eval "$ac_try") 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); }; }; then
11100   ac_header_compiler=yes
11101 else
11102   echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11104
11105         ac_header_compiler=no
11106 fi
11107
11108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11110 echo "${ECHO_T}$ac_header_compiler" >&6; }
11111
11112 # Is the header present?
11113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h.  */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h.  */
11121 #include <$ac_header>
11122 _ACEOF
11123 if { (ac_try="$ac_cpp conftest.$ac_ext"
11124 case "(($ac_try" in
11125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126   *) ac_try_echo=$ac_try;;
11127 esac
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11130   ac_status=$?
11131   grep -v '^ *+' conftest.er1 >conftest.err
11132   rm -f conftest.er1
11133   cat conftest.err >&5
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } >/dev/null; then
11136   if test -s conftest.err; then
11137     ac_cpp_err=$ac_c_preproc_warn_flag
11138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11139   else
11140     ac_cpp_err=
11141   fi
11142 else
11143   ac_cpp_err=yes
11144 fi
11145 if test -z "$ac_cpp_err"; then
11146   ac_header_preproc=yes
11147 else
11148   echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151   ac_header_preproc=no
11152 fi
11153
11154 rm -f conftest.err conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11156 echo "${ECHO_T}$ac_header_preproc" >&6; }
11157
11158 # So?  What about this header?
11159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11160   yes:no: )
11161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11165     ac_header_preproc=yes
11166     ;;
11167   no:yes:* )
11168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11180     ( cat <<\_ASBOX
11181 ## ------------------------------------ ##
11182 ## Report this to http://llvm.org/bugs/ ##
11183 ## ------------------------------------ ##
11184 _ASBOX
11185      ) | sed "s/^/$as_me: WARNING:     /" >&2
11186     ;;
11187 esac
11188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11191   echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193   eval "$as_ac_Header=\$ac_header_preproc"
11194 fi
11195 ac_res=`eval echo '${'$as_ac_Header'}'`
11196                { echo "$as_me:$LINENO: result: $ac_res" >&5
11197 echo "${ECHO_T}$ac_res" >&6; }
11198
11199 fi
11200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11201   cat >>confdefs.h <<_ACEOF
11202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11203 _ACEOF
11204
11205 fi
11206
11207 done
11208
11209
11210
11211
11212
11213
11214
11215 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11216 do
11217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11219   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11222   echo $ECHO_N "(cached) $ECHO_C" >&6
11223 fi
11224 ac_res=`eval echo '${'$as_ac_Header'}'`
11225                { echo "$as_me:$LINENO: result: $ac_res" >&5
11226 echo "${ECHO_T}$ac_res" >&6; }
11227 else
11228   # Is the header compilable?
11229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 $ac_includes_default
11238 #include <$ac_header>
11239 _ACEOF
11240 rm -f conftest.$ac_objext
11241 if { (ac_try="$ac_compile"
11242 case "(($ac_try" in
11243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244   *) ac_try_echo=$ac_try;;
11245 esac
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247   (eval "$ac_compile") 2>conftest.er1
11248   ac_status=$?
11249   grep -v '^ *+' conftest.er1 >conftest.err
11250   rm -f conftest.er1
11251   cat conftest.err >&5
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); } &&
11254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11255   { (case "(($ac_try" in
11256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257   *) ac_try_echo=$ac_try;;
11258 esac
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260   (eval "$ac_try") 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; } &&
11264          { ac_try='test -s conftest.$ac_objext'
11265   { (case "(($ac_try" in
11266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267   *) ac_try_echo=$ac_try;;
11268 esac
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270   (eval "$ac_try") 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); }; }; then
11274   ac_header_compiler=yes
11275 else
11276   echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11278
11279         ac_header_compiler=no
11280 fi
11281
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11284 echo "${ECHO_T}$ac_header_compiler" >&6; }
11285
11286 # Is the header present?
11287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h.  */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h.  */
11295 #include <$ac_header>
11296 _ACEOF
11297 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11304   ac_status=$?
11305   grep -v '^ *+' conftest.er1 >conftest.err
11306   rm -f conftest.er1
11307   cat conftest.err >&5
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } >/dev/null; then
11310   if test -s conftest.err; then
11311     ac_cpp_err=$ac_c_preproc_warn_flag
11312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11313   else
11314     ac_cpp_err=
11315   fi
11316 else
11317   ac_cpp_err=yes
11318 fi
11319 if test -z "$ac_cpp_err"; then
11320   ac_header_preproc=yes
11321 else
11322   echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11324
11325   ac_header_preproc=no
11326 fi
11327
11328 rm -f conftest.err conftest.$ac_ext
11329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11330 echo "${ECHO_T}$ac_header_preproc" >&6; }
11331
11332 # So?  What about this header?
11333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11334   yes:no: )
11335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11339     ac_header_preproc=yes
11340     ;;
11341   no:yes:* )
11342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11354     ( cat <<\_ASBOX
11355 ## ------------------------------------ ##
11356 ## Report this to http://llvm.org/bugs/ ##
11357 ## ------------------------------------ ##
11358 _ASBOX
11359      ) | sed "s/^/$as_me: WARNING:     /" >&2
11360     ;;
11361 esac
11362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367   eval "$as_ac_Header=\$ac_header_preproc"
11368 fi
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370                { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372
11373 fi
11374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11375   cat >>confdefs.h <<_ACEOF
11376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11377 _ACEOF
11378
11379 fi
11380
11381 done
11382
11383
11384 for ac_header in utime.h
11385 do
11386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 fi
11393 ac_res=`eval echo '${'$as_ac_Header'}'`
11394                { echo "$as_me:$LINENO: result: $ac_res" >&5
11395 echo "${ECHO_T}$ac_res" >&6; }
11396 else
11397   # Is the header compilable?
11398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h.  */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h.  */
11406 $ac_includes_default
11407 #include <$ac_header>
11408 _ACEOF
11409 rm -f conftest.$ac_objext
11410 if { (ac_try="$ac_compile"
11411 case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416   (eval "$ac_compile") 2>conftest.er1
11417   ac_status=$?
11418   grep -v '^ *+' conftest.er1 >conftest.err
11419   rm -f conftest.er1
11420   cat conftest.err >&5
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); } &&
11423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424   { (case "(($ac_try" in
11425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426   *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429   (eval "$ac_try") 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); }; } &&
11433          { ac_try='test -s conftest.$ac_objext'
11434   { (case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_try") 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); }; }; then
11443   ac_header_compiler=yes
11444 else
11445   echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448         ac_header_compiler=no
11449 fi
11450
11451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11453 echo "${ECHO_T}$ac_header_compiler" >&6; }
11454
11455 # Is the header present?
11456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 #include <$ac_header>
11465 _ACEOF
11466 if { (ac_try="$ac_cpp conftest.$ac_ext"
11467 case "(($ac_try" in
11468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469   *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11473   ac_status=$?
11474   grep -v '^ *+' conftest.er1 >conftest.err
11475   rm -f conftest.er1
11476   cat conftest.err >&5
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } >/dev/null; then
11479   if test -s conftest.err; then
11480     ac_cpp_err=$ac_c_preproc_warn_flag
11481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11482   else
11483     ac_cpp_err=
11484   fi
11485 else
11486   ac_cpp_err=yes
11487 fi
11488 if test -z "$ac_cpp_err"; then
11489   ac_header_preproc=yes
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11493
11494   ac_header_preproc=no
11495 fi
11496
11497 rm -f conftest.err conftest.$ac_ext
11498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11499 echo "${ECHO_T}$ac_header_preproc" >&6; }
11500
11501 # So?  What about this header?
11502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11503   yes:no: )
11504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11508     ac_header_preproc=yes
11509     ;;
11510   no:yes:* )
11511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11523     ( cat <<\_ASBOX
11524 ## ------------------------------------ ##
11525 ## Report this to http://llvm.org/bugs/ ##
11526 ## ------------------------------------ ##
11527 _ASBOX
11528      ) | sed "s/^/$as_me: WARNING:     /" >&2
11529     ;;
11530 esac
11531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   eval "$as_ac_Header=\$ac_header_preproc"
11537 fi
11538 ac_res=`eval echo '${'$as_ac_Header'}'`
11539                { echo "$as_me:$LINENO: result: $ac_res" >&5
11540 echo "${ECHO_T}$ac_res" >&6; }
11541
11542 fi
11543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11544   cat >>confdefs.h <<_ACEOF
11545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11546 _ACEOF
11547
11548 fi
11549
11550 done
11551
11552
11553
11554
11555
11556
11557 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11558 do
11559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11561   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11564   echo $ECHO_N "(cached) $ECHO_C" >&6
11565 fi
11566 ac_res=`eval echo '${'$as_ac_Header'}'`
11567                { echo "$as_me:$LINENO: result: $ac_res" >&5
11568 echo "${ECHO_T}$ac_res" >&6; }
11569 else
11570   # Is the header compilable?
11571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579 $ac_includes_default
11580 #include <$ac_header>
11581 _ACEOF
11582 rm -f conftest.$ac_objext
11583 if { (ac_try="$ac_compile"
11584 case "(($ac_try" in
11585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586   *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589   (eval "$ac_compile") 2>conftest.er1
11590   ac_status=$?
11591   grep -v '^ *+' conftest.er1 >conftest.err
11592   rm -f conftest.er1
11593   cat conftest.err >&5
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } &&
11596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11597   { (case "(($ac_try" in
11598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599   *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602   (eval "$ac_try") 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); }; } &&
11606          { ac_try='test -s conftest.$ac_objext'
11607   { (case "(($ac_try" in
11608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609   *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612   (eval "$ac_try") 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; }; then
11616   ac_header_compiler=yes
11617 else
11618   echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621         ac_header_compiler=no
11622 fi
11623
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11626 echo "${ECHO_T}$ac_header_compiler" >&6; }
11627
11628 # Is the header present?
11629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h.  */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h.  */
11637 #include <$ac_header>
11638 _ACEOF
11639 if { (ac_try="$ac_cpp conftest.$ac_ext"
11640 case "(($ac_try" in
11641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642   *) ac_try_echo=$ac_try;;
11643 esac
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11646   ac_status=$?
11647   grep -v '^ *+' conftest.er1 >conftest.err
11648   rm -f conftest.er1
11649   cat conftest.err >&5
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); } >/dev/null; then
11652   if test -s conftest.err; then
11653     ac_cpp_err=$ac_c_preproc_warn_flag
11654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11655   else
11656     ac_cpp_err=
11657   fi
11658 else
11659   ac_cpp_err=yes
11660 fi
11661 if test -z "$ac_cpp_err"; then
11662   ac_header_preproc=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667   ac_header_preproc=no
11668 fi
11669
11670 rm -f conftest.err conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11672 echo "${ECHO_T}$ac_header_preproc" >&6; }
11673
11674 # So?  What about this header?
11675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11676   yes:no: )
11677     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11681     ac_header_preproc=yes
11682     ;;
11683   no:yes:* )
11684     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11686     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11687 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11688     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11690     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11691 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11694     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11696     ( cat <<\_ASBOX
11697 ## ------------------------------------ ##
11698 ## Report this to http://llvm.org/bugs/ ##
11699 ## ------------------------------------ ##
11700 _ASBOX
11701      ) | sed "s/^/$as_me: WARNING:     /" >&2
11702     ;;
11703 esac
11704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   eval "$as_ac_Header=\$ac_header_preproc"
11710 fi
11711 ac_res=`eval echo '${'$as_ac_Header'}'`
11712                { echo "$as_me:$LINENO: result: $ac_res" >&5
11713 echo "${ECHO_T}$ac_res" >&6; }
11714
11715 fi
11716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11717   cat >>confdefs.h <<_ACEOF
11718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11719 _ACEOF
11720
11721 fi
11722
11723 done
11724
11725
11726
11727
11728 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11729 do
11730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11732   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11735   echo $ECHO_N "(cached) $ECHO_C" >&6
11736 fi
11737 ac_res=`eval echo '${'$as_ac_Header'}'`
11738                { echo "$as_me:$LINENO: result: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11740 else
11741   # Is the header compilable?
11742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h.  */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h.  */
11750 $ac_includes_default
11751 #include <$ac_header>
11752 _ACEOF
11753 rm -f conftest.$ac_objext
11754 if { (ac_try="$ac_compile"
11755 case "(($ac_try" in
11756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757   *) ac_try_echo=$ac_try;;
11758 esac
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760   (eval "$ac_compile") 2>conftest.er1
11761   ac_status=$?
11762   grep -v '^ *+' conftest.er1 >conftest.err
11763   rm -f conftest.er1
11764   cat conftest.err >&5
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } &&
11767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11768   { (case "(($ac_try" in
11769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770   *) ac_try_echo=$ac_try;;
11771 esac
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773   (eval "$ac_try") 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; } &&
11777          { ac_try='test -s conftest.$ac_objext'
11778   { (case "(($ac_try" in
11779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780   *) ac_try_echo=$ac_try;;
11781 esac
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783   (eval "$ac_try") 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; }; then
11787   ac_header_compiler=yes
11788 else
11789   echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792         ac_header_compiler=no
11793 fi
11794
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797 echo "${ECHO_T}$ac_header_compiler" >&6; }
11798
11799 # Is the header present?
11800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 #include <$ac_header>
11809 _ACEOF
11810 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } >/dev/null; then
11823   if test -s conftest.err; then
11824     ac_cpp_err=$ac_c_preproc_warn_flag
11825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11826   else
11827     ac_cpp_err=
11828   fi
11829 else
11830   ac_cpp_err=yes
11831 fi
11832 if test -z "$ac_cpp_err"; then
11833   ac_header_preproc=yes
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838   ac_header_preproc=no
11839 fi
11840
11841 rm -f conftest.err conftest.$ac_ext
11842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11843 echo "${ECHO_T}$ac_header_preproc" >&6; }
11844
11845 # So?  What about this header?
11846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11847   yes:no: )
11848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11852     ac_header_preproc=yes
11853     ;;
11854   no:yes:* )
11855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11867     ( cat <<\_ASBOX
11868 ## ------------------------------------ ##
11869 ## Report this to http://llvm.org/bugs/ ##
11870 ## ------------------------------------ ##
11871 _ASBOX
11872      ) | sed "s/^/$as_me: WARNING:     /" >&2
11873     ;;
11874 esac
11875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880   eval "$as_ac_Header=\$ac_header_preproc"
11881 fi
11882 ac_res=`eval echo '${'$as_ac_Header'}'`
11883                { echo "$as_me:$LINENO: result: $ac_res" >&5
11884 echo "${ECHO_T}$ac_res" >&6; }
11885
11886 fi
11887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11888   cat >>confdefs.h <<_ACEOF
11889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11890 _ACEOF
11891
11892 fi
11893
11894 done
11895
11896
11897 for ac_header in valgrind/valgrind.h
11898 do
11899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11901   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 fi
11906 ac_res=`eval echo '${'$as_ac_Header'}'`
11907                { echo "$as_me:$LINENO: result: $ac_res" >&5
11908 echo "${ECHO_T}$ac_res" >&6; }
11909 else
11910   # Is the header compilable?
11911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11913 cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h.  */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h.  */
11919 $ac_includes_default
11920 #include <$ac_header>
11921 _ACEOF
11922 rm -f conftest.$ac_objext
11923 if { (ac_try="$ac_compile"
11924 case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929   (eval "$ac_compile") 2>conftest.er1
11930   ac_status=$?
11931   grep -v '^ *+' conftest.er1 >conftest.err
11932   rm -f conftest.er1
11933   cat conftest.err >&5
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11937   { (case "(($ac_try" in
11938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939   *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942   (eval "$ac_try") 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; } &&
11946          { ac_try='test -s conftest.$ac_objext'
11947   { (case "(($ac_try" in
11948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949   *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952   (eval "$ac_try") 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; }; then
11956   ac_header_compiler=yes
11957 else
11958   echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961         ac_header_compiler=no
11962 fi
11963
11964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11965 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11966 echo "${ECHO_T}$ac_header_compiler" >&6; }
11967
11968 # Is the header present?
11969 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11971 cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h.  */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h.  */
11977 #include <$ac_header>
11978 _ACEOF
11979 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11986   ac_status=$?
11987   grep -v '^ *+' conftest.er1 >conftest.err
11988   rm -f conftest.er1
11989   cat conftest.err >&5
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } >/dev/null; then
11992   if test -s conftest.err; then
11993     ac_cpp_err=$ac_c_preproc_warn_flag
11994     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11995   else
11996     ac_cpp_err=
11997   fi
11998 else
11999   ac_cpp_err=yes
12000 fi
12001 if test -z "$ac_cpp_err"; then
12002   ac_header_preproc=yes
12003 else
12004   echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007   ac_header_preproc=no
12008 fi
12009
12010 rm -f conftest.err conftest.$ac_ext
12011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12012 echo "${ECHO_T}$ac_header_preproc" >&6; }
12013
12014 # So?  What about this header?
12015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12016   yes:no: )
12017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12021     ac_header_preproc=yes
12022     ;;
12023   no:yes:* )
12024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12036     ( cat <<\_ASBOX
12037 ## ------------------------------------ ##
12038 ## Report this to http://llvm.org/bugs/ ##
12039 ## ------------------------------------ ##
12040 _ASBOX
12041      ) | sed "s/^/$as_me: WARNING:     /" >&2
12042     ;;
12043 esac
12044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047   echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049   eval "$as_ac_Header=\$ac_header_preproc"
12050 fi
12051 ac_res=`eval echo '${'$as_ac_Header'}'`
12052                { echo "$as_me:$LINENO: result: $ac_res" >&5
12053 echo "${ECHO_T}$ac_res" >&6; }
12054
12055 fi
12056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12057   cat >>confdefs.h <<_ACEOF
12058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12059 _ACEOF
12060
12061 fi
12062
12063 done
12064
12065
12066 for ac_header in fenv.h
12067 do
12068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12070   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 fi
12075 ac_res=`eval echo '${'$as_ac_Header'}'`
12076                { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12078 else
12079   # Is the header compilable?
12080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12082 cat >conftest.$ac_ext <<_ACEOF
12083 /* confdefs.h.  */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h.  */
12088 $ac_includes_default
12089 #include <$ac_header>
12090 _ACEOF
12091 rm -f conftest.$ac_objext
12092 if { (ac_try="$ac_compile"
12093 case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098   (eval "$ac_compile") 2>conftest.er1
12099   ac_status=$?
12100   grep -v '^ *+' conftest.er1 >conftest.err
12101   rm -f conftest.er1
12102   cat conftest.err >&5
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12106   { (case "(($ac_try" in
12107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108   *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111   (eval "$ac_try") 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; } &&
12115          { ac_try='test -s conftest.$ac_objext'
12116   { (case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121   (eval "$ac_try") 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   ac_header_compiler=yes
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130         ac_header_compiler=no
12131 fi
12132
12133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12135 echo "${ECHO_T}$ac_header_compiler" >&6; }
12136
12137 # Is the header present?
12138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146 #include <$ac_header>
12147 _ACEOF
12148 if { (ac_try="$ac_cpp conftest.$ac_ext"
12149 case "(($ac_try" in
12150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151   *) ac_try_echo=$ac_try;;
12152 esac
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12155   ac_status=$?
12156   grep -v '^ *+' conftest.er1 >conftest.err
12157   rm -f conftest.er1
12158   cat conftest.err >&5
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } >/dev/null; then
12161   if test -s conftest.err; then
12162     ac_cpp_err=$ac_c_preproc_warn_flag
12163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12164   else
12165     ac_cpp_err=
12166   fi
12167 else
12168   ac_cpp_err=yes
12169 fi
12170 if test -z "$ac_cpp_err"; then
12171   ac_header_preproc=yes
12172 else
12173   echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12175
12176   ac_header_preproc=no
12177 fi
12178
12179 rm -f conftest.err conftest.$ac_ext
12180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12181 echo "${ECHO_T}$ac_header_preproc" >&6; }
12182
12183 # So?  What about this header?
12184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12185   yes:no: )
12186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12190     ac_header_preproc=yes
12191     ;;
12192   no:yes:* )
12193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12205     ( cat <<\_ASBOX
12206 ## ------------------------------------ ##
12207 ## Report this to http://llvm.org/bugs/ ##
12208 ## ------------------------------------ ##
12209 _ASBOX
12210      ) | sed "s/^/$as_me: WARNING:     /" >&2
12211     ;;
12212 esac
12213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12216   echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218   eval "$as_ac_Header=\$ac_header_preproc"
12219 fi
12220 ac_res=`eval echo '${'$as_ac_Header'}'`
12221                { echo "$as_me:$LINENO: result: $ac_res" >&5
12222 echo "${ECHO_T}$ac_res" >&6; }
12223
12224 fi
12225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12226   cat >>confdefs.h <<_ACEOF
12227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12228 _ACEOF
12229
12230 fi
12231
12232 done
12233
12234 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12235 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12236 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12237   echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239   cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245 #include <fenv.h>
12246
12247 int
12248 main ()
12249 {
12250 #ifndef FE_ALL_EXCEPT
12251   char *p = (char *) FE_ALL_EXCEPT;
12252   return !p;
12253 #endif
12254
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext
12260 if { (ac_try="$ac_compile"
12261 case "(($ac_try" in
12262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263   *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266   (eval "$ac_compile") 2>conftest.er1
12267   ac_status=$?
12268   grep -v '^ *+' conftest.er1 >conftest.err
12269   rm -f conftest.er1
12270   cat conftest.err >&5
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); } &&
12273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274   { (case "(($ac_try" in
12275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276   *) ac_try_echo=$ac_try;;
12277 esac
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279   (eval "$ac_try") 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); }; } &&
12283          { ac_try='test -s conftest.$ac_objext'
12284   { (case "(($ac_try" in
12285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286   *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289   (eval "$ac_try") 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); }; }; then
12293   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12294 else
12295   echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12297
12298         ac_cv_have_decl_FE_ALL_EXCEPT=no
12299 fi
12300
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302 fi
12303 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12304 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12305 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12306
12307 cat >>confdefs.h <<_ACEOF
12308 #define HAVE_DECL_FE_ALL_EXCEPT 1
12309 _ACEOF
12310
12311
12312 else
12313   cat >>confdefs.h <<_ACEOF
12314 #define HAVE_DECL_FE_ALL_EXCEPT 0
12315 _ACEOF
12316
12317
12318 fi
12319 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12320 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12321 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324   cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330 #include <fenv.h>
12331
12332 int
12333 main ()
12334 {
12335 #ifndef FE_INEXACT
12336   char *p = (char *) FE_INEXACT;
12337   return !p;
12338 #endif
12339
12340   ;
12341   return 0;
12342 }
12343 _ACEOF
12344 rm -f conftest.$ac_objext
12345 if { (ac_try="$ac_compile"
12346 case "(($ac_try" in
12347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348   *) ac_try_echo=$ac_try;;
12349 esac
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351   (eval "$ac_compile") 2>conftest.er1
12352   ac_status=$?
12353   grep -v '^ *+' conftest.er1 >conftest.err
12354   rm -f conftest.er1
12355   cat conftest.err >&5
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } &&
12358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359   { (case "(($ac_try" in
12360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361   *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364   (eval "$ac_try") 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; } &&
12368          { ac_try='test -s conftest.$ac_objext'
12369   { (case "(($ac_try" in
12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371   *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374   (eval "$ac_try") 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; }; then
12378   ac_cv_have_decl_FE_INEXACT=yes
12379 else
12380   echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383         ac_cv_have_decl_FE_INEXACT=no
12384 fi
12385
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 fi
12388 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12389 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12390 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12391
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_DECL_FE_INEXACT 1
12394 _ACEOF
12395
12396
12397 else
12398   cat >>confdefs.h <<_ACEOF
12399 #define HAVE_DECL_FE_INEXACT 0
12400 _ACEOF
12401
12402
12403 fi
12404
12405
12406 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12407
12408 for ac_header in pthread.h
12409 do
12410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12412   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 fi
12417 ac_res=`eval echo '${'$as_ac_Header'}'`
12418                { echo "$as_me:$LINENO: result: $ac_res" >&5
12419 echo "${ECHO_T}$ac_res" >&6; }
12420 else
12421   # Is the header compilable?
12422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 $ac_includes_default
12431 #include <$ac_header>
12432 _ACEOF
12433 rm -f conftest.$ac_objext
12434 if { (ac_try="$ac_compile"
12435 case "(($ac_try" in
12436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437   *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440   (eval "$ac_compile") 2>conftest.er1
12441   ac_status=$?
12442   grep -v '^ *+' conftest.er1 >conftest.err
12443   rm -f conftest.er1
12444   cat conftest.err >&5
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); } &&
12447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448   { (case "(($ac_try" in
12449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450   *) ac_try_echo=$ac_try;;
12451 esac
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453   (eval "$ac_try") 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; } &&
12457          { ac_try='test -s conftest.$ac_objext'
12458   { (case "(($ac_try" in
12459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460   *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463   (eval "$ac_try") 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; }; then
12467   ac_header_compiler=yes
12468 else
12469   echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472         ac_header_compiler=no
12473 fi
12474
12475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12477 echo "${ECHO_T}$ac_header_compiler" >&6; }
12478
12479 # Is the header present?
12480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12482 cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h.  */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h.  */
12488 #include <$ac_header>
12489 _ACEOF
12490 if { (ac_try="$ac_cpp conftest.$ac_ext"
12491 case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } >/dev/null; then
12503   if test -s conftest.err; then
12504     ac_cpp_err=$ac_c_preproc_warn_flag
12505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12506   else
12507     ac_cpp_err=
12508   fi
12509 else
12510   ac_cpp_err=yes
12511 fi
12512 if test -z "$ac_cpp_err"; then
12513   ac_header_preproc=yes
12514 else
12515   echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518   ac_header_preproc=no
12519 fi
12520
12521 rm -f conftest.err conftest.$ac_ext
12522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12523 echo "${ECHO_T}$ac_header_preproc" >&6; }
12524
12525 # So?  What about this header?
12526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12527   yes:no: )
12528     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12532     ac_header_preproc=yes
12533     ;;
12534   no:yes:* )
12535     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12537     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12538 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12539     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12541     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12542 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12545     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12547     ( cat <<\_ASBOX
12548 ## ------------------------------------ ##
12549 ## Report this to http://llvm.org/bugs/ ##
12550 ## ------------------------------------ ##
12551 _ASBOX
12552      ) | sed "s/^/$as_me: WARNING:     /" >&2
12553     ;;
12554 esac
12555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12558   echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560   eval "$as_ac_Header=\$ac_header_preproc"
12561 fi
12562 ac_res=`eval echo '${'$as_ac_Header'}'`
12563                { echo "$as_me:$LINENO: result: $ac_res" >&5
12564 echo "${ECHO_T}$ac_res" >&6; }
12565
12566 fi
12567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12568   cat >>confdefs.h <<_ACEOF
12569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12570 _ACEOF
12571  HAVE_PTHREAD=1
12572
12573 else
12574   HAVE_PTHREAD=0
12575
12576 fi
12577
12578 done
12579
12580 else
12581   HAVE_PTHREAD=0
12582
12583 fi
12584 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12585
12586 for ac_header in zlib.h
12587 do
12588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12590   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 fi
12595 ac_res=`eval echo '${'$as_ac_Header'}'`
12596                { echo "$as_me:$LINENO: result: $ac_res" >&5
12597 echo "${ECHO_T}$ac_res" >&6; }
12598 else
12599   # Is the header compilable?
12600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12602 cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608 $ac_includes_default
12609 #include <$ac_header>
12610 _ACEOF
12611 rm -f conftest.$ac_objext
12612 if { (ac_try="$ac_compile"
12613 case "(($ac_try" in
12614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615   *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618   (eval "$ac_compile") 2>conftest.er1
12619   ac_status=$?
12620   grep -v '^ *+' conftest.er1 >conftest.err
12621   rm -f conftest.er1
12622   cat conftest.err >&5
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } &&
12625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626   { (case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_try") 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); }; } &&
12635          { ac_try='test -s conftest.$ac_objext'
12636   { (case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_try") 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; }; then
12645   ac_header_compiler=yes
12646 else
12647   echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12649
12650         ac_header_compiler=no
12651 fi
12652
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12655 echo "${ECHO_T}$ac_header_compiler" >&6; }
12656
12657 # Is the header present?
12658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h.  */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h.  */
12666 #include <$ac_header>
12667 _ACEOF
12668 if { (ac_try="$ac_cpp conftest.$ac_ext"
12669 case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12675   ac_status=$?
12676   grep -v '^ *+' conftest.er1 >conftest.err
12677   rm -f conftest.er1
12678   cat conftest.err >&5
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); } >/dev/null; then
12681   if test -s conftest.err; then
12682     ac_cpp_err=$ac_c_preproc_warn_flag
12683     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12684   else
12685     ac_cpp_err=
12686   fi
12687 else
12688   ac_cpp_err=yes
12689 fi
12690 if test -z "$ac_cpp_err"; then
12691   ac_header_preproc=yes
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696   ac_header_preproc=no
12697 fi
12698
12699 rm -f conftest.err conftest.$ac_ext
12700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12701 echo "${ECHO_T}$ac_header_preproc" >&6; }
12702
12703 # So?  What about this header?
12704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12705   yes:no: )
12706     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12710     ac_header_preproc=yes
12711     ;;
12712   no:yes:* )
12713     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12715     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12716 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12717     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12719     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12720 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12723     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12725     ( cat <<\_ASBOX
12726 ## ------------------------------------ ##
12727 ## Report this to http://llvm.org/bugs/ ##
12728 ## ------------------------------------ ##
12729 _ASBOX
12730      ) | sed "s/^/$as_me: WARNING:     /" >&2
12731     ;;
12732 esac
12733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12736   echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738   eval "$as_ac_Header=\$ac_header_preproc"
12739 fi
12740 ac_res=`eval echo '${'$as_ac_Header'}'`
12741                { echo "$as_me:$LINENO: result: $ac_res" >&5
12742 echo "${ECHO_T}$ac_res" >&6; }
12743
12744 fi
12745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12746   cat >>confdefs.h <<_ACEOF
12747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12748 _ACEOF
12749  HAVE_LIBZ=1
12750
12751 else
12752   HAVE_LIBZ=0
12753
12754 fi
12755
12756 done
12757
12758 else
12759   HAVE_LIBZ=0
12760
12761 fi
12762
12763 if test "$llvm_cv_enable_libffi" = "yes" ; then
12764
12765
12766 for ac_header in ffi.h ffi/ffi.h
12767 do
12768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12770   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 fi
12775 ac_res=`eval echo '${'$as_ac_Header'}'`
12776                { echo "$as_me:$LINENO: result: $ac_res" >&5
12777 echo "${ECHO_T}$ac_res" >&6; }
12778 else
12779   # Is the header compilable?
12780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h.  */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h.  */
12788 $ac_includes_default
12789 #include <$ac_header>
12790 _ACEOF
12791 rm -f conftest.$ac_objext
12792 if { (ac_try="$ac_compile"
12793 case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_compile") 2>conftest.er1
12799   ac_status=$?
12800   grep -v '^ *+' conftest.er1 >conftest.err
12801   rm -f conftest.er1
12802   cat conftest.err >&5
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); } &&
12805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12806   { (case "(($ac_try" in
12807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808   *) ac_try_echo=$ac_try;;
12809 esac
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811   (eval "$ac_try") 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; } &&
12815          { ac_try='test -s conftest.$ac_objext'
12816   { (case "(($ac_try" in
12817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818   *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821   (eval "$ac_try") 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; }; then
12825   ac_header_compiler=yes
12826 else
12827   echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830         ac_header_compiler=no
12831 fi
12832
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12835 echo "${ECHO_T}$ac_header_compiler" >&6; }
12836
12837 # Is the header present?
12838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12840 cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 #include <$ac_header>
12847 _ACEOF
12848 if { (ac_try="$ac_cpp conftest.$ac_ext"
12849 case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12855   ac_status=$?
12856   grep -v '^ *+' conftest.er1 >conftest.err
12857   rm -f conftest.er1
12858   cat conftest.err >&5
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); } >/dev/null; then
12861   if test -s conftest.err; then
12862     ac_cpp_err=$ac_c_preproc_warn_flag
12863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12864   else
12865     ac_cpp_err=
12866   fi
12867 else
12868   ac_cpp_err=yes
12869 fi
12870 if test -z "$ac_cpp_err"; then
12871   ac_header_preproc=yes
12872 else
12873   echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876   ac_header_preproc=no
12877 fi
12878
12879 rm -f conftest.err conftest.$ac_ext
12880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881 echo "${ECHO_T}$ac_header_preproc" >&6; }
12882
12883 # So?  What about this header?
12884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12885   yes:no: )
12886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12890     ac_header_preproc=yes
12891     ;;
12892   no:yes:* )
12893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12905     ( cat <<\_ASBOX
12906 ## ------------------------------------ ##
12907 ## Report this to http://llvm.org/bugs/ ##
12908 ## ------------------------------------ ##
12909 _ASBOX
12910      ) | sed "s/^/$as_me: WARNING:     /" >&2
12911     ;;
12912 esac
12913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12916   echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918   eval "$as_ac_Header=\$ac_header_preproc"
12919 fi
12920 ac_res=`eval echo '${'$as_ac_Header'}'`
12921                { echo "$as_me:$LINENO: result: $ac_res" >&5
12922 echo "${ECHO_T}$ac_res" >&6; }
12923
12924 fi
12925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12926   cat >>confdefs.h <<_ACEOF
12927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928 _ACEOF
12929
12930 fi
12931
12932 done
12933
12934 fi
12935
12936
12937 for ac_header in CrashReporterClient.h
12938 do
12939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12941   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12944   echo $ECHO_N "(cached) $ECHO_C" >&6
12945 fi
12946 ac_res=`eval echo '${'$as_ac_Header'}'`
12947                { echo "$as_me:$LINENO: result: $ac_res" >&5
12948 echo "${ECHO_T}$ac_res" >&6; }
12949 else
12950   # Is the header compilable?
12951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h.  */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h.  */
12959 $ac_includes_default
12960 #include <$ac_header>
12961 _ACEOF
12962 rm -f conftest.$ac_objext
12963 if { (ac_try="$ac_compile"
12964 case "(($ac_try" in
12965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966   *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969   (eval "$ac_compile") 2>conftest.er1
12970   ac_status=$?
12971   grep -v '^ *+' conftest.er1 >conftest.err
12972   rm -f conftest.er1
12973   cat conftest.err >&5
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); } &&
12976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977   { (case "(($ac_try" in
12978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979   *) ac_try_echo=$ac_try;;
12980 esac
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982   (eval "$ac_try") 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; } &&
12986          { ac_try='test -s conftest.$ac_objext'
12987   { (case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_try") 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   ac_header_compiler=yes
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001         ac_header_compiler=no
13002 fi
13003
13004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13006 echo "${ECHO_T}$ac_header_compiler" >&6; }
13007
13008 # Is the header present?
13009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017 #include <$ac_header>
13018 _ACEOF
13019 if { (ac_try="$ac_cpp conftest.$ac_ext"
13020 case "(($ac_try" in
13021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022   *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13026   ac_status=$?
13027   grep -v '^ *+' conftest.er1 >conftest.err
13028   rm -f conftest.er1
13029   cat conftest.err >&5
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); } >/dev/null; then
13032   if test -s conftest.err; then
13033     ac_cpp_err=$ac_c_preproc_warn_flag
13034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13035   else
13036     ac_cpp_err=
13037   fi
13038 else
13039   ac_cpp_err=yes
13040 fi
13041 if test -z "$ac_cpp_err"; then
13042   ac_header_preproc=yes
13043 else
13044   echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13046
13047   ac_header_preproc=no
13048 fi
13049
13050 rm -f conftest.err conftest.$ac_ext
13051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13052 echo "${ECHO_T}$ac_header_preproc" >&6; }
13053
13054 # So?  What about this header?
13055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13056   yes:no: )
13057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13061     ac_header_preproc=yes
13062     ;;
13063   no:yes:* )
13064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13076     ( cat <<\_ASBOX
13077 ## ------------------------------------ ##
13078 ## Report this to http://llvm.org/bugs/ ##
13079 ## ------------------------------------ ##
13080 _ASBOX
13081      ) | sed "s/^/$as_me: WARNING:     /" >&2
13082     ;;
13083 esac
13084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13087   echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089   eval "$as_ac_Header=\$ac_header_preproc"
13090 fi
13091 ac_res=`eval echo '${'$as_ac_Header'}'`
13092                { echo "$as_me:$LINENO: result: $ac_res" >&5
13093 echo "${ECHO_T}$ac_res" >&6; }
13094
13095 fi
13096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13097   cat >>confdefs.h <<_ACEOF
13098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13099 _ACEOF
13100
13101 fi
13102
13103 done
13104
13105
13106 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13107 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13108 cat >conftest.$ac_ext <<_ACEOF
13109
13110   /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115
13116     extern const char *__crashreporter_info__;
13117     int main() {
13118       __crashreporter_info__ = "test";
13119       return 0;
13120     }
13121
13122
13123 _ACEOF
13124 rm -f conftest.$ac_objext conftest$ac_exeext
13125 if { (ac_try="$ac_link"
13126 case "(($ac_try" in
13127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128   *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131   (eval "$ac_link") 2>conftest.er1
13132   ac_status=$?
13133   grep -v '^ *+' conftest.er1 >conftest.err
13134   rm -f conftest.er1
13135   cat conftest.err >&5
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); } &&
13138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13139   { (case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144   (eval "$ac_try") 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; } &&
13148          { ac_try='test -s conftest$ac_exeext'
13149   { (case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154   (eval "$ac_try") 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; }; then
13158
13159   { echo "$as_me:$LINENO: result: yes" >&5
13160 echo "${ECHO_T}yes" >&6; }
13161
13162 cat >>confdefs.h <<\_ACEOF
13163 #define HAVE_CRASHREPORTER_INFO 1
13164 _ACEOF
13165
13166
13167 else
13168   echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13170
13171
13172   { echo "$as_me:$LINENO: result: no" >&5
13173 echo "${ECHO_T}no" >&6; }
13174
13175 cat >>confdefs.h <<\_ACEOF
13176 #define HAVE_CRASHREPORTER_INFO 0
13177 _ACEOF
13178
13179
13180 fi
13181
13182 rm -f core conftest.err conftest.$ac_objext \
13183       conftest$ac_exeext conftest.$ac_ext
13184
13185
13186
13187   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13188 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13189 if test "${ac_cv_huge_val_sanity+set}" = set; then
13190   echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192
13193     ac_ext=cpp
13194 ac_cpp='$CXXCPP $CPPFLAGS'
13195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13198
13199     ac_save_CXXFLAGS=$CXXFLAGS
13200     CXXFLAGS="$CXXFLAGS -pedantic"
13201     if test "$cross_compiling" = yes; then
13202   ac_cv_huge_val_sanity=yes
13203 else
13204   cat >conftest.$ac_ext <<_ACEOF
13205 /* confdefs.h.  */
13206 _ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h.  */
13210 #include <math.h>
13211 int
13212 main ()
13213 {
13214 double x = HUGE_VAL; return x != x;
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_link") 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13230   { (case "(($ac_try" in
13231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232   *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235   (eval "$ac_try") 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; }; then
13239   ac_cv_huge_val_sanity=yes
13240 else
13241   echo "$as_me: program exited with status $ac_status" >&5
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245 ( exit $ac_status )
13246 ac_cv_huge_val_sanity=no
13247 fi
13248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13249 fi
13250
13251
13252     CXXFLAGS=$ac_save_CXXFLAGS
13253     ac_ext=c
13254 ac_cpp='$CPP $CPPFLAGS'
13255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13258
13259
13260 fi
13261 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13262 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13263   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13264
13265
13266 { echo "$as_me:$LINENO: checking for pid_t" >&5
13267 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13268 if test "${ac_cv_type_pid_t+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277 $ac_includes_default
13278 typedef pid_t ac__type_new_;
13279 int
13280 main ()
13281 {
13282 if ((ac__type_new_ *) 0)
13283   return 0;
13284 if (sizeof (ac__type_new_))
13285   return 0;
13286   ;
13287   return 0;
13288 }
13289 _ACEOF
13290 rm -f conftest.$ac_objext
13291 if { (ac_try="$ac_compile"
13292 case "(($ac_try" in
13293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294   *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297   (eval "$ac_compile") 2>conftest.er1
13298   ac_status=$?
13299   grep -v '^ *+' conftest.er1 >conftest.err
13300   rm -f conftest.er1
13301   cat conftest.err >&5
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); } &&
13304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305   { (case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310   (eval "$ac_try") 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; } &&
13314          { ac_try='test -s conftest.$ac_objext'
13315   { (case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_try") 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; }; then
13324   ac_cv_type_pid_t=yes
13325 else
13326   echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13328
13329         ac_cv_type_pid_t=no
13330 fi
13331
13332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13333 fi
13334 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13335 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13336 if test $ac_cv_type_pid_t = yes; then
13337   :
13338 else
13339
13340 cat >>confdefs.h <<_ACEOF
13341 #define pid_t int
13342 _ACEOF
13343
13344 fi
13345
13346 { echo "$as_me:$LINENO: checking for size_t" >&5
13347 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13348 if test "${ac_cv_type_size_t+set}" = set; then
13349   echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351   cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h.  */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h.  */
13357 $ac_includes_default
13358 typedef size_t ac__type_new_;
13359 int
13360 main ()
13361 {
13362 if ((ac__type_new_ *) 0)
13363   return 0;
13364 if (sizeof (ac__type_new_))
13365   return 0;
13366   ;
13367   return 0;
13368 }
13369 _ACEOF
13370 rm -f conftest.$ac_objext
13371 if { (ac_try="$ac_compile"
13372 case "(($ac_try" in
13373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374   *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377   (eval "$ac_compile") 2>conftest.er1
13378   ac_status=$?
13379   grep -v '^ *+' conftest.er1 >conftest.err
13380   rm -f conftest.er1
13381   cat conftest.err >&5
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } &&
13384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13385   { (case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390   (eval "$ac_try") 2>&5
13391   ac_status=$?
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); }; } &&
13394          { ac_try='test -s conftest.$ac_objext'
13395   { (case "(($ac_try" in
13396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397   *) ac_try_echo=$ac_try;;
13398 esac
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400   (eval "$ac_try") 2>&5
13401   ac_status=$?
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); }; }; then
13404   ac_cv_type_size_t=yes
13405 else
13406   echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409         ac_cv_type_size_t=no
13410 fi
13411
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 fi
13414 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13415 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13416 if test $ac_cv_type_size_t = yes; then
13417   :
13418 else
13419
13420 cat >>confdefs.h <<_ACEOF
13421 #define size_t unsigned int
13422 _ACEOF
13423
13424 fi
13425
13426
13427 cat >>confdefs.h <<_ACEOF
13428 #define RETSIGTYPE void
13429 _ACEOF
13430
13431 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13432 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13433 if test "${ac_cv_struct_tm+set}" = set; then
13434   echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436   cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442 #include <sys/types.h>
13443 #include <time.h>
13444
13445 int
13446 main ()
13447 {
13448 struct tm *tp; tp->tm_sec;
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457   *) ac_try_echo=$ac_try;;
13458 esac
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460   (eval "$ac_compile") 2>conftest.er1
13461   ac_status=$?
13462   grep -v '^ *+' conftest.er1 >conftest.err
13463   rm -f conftest.er1
13464   cat conftest.err >&5
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } &&
13467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13468   { (case "(($ac_try" in
13469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470   *) ac_try_echo=$ac_try;;
13471 esac
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473   (eval "$ac_try") 2>&5
13474   ac_status=$?
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); }; } &&
13477          { ac_try='test -s conftest.$ac_objext'
13478   { (case "(($ac_try" in
13479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480   *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483   (eval "$ac_try") 2>&5
13484   ac_status=$?
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); }; }; then
13487   ac_cv_struct_tm=time.h
13488 else
13489   echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13491
13492         ac_cv_struct_tm=sys/time.h
13493 fi
13494
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 fi
13497 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13498 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13499 if test $ac_cv_struct_tm = sys/time.h; then
13500
13501 cat >>confdefs.h <<\_ACEOF
13502 #define TM_IN_SYS_TIME 1
13503 _ACEOF
13504
13505 fi
13506
13507 { echo "$as_me:$LINENO: checking for int64_t" >&5
13508 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13509 if test "${ac_cv_type_int64_t+set}" = set; then
13510   echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512   cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h.  */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h.  */
13518 $ac_includes_default
13519 typedef int64_t ac__type_new_;
13520 int
13521 main ()
13522 {
13523 if ((ac__type_new_ *) 0)
13524   return 0;
13525 if (sizeof (ac__type_new_))
13526   return 0;
13527   ;
13528   return 0;
13529 }
13530 _ACEOF
13531 rm -f conftest.$ac_objext
13532 if { (ac_try="$ac_compile"
13533 case "(($ac_try" in
13534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13535   *) ac_try_echo=$ac_try;;
13536 esac
13537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13538   (eval "$ac_compile") 2>conftest.er1
13539   ac_status=$?
13540   grep -v '^ *+' conftest.er1 >conftest.err
13541   rm -f conftest.er1
13542   cat conftest.err >&5
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); } &&
13545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13546   { (case "(($ac_try" in
13547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548   *) ac_try_echo=$ac_try;;
13549 esac
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551   (eval "$ac_try") 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); }; } &&
13555          { ac_try='test -s conftest.$ac_objext'
13556   { (case "(($ac_try" in
13557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558   *) ac_try_echo=$ac_try;;
13559 esac
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561   (eval "$ac_try") 2>&5
13562   ac_status=$?
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); }; }; then
13565   ac_cv_type_int64_t=yes
13566 else
13567   echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13569
13570         ac_cv_type_int64_t=no
13571 fi
13572
13573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13574 fi
13575 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13576 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13577 if test $ac_cv_type_int64_t = yes; then
13578
13579 cat >>confdefs.h <<_ACEOF
13580 #define HAVE_INT64_T 1
13581 _ACEOF
13582
13583
13584 else
13585   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13586 echo "$as_me: error: Type int64_t required but not found" >&2;}
13587    { (exit 1); exit 1; }; }
13588 fi
13589
13590 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13591 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13592 if test "${ac_cv_type_uint64_t+set}" = set; then
13593   echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595   cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h.  */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h.  */
13601 $ac_includes_default
13602 typedef uint64_t ac__type_new_;
13603 int
13604 main ()
13605 {
13606 if ((ac__type_new_ *) 0)
13607   return 0;
13608 if (sizeof (ac__type_new_))
13609   return 0;
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext
13615 if { (ac_try="$ac_compile"
13616 case "(($ac_try" in
13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618   *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621   (eval "$ac_compile") 2>conftest.er1
13622   ac_status=$?
13623   grep -v '^ *+' conftest.er1 >conftest.err
13624   rm -f conftest.er1
13625   cat conftest.err >&5
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629   { (case "(($ac_try" in
13630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631   *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634   (eval "$ac_try") 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; } &&
13638          { ac_try='test -s conftest.$ac_objext'
13639   { (case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_try") 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }; }; then
13648   ac_cv_type_uint64_t=yes
13649 else
13650   echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653         ac_cv_type_uint64_t=no
13654 fi
13655
13656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 fi
13658 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13659 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13660 if test $ac_cv_type_uint64_t = yes; then
13661
13662 cat >>confdefs.h <<_ACEOF
13663 #define HAVE_UINT64_T 1
13664 _ACEOF
13665
13666
13667 else
13668   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13669 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13670 if test "${ac_cv_type_u_int64_t+set}" = set; then
13671   echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673   cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679 $ac_includes_default
13680 typedef u_int64_t ac__type_new_;
13681 int
13682 main ()
13683 {
13684 if ((ac__type_new_ *) 0)
13685   return 0;
13686 if (sizeof (ac__type_new_))
13687   return 0;
13688   ;
13689   return 0;
13690 }
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13700   ac_status=$?
13701   grep -v '^ *+' conftest.er1 >conftest.err
13702   rm -f conftest.er1
13703   cat conftest.err >&5
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } &&
13706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13707   { (case "(($ac_try" in
13708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709   *) ac_try_echo=$ac_try;;
13710 esac
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712   (eval "$ac_try") 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; } &&
13716          { ac_try='test -s conftest.$ac_objext'
13717   { (case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_try") 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   ac_cv_type_u_int64_t=yes
13727 else
13728   echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731         ac_cv_type_u_int64_t=no
13732 fi
13733
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 fi
13736 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13737 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13738 if test $ac_cv_type_u_int64_t = yes; then
13739
13740 cat >>confdefs.h <<_ACEOF
13741 #define HAVE_U_INT64_T 1
13742 _ACEOF
13743
13744
13745 else
13746   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13747 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13748    { (exit 1); exit 1; }; }
13749 fi
13750
13751 fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13763 do
13764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13768   echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770   cat >conftest.$ac_ext <<_ACEOF
13771 /* confdefs.h.  */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h.  */
13776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13778 #define $ac_func innocuous_$ac_func
13779
13780 /* System header to define __stub macros and hopefully few prototypes,
13781     which can conflict with char $ac_func (); below.
13782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13783     <limits.h> exists even on freestanding compilers.  */
13784
13785 #ifdef __STDC__
13786 # include <limits.h>
13787 #else
13788 # include <assert.h>
13789 #endif
13790
13791 #undef $ac_func
13792
13793 /* Override any GCC internal prototype to avoid an error.
13794    Use char because int might match the return type of a GCC
13795    builtin and then its argument prototype would still apply.  */
13796 #ifdef __cplusplus
13797 extern "C"
13798 #endif
13799 char $ac_func ();
13800 /* The GNU C library defines this for functions which it implements
13801     to always fail with ENOSYS.  Some functions are actually named
13802     something starting with __ and the normal name is an alias.  */
13803 #if defined __stub_$ac_func || defined __stub___$ac_func
13804 choke me
13805 #endif
13806
13807 int
13808 main ()
13809 {
13810 return $ac_func ();
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13823   ac_status=$?
13824   grep -v '^ *+' conftest.er1 >conftest.err
13825   rm -f conftest.er1
13826   cat conftest.err >&5
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); } &&
13829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13830   { (case "(($ac_try" in
13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832   *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835   (eval "$ac_try") 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); }; } &&
13839          { ac_try='test -s conftest$ac_exeext'
13840   { (case "(($ac_try" in
13841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842   *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845   (eval "$ac_try") 2>&5
13846   ac_status=$?
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); }; }; then
13849   eval "$as_ac_var=yes"
13850 else
13851   echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13853
13854         eval "$as_ac_var=no"
13855 fi
13856
13857 rm -f core conftest.err conftest.$ac_objext \
13858       conftest$ac_exeext conftest.$ac_ext
13859 fi
13860 ac_res=`eval echo '${'$as_ac_var'}'`
13861                { echo "$as_me:$LINENO: result: $ac_res" >&5
13862 echo "${ECHO_T}$ac_res" >&6; }
13863 if test `eval echo '${'$as_ac_var'}'` = yes; then
13864   cat >>confdefs.h <<_ACEOF
13865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13866 _ACEOF
13867
13868 fi
13869 done
13870
13871
13872
13873
13874
13875 for ac_func in powf fmodf strtof round
13876 do
13877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13881   echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883   cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h.  */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h.  */
13889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13891 #define $ac_func innocuous_$ac_func
13892
13893 /* System header to define __stub macros and hopefully few prototypes,
13894     which can conflict with char $ac_func (); below.
13895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13896     <limits.h> exists even on freestanding compilers.  */
13897
13898 #ifdef __STDC__
13899 # include <limits.h>
13900 #else
13901 # include <assert.h>
13902 #endif
13903
13904 #undef $ac_func
13905
13906 /* Override any GCC internal prototype to avoid an error.
13907    Use char because int might match the return type of a GCC
13908    builtin and then its argument prototype would still apply.  */
13909 #ifdef __cplusplus
13910 extern "C"
13911 #endif
13912 char $ac_func ();
13913 /* The GNU C library defines this for functions which it implements
13914     to always fail with ENOSYS.  Some functions are actually named
13915     something starting with __ and the normal name is an alias.  */
13916 #if defined __stub_$ac_func || defined __stub___$ac_func
13917 choke me
13918 #endif
13919
13920 int
13921 main ()
13922 {
13923 return $ac_func ();
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (ac_try="$ac_link"
13930 case "(($ac_try" in
13931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932   *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935   (eval "$ac_link") 2>conftest.er1
13936   ac_status=$?
13937   grep -v '^ *+' conftest.er1 >conftest.err
13938   rm -f conftest.er1
13939   cat conftest.err >&5
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } &&
13942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13943   { (case "(($ac_try" in
13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945   *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948   (eval "$ac_try") 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; } &&
13952          { ac_try='test -s conftest$ac_exeext'
13953   { (case "(($ac_try" in
13954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955   *) ac_try_echo=$ac_try;;
13956 esac
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958   (eval "$ac_try") 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962   eval "$as_ac_var=yes"
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967         eval "$as_ac_var=no"
13968 fi
13969
13970 rm -f core conftest.err conftest.$ac_objext \
13971       conftest$ac_exeext conftest.$ac_ext
13972 fi
13973 ac_res=`eval echo '${'$as_ac_var'}'`
13974                { echo "$as_me:$LINENO: result: $ac_res" >&5
13975 echo "${ECHO_T}$ac_res" >&6; }
13976 if test `eval echo '${'$as_ac_var'}'` = yes; then
13977   cat >>confdefs.h <<_ACEOF
13978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13979 _ACEOF
13980
13981 fi
13982 done
13983
13984
13985
13986
13987
13988
13989 for ac_func in log log2 log10 exp exp2
13990 do
13991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13995   echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997   cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h.  */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h.  */
14003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14005 #define $ac_func innocuous_$ac_func
14006
14007 /* System header to define __stub macros and hopefully few prototypes,
14008     which can conflict with char $ac_func (); below.
14009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14010     <limits.h> exists even on freestanding compilers.  */
14011
14012 #ifdef __STDC__
14013 # include <limits.h>
14014 #else
14015 # include <assert.h>
14016 #endif
14017
14018 #undef $ac_func
14019
14020 /* Override any GCC internal prototype to avoid an error.
14021    Use char because int might match the return type of a GCC
14022    builtin and then its argument prototype would still apply.  */
14023 #ifdef __cplusplus
14024 extern "C"
14025 #endif
14026 char $ac_func ();
14027 /* The GNU C library defines this for functions which it implements
14028     to always fail with ENOSYS.  Some functions are actually named
14029     something starting with __ and the normal name is an alias.  */
14030 #if defined __stub_$ac_func || defined __stub___$ac_func
14031 choke me
14032 #endif
14033
14034 int
14035 main ()
14036 {
14037 return $ac_func ();
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (ac_try="$ac_link"
14044 case "(($ac_try" in
14045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046   *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049   (eval "$ac_link") 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } &&
14056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057   { (case "(($ac_try" in
14058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059   *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062   (eval "$ac_try") 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; } &&
14066          { ac_try='test -s conftest$ac_exeext'
14067   { (case "(($ac_try" in
14068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069   *) ac_try_echo=$ac_try;;
14070 esac
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072   (eval "$ac_try") 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; }; then
14076   eval "$as_ac_var=yes"
14077 else
14078   echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081         eval "$as_ac_var=no"
14082 fi
14083
14084 rm -f core conftest.err conftest.$ac_objext \
14085       conftest$ac_exeext conftest.$ac_ext
14086 fi
14087 ac_res=`eval echo '${'$as_ac_var'}'`
14088                { echo "$as_me:$LINENO: result: $ac_res" >&5
14089 echo "${ECHO_T}$ac_res" >&6; }
14090 if test `eval echo '${'$as_ac_var'}'` = yes; then
14091   cat >>confdefs.h <<_ACEOF
14092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093 _ACEOF
14094
14095 fi
14096 done
14097
14098
14099
14100
14101
14102
14103 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14104 do
14105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h.  */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h.  */
14117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14119 #define $ac_func innocuous_$ac_func
14120
14121 /* System header to define __stub macros and hopefully few prototypes,
14122     which can conflict with char $ac_func (); below.
14123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14124     <limits.h> exists even on freestanding compilers.  */
14125
14126 #ifdef __STDC__
14127 # include <limits.h>
14128 #else
14129 # include <assert.h>
14130 #endif
14131
14132 #undef $ac_func
14133
14134 /* Override any GCC internal prototype to avoid an error.
14135    Use char because int might match the return type of a GCC
14136    builtin and then its argument prototype would still apply.  */
14137 #ifdef __cplusplus
14138 extern "C"
14139 #endif
14140 char $ac_func ();
14141 /* The GNU C library defines this for functions which it implements
14142     to always fail with ENOSYS.  Some functions are actually named
14143     something starting with __ and the normal name is an alias.  */
14144 #if defined __stub_$ac_func || defined __stub___$ac_func
14145 choke me
14146 #endif
14147
14148 int
14149 main ()
14150 {
14151 return $ac_func ();
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (ac_try="$ac_link"
14158 case "(($ac_try" in
14159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160   *) ac_try_echo=$ac_try;;
14161 esac
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163   (eval "$ac_link") 2>conftest.er1
14164   ac_status=$?
14165   grep -v '^ *+' conftest.er1 >conftest.err
14166   rm -f conftest.er1
14167   cat conftest.err >&5
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } &&
14170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171   { (case "(($ac_try" in
14172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173   *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176   (eval "$ac_try") 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); }; } &&
14180          { ac_try='test -s conftest$ac_exeext'
14181   { (case "(($ac_try" in
14182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183   *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186   (eval "$ac_try") 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; }; then
14190   eval "$as_ac_var=yes"
14191 else
14192   echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195         eval "$as_ac_var=no"
14196 fi
14197
14198 rm -f core conftest.err conftest.$ac_objext \
14199       conftest$ac_exeext conftest.$ac_ext
14200 fi
14201 ac_res=`eval echo '${'$as_ac_var'}'`
14202                { echo "$as_me:$LINENO: result: $ac_res" >&5
14203 echo "${ECHO_T}$ac_res" >&6; }
14204 if test `eval echo '${'$as_ac_var'}'` = yes; then
14205   cat >>confdefs.h <<_ACEOF
14206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14207 _ACEOF
14208
14209 fi
14210 done
14211
14212
14213
14214
14215 for ac_func in isatty mkdtemp mkstemp
14216 do
14217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h.  */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h.  */
14229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14231 #define $ac_func innocuous_$ac_func
14232
14233 /* System header to define __stub macros and hopefully few prototypes,
14234     which can conflict with char $ac_func (); below.
14235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14236     <limits.h> exists even on freestanding compilers.  */
14237
14238 #ifdef __STDC__
14239 # include <limits.h>
14240 #else
14241 # include <assert.h>
14242 #endif
14243
14244 #undef $ac_func
14245
14246 /* Override any GCC internal prototype to avoid an error.
14247    Use char because int might match the return type of a GCC
14248    builtin and then its argument prototype would still apply.  */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 char $ac_func ();
14253 /* The GNU C library defines this for functions which it implements
14254     to always fail with ENOSYS.  Some functions are actually named
14255     something starting with __ and the normal name is an alias.  */
14256 #if defined __stub_$ac_func || defined __stub___$ac_func
14257 choke me
14258 #endif
14259
14260 int
14261 main ()
14262 {
14263 return $ac_func ();
14264   ;
14265   return 0;
14266 }
14267 _ACEOF
14268 rm -f conftest.$ac_objext conftest$ac_exeext
14269 if { (ac_try="$ac_link"
14270 case "(($ac_try" in
14271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272   *) ac_try_echo=$ac_try;;
14273 esac
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275   (eval "$ac_link") 2>conftest.er1
14276   ac_status=$?
14277   grep -v '^ *+' conftest.er1 >conftest.err
14278   rm -f conftest.er1
14279   cat conftest.err >&5
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); } &&
14282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14283   { (case "(($ac_try" in
14284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285   *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288   (eval "$ac_try") 2>&5
14289   ac_status=$?
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); }; } &&
14292          { ac_try='test -s conftest$ac_exeext'
14293   { (case "(($ac_try" in
14294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295   *) ac_try_echo=$ac_try;;
14296 esac
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298   (eval "$ac_try") 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }; }; then
14302   eval "$as_ac_var=yes"
14303 else
14304   echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14306
14307         eval "$as_ac_var=no"
14308 fi
14309
14310 rm -f core conftest.err conftest.$ac_objext \
14311       conftest$ac_exeext conftest.$ac_ext
14312 fi
14313 ac_res=`eval echo '${'$as_ac_var'}'`
14314                { echo "$as_me:$LINENO: result: $ac_res" >&5
14315 echo "${ECHO_T}$ac_res" >&6; }
14316 if test `eval echo '${'$as_ac_var'}'` = yes; then
14317   cat >>confdefs.h <<_ACEOF
14318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14319 _ACEOF
14320
14321 fi
14322 done
14323
14324
14325
14326
14327
14328
14329
14330 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14331 do
14332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14336   echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338   cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h.  */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h.  */
14344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14346 #define $ac_func innocuous_$ac_func
14347
14348 /* System header to define __stub macros and hopefully few prototypes,
14349     which can conflict with char $ac_func (); below.
14350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14351     <limits.h> exists even on freestanding compilers.  */
14352
14353 #ifdef __STDC__
14354 # include <limits.h>
14355 #else
14356 # include <assert.h>
14357 #endif
14358
14359 #undef $ac_func
14360
14361 /* Override any GCC internal prototype to avoid an error.
14362    Use char because int might match the return type of a GCC
14363    builtin and then its argument prototype would still apply.  */
14364 #ifdef __cplusplus
14365 extern "C"
14366 #endif
14367 char $ac_func ();
14368 /* The GNU C library defines this for functions which it implements
14369     to always fail with ENOSYS.  Some functions are actually named
14370     something starting with __ and the normal name is an alias.  */
14371 #if defined __stub_$ac_func || defined __stub___$ac_func
14372 choke me
14373 #endif
14374
14375 int
14376 main ()
14377 {
14378 return $ac_func ();
14379   ;
14380   return 0;
14381 }
14382 _ACEOF
14383 rm -f conftest.$ac_objext conftest$ac_exeext
14384 if { (ac_try="$ac_link"
14385 case "(($ac_try" in
14386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387   *) ac_try_echo=$ac_try;;
14388 esac
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390   (eval "$ac_link") 2>conftest.er1
14391   ac_status=$?
14392   grep -v '^ *+' conftest.er1 >conftest.err
14393   rm -f conftest.er1
14394   cat conftest.err >&5
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); } &&
14397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398   { (case "(($ac_try" in
14399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400   *) ac_try_echo=$ac_try;;
14401 esac
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403   (eval "$ac_try") 2>&5
14404   ac_status=$?
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); }; } &&
14407          { ac_try='test -s conftest$ac_exeext'
14408   { (case "(($ac_try" in
14409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410   *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413   (eval "$ac_try") 2>&5
14414   ac_status=$?
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); }; }; then
14417   eval "$as_ac_var=yes"
14418 else
14419   echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422         eval "$as_ac_var=no"
14423 fi
14424
14425 rm -f core conftest.err conftest.$ac_objext \
14426       conftest$ac_exeext conftest.$ac_ext
14427 fi
14428 ac_res=`eval echo '${'$as_ac_var'}'`
14429                { echo "$as_me:$LINENO: result: $ac_res" >&5
14430 echo "${ECHO_T}$ac_res" >&6; }
14431 if test `eval echo '${'$as_ac_var'}'` = yes; then
14432   cat >>confdefs.h <<_ACEOF
14433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14434 _ACEOF
14435
14436 fi
14437 done
14438
14439
14440
14441
14442 for ac_func in strerror strerror_r setenv
14443 do
14444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14458 #define $ac_func innocuous_$ac_func
14459
14460 /* System header to define __stub macros and hopefully few prototypes,
14461     which can conflict with char $ac_func (); below.
14462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463     <limits.h> exists even on freestanding compilers.  */
14464
14465 #ifdef __STDC__
14466 # include <limits.h>
14467 #else
14468 # include <assert.h>
14469 #endif
14470
14471 #undef $ac_func
14472
14473 /* Override any GCC internal prototype to avoid an error.
14474    Use char because int might match the return type of a GCC
14475    builtin and then its argument prototype would still apply.  */
14476 #ifdef __cplusplus
14477 extern "C"
14478 #endif
14479 char $ac_func ();
14480 /* The GNU C library defines this for functions which it implements
14481     to always fail with ENOSYS.  Some functions are actually named
14482     something starting with __ and the normal name is an alias.  */
14483 #if defined __stub_$ac_func || defined __stub___$ac_func
14484 choke me
14485 #endif
14486
14487 int
14488 main ()
14489 {
14490 return $ac_func ();
14491   ;
14492   return 0;
14493 }
14494 _ACEOF
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14503   ac_status=$?
14504   grep -v '^ *+' conftest.er1 >conftest.err
14505   rm -f conftest.er1
14506   cat conftest.err >&5
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); } &&
14509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14510   { (case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515   (eval "$ac_try") 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; } &&
14519          { ac_try='test -s conftest$ac_exeext'
14520   { (case "(($ac_try" in
14521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522   *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525   (eval "$ac_try") 2>&5
14526   ac_status=$?
14527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); }; }; then
14529   eval "$as_ac_var=yes"
14530 else
14531   echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14533
14534         eval "$as_ac_var=no"
14535 fi
14536
14537 rm -f core conftest.err conftest.$ac_objext \
14538       conftest$ac_exeext conftest.$ac_ext
14539 fi
14540 ac_res=`eval echo '${'$as_ac_var'}'`
14541                { echo "$as_me:$LINENO: result: $ac_res" >&5
14542 echo "${ECHO_T}$ac_res" >&6; }
14543 if test `eval echo '${'$as_ac_var'}'` = yes; then
14544   cat >>confdefs.h <<_ACEOF
14545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14546 _ACEOF
14547
14548 fi
14549 done
14550
14551
14552
14553
14554
14555 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14556 do
14557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14561   echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563   cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14571 #define $ac_func innocuous_$ac_func
14572
14573 /* System header to define __stub macros and hopefully few prototypes,
14574     which can conflict with char $ac_func (); below.
14575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14576     <limits.h> exists even on freestanding compilers.  */
14577
14578 #ifdef __STDC__
14579 # include <limits.h>
14580 #else
14581 # include <assert.h>
14582 #endif
14583
14584 #undef $ac_func
14585
14586 /* Override any GCC internal prototype to avoid an error.
14587    Use char because int might match the return type of a GCC
14588    builtin and then its argument prototype would still apply.  */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 char $ac_func ();
14593 /* The GNU C library defines this for functions which it implements
14594     to always fail with ENOSYS.  Some functions are actually named
14595     something starting with __ and the normal name is an alias.  */
14596 #if defined __stub_$ac_func || defined __stub___$ac_func
14597 choke me
14598 #endif
14599
14600 int
14601 main ()
14602 {
14603 return $ac_func ();
14604   ;
14605   return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (ac_try="$ac_link"
14610 case "(($ac_try" in
14611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612   *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615   (eval "$ac_link") 2>conftest.er1
14616   ac_status=$?
14617   grep -v '^ *+' conftest.er1 >conftest.err
14618   rm -f conftest.er1
14619   cat conftest.err >&5
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); } &&
14622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14623   { (case "(($ac_try" in
14624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625   *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628   (eval "$ac_try") 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; } &&
14632          { ac_try='test -s conftest$ac_exeext'
14633   { (case "(($ac_try" in
14634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635   *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638   (eval "$ac_try") 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; }; then
14642   eval "$as_ac_var=yes"
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647         eval "$as_ac_var=no"
14648 fi
14649
14650 rm -f core conftest.err conftest.$ac_objext \
14651       conftest$ac_exeext conftest.$ac_ext
14652 fi
14653 ac_res=`eval echo '${'$as_ac_var'}'`
14654                { echo "$as_me:$LINENO: result: $ac_res" >&5
14655 echo "${ECHO_T}$ac_res" >&6; }
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657   cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14659 _ACEOF
14660
14661 fi
14662 done
14663
14664
14665
14666
14667
14668
14669 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14670 do
14671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14675   echo $ECHO_N "(cached) $ECHO_C" >&6
14676 else
14677   cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h.  */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h.  */
14683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14685 #define $ac_func innocuous_$ac_func
14686
14687 /* System header to define __stub macros and hopefully few prototypes,
14688     which can conflict with char $ac_func (); below.
14689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14690     <limits.h> exists even on freestanding compilers.  */
14691
14692 #ifdef __STDC__
14693 # include <limits.h>
14694 #else
14695 # include <assert.h>
14696 #endif
14697
14698 #undef $ac_func
14699
14700 /* Override any GCC internal prototype to avoid an error.
14701    Use char because int might match the return type of a GCC
14702    builtin and then its argument prototype would still apply.  */
14703 #ifdef __cplusplus
14704 extern "C"
14705 #endif
14706 char $ac_func ();
14707 /* The GNU C library defines this for functions which it implements
14708     to always fail with ENOSYS.  Some functions are actually named
14709     something starting with __ and the normal name is an alias.  */
14710 #if defined __stub_$ac_func || defined __stub___$ac_func
14711 choke me
14712 #endif
14713
14714 int
14715 main ()
14716 {
14717 return $ac_func ();
14718   ;
14719   return 0;
14720 }
14721 _ACEOF
14722 rm -f conftest.$ac_objext conftest$ac_exeext
14723 if { (ac_try="$ac_link"
14724 case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729   (eval "$ac_link") 2>conftest.er1
14730   ac_status=$?
14731   grep -v '^ *+' conftest.er1 >conftest.err
14732   rm -f conftest.er1
14733   cat conftest.err >&5
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); } &&
14736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14737   { (case "(($ac_try" in
14738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739   *) ac_try_echo=$ac_try;;
14740 esac
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742   (eval "$ac_try") 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; } &&
14746          { ac_try='test -s conftest$ac_exeext'
14747   { (case "(($ac_try" in
14748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749   *) ac_try_echo=$ac_try;;
14750 esac
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752   (eval "$ac_try") 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; }; then
14756   eval "$as_ac_var=yes"
14757 else
14758   echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761         eval "$as_ac_var=no"
14762 fi
14763
14764 rm -f core conftest.err conftest.$ac_objext \
14765       conftest$ac_exeext conftest.$ac_ext
14766 fi
14767 ac_res=`eval echo '${'$as_ac_var'}'`
14768                { echo "$as_me:$LINENO: result: $ac_res" >&5
14769 echo "${ECHO_T}$ac_res" >&6; }
14770 if test `eval echo '${'$as_ac_var'}'` = yes; then
14771   cat >>confdefs.h <<_ACEOF
14772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14773 _ACEOF
14774
14775 fi
14776 done
14777
14778
14779
14780 for ac_func in futimes futimens
14781 do
14782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14786   echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788   cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h.  */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h.  */
14794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14796 #define $ac_func innocuous_$ac_func
14797
14798 /* System header to define __stub macros and hopefully few prototypes,
14799     which can conflict with char $ac_func (); below.
14800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801     <limits.h> exists even on freestanding compilers.  */
14802
14803 #ifdef __STDC__
14804 # include <limits.h>
14805 #else
14806 # include <assert.h>
14807 #endif
14808
14809 #undef $ac_func
14810
14811 /* Override any GCC internal prototype to avoid an error.
14812    Use char because int might match the return type of a GCC
14813    builtin and then its argument prototype would still apply.  */
14814 #ifdef __cplusplus
14815 extern "C"
14816 #endif
14817 char $ac_func ();
14818 /* The GNU C library defines this for functions which it implements
14819     to always fail with ENOSYS.  Some functions are actually named
14820     something starting with __ and the normal name is an alias.  */
14821 #if defined __stub_$ac_func || defined __stub___$ac_func
14822 choke me
14823 #endif
14824
14825 int
14826 main ()
14827 {
14828 return $ac_func ();
14829   ;
14830   return 0;
14831 }
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837   *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840   (eval "$ac_link") 2>conftest.er1
14841   ac_status=$?
14842   grep -v '^ *+' conftest.er1 >conftest.err
14843   rm -f conftest.er1
14844   cat conftest.err >&5
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); } &&
14847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848   { (case "(($ac_try" in
14849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850   *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853   (eval "$ac_try") 2>&5
14854   ac_status=$?
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); }; } &&
14857          { ac_try='test -s conftest$ac_exeext'
14858   { (case "(($ac_try" in
14859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860   *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863   (eval "$ac_try") 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); }; }; then
14867   eval "$as_ac_var=yes"
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872         eval "$as_ac_var=no"
14873 fi
14874
14875 rm -f core conftest.err conftest.$ac_objext \
14876       conftest$ac_exeext conftest.$ac_ext
14877 fi
14878 ac_res=`eval echo '${'$as_ac_var'}'`
14879                { echo "$as_me:$LINENO: result: $ac_res" >&5
14880 echo "${ECHO_T}$ac_res" >&6; }
14881 if test `eval echo '${'$as_ac_var'}'` = yes; then
14882   cat >>confdefs.h <<_ACEOF
14883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14884 _ACEOF
14885
14886 fi
14887 done
14888
14889 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14890 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14891 if test "${llvm_cv_c_printf_a+set}" = set; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894   ac_ext=c
14895 ac_cpp='$CPP $CPPFLAGS'
14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14899
14900  if test "$cross_compiling" = yes; then
14901   llvmac_cv_c_printf_a=no
14902 else
14903   cat >conftest.$ac_ext <<_ACEOF
14904
14905   /* confdefs.h.  */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h.  */
14910
14911 #include <stdio.h>
14912 #include <stdlib.h>
14913
14914 int
14915 main ()
14916 {
14917
14918 volatile double A, B;
14919 char Buffer[100];
14920 A = 1;
14921 A /= 10.0;
14922 sprintf(Buffer, "%a", A);
14923 B = atof(Buffer);
14924 if (A != B)
14925   return (1);
14926 if (A != 0x1.999999999999ap-4)
14927   return (1);
14928 return (0);
14929   ;
14930   return 0;
14931 }
14932 _ACEOF
14933 rm -f conftest$ac_exeext
14934 if { (ac_try="$ac_link"
14935 case "(($ac_try" in
14936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937   *) ac_try_echo=$ac_try;;
14938 esac
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940   (eval "$ac_link") 2>&5
14941   ac_status=$?
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14944   { (case "(($ac_try" in
14945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946   *) ac_try_echo=$ac_try;;
14947 esac
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949   (eval "$ac_try") 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); }; }; then
14953   llvm_cv_c_printf_a=yes
14954 else
14955   echo "$as_me: program exited with status $ac_status" >&5
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14958
14959 ( exit $ac_status )
14960 llvmac_cv_c_printf_a=no
14961 fi
14962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14963 fi
14964
14965
14966  ac_ext=c
14967 ac_cpp='$CPP $CPPFLAGS'
14968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14971
14972 fi
14973 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14974 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14975  if test "$llvm_cv_c_printf_a" = "yes"; then
14976
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_PRINTF_A 1
14979 _ACEOF
14980
14981  fi
14982
14983
14984
14985   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14986 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14987 if test "${ac_cv_func_rand48+set}" = set; then
14988   echo $ECHO_N "(cached) $ECHO_C" >&6
14989 else
14990
14991     ac_ext=cpp
14992 ac_cpp='$CXXCPP $CPPFLAGS'
14993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14996
14997     cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h.  */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h.  */
15003 #include <stdlib.h>
15004 int
15005 main ()
15006 {
15007 srand48(0);lrand48();drand48();
15008   ;
15009   return 0;
15010 }
15011 _ACEOF
15012 rm -f conftest.$ac_objext
15013 if { (ac_try="$ac_compile"
15014 case "(($ac_try" in
15015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016   *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019   (eval "$ac_compile") 2>conftest.er1
15020   ac_status=$?
15021   grep -v '^ *+' conftest.er1 >conftest.err
15022   rm -f conftest.er1
15023   cat conftest.err >&5
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); } &&
15026          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15027   { (case "(($ac_try" in
15028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029   *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032   (eval "$ac_try") 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); }; } &&
15036          { ac_try='test -s conftest.$ac_objext'
15037   { (case "(($ac_try" in
15038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039   *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042   (eval "$ac_try") 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; }; then
15046   ac_cv_func_rand48=yes
15047 else
15048   echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051         ac_cv_func_rand48=no
15052 fi
15053
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055     ac_ext=c
15056 ac_cpp='$CPP $CPPFLAGS'
15057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15060
15061
15062 fi
15063 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15064 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15065
15066 if test "$ac_cv_func_rand48" = "yes" ; then
15067
15068 cat >>confdefs.h <<\_ACEOF
15069 #define HAVE_RAND48 1
15070 _ACEOF
15071
15072 fi
15073
15074
15075 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15076 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15077 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 $ac_includes_default
15087 int
15088 main ()
15089 {
15090 #ifndef arc4random
15091   char *p = (char *) arc4random;
15092   return !p;
15093 #endif
15094
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 rm -f conftest.$ac_objext
15100 if { (ac_try="$ac_compile"
15101 case "(($ac_try" in
15102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103   *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106   (eval "$ac_compile") 2>conftest.er1
15107   ac_status=$?
15108   grep -v '^ *+' conftest.er1 >conftest.err
15109   rm -f conftest.er1
15110   cat conftest.err >&5
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); } &&
15113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15114   { (case "(($ac_try" in
15115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116   *) ac_try_echo=$ac_try;;
15117 esac
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119   (eval "$ac_try") 2>&5
15120   ac_status=$?
15121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   (exit $ac_status); }; } &&
15123          { ac_try='test -s conftest.$ac_objext'
15124   { (case "(($ac_try" in
15125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126   *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129   (eval "$ac_try") 2>&5
15130   ac_status=$?
15131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132   (exit $ac_status); }; }; then
15133   ac_cv_have_decl_arc4random=yes
15134 else
15135   echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15137
15138         ac_cv_have_decl_arc4random=no
15139 fi
15140
15141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15142 fi
15143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15144 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15145 if test $ac_cv_have_decl_arc4random = yes; then
15146
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_DECL_ARC4RANDOM 1
15149 _ACEOF
15150
15151
15152 else
15153   cat >>confdefs.h <<_ACEOF
15154 #define HAVE_DECL_ARC4RANDOM 0
15155 _ACEOF
15156
15157
15158 fi
15159
15160
15161
15162 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15163 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15164 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15165   echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167   cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h.  */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h.  */
15173 $ac_includes_default
15174 int
15175 main ()
15176 {
15177 #ifndef strerror_s
15178   char *p = (char *) strerror_s;
15179   return !p;
15180 #endif
15181
15182   ;
15183   return 0;
15184 }
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_compile") 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } &&
15200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201   { (case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_try") 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; } &&
15210          { ac_try='test -s conftest.$ac_objext'
15211   { (case "(($ac_try" in
15212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213   *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216   (eval "$ac_try") 2>&5
15217   ac_status=$?
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); }; }; then
15220   ac_cv_have_decl_strerror_s=yes
15221 else
15222   echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225         ac_cv_have_decl_strerror_s=no
15226 fi
15227
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 fi
15230 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15231 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15232 if test $ac_cv_have_decl_strerror_s = yes; then
15233
15234 cat >>confdefs.h <<_ACEOF
15235 #define HAVE_DECL_STRERROR_S 1
15236 _ACEOF
15237
15238
15239 else
15240   cat >>confdefs.h <<_ACEOF
15241 #define HAVE_DECL_STRERROR_S 0
15242 _ACEOF
15243
15244
15245 fi
15246
15247
15248
15249 if test "$llvm_cv_os_type" = "MingW" ; then
15250   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15251 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15252 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15253   echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255   ac_check_lib_save_LIBS=$LIBS
15256 LIBS="-lgcc  $LIBS"
15257 cat >conftest.$ac_ext <<_ACEOF
15258 /* confdefs.h.  */
15259 _ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h.  */
15263
15264 /* Override any GCC internal prototype to avoid an error.
15265    Use char because int might match the return type of a GCC
15266    builtin and then its argument prototype would still apply.  */
15267 #ifdef __cplusplus
15268 extern "C"
15269 #endif
15270 char _alloca ();
15271 int
15272 main ()
15273 {
15274 return _alloca ();
15275   ;
15276   return 0;
15277 }
15278 _ACEOF
15279 rm -f conftest.$ac_objext conftest$ac_exeext
15280 if { (ac_try="$ac_link"
15281 case "(($ac_try" in
15282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283   *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286   (eval "$ac_link") 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } &&
15293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294   { (case "(($ac_try" in
15295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296   *) ac_try_echo=$ac_try;;
15297 esac
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299   (eval "$ac_try") 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); }; } &&
15303          { ac_try='test -s conftest$ac_exeext'
15304   { (case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_try") 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; }; then
15313   ac_cv_lib_gcc__alloca=yes
15314 else
15315   echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318         ac_cv_lib_gcc__alloca=no
15319 fi
15320
15321 rm -f core conftest.err conftest.$ac_objext \
15322       conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15324 fi
15325 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15326 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15327 if test $ac_cv_lib_gcc__alloca = yes; then
15328
15329 cat >>confdefs.h <<\_ACEOF
15330 #define HAVE__ALLOCA 1
15331 _ACEOF
15332
15333 fi
15334
15335   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15336 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15337 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15338   echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340   ac_check_lib_save_LIBS=$LIBS
15341 LIBS="-lgcc  $LIBS"
15342 cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h.  */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h.  */
15348
15349 /* Override any GCC internal prototype to avoid an error.
15350    Use char because int might match the return type of a GCC
15351    builtin and then its argument prototype would still apply.  */
15352 #ifdef __cplusplus
15353 extern "C"
15354 #endif
15355 char __alloca ();
15356 int
15357 main ()
15358 {
15359 return __alloca ();
15360   ;
15361   return 0;
15362 }
15363 _ACEOF
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368   *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371   (eval "$ac_link") 2>conftest.er1
15372   ac_status=$?
15373   grep -v '^ *+' conftest.er1 >conftest.err
15374   rm -f conftest.er1
15375   cat conftest.err >&5
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } &&
15378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379   { (case "(($ac_try" in
15380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381   *) ac_try_echo=$ac_try;;
15382 esac
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384   (eval "$ac_try") 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; } &&
15388          { ac_try='test -s conftest$ac_exeext'
15389   { (case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394   (eval "$ac_try") 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; }; then
15398   ac_cv_lib_gcc___alloca=yes
15399 else
15400   echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403         ac_cv_lib_gcc___alloca=no
15404 fi
15405
15406 rm -f core conftest.err conftest.$ac_objext \
15407       conftest$ac_exeext conftest.$ac_ext
15408 LIBS=$ac_check_lib_save_LIBS
15409 fi
15410 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15411 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15412 if test $ac_cv_lib_gcc___alloca = yes; then
15413
15414 cat >>confdefs.h <<\_ACEOF
15415 #define HAVE___ALLOCA 1
15416 _ACEOF
15417
15418 fi
15419
15420   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15421 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15422 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15423   echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425   ac_check_lib_save_LIBS=$LIBS
15426 LIBS="-lgcc  $LIBS"
15427 cat >conftest.$ac_ext <<_ACEOF
15428 /* confdefs.h.  */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h.  */
15433
15434 /* Override any GCC internal prototype to avoid an error.
15435    Use char because int might match the return type of a GCC
15436    builtin and then its argument prototype would still apply.  */
15437 #ifdef __cplusplus
15438 extern "C"
15439 #endif
15440 char __chkstk ();
15441 int
15442 main ()
15443 {
15444 return __chkstk ();
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (ac_try="$ac_link"
15451 case "(($ac_try" in
15452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453   *) ac_try_echo=$ac_try;;
15454 esac
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456   (eval "$ac_link") 2>conftest.er1
15457   ac_status=$?
15458   grep -v '^ *+' conftest.er1 >conftest.err
15459   rm -f conftest.er1
15460   cat conftest.err >&5
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); } &&
15463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15464   { (case "(($ac_try" in
15465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466   *) ac_try_echo=$ac_try;;
15467 esac
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469   (eval "$ac_try") 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); }; } &&
15473          { ac_try='test -s conftest$ac_exeext'
15474   { (case "(($ac_try" in
15475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476   *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479   (eval "$ac_try") 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); }; }; then
15483   ac_cv_lib_gcc___chkstk=yes
15484 else
15485   echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488         ac_cv_lib_gcc___chkstk=no
15489 fi
15490
15491 rm -f core conftest.err conftest.$ac_objext \
15492       conftest$ac_exeext conftest.$ac_ext
15493 LIBS=$ac_check_lib_save_LIBS
15494 fi
15495 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15496 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15497 if test $ac_cv_lib_gcc___chkstk = yes; then
15498
15499 cat >>confdefs.h <<\_ACEOF
15500 #define HAVE___CHKSTK 1
15501 _ACEOF
15502
15503 fi
15504
15505   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15506 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15507 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15508   echo $ECHO_N "(cached) $ECHO_C" >&6
15509 else
15510   ac_check_lib_save_LIBS=$LIBS
15511 LIBS="-lgcc  $LIBS"
15512 cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h.  */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h.  */
15518
15519 /* Override any GCC internal prototype to avoid an error.
15520    Use char because int might match the return type of a GCC
15521    builtin and then its argument prototype would still apply.  */
15522 #ifdef __cplusplus
15523 extern "C"
15524 #endif
15525 char ___chkstk ();
15526 int
15527 main ()
15528 {
15529 return ___chkstk ();
15530   ;
15531   return 0;
15532 }
15533 _ACEOF
15534 rm -f conftest.$ac_objext conftest$ac_exeext
15535 if { (ac_try="$ac_link"
15536 case "(($ac_try" in
15537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538   *) ac_try_echo=$ac_try;;
15539 esac
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541   (eval "$ac_link") 2>conftest.er1
15542   ac_status=$?
15543   grep -v '^ *+' conftest.er1 >conftest.err
15544   rm -f conftest.er1
15545   cat conftest.err >&5
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); } &&
15548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15549   { (case "(($ac_try" in
15550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551   *) ac_try_echo=$ac_try;;
15552 esac
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554   (eval "$ac_try") 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); }; } &&
15558          { ac_try='test -s conftest$ac_exeext'
15559   { (case "(($ac_try" in
15560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561   *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564   (eval "$ac_try") 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; }; then
15568   ac_cv_lib_gcc____chkstk=yes
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573         ac_cv_lib_gcc____chkstk=no
15574 fi
15575
15576 rm -f core conftest.err conftest.$ac_objext \
15577       conftest$ac_exeext conftest.$ac_ext
15578 LIBS=$ac_check_lib_save_LIBS
15579 fi
15580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15581 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15582 if test $ac_cv_lib_gcc____chkstk = yes; then
15583
15584 cat >>confdefs.h <<\_ACEOF
15585 #define HAVE____CHKSTK 1
15586 _ACEOF
15587
15588 fi
15589
15590
15591   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15592 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15593 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15594   echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596   ac_check_lib_save_LIBS=$LIBS
15597 LIBS="-lgcc  $LIBS"
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604
15605 /* Override any GCC internal prototype to avoid an error.
15606    Use char because int might match the return type of a GCC
15607    builtin and then its argument prototype would still apply.  */
15608 #ifdef __cplusplus
15609 extern "C"
15610 #endif
15611 char __ashldi3 ();
15612 int
15613 main ()
15614 {
15615 return __ashldi3 ();
15616   ;
15617   return 0;
15618 }
15619 _ACEOF
15620 rm -f conftest.$ac_objext conftest$ac_exeext
15621 if { (ac_try="$ac_link"
15622 case "(($ac_try" in
15623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624   *) ac_try_echo=$ac_try;;
15625 esac
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627   (eval "$ac_link") 2>conftest.er1
15628   ac_status=$?
15629   grep -v '^ *+' conftest.er1 >conftest.err
15630   rm -f conftest.er1
15631   cat conftest.err >&5
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); } &&
15634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15635   { (case "(($ac_try" in
15636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637   *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640   (eval "$ac_try") 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; } &&
15644          { ac_try='test -s conftest$ac_exeext'
15645   { (case "(($ac_try" in
15646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647   *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650   (eval "$ac_try") 2>&5
15651   ac_status=$?
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); }; }; then
15654   ac_cv_lib_gcc___ashldi3=yes
15655 else
15656   echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15658
15659         ac_cv_lib_gcc___ashldi3=no
15660 fi
15661
15662 rm -f core conftest.err conftest.$ac_objext \
15663       conftest$ac_exeext conftest.$ac_ext
15664 LIBS=$ac_check_lib_save_LIBS
15665 fi
15666 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15667 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15668 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15669
15670 cat >>confdefs.h <<\_ACEOF
15671 #define HAVE___ASHLDI3 1
15672 _ACEOF
15673
15674 fi
15675
15676   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15677 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15678 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15679   echo $ECHO_N "(cached) $ECHO_C" >&6
15680 else
15681   ac_check_lib_save_LIBS=$LIBS
15682 LIBS="-lgcc  $LIBS"
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689
15690 /* Override any GCC internal prototype to avoid an error.
15691    Use char because int might match the return type of a GCC
15692    builtin and then its argument prototype would still apply.  */
15693 #ifdef __cplusplus
15694 extern "C"
15695 #endif
15696 char __ashrdi3 ();
15697 int
15698 main ()
15699 {
15700 return __ashrdi3 ();
15701   ;
15702   return 0;
15703 }
15704 _ACEOF
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (ac_try="$ac_link"
15707 case "(($ac_try" in
15708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709   *) ac_try_echo=$ac_try;;
15710 esac
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712   (eval "$ac_link") 2>conftest.er1
15713   ac_status=$?
15714   grep -v '^ *+' conftest.er1 >conftest.err
15715   rm -f conftest.er1
15716   cat conftest.err >&5
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); } &&
15719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15720   { (case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_try") 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; } &&
15729          { ac_try='test -s conftest$ac_exeext'
15730   { (case "(($ac_try" in
15731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732   *) ac_try_echo=$ac_try;;
15733 esac
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735   (eval "$ac_try") 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739   ac_cv_lib_gcc___ashrdi3=yes
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744         ac_cv_lib_gcc___ashrdi3=no
15745 fi
15746
15747 rm -f core conftest.err conftest.$ac_objext \
15748       conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS
15750 fi
15751 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15752 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15753 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15754
15755 cat >>confdefs.h <<\_ACEOF
15756 #define HAVE___ASHRDI3 1
15757 _ACEOF
15758
15759 fi
15760
15761   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15762 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15763 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766   ac_check_lib_save_LIBS=$LIBS
15767 LIBS="-lgcc  $LIBS"
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h.  */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h.  */
15774
15775 /* Override any GCC internal prototype to avoid an error.
15776    Use char because int might match the return type of a GCC
15777    builtin and then its argument prototype would still apply.  */
15778 #ifdef __cplusplus
15779 extern "C"
15780 #endif
15781 char __divdi3 ();
15782 int
15783 main ()
15784 {
15785 return __divdi3 ();
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (ac_try="$ac_link"
15792 case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797   (eval "$ac_link") 2>conftest.er1
15798   ac_status=$?
15799   grep -v '^ *+' conftest.er1 >conftest.err
15800   rm -f conftest.er1
15801   cat conftest.err >&5
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } &&
15804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15805   { (case "(($ac_try" in
15806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807   *) ac_try_echo=$ac_try;;
15808 esac
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810   (eval "$ac_try") 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; } &&
15814          { ac_try='test -s conftest$ac_exeext'
15815   { (case "(($ac_try" in
15816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817   *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820   (eval "$ac_try") 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; }; then
15824   ac_cv_lib_gcc___divdi3=yes
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829         ac_cv_lib_gcc___divdi3=no
15830 fi
15831
15832 rm -f core conftest.err conftest.$ac_objext \
15833       conftest$ac_exeext conftest.$ac_ext
15834 LIBS=$ac_check_lib_save_LIBS
15835 fi
15836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15837 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15838 if test $ac_cv_lib_gcc___divdi3 = yes; then
15839
15840 cat >>confdefs.h <<\_ACEOF
15841 #define HAVE___DIVDI3 1
15842 _ACEOF
15843
15844 fi
15845
15846   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15847 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15848 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15849   echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851   ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-lgcc  $LIBS"
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859
15860 /* Override any GCC internal prototype to avoid an error.
15861    Use char because int might match the return type of a GCC
15862    builtin and then its argument prototype would still apply.  */
15863 #ifdef __cplusplus
15864 extern "C"
15865 #endif
15866 char __fixdfdi ();
15867 int
15868 main ()
15869 {
15870 return __fixdfdi ();
15871   ;
15872   return 0;
15873 }
15874 _ACEOF
15875 rm -f conftest.$ac_objext conftest$ac_exeext
15876 if { (ac_try="$ac_link"
15877 case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_link") 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15890   { (case "(($ac_try" in
15891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892   *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895   (eval "$ac_try") 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; } &&
15899          { ac_try='test -s conftest$ac_exeext'
15900   { (case "(($ac_try" in
15901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902   *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905   (eval "$ac_try") 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; }; then
15909   ac_cv_lib_gcc___fixdfdi=yes
15910 else
15911   echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15913
15914         ac_cv_lib_gcc___fixdfdi=no
15915 fi
15916
15917 rm -f core conftest.err conftest.$ac_objext \
15918       conftest$ac_exeext conftest.$ac_ext
15919 LIBS=$ac_check_lib_save_LIBS
15920 fi
15921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15922 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15923 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15924
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE___FIXDFDI 1
15927 _ACEOF
15928
15929 fi
15930
15931   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15932 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15933 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15934   echo $ECHO_N "(cached) $ECHO_C" >&6
15935 else
15936   ac_check_lib_save_LIBS=$LIBS
15937 LIBS="-lgcc  $LIBS"
15938 cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h.  */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h.  */
15944
15945 /* Override any GCC internal prototype to avoid an error.
15946    Use char because int might match the return type of a GCC
15947    builtin and then its argument prototype would still apply.  */
15948 #ifdef __cplusplus
15949 extern "C"
15950 #endif
15951 char __fixsfdi ();
15952 int
15953 main ()
15954 {
15955 return __fixsfdi ();
15956   ;
15957   return 0;
15958 }
15959 _ACEOF
15960 rm -f conftest.$ac_objext conftest$ac_exeext
15961 if { (ac_try="$ac_link"
15962 case "(($ac_try" in
15963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964   *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967   (eval "$ac_link") 2>conftest.er1
15968   ac_status=$?
15969   grep -v '^ *+' conftest.er1 >conftest.err
15970   rm -f conftest.er1
15971   cat conftest.err >&5
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } &&
15974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15975   { (case "(($ac_try" in
15976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15977   *) ac_try_echo=$ac_try;;
15978 esac
15979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15980   (eval "$ac_try") 2>&5
15981   ac_status=$?
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); }; } &&
15984          { ac_try='test -s conftest$ac_exeext'
15985   { (case "(($ac_try" in
15986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987   *) ac_try_echo=$ac_try;;
15988 esac
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990   (eval "$ac_try") 2>&5
15991   ac_status=$?
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); }; }; then
15994   ac_cv_lib_gcc___fixsfdi=yes
15995 else
15996   echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15998
15999         ac_cv_lib_gcc___fixsfdi=no
16000 fi
16001
16002 rm -f core conftest.err conftest.$ac_objext \
16003       conftest$ac_exeext conftest.$ac_ext
16004 LIBS=$ac_check_lib_save_LIBS
16005 fi
16006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16007 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16008 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16009
16010 cat >>confdefs.h <<\_ACEOF
16011 #define HAVE___FIXSFDI 1
16012 _ACEOF
16013
16014 fi
16015
16016   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16017 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16018 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lgcc  $LIBS"
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029
16030 /* Override any GCC internal prototype to avoid an error.
16031    Use char because int might match the return type of a GCC
16032    builtin and then its argument prototype would still apply.  */
16033 #ifdef __cplusplus
16034 extern "C"
16035 #endif
16036 char __floatdidf ();
16037 int
16038 main ()
16039 {
16040 return __floatdidf ();
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_link") 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } &&
16059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060   { (case "(($ac_try" in
16061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062   *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065   (eval "$ac_try") 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; } &&
16069          { ac_try='test -s conftest$ac_exeext'
16070   { (case "(($ac_try" in
16071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072   *) ac_try_echo=$ac_try;;
16073 esac
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075   (eval "$ac_try") 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; }; then
16079   ac_cv_lib_gcc___floatdidf=yes
16080 else
16081   echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084         ac_cv_lib_gcc___floatdidf=no
16085 fi
16086
16087 rm -f core conftest.err conftest.$ac_objext \
16088       conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16090 fi
16091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16092 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16093 if test $ac_cv_lib_gcc___floatdidf = yes; then
16094
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE___FLOATDIDF 1
16097 _ACEOF
16098
16099 fi
16100
16101   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16102 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16103 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16104   echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106   ac_check_lib_save_LIBS=$LIBS
16107 LIBS="-lgcc  $LIBS"
16108 cat >conftest.$ac_ext <<_ACEOF
16109 /* confdefs.h.  */
16110 _ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h.  */
16114
16115 /* Override any GCC internal prototype to avoid an error.
16116    Use char because int might match the return type of a GCC
16117    builtin and then its argument prototype would still apply.  */
16118 #ifdef __cplusplus
16119 extern "C"
16120 #endif
16121 char __lshrdi3 ();
16122 int
16123 main ()
16124 {
16125 return __lshrdi3 ();
16126   ;
16127   return 0;
16128 }
16129 _ACEOF
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (ac_try="$ac_link"
16132 case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_link") 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } &&
16144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16145   { (case "(($ac_try" in
16146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147   *) ac_try_echo=$ac_try;;
16148 esac
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150   (eval "$ac_try") 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; } &&
16154          { ac_try='test -s conftest$ac_exeext'
16155   { (case "(($ac_try" in
16156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157   *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160   (eval "$ac_try") 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); }; }; then
16164   ac_cv_lib_gcc___lshrdi3=yes
16165 else
16166   echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169         ac_cv_lib_gcc___lshrdi3=no
16170 fi
16171
16172 rm -f core conftest.err conftest.$ac_objext \
16173       conftest$ac_exeext conftest.$ac_ext
16174 LIBS=$ac_check_lib_save_LIBS
16175 fi
16176 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16177 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16178 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16179
16180 cat >>confdefs.h <<\_ACEOF
16181 #define HAVE___LSHRDI3 1
16182 _ACEOF
16183
16184 fi
16185
16186   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16187 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16188 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16189   echo $ECHO_N "(cached) $ECHO_C" >&6
16190 else
16191   ac_check_lib_save_LIBS=$LIBS
16192 LIBS="-lgcc  $LIBS"
16193 cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h.  */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h.  */
16199
16200 /* Override any GCC internal prototype to avoid an error.
16201    Use char because int might match the return type of a GCC
16202    builtin and then its argument prototype would still apply.  */
16203 #ifdef __cplusplus
16204 extern "C"
16205 #endif
16206 char __moddi3 ();
16207 int
16208 main ()
16209 {
16210 return __moddi3 ();
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 rm -f conftest.$ac_objext conftest$ac_exeext
16216 if { (ac_try="$ac_link"
16217 case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_link") 2>conftest.er1
16223   ac_status=$?
16224   grep -v '^ *+' conftest.er1 >conftest.err
16225   rm -f conftest.er1
16226   cat conftest.err >&5
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); } &&
16229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230   { (case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235   (eval "$ac_try") 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; } &&
16239          { ac_try='test -s conftest$ac_exeext'
16240   { (case "(($ac_try" in
16241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242   *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245   (eval "$ac_try") 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; }; then
16249   ac_cv_lib_gcc___moddi3=yes
16250 else
16251   echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16253
16254         ac_cv_lib_gcc___moddi3=no
16255 fi
16256
16257 rm -f core conftest.err conftest.$ac_objext \
16258       conftest$ac_exeext conftest.$ac_ext
16259 LIBS=$ac_check_lib_save_LIBS
16260 fi
16261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16262 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16263 if test $ac_cv_lib_gcc___moddi3 = yes; then
16264
16265 cat >>confdefs.h <<\_ACEOF
16266 #define HAVE___MODDI3 1
16267 _ACEOF
16268
16269 fi
16270
16271   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16272 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16273 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16274   echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276   ac_check_lib_save_LIBS=$LIBS
16277 LIBS="-lgcc  $LIBS"
16278 cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h.  */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h.  */
16284
16285 /* Override any GCC internal prototype to avoid an error.
16286    Use char because int might match the return type of a GCC
16287    builtin and then its argument prototype would still apply.  */
16288 #ifdef __cplusplus
16289 extern "C"
16290 #endif
16291 char __udivdi3 ();
16292 int
16293 main ()
16294 {
16295 return __udivdi3 ();
16296   ;
16297   return 0;
16298 }
16299 _ACEOF
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304   *) ac_try_echo=$ac_try;;
16305 esac
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307   (eval "$ac_link") 2>conftest.er1
16308   ac_status=$?
16309   grep -v '^ *+' conftest.er1 >conftest.err
16310   rm -f conftest.er1
16311   cat conftest.err >&5
16312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); } &&
16314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16315   { (case "(($ac_try" in
16316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317   *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320   (eval "$ac_try") 2>&5
16321   ac_status=$?
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); }; } &&
16324          { ac_try='test -s conftest$ac_exeext'
16325   { (case "(($ac_try" in
16326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327   *) ac_try_echo=$ac_try;;
16328 esac
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330   (eval "$ac_try") 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; }; then
16334   ac_cv_lib_gcc___udivdi3=yes
16335 else
16336   echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16338
16339         ac_cv_lib_gcc___udivdi3=no
16340 fi
16341
16342 rm -f core conftest.err conftest.$ac_objext \
16343       conftest$ac_exeext conftest.$ac_ext
16344 LIBS=$ac_check_lib_save_LIBS
16345 fi
16346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16347 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16348 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16349
16350 cat >>confdefs.h <<\_ACEOF
16351 #define HAVE___UDIVDI3 1
16352 _ACEOF
16353
16354 fi
16355
16356   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16357 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16358 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   ac_check_lib_save_LIBS=$LIBS
16362 LIBS="-lgcc  $LIBS"
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h.  */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h.  */
16369
16370 /* Override any GCC internal prototype to avoid an error.
16371    Use char because int might match the return type of a GCC
16372    builtin and then its argument prototype would still apply.  */
16373 #ifdef __cplusplus
16374 extern "C"
16375 #endif
16376 char __umoddi3 ();
16377 int
16378 main ()
16379 {
16380 return __umoddi3 ();
16381   ;
16382   return 0;
16383 }
16384 _ACEOF
16385 rm -f conftest.$ac_objext conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389   *) ac_try_echo=$ac_try;;
16390 esac
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392   (eval "$ac_link") 2>conftest.er1
16393   ac_status=$?
16394   grep -v '^ *+' conftest.er1 >conftest.err
16395   rm -f conftest.er1
16396   cat conftest.err >&5
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); } &&
16399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16400   { (case "(($ac_try" in
16401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402   *) ac_try_echo=$ac_try;;
16403 esac
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405   (eval "$ac_try") 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; } &&
16409          { ac_try='test -s conftest$ac_exeext'
16410   { (case "(($ac_try" in
16411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412   *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415   (eval "$ac_try") 2>&5
16416   ac_status=$?
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); }; }; then
16419   ac_cv_lib_gcc___umoddi3=yes
16420 else
16421   echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16423
16424         ac_cv_lib_gcc___umoddi3=no
16425 fi
16426
16427 rm -f core conftest.err conftest.$ac_objext \
16428       conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16430 fi
16431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16432 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16433 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16434
16435 cat >>confdefs.h <<\_ACEOF
16436 #define HAVE___UMODDI3 1
16437 _ACEOF
16438
16439 fi
16440
16441
16442   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16443 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16444 if test "${ac_cv_lib_gcc___main+set}" = set; then
16445   echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447   ac_check_lib_save_LIBS=$LIBS
16448 LIBS="-lgcc  $LIBS"
16449 cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455
16456 /* Override any GCC internal prototype to avoid an error.
16457    Use char because int might match the return type of a GCC
16458    builtin and then its argument prototype would still apply.  */
16459 #ifdef __cplusplus
16460 extern "C"
16461 #endif
16462 char __main ();
16463 int
16464 main ()
16465 {
16466 return __main ();
16467   ;
16468   return 0;
16469 }
16470 _ACEOF
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (ac_try="$ac_link"
16473 case "(($ac_try" in
16474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475   *) ac_try_echo=$ac_try;;
16476 esac
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478   (eval "$ac_link") 2>conftest.er1
16479   ac_status=$?
16480   grep -v '^ *+' conftest.er1 >conftest.err
16481   rm -f conftest.er1
16482   cat conftest.err >&5
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); } &&
16485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16486   { (case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491   (eval "$ac_try") 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; } &&
16495          { ac_try='test -s conftest$ac_exeext'
16496   { (case "(($ac_try" in
16497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498   *) ac_try_echo=$ac_try;;
16499 esac
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501   (eval "$ac_try") 2>&5
16502   ac_status=$?
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); }; }; then
16505   ac_cv_lib_gcc___main=yes
16506 else
16507   echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16509
16510         ac_cv_lib_gcc___main=no
16511 fi
16512
16513 rm -f core conftest.err conftest.$ac_objext \
16514       conftest$ac_exeext conftest.$ac_ext
16515 LIBS=$ac_check_lib_save_LIBS
16516 fi
16517 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16518 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16519 if test $ac_cv_lib_gcc___main = yes; then
16520
16521 cat >>confdefs.h <<\_ACEOF
16522 #define HAVE___MAIN 1
16523 _ACEOF
16524
16525 fi
16526
16527   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16528 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16529 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16530   echo $ECHO_N "(cached) $ECHO_C" >&6
16531 else
16532   ac_check_lib_save_LIBS=$LIBS
16533 LIBS="-lgcc  $LIBS"
16534 cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h.  */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h.  */
16540
16541 /* Override any GCC internal prototype to avoid an error.
16542    Use char because int might match the return type of a GCC
16543    builtin and then its argument prototype would still apply.  */
16544 #ifdef __cplusplus
16545 extern "C"
16546 #endif
16547 char __cmpdi2 ();
16548 int
16549 main ()
16550 {
16551 return __cmpdi2 ();
16552   ;
16553   return 0;
16554 }
16555 _ACEOF
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (ac_try="$ac_link"
16558 case "(($ac_try" in
16559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560   *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563   (eval "$ac_link") 2>conftest.er1
16564   ac_status=$?
16565   grep -v '^ *+' conftest.er1 >conftest.err
16566   rm -f conftest.er1
16567   cat conftest.err >&5
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); } &&
16570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16571   { (case "(($ac_try" in
16572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573   *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576   (eval "$ac_try") 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; } &&
16580          { ac_try='test -s conftest$ac_exeext'
16581   { (case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586   (eval "$ac_try") 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; }; then
16590   ac_cv_lib_gcc___cmpdi2=yes
16591 else
16592   echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595         ac_cv_lib_gcc___cmpdi2=no
16596 fi
16597
16598 rm -f core conftest.err conftest.$ac_objext \
16599       conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16601 fi
16602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16603 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16604 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16605
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE___CMPDI2 1
16608 _ACEOF
16609
16610 fi
16611
16612 fi
16613
16614 if test "$llvm_cv_os_type" = "MingW" ; then
16615   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16616 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16617   cat >conftest.$ac_ext <<_ACEOF
16618
16619   /* confdefs.h.  */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h.  */
16624
16625     #include <windows.h>
16626     #include <imagehlp.h>
16627     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16628     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16629
16630
16631 _ACEOF
16632 rm -f conftest.$ac_objext
16633 if { (ac_try="$ac_compile"
16634 case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_compile") 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } &&
16646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647   { (case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652   (eval "$ac_try") 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; } &&
16656          { ac_try='test -s conftest.$ac_objext'
16657   { (case "(($ac_try" in
16658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659   *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662   (eval "$ac_try") 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); }; }; then
16666
16667   { echo "$as_me:$LINENO: result: yes" >&5
16668 echo "${ECHO_T}yes" >&6; }
16669   llvm_cv_win32_elmcb_pcstr="PCSTR"
16670
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675
16676   { echo "$as_me:$LINENO: result: no" >&5
16677 echo "${ECHO_T}no" >&6; }
16678   llvm_cv_win32_elmcb_pcstr="PSTR"
16679
16680 fi
16681
16682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16683
16684 cat >>confdefs.h <<_ACEOF
16685 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16686 _ACEOF
16687
16688 fi
16689
16690
16691
16692   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16693 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16694 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697
16698     ac_ext=cpp
16699 ac_cpp='$CXXCPP $CPPFLAGS'
16700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16703
16704     cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710 #include <math.h>
16711 int
16712 main ()
16713 {
16714 float f; isnan(f);
16715   ;
16716   return 0;
16717 }
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (ac_try="$ac_compile"
16721 case "(($ac_try" in
16722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723   *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726   (eval "$ac_compile") 2>conftest.er1
16727   ac_status=$?
16728   grep -v '^ *+' conftest.er1 >conftest.err
16729   rm -f conftest.er1
16730   cat conftest.err >&5
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); } &&
16733          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16734   { (case "(($ac_try" in
16735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736   *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739   (eval "$ac_try") 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; } &&
16743          { ac_try='test -s conftest.$ac_objext'
16744   { (case "(($ac_try" in
16745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746   *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749   (eval "$ac_try") 2>&5
16750   ac_status=$?
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); }; }; then
16753   ac_cv_func_isnan_in_math_h=yes
16754 else
16755   echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16757
16758         ac_cv_func_isnan_in_math_h=no
16759 fi
16760
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762     ac_ext=c
16763 ac_cpp='$CPP $CPPFLAGS'
16764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16767
16768
16769 fi
16770 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16771 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16772
16773
16774 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16775
16776 cat >>confdefs.h <<\_ACEOF
16777 #define HAVE_ISNAN_IN_MATH_H 1
16778 _ACEOF
16779
16780 fi
16781
16782
16783   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16784 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16785 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16786   echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788
16789     ac_ext=cpp
16790 ac_cpp='$CXXCPP $CPPFLAGS'
16791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16794
16795     cat >conftest.$ac_ext <<_ACEOF
16796 /* confdefs.h.  */
16797 _ACEOF
16798 cat confdefs.h >>conftest.$ac_ext
16799 cat >>conftest.$ac_ext <<_ACEOF
16800 /* end confdefs.h.  */
16801 #include <cmath>
16802 int
16803 main ()
16804 {
16805 float f; isnan(f);
16806   ;
16807   return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext
16811 if { (ac_try="$ac_compile"
16812 case "(($ac_try" in
16813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814   *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817   (eval "$ac_compile") 2>conftest.er1
16818   ac_status=$?
16819   grep -v '^ *+' conftest.er1 >conftest.err
16820   rm -f conftest.er1
16821   cat conftest.err >&5
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } &&
16824          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16825   { (case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_try") 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }; } &&
16834          { ac_try='test -s conftest.$ac_objext'
16835   { (case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_try") 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; }; then
16844   ac_cv_func_isnan_in_cmath=yes
16845 else
16846   echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849         ac_cv_func_isnan_in_cmath=no
16850 fi
16851
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853     ac_ext=c
16854 ac_cpp='$CPP $CPPFLAGS'
16855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16858
16859
16860 fi
16861 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16862 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16863
16864 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16865
16866 cat >>confdefs.h <<\_ACEOF
16867 #define HAVE_ISNAN_IN_CMATH 1
16868 _ACEOF
16869
16870 fi
16871
16872
16873   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16874 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16875 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878
16879     ac_ext=cpp
16880 ac_cpp='$CXXCPP $CPPFLAGS'
16881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16884
16885     cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891 #include <cmath>
16892 int
16893 main ()
16894 {
16895 float f; std::isnan(f);
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_compile") 2>conftest.er1
16908   ac_status=$?
16909   grep -v '^ *+' conftest.er1 >conftest.err
16910   rm -f conftest.er1
16911   cat conftest.err >&5
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } &&
16914          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16915   { (case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_try") 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; } &&
16924          { ac_try='test -s conftest.$ac_objext'
16925   { (case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930   (eval "$ac_try") 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); }; }; then
16934   ac_cv_func_std_isnan_in_cmath=yes
16935 else
16936   echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939         ac_cv_func_std_isnan_in_cmath=no
16940 fi
16941
16942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16943     ac_ext=c
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16948
16949
16950 fi
16951 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16952 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16953
16954 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16955
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE_STD_ISNAN_IN_CMATH 1
16958 _ACEOF
16959
16960 fi
16961
16962
16963
16964
16965   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16966 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16967 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16968   echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970
16971     ac_ext=cpp
16972 ac_cpp='$CXXCPP $CPPFLAGS'
16973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16976
16977     cat >conftest.$ac_ext <<_ACEOF
16978 /* confdefs.h.  */
16979 _ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h.  */
16983 #include <math.h>
16984 int
16985 main ()
16986 {
16987 float f; isinf(f);
16988   ;
16989   return 0;
16990 }
16991 _ACEOF
16992 rm -f conftest.$ac_objext
16993 if { (ac_try="$ac_compile"
16994 case "(($ac_try" in
16995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996   *) ac_try_echo=$ac_try;;
16997 esac
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999   (eval "$ac_compile") 2>conftest.er1
17000   ac_status=$?
17001   grep -v '^ *+' conftest.er1 >conftest.err
17002   rm -f conftest.er1
17003   cat conftest.err >&5
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); } &&
17006          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17007   { (case "(($ac_try" in
17008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009   *) ac_try_echo=$ac_try;;
17010 esac
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012   (eval "$ac_try") 2>&5
17013   ac_status=$?
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); }; } &&
17016          { ac_try='test -s conftest.$ac_objext'
17017   { (case "(($ac_try" in
17018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019   *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022   (eval "$ac_try") 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; }; then
17026   ac_cv_func_isinf_in_math_h=yes
17027 else
17028   echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031         ac_cv_func_isinf_in_math_h=no
17032 fi
17033
17034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17035     ac_ext=c
17036 ac_cpp='$CPP $CPPFLAGS'
17037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17040
17041
17042 fi
17043 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17044 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17045
17046 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17047
17048 cat >>confdefs.h <<\_ACEOF
17049 #define HAVE_ISINF_IN_MATH_H 1
17050 _ACEOF
17051
17052 fi
17053
17054
17055   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17056 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17057 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060
17061     ac_ext=cpp
17062 ac_cpp='$CXXCPP $CPPFLAGS'
17063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17066
17067     cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h.  */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h.  */
17073 #include <cmath>
17074 int
17075 main ()
17076 {
17077 float f; isinf(f);
17078   ;
17079   return 0;
17080 }
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (ac_try="$ac_compile"
17084 case "(($ac_try" in
17085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086   *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089   (eval "$ac_compile") 2>conftest.er1
17090   ac_status=$?
17091   grep -v '^ *+' conftest.er1 >conftest.err
17092   rm -f conftest.er1
17093   cat conftest.err >&5
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); } &&
17096          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17097   { (case "(($ac_try" in
17098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099   *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102   (eval "$ac_try") 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); }; } &&
17106          { ac_try='test -s conftest.$ac_objext'
17107   { (case "(($ac_try" in
17108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109   *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112   (eval "$ac_try") 2>&5
17113   ac_status=$?
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); }; }; then
17116   ac_cv_func_isinf_in_cmath=yes
17117 else
17118   echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121         ac_cv_func_isinf_in_cmath=no
17122 fi
17123
17124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125     ac_ext=c
17126 ac_cpp='$CPP $CPPFLAGS'
17127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17130
17131
17132 fi
17133 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17134 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17135
17136 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17137
17138 cat >>confdefs.h <<\_ACEOF
17139 #define HAVE_ISINF_IN_CMATH 1
17140 _ACEOF
17141
17142 fi
17143
17144
17145   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17146 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17147 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17148   echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150
17151     ac_ext=cpp
17152 ac_cpp='$CXXCPP $CPPFLAGS'
17153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17156
17157     cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h.  */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h.  */
17163 #include <cmath>
17164 int
17165 main ()
17166 {
17167 float f; std::isinf(f);
17168   ;
17169   return 0;
17170 }
17171 _ACEOF
17172 rm -f conftest.$ac_objext
17173 if { (ac_try="$ac_compile"
17174 case "(($ac_try" in
17175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176   *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179   (eval "$ac_compile") 2>conftest.er1
17180   ac_status=$?
17181   grep -v '^ *+' conftest.er1 >conftest.err
17182   rm -f conftest.er1
17183   cat conftest.err >&5
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); } &&
17186          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17187   { (case "(($ac_try" in
17188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189   *) ac_try_echo=$ac_try;;
17190 esac
17191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17192   (eval "$ac_try") 2>&5
17193   ac_status=$?
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); }; } &&
17196          { ac_try='test -s conftest.$ac_objext'
17197   { (case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202   (eval "$ac_try") 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); }; }; then
17206   ac_cv_func_std_isinf_in_cmath=yes
17207 else
17208   echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211         ac_cv_func_std_isinf_in_cmath=no
17212 fi
17213
17214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215     ac_ext=c
17216 ac_cpp='$CPP $CPPFLAGS'
17217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17220
17221
17222 fi
17223 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17224 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17225
17226 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17227
17228 cat >>confdefs.h <<\_ACEOF
17229 #define HAVE_STD_ISINF_IN_CMATH 1
17230 _ACEOF
17231
17232 fi
17233
17234
17235   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17236 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17237 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17238   echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240
17241     ac_ext=cpp
17242 ac_cpp='$CXXCPP $CPPFLAGS'
17243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17246
17247     cat >conftest.$ac_ext <<_ACEOF
17248 /* confdefs.h.  */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h.  */
17253 #include <ieeefp.h>
17254 int
17255 main ()
17256 {
17257 float f; finite(f);
17258   ;
17259   return 0;
17260 }
17261 _ACEOF
17262 rm -f conftest.$ac_objext
17263 if { (ac_try="$ac_compile"
17264 case "(($ac_try" in
17265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266   *) ac_try_echo=$ac_try;;
17267 esac
17268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269   (eval "$ac_compile") 2>conftest.er1
17270   ac_status=$?
17271   grep -v '^ *+' conftest.er1 >conftest.err
17272   rm -f conftest.er1
17273   cat conftest.err >&5
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); } &&
17276          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17277   { (case "(($ac_try" in
17278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279   *) ac_try_echo=$ac_try;;
17280 esac
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282   (eval "$ac_try") 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; } &&
17286          { ac_try='test -s conftest.$ac_objext'
17287   { (case "(($ac_try" in
17288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289   *) ac_try_echo=$ac_try;;
17290 esac
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292   (eval "$ac_try") 2>&5
17293   ac_status=$?
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); }; }; then
17296   ac_cv_func_finite_in_ieeefp_h=yes
17297 else
17298   echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301         ac_cv_func_finite_in_ieeefp_h=no
17302 fi
17303
17304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17305     ac_ext=c
17306 ac_cpp='$CPP $CPPFLAGS'
17307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17310
17311
17312 fi
17313 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17314 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17315
17316 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17317
17318 cat >>confdefs.h <<\_ACEOF
17319 #define HAVE_FINITE_IN_IEEEFP_H 1
17320 _ACEOF
17321
17322 fi
17323
17324
17325
17326 if test "$llvm_cv_platform_type" = "Unix" ; then
17327
17328
17329 for ac_header in stdlib.h unistd.h
17330 do
17331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17333   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17336   echo $ECHO_N "(cached) $ECHO_C" >&6
17337 fi
17338 ac_res=`eval echo '${'$as_ac_Header'}'`
17339                { echo "$as_me:$LINENO: result: $ac_res" >&5
17340 echo "${ECHO_T}$ac_res" >&6; }
17341 else
17342   # Is the header compilable?
17343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17345 cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351 $ac_includes_default
17352 #include <$ac_header>
17353 _ACEOF
17354 rm -f conftest.$ac_objext
17355 if { (ac_try="$ac_compile"
17356 case "(($ac_try" in
17357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358   *) ac_try_echo=$ac_try;;
17359 esac
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361   (eval "$ac_compile") 2>conftest.er1
17362   ac_status=$?
17363   grep -v '^ *+' conftest.er1 >conftest.err
17364   rm -f conftest.er1
17365   cat conftest.err >&5
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); } &&
17368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17369   { (case "(($ac_try" in
17370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371   *) ac_try_echo=$ac_try;;
17372 esac
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374   (eval "$ac_try") 2>&5
17375   ac_status=$?
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); }; } &&
17378          { ac_try='test -s conftest.$ac_objext'
17379   { (case "(($ac_try" in
17380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381   *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384   (eval "$ac_try") 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); }; }; then
17388   ac_header_compiler=yes
17389 else
17390   echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393         ac_header_compiler=no
17394 fi
17395
17396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17398 echo "${ECHO_T}$ac_header_compiler" >&6; }
17399
17400 # Is the header present?
17401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17403 cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17409 #include <$ac_header>
17410 _ACEOF
17411 if { (ac_try="$ac_cpp conftest.$ac_ext"
17412 case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17418   ac_status=$?
17419   grep -v '^ *+' conftest.er1 >conftest.err
17420   rm -f conftest.er1
17421   cat conftest.err >&5
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } >/dev/null; then
17424   if test -s conftest.err; then
17425     ac_cpp_err=$ac_c_preproc_warn_flag
17426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17427   else
17428     ac_cpp_err=
17429   fi
17430 else
17431   ac_cpp_err=yes
17432 fi
17433 if test -z "$ac_cpp_err"; then
17434   ac_header_preproc=yes
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439   ac_header_preproc=no
17440 fi
17441
17442 rm -f conftest.err conftest.$ac_ext
17443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17444 echo "${ECHO_T}$ac_header_preproc" >&6; }
17445
17446 # So?  What about this header?
17447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17448   yes:no: )
17449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17453     ac_header_preproc=yes
17454     ;;
17455   no:yes:* )
17456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17468     ( cat <<\_ASBOX
17469 ## ------------------------------------ ##
17470 ## Report this to http://llvm.org/bugs/ ##
17471 ## ------------------------------------ ##
17472 _ASBOX
17473      ) | sed "s/^/$as_me: WARNING:     /" >&2
17474     ;;
17475 esac
17476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17479   echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481   eval "$as_ac_Header=\$ac_header_preproc"
17482 fi
17483 ac_res=`eval echo '${'$as_ac_Header'}'`
17484                { echo "$as_me:$LINENO: result: $ac_res" >&5
17485 echo "${ECHO_T}$ac_res" >&6; }
17486
17487 fi
17488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17489   cat >>confdefs.h <<_ACEOF
17490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17491 _ACEOF
17492
17493 fi
17494
17495 done
17496
17497
17498 for ac_func in getpagesize
17499 do
17500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17501 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17504   echo $ECHO_N "(cached) $ECHO_C" >&6
17505 else
17506   cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17514 #define $ac_func innocuous_$ac_func
17515
17516 /* System header to define __stub macros and hopefully few prototypes,
17517     which can conflict with char $ac_func (); below.
17518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17519     <limits.h> exists even on freestanding compilers.  */
17520
17521 #ifdef __STDC__
17522 # include <limits.h>
17523 #else
17524 # include <assert.h>
17525 #endif
17526
17527 #undef $ac_func
17528
17529 /* Override any GCC internal prototype to avoid an error.
17530    Use char because int might match the return type of a GCC
17531    builtin and then its argument prototype would still apply.  */
17532 #ifdef __cplusplus
17533 extern "C"
17534 #endif
17535 char $ac_func ();
17536 /* The GNU C library defines this for functions which it implements
17537     to always fail with ENOSYS.  Some functions are actually named
17538     something starting with __ and the normal name is an alias.  */
17539 #if defined __stub_$ac_func || defined __stub___$ac_func
17540 choke me
17541 #endif
17542
17543 int
17544 main ()
17545 {
17546 return $ac_func ();
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555   *) ac_try_echo=$ac_try;;
17556 esac
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558   (eval "$ac_link") 2>conftest.er1
17559   ac_status=$?
17560   grep -v '^ *+' conftest.er1 >conftest.err
17561   rm -f conftest.er1
17562   cat conftest.err >&5
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); } &&
17565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17566   { (case "(($ac_try" in
17567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568   *) ac_try_echo=$ac_try;;
17569 esac
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571   (eval "$ac_try") 2>&5
17572   ac_status=$?
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); }; } &&
17575          { ac_try='test -s conftest$ac_exeext'
17576   { (case "(($ac_try" in
17577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578   *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581   (eval "$ac_try") 2>&5
17582   ac_status=$?
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); }; }; then
17585   eval "$as_ac_var=yes"
17586 else
17587   echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17589
17590         eval "$as_ac_var=no"
17591 fi
17592
17593 rm -f core conftest.err conftest.$ac_objext \
17594       conftest$ac_exeext conftest.$ac_ext
17595 fi
17596 ac_res=`eval echo '${'$as_ac_var'}'`
17597                { echo "$as_me:$LINENO: result: $ac_res" >&5
17598 echo "${ECHO_T}$ac_res" >&6; }
17599 if test `eval echo '${'$as_ac_var'}'` = yes; then
17600   cat >>confdefs.h <<_ACEOF
17601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17602 _ACEOF
17603
17604 fi
17605 done
17606
17607 { echo "$as_me:$LINENO: checking for working mmap" >&5
17608 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17609 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17610   echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612   if test "$cross_compiling" = yes; then
17613   ac_cv_func_mmap_fixed_mapped=no
17614 else
17615   cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h.  */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h.  */
17621 $ac_includes_default
17622 /* malloc might have been renamed as rpl_malloc. */
17623 #undef malloc
17624
17625 /* Thanks to Mike Haertel and Jim Avera for this test.
17626    Here is a matrix of mmap possibilities:
17627         mmap private not fixed
17628         mmap private fixed at somewhere currently unmapped
17629         mmap private fixed at somewhere already mapped
17630         mmap shared not fixed
17631         mmap shared fixed at somewhere currently unmapped
17632         mmap shared fixed at somewhere already mapped
17633    For private mappings, we should verify that changes cannot be read()
17634    back from the file, nor mmap's back from the file at a different
17635    address.  (There have been systems where private was not correctly
17636    implemented like the infamous i386 svr4.0, and systems where the
17637    VM page cache was not coherent with the file system buffer cache
17638    like early versions of FreeBSD and possibly contemporary NetBSD.)
17639    For shared mappings, we should conversely verify that changes get
17640    propagated back to all the places they're supposed to be.
17641
17642    Grep wants private fixed already mapped.
17643    The main things grep needs to know about mmap are:
17644    * does it exist and is it safe to write into the mmap'd area
17645    * how to use it (BSD variants)  */
17646
17647 #include <fcntl.h>
17648 #include <sys/mman.h>
17649
17650 #if !STDC_HEADERS && !HAVE_STDLIB_H
17651 char *malloc ();
17652 #endif
17653
17654 /* This mess was copied from the GNU getpagesize.h.  */
17655 #if !HAVE_GETPAGESIZE
17656 /* Assume that all systems that can run configure have sys/param.h.  */
17657 # if !HAVE_SYS_PARAM_H
17658 #  define HAVE_SYS_PARAM_H 1
17659 # endif
17660
17661 # ifdef _SC_PAGESIZE
17662 #  define getpagesize() sysconf(_SC_PAGESIZE)
17663 # else /* no _SC_PAGESIZE */
17664 #  if HAVE_SYS_PARAM_H
17665 #   include <sys/param.h>
17666 #   ifdef EXEC_PAGESIZE
17667 #    define getpagesize() EXEC_PAGESIZE
17668 #   else /* no EXEC_PAGESIZE */
17669 #    ifdef NBPG
17670 #     define getpagesize() NBPG * CLSIZE
17671 #     ifndef CLSIZE
17672 #      define CLSIZE 1
17673 #     endif /* no CLSIZE */
17674 #    else /* no NBPG */
17675 #     ifdef NBPC
17676 #      define getpagesize() NBPC
17677 #     else /* no NBPC */
17678 #      ifdef PAGESIZE
17679 #       define getpagesize() PAGESIZE
17680 #      endif /* PAGESIZE */
17681 #     endif /* no NBPC */
17682 #    endif /* no NBPG */
17683 #   endif /* no EXEC_PAGESIZE */
17684 #  else /* no HAVE_SYS_PARAM_H */
17685 #   define getpagesize() 8192   /* punt totally */
17686 #  endif /* no HAVE_SYS_PARAM_H */
17687 # endif /* no _SC_PAGESIZE */
17688
17689 #endif /* no HAVE_GETPAGESIZE */
17690
17691 int
17692 main ()
17693 {
17694   char *data, *data2, *data3;
17695   int i, pagesize;
17696   int fd;
17697
17698   pagesize = getpagesize ();
17699
17700   /* First, make a file with some known garbage in it. */
17701   data = (char *) malloc (pagesize);
17702   if (!data)
17703     return 1;
17704   for (i = 0; i < pagesize; ++i)
17705     *(data + i) = rand ();
17706   umask (0);
17707   fd = creat ("conftest.mmap", 0600);
17708   if (fd < 0)
17709     return 1;
17710   if (write (fd, data, pagesize) != pagesize)
17711     return 1;
17712   close (fd);
17713
17714   /* Next, try to mmap the file at a fixed address which already has
17715      something else allocated at it.  If we can, also make sure that
17716      we see the same garbage.  */
17717   fd = open ("conftest.mmap", O_RDWR);
17718   if (fd < 0)
17719     return 1;
17720   data2 = (char *) malloc (2 * pagesize);
17721   if (!data2)
17722     return 1;
17723   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17724   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17725                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17726     return 1;
17727   for (i = 0; i < pagesize; ++i)
17728     if (*(data + i) != *(data2 + i))
17729       return 1;
17730
17731   /* Finally, make sure that changes to the mapped area do not
17732      percolate back to the file as seen by read().  (This is a bug on
17733      some variants of i386 svr4.0.)  */
17734   for (i = 0; i < pagesize; ++i)
17735     *(data2 + i) = *(data2 + i) + 1;
17736   data3 = (char *) malloc (pagesize);
17737   if (!data3)
17738     return 1;
17739   if (read (fd, data3, pagesize) != pagesize)
17740     return 1;
17741   for (i = 0; i < pagesize; ++i)
17742     if (*(data + i) != *(data3 + i))
17743       return 1;
17744   close (fd);
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest$ac_exeext
17749 if { (ac_try="$ac_link"
17750 case "(($ac_try" in
17751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752   *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755   (eval "$ac_link") 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17759   { (case "(($ac_try" in
17760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761   *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764   (eval "$ac_try") 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; }; then
17768   ac_cv_func_mmap_fixed_mapped=yes
17769 else
17770   echo "$as_me: program exited with status $ac_status" >&5
17771 echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774 ( exit $ac_status )
17775 ac_cv_func_mmap_fixed_mapped=no
17776 fi
17777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17778 fi
17779
17780
17781 fi
17782 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17783 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17784 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17785
17786 cat >>confdefs.h <<\_ACEOF
17787 #define HAVE_MMAP 1
17788 _ACEOF
17789
17790 fi
17791 rm -f conftest.mmap
17792
17793   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17794 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17795 if test "${ac_cv_func_mmap_file+set}" = set; then
17796   echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798    ac_ext=c
17799 ac_cpp='$CPP $CPPFLAGS'
17800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17803
17804   if test "$cross_compiling" = yes; then
17805   ac_cv_func_mmap_file=no
17806 else
17807   cat >conftest.$ac_ext <<_ACEOF
17808
17809     /* confdefs.h.  */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h.  */
17814
17815 #include <sys/types.h>
17816 #include <sys/mman.h>
17817 #include <fcntl.h>
17818
17819 int
17820 main ()
17821 {
17822
17823   int fd;
17824   fd = creat ("foo",0777);
17825   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17826   unlink ("foo");
17827   return (fd != (int) MAP_FAILED);
17828   ;
17829   return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_link") 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17843   { (case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_try") 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }; }; then
17852   ac_cv_func_mmap_file=yes
17853 else
17854   echo "$as_me: program exited with status $ac_status" >&5
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 ( exit $ac_status )
17859 ac_cv_func_mmap_file=no
17860 fi
17861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17862 fi
17863
17864
17865   ac_ext=c
17866 ac_cpp='$CPP $CPPFLAGS'
17867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17870
17871
17872 fi
17873 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17874 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17875 if test "$ac_cv_func_mmap_file" = yes; then
17876
17877 cat >>confdefs.h <<\_ACEOF
17878 #define HAVE_MMAP_FILE
17879 _ACEOF
17880
17881    MMAP_FILE=yes
17882
17883 fi
17884
17885   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17886 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17887 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17888   echo $ECHO_N "(cached) $ECHO_C" >&6
17889 else
17890   if test "$llvm_cv_os_type" = "Interix" ; then
17891    ac_cv_need_dev_zero_for_mmap=yes
17892  else
17893    ac_cv_need_dev_zero_for_mmap=no
17894  fi
17895
17896 fi
17897 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17898 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17899 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17900
17901 cat >>confdefs.h <<\_ACEOF
17902 #define NEED_DEV_ZERO_FOR_MMAP 1
17903 _ACEOF
17904
17905 fi
17906
17907   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17908   then
17909     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17910 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17911   fi
17912   if test "$ac_cv_func_mmap_file" = "no"
17913   then
17914     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17915 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17916   fi
17917 fi
17918
17919 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17920 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17921 ac_ext=cpp
17922 ac_cpp='$CXXCPP $CPPFLAGS'
17923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17926
17927 cat >conftest.$ac_ext <<_ACEOF
17928
17929   /* confdefs.h.  */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h.  */
17934
17935     int main() {
17936       volatile unsigned long val = 1;
17937       __sync_synchronize();
17938       __sync_val_compare_and_swap(&val, 1, 0);
17939       __sync_add_and_fetch(&val, 1);
17940       __sync_sub_and_fetch(&val, 1);
17941       return 0;
17942     }
17943
17944
17945 _ACEOF
17946 rm -f conftest.$ac_objext conftest$ac_exeext
17947 if { (ac_try="$ac_link"
17948 case "(($ac_try" in
17949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950   *) ac_try_echo=$ac_try;;
17951 esac
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953   (eval "$ac_link") 2>conftest.er1
17954   ac_status=$?
17955   grep -v '^ *+' conftest.er1 >conftest.err
17956   rm -f conftest.er1
17957   cat conftest.err >&5
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); } &&
17960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17961   { (case "(($ac_try" in
17962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963   *) ac_try_echo=$ac_try;;
17964 esac
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966   (eval "$ac_try") 2>&5
17967   ac_status=$?
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); }; } &&
17970          { ac_try='test -s conftest$ac_exeext'
17971   { (case "(($ac_try" in
17972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973   *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976   (eval "$ac_try") 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); }; }; then
17980
17981   { echo "$as_me:$LINENO: result: yes" >&5
17982 echo "${ECHO_T}yes" >&6; }
17983
17984 cat >>confdefs.h <<\_ACEOF
17985 #define LLVM_HAS_ATOMICS 1
17986 _ACEOF
17987
17988
17989 else
17990   echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993
17994   { echo "$as_me:$LINENO: result: no" >&5
17995 echo "${ECHO_T}no" >&6; }
17996
17997 cat >>confdefs.h <<\_ACEOF
17998 #define LLVM_HAS_ATOMICS 0
17999 _ACEOF
18000
18001   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18002 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18003
18004 fi
18005
18006 rm -f core conftest.err conftest.$ac_objext \
18007       conftest$ac_exeext conftest.$ac_ext
18008 ac_ext=c
18009 ac_cpp='$CPP $CPPFLAGS'
18010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18013
18014
18015
18016 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18017   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18018 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18019 if test "${llvm_cv_linux_mixed+set}" = set; then
18020   echo $ECHO_N "(cached) $ECHO_C" >&6
18021 else
18022    ac_ext=c
18023 ac_cpp='$CPP $CPPFLAGS'
18024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18027
18028   cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h.  */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h.  */
18034 #ifndef __x86_64__
18035        error: Not x86-64 even if uname says so!
18036       #endif
18037
18038 int
18039 main ()
18040 {
18041
18042   ;
18043   return 0;
18044 }
18045 _ACEOF
18046 rm -f conftest.$ac_objext
18047 if { (ac_try="$ac_compile"
18048 case "(($ac_try" in
18049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050   *) ac_try_echo=$ac_try;;
18051 esac
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053   (eval "$ac_compile") 2>conftest.er1
18054   ac_status=$?
18055   grep -v '^ *+' conftest.er1 >conftest.err
18056   rm -f conftest.er1
18057   cat conftest.err >&5
18058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059   (exit $ac_status); } &&
18060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061   { (case "(($ac_try" in
18062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063   *) ac_try_echo=$ac_try;;
18064 esac
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066   (eval "$ac_try") 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; } &&
18070          { ac_try='test -s conftest.$ac_objext'
18071   { (case "(($ac_try" in
18072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073   *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076   (eval "$ac_try") 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; }; then
18080   llvm_cv_linux_mixed=no
18081 else
18082   echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18084
18085         llvm_cv_linux_mixed=yes
18086 fi
18087
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089   ac_ext=c
18090 ac_cpp='$CPP $CPPFLAGS'
18091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18094
18095
18096 fi
18097 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18098 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18099
18100   if test "$llvm_cv_linux_mixed" = "yes"; then
18101     llvm_cv_target_arch="x86"
18102     ARCH="x86"
18103   fi
18104 fi
18105
18106
18107 for ac_func in __dso_handle
18108 do
18109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18113   echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115   cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h.  */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h.  */
18121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18123 #define $ac_func innocuous_$ac_func
18124
18125 /* System header to define __stub macros and hopefully few prototypes,
18126     which can conflict with char $ac_func (); below.
18127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18128     <limits.h> exists even on freestanding compilers.  */
18129
18130 #ifdef __STDC__
18131 # include <limits.h>
18132 #else
18133 # include <assert.h>
18134 #endif
18135
18136 #undef $ac_func
18137
18138 /* Override any GCC internal prototype to avoid an error.
18139    Use char because int might match the return type of a GCC
18140    builtin and then its argument prototype would still apply.  */
18141 #ifdef __cplusplus
18142 extern "C"
18143 #endif
18144 char $ac_func ();
18145 /* The GNU C library defines this for functions which it implements
18146     to always fail with ENOSYS.  Some functions are actually named
18147     something starting with __ and the normal name is an alias.  */
18148 #if defined __stub_$ac_func || defined __stub___$ac_func
18149 choke me
18150 #endif
18151
18152 int
18153 main ()
18154 {
18155 return $ac_func ();
18156   ;
18157   return 0;
18158 }
18159 _ACEOF
18160 rm -f conftest.$ac_objext conftest$ac_exeext
18161 if { (ac_try="$ac_link"
18162 case "(($ac_try" in
18163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18164   *) ac_try_echo=$ac_try;;
18165 esac
18166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167   (eval "$ac_link") 2>conftest.er1
18168   ac_status=$?
18169   grep -v '^ *+' conftest.er1 >conftest.err
18170   rm -f conftest.er1
18171   cat conftest.err >&5
18172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173   (exit $ac_status); } &&
18174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18175   { (case "(($ac_try" in
18176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177   *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180   (eval "$ac_try") 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); }; } &&
18184          { ac_try='test -s conftest$ac_exeext'
18185   { (case "(($ac_try" in
18186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187   *) ac_try_echo=$ac_try;;
18188 esac
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190   (eval "$ac_try") 2>&5
18191   ac_status=$?
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); }; }; then
18194   eval "$as_ac_var=yes"
18195 else
18196   echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199         eval "$as_ac_var=no"
18200 fi
18201
18202 rm -f core conftest.err conftest.$ac_objext \
18203       conftest$ac_exeext conftest.$ac_ext
18204 fi
18205 ac_res=`eval echo '${'$as_ac_var'}'`
18206                { echo "$as_me:$LINENO: result: $ac_res" >&5
18207 echo "${ECHO_T}$ac_res" >&6; }
18208 if test `eval echo '${'$as_ac_var'}'` = yes; then
18209   cat >>confdefs.h <<_ACEOF
18210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18211 _ACEOF
18212
18213 fi
18214 done
18215
18216
18217 SHLIBEXT=$llvm_shlib_ext
18218
18219
18220 if test "${prefix}" = "NONE" ; then
18221   prefix="/usr/local"
18222 fi
18223 eval LLVM_PREFIX="${prefix}";
18224 eval LLVM_BINDIR="${prefix}/bin";
18225 eval LLVM_DATADIR="${prefix}/share/llvm";
18226 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18227 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18228 eval LLVM_INCLUDEDIR="${prefix}/include";
18229 eval LLVM_INFODIR="${prefix}/info";
18230 eval LLVM_MANDIR="${prefix}/man";
18231 LLVM_CONFIGTIME=`date`
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18243   LLVM_CONFIGTIME="(timestamp not enabled)"
18244 fi
18245
18246
18247 cat >>confdefs.h <<_ACEOF
18248 #define LLVM_PREFIX "$LLVM_PREFIX"
18249 _ACEOF
18250
18251
18252 cat >>confdefs.h <<_ACEOF
18253 #define LLVM_BINDIR "$LLVM_BINDIR"
18254 _ACEOF
18255
18256
18257 cat >>confdefs.h <<_ACEOF
18258 #define LLVM_DATADIR "$LLVM_DATADIR"
18259 _ACEOF
18260
18261
18262 cat >>confdefs.h <<_ACEOF
18263 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18264 _ACEOF
18265
18266
18267 cat >>confdefs.h <<_ACEOF
18268 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18269 _ACEOF
18270
18271
18272 cat >>confdefs.h <<_ACEOF
18273 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18274 _ACEOF
18275
18276
18277 cat >>confdefs.h <<_ACEOF
18278 #define LLVM_INFODIR "$LLVM_INFODIR"
18279 _ACEOF
18280
18281
18282 cat >>confdefs.h <<_ACEOF
18283 #define LLVM_MANDIR "$LLVM_MANDIR"
18284 _ACEOF
18285
18286
18287 cat >>confdefs.h <<_ACEOF
18288 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18289 _ACEOF
18290
18291
18292 cat >>confdefs.h <<_ACEOF
18293 #define LLVM_HOST_TRIPLE "$host"
18294 _ACEOF
18295
18296
18297 cat >>confdefs.h <<_ACEOF
18298 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18299 _ACEOF
18300
18301
18302 if test "$BINDINGS_TO_BUILD" = auto ; then
18303   BINDINGS_TO_BUILD=""
18304   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18305     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18306   fi
18307   if test "x$GO" != x ; then
18308     if $GO run ${srcdir}/bindings/go/conftest.go ; then
18309       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18310     fi
18311   fi
18312 fi
18313 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18314
18315
18316 binding_prereqs_failed=0
18317 for a_binding in $BINDINGS_TO_BUILD ; do
18318   case "$a_binding" in
18319   ocaml)
18320     if test "x$OCAMLC" = x ; then
18321       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18322 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18323       binding_prereqs_failed=1
18324     fi
18325     if test "x$OCAMLDEP" = x ; then
18326       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18327 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18328       binding_prereqs_failed=1
18329     fi
18330     if test "x$OCAMLOPT" = x ; then
18331       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18332 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18333           fi
18334     if test "x$with_ocaml_libdir" != xauto ; then
18335       OCAML_LIBDIR=$with_ocaml_libdir
18336
18337     else
18338       ocaml_stdlib="`"$OCAMLC" -where`"
18339       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18340       then
18341         # ocaml stdlib is beneath our prefix; use stdlib
18342         OCAML_LIBDIR=$ocaml_stdlib
18343
18344       else
18345         # ocaml stdlib is outside our prefix; use libdir/ocaml
18346         OCAML_LIBDIR=${prefix}/lib/ocaml
18347
18348       fi
18349     fi
18350     ;;
18351   go)
18352     if test "x$GO" = x ; then
18353       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18354 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18355       binding_prereqs_failed=1
18356     else
18357       if $GO run ${srcdir}/bindings/go/conftest.go ; then
18358         :
18359       else
18360         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18361 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18362         binding_prereqs_failed=1
18363       fi
18364     fi
18365     ;;
18366   esac
18367 done
18368 if test "$binding_prereqs_failed" = 1 ; then
18369   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18370 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18371    { (exit 1); exit 1; }; }
18372 fi
18373
18374 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18375 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18376 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18377   echo $ECHO_N "(cached) $ECHO_C" >&6
18378 else
18379    ac_ext=cpp
18380 ac_cpp='$CXXCPP $CPPFLAGS'
18381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18384
18385   oldcxxflags="$CXXFLAGS"
18386   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18387   cat >conftest.$ac_ext <<_ACEOF
18388 /* confdefs.h.  */
18389 _ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h.  */
18393 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18394 int
18395 main ()
18396 {
18397 X<int>().f();
18398   ;
18399   return 0;
18400 }
18401 _ACEOF
18402 rm -f conftest.$ac_objext
18403 if { (ac_try="$ac_compile"
18404 case "(($ac_try" in
18405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406   *) ac_try_echo=$ac_try;;
18407 esac
18408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409   (eval "$ac_compile") 2>conftest.er1
18410   ac_status=$?
18411   grep -v '^ *+' conftest.er1 >conftest.err
18412   rm -f conftest.er1
18413   cat conftest.err >&5
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); } &&
18416          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18417   { (case "(($ac_try" in
18418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419   *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422   (eval "$ac_try") 2>&5
18423   ac_status=$?
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); }; } &&
18426          { ac_try='test -s conftest.$ac_objext'
18427   { (case "(($ac_try" in
18428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429   *) ac_try_echo=$ac_try;;
18430 esac
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432   (eval "$ac_try") 2>&5
18433   ac_status=$?
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); }; }; then
18436   llvm_cv_cxx_visibility_inlines_hidden=yes
18437 else
18438   echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441         llvm_cv_cxx_visibility_inlines_hidden=no
18442 fi
18443
18444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18445   CXXFLAGS="$oldcxxflags"
18446   ac_ext=c
18447 ac_cpp='$CPP $CPPFLAGS'
18448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18451
18452
18453 fi
18454 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18455 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18456 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18457   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18458
18459 else
18460   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18461
18462 fi
18463
18464
18465 if test "$llvm_cv_link_use_r" = "yes" ; then
18466   RPATH="-Wl,-R"
18467 else
18468   RPATH="-Wl,-rpath"
18469 fi
18470
18471
18472 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18473   RDYNAMIC="-rdynamic"
18474 else
18475   RDYNAMIC=""
18476 fi
18477
18478
18479
18480 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18481
18482
18483
18484
18485
18486
18487 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18488
18489 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18490
18491 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18492
18493 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18494
18495 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18496
18497
18498 ac_config_files="$ac_config_files Makefile.config"
18499
18500
18501 ac_config_files="$ac_config_files llvm.spec"
18502
18503
18504 ac_config_files="$ac_config_files docs/doxygen.cfg"
18505
18506
18507 if test "${clang_src_root}" = ""; then
18508   clang_src_root="$srcdir/tools/clang"
18509 fi
18510 if test -f ${clang_src_root}/README.txt; then
18511     configh="include/clang/Config/config.h"
18512   doxy="docs/doxygen.cfg"
18513   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18514
18515   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18516
18517 fi
18518
18519 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18520
18521
18522 test "x$program_prefix" = "xNONE" && program_prefix=""
18523
18524
18525
18526 ac_config_commands="$ac_config_commands setup"
18527
18528 ac_config_commands="$ac_config_commands Makefile"
18529
18530
18531 ac_config_commands="$ac_config_commands Makefile.common"
18532
18533
18534 ac_config_commands="$ac_config_commands examples/Makefile"
18535
18536
18537 ac_config_commands="$ac_config_commands lib/Makefile"
18538
18539
18540 ac_config_commands="$ac_config_commands test/Makefile"
18541
18542
18543 ac_config_commands="$ac_config_commands test/Makefile.tests"
18544
18545
18546 ac_config_commands="$ac_config_commands unittests/Makefile"
18547
18548
18549 ac_config_commands="$ac_config_commands tools/Makefile"
18550
18551
18552 ac_config_commands="$ac_config_commands utils/Makefile"
18553
18554
18555 ac_config_commands="$ac_config_commands projects/Makefile"
18556
18557
18558 ac_config_commands="$ac_config_commands bindings/Makefile"
18559
18560
18561 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18562
18563
18564
18565 cat >confcache <<\_ACEOF
18566 # This file is a shell script that caches the results of configure
18567 # tests run on this system so they can be shared between configure
18568 # scripts and configure runs, see configure's option --config-cache.
18569 # It is not useful on other systems.  If it contains results you don't
18570 # want to keep, you may remove or edit it.
18571 #
18572 # config.status only pays attention to the cache file if you give it
18573 # the --recheck option to rerun configure.
18574 #
18575 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18576 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18577 # following values.
18578
18579 _ACEOF
18580
18581 # The following way of writing the cache mishandles newlines in values,
18582 # but we know of no workaround that is simple, portable, and efficient.
18583 # So, we kill variables containing newlines.
18584 # Ultrix sh set writes to stderr and can't be redirected directly,
18585 # and sets the high bit in the cache file unless we assign to the vars.
18586 (
18587   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18588     eval ac_val=\$$ac_var
18589     case $ac_val in #(
18590     *${as_nl}*)
18591       case $ac_var in #(
18592       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18594       esac
18595       case $ac_var in #(
18596       _ | IFS | as_nl) ;; #(
18597       *) $as_unset $ac_var ;;
18598       esac ;;
18599     esac
18600   done
18601
18602   (set) 2>&1 |
18603     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18604     *${as_nl}ac_space=\ *)
18605       # `set' does not quote correctly, so add quotes (double-quote
18606       # substitution turns \\\\ into \\, and sed turns \\ into \).
18607       sed -n \
18608         "s/'/'\\\\''/g;
18609           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18610       ;; #(
18611     *)
18612       # `set' quotes correctly as required by POSIX, so do not add quotes.
18613       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18614       ;;
18615     esac |
18616     sort
18617 ) |
18618   sed '
18619      /^ac_cv_env_/b end
18620      t clear
18621      :clear
18622      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18623      t end
18624      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18625      :end' >>confcache
18626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18627   if test -w "$cache_file"; then
18628     test "x$cache_file" != "x/dev/null" &&
18629       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18630 echo "$as_me: updating cache $cache_file" >&6;}
18631     cat confcache >$cache_file
18632   else
18633     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18634 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18635   fi
18636 fi
18637 rm -f confcache
18638
18639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18640 # Let make expand exec_prefix.
18641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18642
18643 DEFS=-DHAVE_CONFIG_H
18644
18645 ac_libobjs=
18646 ac_ltlibobjs=
18647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18648   # 1. Remove the extension, and $U if already installed.
18649   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18650   ac_i=`echo "$ac_i" | sed "$ac_script"`
18651   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18652   #    will be set to the directory where LIBOBJS objects are built.
18653   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18654   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18655 done
18656 LIBOBJS=$ac_libobjs
18657
18658 LTLIBOBJS=$ac_ltlibobjs
18659
18660
18661
18662 : ${CONFIG_STATUS=./config.status}
18663 ac_clean_files_save=$ac_clean_files
18664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18665 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18666 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18667 cat >$CONFIG_STATUS <<_ACEOF
18668 #! $SHELL
18669 # Generated by $as_me.
18670 # Run this file to recreate the current configuration.
18671 # Compiler output produced by configure, useful for debugging
18672 # configure, is in config.log if it exists.
18673
18674 debug=false
18675 ac_cs_recheck=false
18676 ac_cs_silent=false
18677 SHELL=\${CONFIG_SHELL-$SHELL}
18678 _ACEOF
18679
18680 cat >>$CONFIG_STATUS <<\_ACEOF
18681 ## --------------------- ##
18682 ## M4sh Initialization.  ##
18683 ## --------------------- ##
18684
18685 # Be Bourne compatible
18686 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18687   emulate sh
18688   NULLCMD=:
18689   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18690   # is contrary to our usage.  Disable this feature.
18691   alias -g '${1+"$@"}'='"$@"'
18692   setopt NO_GLOB_SUBST
18693 else
18694   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18695 fi
18696 BIN_SH=xpg4; export BIN_SH # for Tru64
18697 DUALCASE=1; export DUALCASE # for MKS sh
18698
18699
18700 # PATH needs CR
18701 # Avoid depending upon Character Ranges.
18702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18705 as_cr_digits='0123456789'
18706 as_cr_alnum=$as_cr_Letters$as_cr_digits
18707
18708 # The user is always right.
18709 if test "${PATH_SEPARATOR+set}" != set; then
18710   echo "#! /bin/sh" >conf$$.sh
18711   echo  "exit 0"   >>conf$$.sh
18712   chmod +x conf$$.sh
18713   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18714     PATH_SEPARATOR=';'
18715   else
18716     PATH_SEPARATOR=:
18717   fi
18718   rm -f conf$$.sh
18719 fi
18720
18721 # Support unset when possible.
18722 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18723   as_unset=unset
18724 else
18725   as_unset=false
18726 fi
18727
18728
18729 # IFS
18730 # We need space, tab and new line, in precisely that order.  Quoting is
18731 # there to prevent editors from complaining about space-tab.
18732 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18733 # splitting by setting IFS to empty value.)
18734 as_nl='
18735 '
18736 IFS=" ""        $as_nl"
18737
18738 # Find who we are.  Look in the path if we contain no directory separator.
18739 case $0 in
18740   *[\\/]* ) as_myself=$0 ;;
18741   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18742 for as_dir in $PATH
18743 do
18744   IFS=$as_save_IFS
18745   test -z "$as_dir" && as_dir=.
18746   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18747 done
18748 IFS=$as_save_IFS
18749
18750      ;;
18751 esac
18752 # We did not find ourselves, most probably we were run as `sh COMMAND'
18753 # in which case we are not to be found in the path.
18754 if test "x$as_myself" = x; then
18755   as_myself=$0
18756 fi
18757 if test ! -f "$as_myself"; then
18758   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18759   { (exit 1); exit 1; }
18760 fi
18761
18762 # Work around bugs in pre-3.0 UWIN ksh.
18763 for as_var in ENV MAIL MAILPATH
18764 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18765 done
18766 PS1='$ '
18767 PS2='> '
18768 PS4='+ '
18769
18770 # NLS nuisances.
18771 for as_var in \
18772   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18773   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18774   LC_TELEPHONE LC_TIME
18775 do
18776   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18777     eval $as_var=C; export $as_var
18778   else
18779     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18780   fi
18781 done
18782
18783 # Required to use basename.
18784 if expr a : '\(a\)' >/dev/null 2>&1 &&
18785    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18786   as_expr=expr
18787 else
18788   as_expr=false
18789 fi
18790
18791 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18792   as_basename=basename
18793 else
18794   as_basename=false
18795 fi
18796
18797
18798 # Name of the executable.
18799 as_me=`$as_basename -- "$0" ||
18800 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18801          X"$0" : 'X\(//\)$' \| \
18802          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18803 echo X/"$0" |
18804     sed '/^.*\/\([^/][^/]*\)\/*$/{
18805             s//\1/
18806             q
18807           }
18808           /^X\/\(\/\/\)$/{
18809             s//\1/
18810             q
18811           }
18812           /^X\/\(\/\).*/{
18813             s//\1/
18814             q
18815           }
18816           s/.*/./; q'`
18817
18818 # CDPATH.
18819 $as_unset CDPATH
18820
18821
18822
18823   as_lineno_1=$LINENO
18824   as_lineno_2=$LINENO
18825   test "x$as_lineno_1" != "x$as_lineno_2" &&
18826   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18827
18828   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18829   # uniformly replaced by the line number.  The first 'sed' inserts a
18830   # line-number line after each line using $LINENO; the second 'sed'
18831   # does the real work.  The second script uses 'N' to pair each
18832   # line-number line with the line containing $LINENO, and appends
18833   # trailing '-' during substitution so that $LINENO is not a special
18834   # case at line end.
18835   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18836   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18837   # E. McMahon (1931-1989) for sed's syntax.  :-)
18838   sed -n '
18839     p
18840     /[$]LINENO/=
18841   ' <$as_myself |
18842     sed '
18843       s/[$]LINENO.*/&-/
18844       t lineno
18845       b
18846       :lineno
18847       N
18848       :loop
18849       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18850       t loop
18851       s/-\n.*//
18852     ' >$as_me.lineno &&
18853   chmod +x "$as_me.lineno" ||
18854     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18855    { (exit 1); exit 1; }; }
18856
18857   # Don't try to exec as it changes $[0], causing all sort of problems
18858   # (the dirname of $[0] is not the place where we might find the
18859   # original and so on.  Autoconf is especially sensitive to this).
18860   . "./$as_me.lineno"
18861   # Exit status is that of the last command.
18862   exit
18863 }
18864
18865
18866 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18867   as_dirname=dirname
18868 else
18869   as_dirname=false
18870 fi
18871
18872 ECHO_C= ECHO_N= ECHO_T=
18873 case `echo -n x` in
18874 -n*)
18875   case `echo 'x\c'` in
18876   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18877   *)   ECHO_C='\c';;
18878   esac;;
18879 *)
18880   ECHO_N='-n';;
18881 esac
18882
18883 if expr a : '\(a\)' >/dev/null 2>&1 &&
18884    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18885   as_expr=expr
18886 else
18887   as_expr=false
18888 fi
18889
18890 rm -f conf$$ conf$$.exe conf$$.file
18891 if test -d conf$$.dir; then
18892   rm -f conf$$.dir/conf$$.file
18893 else
18894   rm -f conf$$.dir
18895   mkdir conf$$.dir
18896 fi
18897 echo >conf$$.file
18898 if ln -s conf$$.file conf$$ 2>/dev/null; then
18899   as_ln_s='ln -s'
18900   # ... but there are two gotchas:
18901   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18902   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18903   # In both cases, we have to default to `cp -p'.
18904   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18905     as_ln_s='cp -p'
18906 elif ln conf$$.file conf$$ 2>/dev/null; then
18907   as_ln_s=ln
18908 else
18909   as_ln_s='cp -p'
18910 fi
18911 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18912 rmdir conf$$.dir 2>/dev/null
18913
18914 if mkdir -p . 2>/dev/null; then
18915   as_mkdir_p=:
18916 else
18917   test -d ./-p && rmdir ./-p
18918   as_mkdir_p=false
18919 fi
18920
18921 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18922 # systems may use methods other than mode bits to determine executability.
18923 cat >conf$$.file <<_ASEOF
18924 #! /bin/sh
18925 exit 0
18926 _ASEOF
18927 chmod +x conf$$.file
18928 if test -x conf$$.file >/dev/null 2>&1; then
18929   as_executable_p="test -x"
18930 else
18931   as_executable_p=:
18932 fi
18933 rm -f conf$$.file
18934
18935 # Sed expression to map a string onto a valid CPP name.
18936 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18937
18938 # Sed expression to map a string onto a valid variable name.
18939 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18940
18941
18942 exec 6>&1
18943
18944 # Save the log message, to keep $[0] and so on meaningful, and to
18945 # report actual input values of CONFIG_FILES etc. instead of their
18946 # values after options handling.
18947 ac_log="
18948 This file was extended by LLVM $as_me 3.6.0svn, which was
18949 generated by GNU Autoconf 2.60.  Invocation command line was
18950
18951   CONFIG_FILES    = $CONFIG_FILES
18952   CONFIG_HEADERS  = $CONFIG_HEADERS
18953   CONFIG_LINKS    = $CONFIG_LINKS
18954   CONFIG_COMMANDS = $CONFIG_COMMANDS
18955   $ $0 $@
18956
18957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18958 "
18959
18960 _ACEOF
18961
18962 cat >>$CONFIG_STATUS <<_ACEOF
18963 # Files that config.status was made for.
18964 config_files="$ac_config_files"
18965 config_headers="$ac_config_headers"
18966 config_commands="$ac_config_commands"
18967
18968 _ACEOF
18969
18970 cat >>$CONFIG_STATUS <<\_ACEOF
18971 ac_cs_usage="\
18972 \`$as_me' instantiates files from templates according to the
18973 current configuration.
18974
18975 Usage: $0 [OPTIONS] [FILE]...
18976
18977   -h, --help       print this help, then exit
18978   -V, --version    print version number, then exit
18979   -q, --quiet      do not print progress messages
18980   -d, --debug      don't remove temporary files
18981       --recheck    update $as_me by reconfiguring in the same conditions
18982   --file=FILE[:TEMPLATE]
18983                    instantiate the configuration file FILE
18984   --header=FILE[:TEMPLATE]
18985                    instantiate the configuration header FILE
18986
18987 Configuration files:
18988 $config_files
18989
18990 Configuration headers:
18991 $config_headers
18992
18993 Configuration commands:
18994 $config_commands
18995
18996 Report bugs to <bug-autoconf@gnu.org>."
18997
18998 _ACEOF
18999 cat >>$CONFIG_STATUS <<_ACEOF
19000 ac_cs_version="\\
19001 LLVM config.status 3.6.0svn
19002 configured by $0, generated by GNU Autoconf 2.60,
19003   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19004
19005 Copyright (C) 2006 Free Software Foundation, Inc.
19006 This config.status script is free software; the Free Software Foundation
19007 gives unlimited permission to copy, distribute and modify it."
19008
19009 ac_pwd='$ac_pwd'
19010 srcdir='$srcdir'
19011 INSTALL='$INSTALL'
19012 _ACEOF
19013
19014 cat >>$CONFIG_STATUS <<\_ACEOF
19015 # If no file are specified by the user, then we need to provide default
19016 # value.  By we need to know if files were specified by the user.
19017 ac_need_defaults=:
19018 while test $# != 0
19019 do
19020   case $1 in
19021   --*=*)
19022     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19023     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19024     ac_shift=:
19025     ;;
19026   *)
19027     ac_option=$1
19028     ac_optarg=$2
19029     ac_shift=shift
19030     ;;
19031   esac
19032
19033   case $ac_option in
19034   # Handling of the options.
19035   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19036     ac_cs_recheck=: ;;
19037   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19038     echo "$ac_cs_version"; exit ;;
19039   --debug | --debu | --deb | --de | --d | -d )
19040     debug=: ;;
19041   --file | --fil | --fi | --f )
19042     $ac_shift
19043     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19044     ac_need_defaults=false;;
19045   --header | --heade | --head | --hea )
19046     $ac_shift
19047     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19048     ac_need_defaults=false;;
19049   --he | --h)
19050     # Conflict between --help and --header
19051     { echo "$as_me: error: ambiguous option: $1
19052 Try \`$0 --help' for more information." >&2
19053    { (exit 1); exit 1; }; };;
19054   --help | --hel | -h )
19055     echo "$ac_cs_usage"; exit ;;
19056   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19057   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19058     ac_cs_silent=: ;;
19059
19060   # This is an error.
19061   -*) { echo "$as_me: error: unrecognized option: $1
19062 Try \`$0 --help' for more information." >&2
19063    { (exit 1); exit 1; }; } ;;
19064
19065   *) ac_config_targets="$ac_config_targets $1"
19066      ac_need_defaults=false ;;
19067
19068   esac
19069   shift
19070 done
19071
19072 ac_configure_extra_args=
19073
19074 if $ac_cs_silent; then
19075   exec 6>/dev/null
19076   ac_configure_extra_args="$ac_configure_extra_args --silent"
19077 fi
19078
19079 _ACEOF
19080 cat >>$CONFIG_STATUS <<_ACEOF
19081 if \$ac_cs_recheck; then
19082   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19083   CONFIG_SHELL=$SHELL
19084   export CONFIG_SHELL
19085   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19086 fi
19087
19088 _ACEOF
19089 cat >>$CONFIG_STATUS <<\_ACEOF
19090 exec 5>>config.log
19091 {
19092   echo
19093   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19094 ## Running $as_me. ##
19095 _ASBOX
19096   echo "$ac_log"
19097 } >&5
19098
19099 _ACEOF
19100 cat >>$CONFIG_STATUS <<_ACEOF
19101 #
19102 # INIT-COMMANDS
19103 #
19104 llvm_src="${srcdir}"
19105
19106 _ACEOF
19107
19108 cat >>$CONFIG_STATUS <<\_ACEOF
19109
19110 # Handling of arguments.
19111 for ac_config_target in $ac_config_targets
19112 do
19113   case $ac_config_target in
19114     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19115     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19116     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19117     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19118     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19119     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19120     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19121     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19122     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19123     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19124     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19125     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19126     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19127     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19128     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19129     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19130     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19131     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19132     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19133     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19134     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19135     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19136     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19137     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19138     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19139     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19140
19141   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19142 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19143    { (exit 1); exit 1; }; };;
19144   esac
19145 done
19146
19147
19148 # If the user did not use the arguments to specify the items to instantiate,
19149 # then the envvar interface is used.  Set only those that are not.
19150 # We use the long form for the default assignment because of an extremely
19151 # bizarre bug on SunOS 4.1.3.
19152 if $ac_need_defaults; then
19153   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19154   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19155   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19156 fi
19157
19158 # Have a temporary directory for convenience.  Make it in the build tree
19159 # simply because there is no reason against having it here, and in addition,
19160 # creating and moving files from /tmp can sometimes cause problems.
19161 # Hook for its removal unless debugging.
19162 # Note that there is a small window in which the directory will not be cleaned:
19163 # after its creation but before its name has been assigned to `$tmp'.
19164 $debug ||
19165 {
19166   tmp=
19167   trap 'exit_status=$?
19168   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19169 ' 0
19170   trap '{ (exit 1); exit 1; }' 1 2 13 15
19171 }
19172 # Create a (secure) tmp directory for tmp files.
19173
19174 {
19175   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19176   test -n "$tmp" && test -d "$tmp"
19177 }  ||
19178 {
19179   tmp=./conf$$-$RANDOM
19180   (umask 077 && mkdir "$tmp")
19181 } ||
19182 {
19183    echo "$me: cannot create a temporary directory in ." >&2
19184    { (exit 1); exit 1; }
19185 }
19186
19187 #
19188 # Set up the sed scripts for CONFIG_FILES section.
19189 #
19190
19191 # No need to generate the scripts if there are no CONFIG_FILES.
19192 # This happens for instance when ./config.status config.h
19193 if test -n "$CONFIG_FILES"; then
19194
19195 _ACEOF
19196
19197
19198
19199 ac_delim='%!_!# '
19200 for ac_last_try in false false false false false :; do
19201   cat >conf$$subs.sed <<_ACEOF
19202 SHELL!$SHELL$ac_delim
19203 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19204 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19205 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19206 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19207 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19208 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19209 exec_prefix!$exec_prefix$ac_delim
19210 prefix!$prefix$ac_delim
19211 program_transform_name!$program_transform_name$ac_delim
19212 bindir!$bindir$ac_delim
19213 sbindir!$sbindir$ac_delim
19214 libexecdir!$libexecdir$ac_delim
19215 datarootdir!$datarootdir$ac_delim
19216 datadir!$datadir$ac_delim
19217 sysconfdir!$sysconfdir$ac_delim
19218 sharedstatedir!$sharedstatedir$ac_delim
19219 localstatedir!$localstatedir$ac_delim
19220 includedir!$includedir$ac_delim
19221 oldincludedir!$oldincludedir$ac_delim
19222 docdir!$docdir$ac_delim
19223 infodir!$infodir$ac_delim
19224 htmldir!$htmldir$ac_delim
19225 dvidir!$dvidir$ac_delim
19226 pdfdir!$pdfdir$ac_delim
19227 psdir!$psdir$ac_delim
19228 libdir!$libdir$ac_delim
19229 localedir!$localedir$ac_delim
19230 mandir!$mandir$ac_delim
19231 DEFS!$DEFS$ac_delim
19232 ECHO_C!$ECHO_C$ac_delim
19233 ECHO_N!$ECHO_N$ac_delim
19234 ECHO_T!$ECHO_T$ac_delim
19235 LIBS!$LIBS$ac_delim
19236 build_alias!$build_alias$ac_delim
19237 host_alias!$host_alias$ac_delim
19238 target_alias!$target_alias$ac_delim
19239 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19240 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19241 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19242 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19243 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19244 CC!$CC$ac_delim
19245 CFLAGS!$CFLAGS$ac_delim
19246 LDFLAGS!$LDFLAGS$ac_delim
19247 CPPFLAGS!$CPPFLAGS$ac_delim
19248 ac_ct_CC!$ac_ct_CC$ac_delim
19249 EXEEXT!$EXEEXT$ac_delim
19250 OBJEXT!$OBJEXT$ac_delim
19251 CXX!$CXX$ac_delim
19252 CXXFLAGS!$CXXFLAGS$ac_delim
19253 ac_ct_CXX!$ac_ct_CXX$ac_delim
19254 CPP!$CPP$ac_delim
19255 subdirs!$subdirs$ac_delim
19256 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19257 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19258 build!$build$ac_delim
19259 build_cpu!$build_cpu$ac_delim
19260 build_vendor!$build_vendor$ac_delim
19261 build_os!$build_os$ac_delim
19262 host!$host$ac_delim
19263 host_cpu!$host_cpu$ac_delim
19264 host_vendor!$host_vendor$ac_delim
19265 host_os!$host_os$ac_delim
19266 target!$target$ac_delim
19267 target_cpu!$target_cpu$ac_delim
19268 target_vendor!$target_vendor$ac_delim
19269 target_os!$target_os$ac_delim
19270 OS!$OS$ac_delim
19271 HOST_OS!$HOST_OS$ac_delim
19272 TARGET_OS!$TARGET_OS$ac_delim
19273 LINKALL!$LINKALL$ac_delim
19274 NOLINKALL!$NOLINKALL$ac_delim
19275 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19276 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19277 ARCH!$ARCH$ac_delim
19278 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19279 HOST_ARCH!$HOST_ARCH$ac_delim
19280 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19281 BUILD_CC!$BUILD_CC$ac_delim
19282 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19283 BUILD_CXX!$BUILD_CXX$ac_delim
19284 CVSBUILD!$CVSBUILD$ac_delim
19285 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19286 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19287 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19288 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19289 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19290 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19291 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19292 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19293 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19294 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19295 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19296 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19297 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19298 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19299 _ACEOF
19300
19301   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19302     break
19303   elif $ac_last_try; then
19304     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19305 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19306    { (exit 1); exit 1; }; }
19307   else
19308     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19309   fi
19310 done
19311
19312 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19313 if test -n "$ac_eof"; then
19314   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19315   ac_eof=`expr $ac_eof + 1`
19316 fi
19317
19318 cat >>$CONFIG_STATUS <<_ACEOF
19319 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19321 _ACEOF
19322 sed '
19323 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19324 s/^/s,@/; s/!/@,|#_!!_#|/
19325 :n
19326 t n
19327 s/'"$ac_delim"'$/,g/; t
19328 s/$/\\/; p
19329 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19330 ' >>$CONFIG_STATUS <conf$$subs.sed
19331 rm -f conf$$subs.sed
19332 cat >>$CONFIG_STATUS <<_ACEOF
19333 CEOF$ac_eof
19334 _ACEOF
19335
19336
19337 ac_delim='%!_!# '
19338 for ac_last_try in false false false false false :; do
19339   cat >conf$$subs.sed <<_ACEOF
19340 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19341 JIT!$JIT$ac_delim
19342 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19343 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19344 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19345 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19346 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19347 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19348 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19349 ENABLE_PIC!$ENABLE_PIC$ac_delim
19350 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19351 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19352 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19353 ALL_TARGETS!$ALL_TARGETS$ac_delim
19354 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19355 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19356 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19357 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19358 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19359 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19360 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19361 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19362 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19363 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19364 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19365 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19366 ifGNUmake!$ifGNUmake$ac_delim
19367 LN_S!$LN_S$ac_delim
19368 NM!$NM$ac_delim
19369 CMP!$CMP$ac_delim
19370 CP!$CP$ac_delim
19371 DATE!$DATE$ac_delim
19372 FIND!$FIND$ac_delim
19373 GREP!$GREP$ac_delim
19374 MKDIR!$MKDIR$ac_delim
19375 MV!$MV$ac_delim
19376 RANLIB!$RANLIB$ac_delim
19377 AR!$AR$ac_delim
19378 RM!$RM$ac_delim
19379 SED!$SED$ac_delim
19380 TAR!$TAR$ac_delim
19381 BINPWD!$BINPWD$ac_delim
19382 DOT!$DOT$ac_delim
19383 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19384 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19385 INSTALL_DATA!$INSTALL_DATA$ac_delim
19386 BZIP2!$BZIP2$ac_delim
19387 CAT!$CAT$ac_delim
19388 DOXYGEN!$DOXYGEN$ac_delim
19389 GROFF!$GROFF$ac_delim
19390 GZIPBIN!$GZIPBIN$ac_delim
19391 PDFROFF!$PDFROFF$ac_delim
19392 ZIP!$ZIP$ac_delim
19393 GO!$GO$ac_delim
19394 OCAMLC!$OCAMLC$ac_delim
19395 OCAMLOPT!$OCAMLOPT$ac_delim
19396 OCAMLDEP!$OCAMLDEP$ac_delim
19397 OCAMLDOC!$OCAMLDOC$ac_delim
19398 GAS!$GAS$ac_delim
19399 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19400 EGREP!$EGREP$ac_delim
19401 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19402 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19403 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19404 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19405 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19406 PYTHON!$PYTHON$ac_delim
19407 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19408 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19409 USE_OPROFILE!$USE_OPROFILE$ac_delim
19410 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19411 XML2CONFIG!$XML2CONFIG$ac_delim
19412 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19413 LIBXML2_INC!$LIBXML2_INC$ac_delim
19414 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19415 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19416 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19417 MMAP_FILE!$MMAP_FILE$ac_delim
19418 SHLIBEXT!$SHLIBEXT$ac_delim
19419 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19420 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19421 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19422 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19423 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19424 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19425 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19426 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19427 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19428 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19429 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19430 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19431 RPATH!$RPATH$ac_delim
19432 RDYNAMIC!$RDYNAMIC$ac_delim
19433 program_prefix!$program_prefix$ac_delim
19434 LIBOBJS!$LIBOBJS$ac_delim
19435 LTLIBOBJS!$LTLIBOBJS$ac_delim
19436 _ACEOF
19437
19438   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19439     break
19440   elif $ac_last_try; then
19441     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19442 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19443    { (exit 1); exit 1; }; }
19444   else
19445     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19446   fi
19447 done
19448
19449 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19450 if test -n "$ac_eof"; then
19451   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19452   ac_eof=`expr $ac_eof + 1`
19453 fi
19454
19455 cat >>$CONFIG_STATUS <<_ACEOF
19456 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19458 _ACEOF
19459 sed '
19460 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19461 s/^/s,@/; s/!/@,|#_!!_#|/
19462 :n
19463 t n
19464 s/'"$ac_delim"'$/,g/; t
19465 s/$/\\/; p
19466 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19467 ' >>$CONFIG_STATUS <conf$$subs.sed
19468 rm -f conf$$subs.sed
19469 cat >>$CONFIG_STATUS <<_ACEOF
19470 CEOF$ac_eof
19471 _ACEOF
19472
19473
19474 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19475 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19476 # trailing colons and then remove the whole line if VPATH becomes empty
19477 # (actually we leave an empty line to preserve line numbers).
19478 if test "x$srcdir" = x.; then
19479   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19480 s/:*\$(srcdir):*/:/
19481 s/:*\${srcdir}:*/:/
19482 s/:*@srcdir@:*/:/
19483 s/^\([^=]*=[     ]*\):*/\1/
19484 s/:*$//
19485 s/^[^=]*=[       ]*$//
19486 }'
19487 fi
19488
19489 cat >>$CONFIG_STATUS <<\_ACEOF
19490 fi # test -n "$CONFIG_FILES"
19491
19492
19493 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19494 do
19495   case $ac_tag in
19496   :[FHLC]) ac_mode=$ac_tag; continue;;
19497   esac
19498   case $ac_mode$ac_tag in
19499   :[FHL]*:*);;
19500   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19501 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19502    { (exit 1); exit 1; }; };;
19503   :[FH]-) ac_tag=-:-;;
19504   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19505   esac
19506   ac_save_IFS=$IFS
19507   IFS=:
19508   set x $ac_tag
19509   IFS=$ac_save_IFS
19510   shift
19511   ac_file=$1
19512   shift
19513
19514   case $ac_mode in
19515   :L) ac_source=$1;;
19516   :[FH])
19517     ac_file_inputs=
19518     for ac_f
19519     do
19520       case $ac_f in
19521       -) ac_f="$tmp/stdin";;
19522       *) # Look for the file first in the build tree, then in the source tree
19523          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19524          # because $ac_f cannot contain `:'.
19525          test -f "$ac_f" ||
19526            case $ac_f in
19527            [\\/$]*) false;;
19528            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19529            esac ||
19530            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19531 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19532    { (exit 1); exit 1; }; };;
19533       esac
19534       ac_file_inputs="$ac_file_inputs $ac_f"
19535     done
19536
19537     # Let's still pretend it is `configure' which instantiates (i.e., don't
19538     # use $as_me), people would be surprised to read:
19539     #    /* config.h.  Generated by config.status.  */
19540     configure_input="Generated from "`IFS=:
19541           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19542     if test x"$ac_file" != x-; then
19543       configure_input="$ac_file.  $configure_input"
19544       { echo "$as_me:$LINENO: creating $ac_file" >&5
19545 echo "$as_me: creating $ac_file" >&6;}
19546     fi
19547
19548     case $ac_tag in
19549     *:-:* | *:-) cat >"$tmp/stdin";;
19550     esac
19551     ;;
19552   esac
19553
19554   ac_dir=`$as_dirname -- "$ac_file" ||
19555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19556          X"$ac_file" : 'X\(//\)[^/]' \| \
19557          X"$ac_file" : 'X\(//\)$' \| \
19558          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19559 echo X"$ac_file" |
19560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19561             s//\1/
19562             q
19563           }
19564           /^X\(\/\/\)[^/].*/{
19565             s//\1/
19566             q
19567           }
19568           /^X\(\/\/\)$/{
19569             s//\1/
19570             q
19571           }
19572           /^X\(\/\).*/{
19573             s//\1/
19574             q
19575           }
19576           s/.*/./; q'`
19577   { as_dir="$ac_dir"
19578   case $as_dir in #(
19579   -*) as_dir=./$as_dir;;
19580   esac
19581   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19582     as_dirs=
19583     while :; do
19584       case $as_dir in #(
19585       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19586       *) as_qdir=$as_dir;;
19587       esac
19588       as_dirs="'$as_qdir' $as_dirs"
19589       as_dir=`$as_dirname -- "$as_dir" ||
19590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19591          X"$as_dir" : 'X\(//\)[^/]' \| \
19592          X"$as_dir" : 'X\(//\)$' \| \
19593          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19594 echo X"$as_dir" |
19595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19596             s//\1/
19597             q
19598           }
19599           /^X\(\/\/\)[^/].*/{
19600             s//\1/
19601             q
19602           }
19603           /^X\(\/\/\)$/{
19604             s//\1/
19605             q
19606           }
19607           /^X\(\/\).*/{
19608             s//\1/
19609             q
19610           }
19611           s/.*/./; q'`
19612       test -d "$as_dir" && break
19613     done
19614     test -z "$as_dirs" || eval "mkdir $as_dirs"
19615   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19616 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19617    { (exit 1); exit 1; }; }; }
19618   ac_builddir=.
19619
19620 case "$ac_dir" in
19621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19622 *)
19623   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19624   # A ".." for each directory in $ac_dir_suffix.
19625   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19626   case $ac_top_builddir_sub in
19627   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19628   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19629   esac ;;
19630 esac
19631 ac_abs_top_builddir=$ac_pwd
19632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19633 # for backward compatibility:
19634 ac_top_builddir=$ac_top_build_prefix
19635
19636 case $srcdir in
19637   .)  # We are building in place.
19638     ac_srcdir=.
19639     ac_top_srcdir=$ac_top_builddir_sub
19640     ac_abs_top_srcdir=$ac_pwd ;;
19641   [\\/]* | ?:[\\/]* )  # Absolute name.
19642     ac_srcdir=$srcdir$ac_dir_suffix;
19643     ac_top_srcdir=$srcdir
19644     ac_abs_top_srcdir=$srcdir ;;
19645   *) # Relative name.
19646     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19647     ac_top_srcdir=$ac_top_build_prefix$srcdir
19648     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19649 esac
19650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19651
19652
19653   case $ac_mode in
19654   :F)
19655   #
19656   # CONFIG_FILE
19657   #
19658
19659   case $INSTALL in
19660   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19661   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19662   esac
19663 _ACEOF
19664
19665 cat >>$CONFIG_STATUS <<\_ACEOF
19666 # If the template does not know about datarootdir, expand it.
19667 # FIXME: This hack should be removed a few years after 2.60.
19668 ac_datarootdir_hack=; ac_datarootdir_seen=
19669
19670 case `sed -n '/datarootdir/ {
19671   p
19672   q
19673 }
19674 /@datadir@/p
19675 /@docdir@/p
19676 /@infodir@/p
19677 /@localedir@/p
19678 /@mandir@/p
19679 ' $ac_file_inputs` in
19680 *datarootdir*) ac_datarootdir_seen=yes;;
19681 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19682   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19683 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19684 _ACEOF
19685 cat >>$CONFIG_STATUS <<_ACEOF
19686   ac_datarootdir_hack='
19687   s&@datadir@&$datadir&g
19688   s&@docdir@&$docdir&g
19689   s&@infodir@&$infodir&g
19690   s&@localedir@&$localedir&g
19691   s&@mandir@&$mandir&g
19692     s&\\\${datarootdir}&$datarootdir&g' ;;
19693 esac
19694 _ACEOF
19695
19696 # Neutralize VPATH when `$srcdir' = `.'.
19697 # Shell code in configure.ac might set extrasub.
19698 # FIXME: do we really want to maintain this feature?
19699 cat >>$CONFIG_STATUS <<_ACEOF
19700   sed "$ac_vpsub
19701 $extrasub
19702 _ACEOF
19703 cat >>$CONFIG_STATUS <<\_ACEOF
19704 :t
19705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19706 s&@configure_input@&$configure_input&;t t
19707 s&@top_builddir@&$ac_top_builddir_sub&;t t
19708 s&@srcdir@&$ac_srcdir&;t t
19709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19710 s&@top_srcdir@&$ac_top_srcdir&;t t
19711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19712 s&@builddir@&$ac_builddir&;t t
19713 s&@abs_builddir@&$ac_abs_builddir&;t t
19714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19715 s&@INSTALL@&$ac_INSTALL&;t t
19716 $ac_datarootdir_hack
19717 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19718
19719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19720   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19721   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19722   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19723 which seems to be undefined.  Please make sure it is defined." >&5
19724 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19725 which seems to be undefined.  Please make sure it is defined." >&2;}
19726
19727   rm -f "$tmp/stdin"
19728   case $ac_file in
19729   -) cat "$tmp/out"; rm -f "$tmp/out";;
19730   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19731   esac
19732  ;;
19733   :H)
19734   #
19735   # CONFIG_HEADER
19736   #
19737 _ACEOF
19738
19739 # Transform confdefs.h into a sed script `conftest.defines', that
19740 # substitutes the proper values into config.h.in to produce config.h.
19741 rm -f conftest.defines conftest.tail
19742 # First, append a space to every undef/define line, to ease matching.
19743 echo 's/$/ /' >conftest.defines
19744 # Then, protect against being on the right side of a sed subst, or in
19745 # an unquoted here document, in config.status.  If some macros were
19746 # called several times there might be several #defines for the same
19747 # symbol, which is useless.  But do not sort them, since the last
19748 # AC_DEFINE must be honored.
19749 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19750 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19751 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19752 # PARAMS is the parameter list in the macro definition--in most cases, it's
19753 # just an empty string.
19754 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19755 ac_dB='\\)[      (].*,\\1define\\2'
19756 ac_dC=' '
19757 ac_dD=' ,'
19758
19759 uniq confdefs.h |
19760   sed -n '
19761         t rset
19762         :rset
19763         s/^[     ]*#[    ]*define[       ][      ]*//
19764         t ok
19765         d
19766         :ok
19767         s/[\\&,]/\\&/g
19768         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19769         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19770   ' >>conftest.defines
19771
19772 # Remove the space that was appended to ease matching.
19773 # Then replace #undef with comments.  This is necessary, for
19774 # example, in the case of _POSIX_SOURCE, which is predefined and required
19775 # on some systems where configure will not decide to define it.
19776 # (The regexp can be short, since the line contains either #define or #undef.)
19777 echo 's/ $//
19778 s,^[     #]*u.*,/* & */,' >>conftest.defines
19779
19780 # Break up conftest.defines:
19781 ac_max_sed_lines=50
19782
19783 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19784 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19785 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19786 # et cetera.
19787 ac_in='$ac_file_inputs'
19788 ac_out='"$tmp/out1"'
19789 ac_nxt='"$tmp/out2"'
19790
19791 while :
19792 do
19793   # Write a here document:
19794     cat >>$CONFIG_STATUS <<_ACEOF
19795     # First, check the format of the line:
19796     cat >"\$tmp/defines.sed" <<\\CEOF
19797 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19798 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19799 b
19800 :def
19801 _ACEOF
19802   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19803   echo 'CEOF
19804     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19805   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19806   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19807   grep . conftest.tail >/dev/null || break
19808   rm -f conftest.defines
19809   mv conftest.tail conftest.defines
19810 done
19811 rm -f conftest.defines conftest.tail
19812
19813 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19814 cat >>$CONFIG_STATUS <<\_ACEOF
19815   if test x"$ac_file" != x-; then
19816     echo "/* $configure_input  */" >"$tmp/config.h"
19817     cat "$ac_result" >>"$tmp/config.h"
19818     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19819       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19820 echo "$as_me: $ac_file is unchanged" >&6;}
19821     else
19822       rm -f $ac_file
19823       mv "$tmp/config.h" $ac_file
19824     fi
19825   else
19826     echo "/* $configure_input  */"
19827     cat "$ac_result"
19828   fi
19829   rm -f "$tmp/out12"
19830  ;;
19831
19832   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19833 echo "$as_me: executing $ac_file commands" >&6;}
19834  ;;
19835   esac
19836
19837
19838   case $ac_file$ac_mode in
19839     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19840    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19841     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19842    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19843     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19844    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19845     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19846    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19847     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19848    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19849     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19850    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19851     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19852    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19853     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19854    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19855     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19856    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19857     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19858    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19859     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19860    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19861     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19862    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19863
19864   esac
19865 done # for ac_tag
19866
19867
19868 { (exit 0); exit 0; }
19869 _ACEOF
19870 chmod +x $CONFIG_STATUS
19871 ac_clean_files=$ac_clean_files_save
19872
19873
19874 # configure is writing to config.log, and then calls config.status.
19875 # config.status does its own redirection, appending to config.log.
19876 # Unfortunately, on DOS this fails, as config.log is still kept open
19877 # by configure, so config.status won't be able to write to it; its
19878 # output is simply discarded.  So we exec the FD to /dev/null,
19879 # effectively closing config.log, so it can be properly (re)opened and
19880 # appended to by config.status.  When coming back to configure, we
19881 # need to make the FD available again.
19882 if test "$no_create" != yes; then
19883   ac_cs_success=:
19884   ac_config_status_args=
19885   test "$silent" = yes &&
19886     ac_config_status_args="$ac_config_status_args --quiet"
19887   exec 5>/dev/null
19888   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19889   exec 5>>config.log
19890   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19891   # would make configure fail if this is the last instruction.
19892   $ac_cs_success || { (exit 1); exit 1; }
19893 fi
19894
19895 #
19896 # CONFIG_SUBDIRS section.
19897 #
19898 if test "$no_recursion" != yes; then
19899
19900   # Remove --cache-file and --srcdir arguments so they do not pile up.
19901   ac_sub_configure_args=
19902   ac_prev=
19903   eval "set x $ac_configure_args"
19904   shift
19905   for ac_arg
19906   do
19907     if test -n "$ac_prev"; then
19908       ac_prev=
19909       continue
19910     fi
19911     case $ac_arg in
19912     -cache-file | --cache-file | --cache-fil | --cache-fi \
19913     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19914       ac_prev=cache_file ;;
19915     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19916     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19917     | --c=*)
19918       ;;
19919     --config-cache | -C)
19920       ;;
19921     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19922       ac_prev=srcdir ;;
19923     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19924       ;;
19925     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19926       ac_prev=prefix ;;
19927     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19928       ;;
19929     *)
19930       case $ac_arg in
19931       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19932       esac
19933       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19934     esac
19935   done
19936
19937   # Always prepend --prefix to ensure using the same prefix
19938   # in subdir configurations.
19939   ac_arg="--prefix=$prefix"
19940   case $ac_arg in
19941   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19942   esac
19943   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19944
19945   ac_popdir=`pwd`
19946   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19947
19948     # Do not complain, so a configure script can configure whichever
19949     # parts of a large source tree are present.
19950     test -d "$srcdir/$ac_dir" || continue
19951
19952     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19953     echo "$as_me:$LINENO: $ac_msg" >&5
19954     echo "$ac_msg" >&6
19955     { as_dir="$ac_dir"
19956   case $as_dir in #(
19957   -*) as_dir=./$as_dir;;
19958   esac
19959   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19960     as_dirs=
19961     while :; do
19962       case $as_dir in #(
19963       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19964       *) as_qdir=$as_dir;;
19965       esac
19966       as_dirs="'$as_qdir' $as_dirs"
19967       as_dir=`$as_dirname -- "$as_dir" ||
19968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19969          X"$as_dir" : 'X\(//\)[^/]' \| \
19970          X"$as_dir" : 'X\(//\)$' \| \
19971          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19972 echo X"$as_dir" |
19973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19974             s//\1/
19975             q
19976           }
19977           /^X\(\/\/\)[^/].*/{
19978             s//\1/
19979             q
19980           }
19981           /^X\(\/\/\)$/{
19982             s//\1/
19983             q
19984           }
19985           /^X\(\/\).*/{
19986             s//\1/
19987             q
19988           }
19989           s/.*/./; q'`
19990       test -d "$as_dir" && break
19991     done
19992     test -z "$as_dirs" || eval "mkdir $as_dirs"
19993   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19994 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19995    { (exit 1); exit 1; }; }; }
19996     ac_builddir=.
19997
19998 case "$ac_dir" in
19999 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20000 *)
20001   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20002   # A ".." for each directory in $ac_dir_suffix.
20003   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20004   case $ac_top_builddir_sub in
20005   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20006   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20007   esac ;;
20008 esac
20009 ac_abs_top_builddir=$ac_pwd
20010 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20011 # for backward compatibility:
20012 ac_top_builddir=$ac_top_build_prefix
20013
20014 case $srcdir in
20015   .)  # We are building in place.
20016     ac_srcdir=.
20017     ac_top_srcdir=$ac_top_builddir_sub
20018     ac_abs_top_srcdir=$ac_pwd ;;
20019   [\\/]* | ?:[\\/]* )  # Absolute name.
20020     ac_srcdir=$srcdir$ac_dir_suffix;
20021     ac_top_srcdir=$srcdir
20022     ac_abs_top_srcdir=$srcdir ;;
20023   *) # Relative name.
20024     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20025     ac_top_srcdir=$ac_top_build_prefix$srcdir
20026     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20027 esac
20028 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20029
20030
20031     cd "$ac_dir"
20032
20033     # Check for guested configure; otherwise get Cygnus style configure.
20034     if test -f "$ac_srcdir/configure.gnu"; then
20035       ac_sub_configure=$ac_srcdir/configure.gnu
20036     elif test -f "$ac_srcdir/configure"; then
20037       ac_sub_configure=$ac_srcdir/configure
20038     elif test -f "$ac_srcdir/configure.in"; then
20039       # This should be Cygnus configure.
20040       ac_sub_configure=$ac_aux_dir/configure
20041     else
20042       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20043 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20044       ac_sub_configure=
20045     fi
20046
20047     # The recursion is here.
20048     if test -n "$ac_sub_configure"; then
20049       # Make the cache file name correct relative to the subdirectory.
20050       case $cache_file in
20051       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20052       *) # Relative name.
20053         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20054       esac
20055
20056       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20057 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20058       # The eval makes quoting arguments work.
20059       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20060            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20061         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20062 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20063    { (exit 1); exit 1; }; }
20064     fi
20065
20066     cd "$ac_popdir"
20067   done
20068 fi
20069