Revert "Fix `llvm-config` to emit the linker flag for the combined shared object...
[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.8.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-2015 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.8.0svn'
565 PACKAGE_STRING='LLVM 3.8.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 ENABLE_ABI_BREAKING_CHECKS
701 DEBUG_RUNTIME
702 DEBUG_SYMBOLS
703 KEEP_SYMBOLS
704 JIT
705 TARGET_HAS_JIT
706 TARGETS_WITH_JIT
707 ENABLE_DOCS
708 ENABLE_DOXYGEN
709 enable_searchengine
710 enable_external_search
711 enable_server_based_search
712 searchengine_url
713 extra_search_mappings
714 QHELPGENERATOR
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
727 LLVM_ENABLE_THREADS
728 ENABLE_PTHREADS
729 LLVM_ENABLE_ZLIB
730 ENABLE_PIC
731 ENABLE_SHARED
732 ENABLE_EMBED_STDCXX
733 ENABLE_TIMESTAMPS
734 ALL_TARGETS
735 TARGETS_TO_BUILD
736 LLVM_ENUM_TARGETS
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
740 OPTIMIZE_OPTION
741 EXTRA_OPTIONS
742 EXTRA_LD_OPTIONS
743 CLANG_SRC_ROOT
744 BINUTILS_INCDIR
745 ENABLE_TERMINFO
746 INTERNAL_PREFIX
747 ifGNUmake
748 LN_S
749 NM
750 CMP
751 CP
752 DATE
753 FIND
754 GREP
755 MKDIR
756 MV
757 RANLIB
758 AR
759 RM
760 SED
761 TAR
762 BINPWD
763 DOT
764 INSTALL_PROGRAM
765 INSTALL_SCRIPT
766 INSTALL_DATA
767 BZIP2
768 CAT
769 DOXYGEN
770 GROFF
771 GZIPBIN
772 PDFROFF
773 ZIP
774 GO
775 OCAMLFIND
776 GAS
777 HAVE_LINK_VERSION_SCRIPT
778 EGREP
779 NO_VARIADIC_MACROS
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
783 NO_UNINITIALIZED
784 NO_COMMENT
785 PYTHON
786 HAVE_DLOPEN
787 HAVE_TERMINFO
788 USE_OPROFILE
789 USE_INTEL_JITEVENTS
790 XML2CONFIG
791 LIBXML2_LIBS
792 LIBXML2_INC
793 HAVE_PTHREAD
794 HAVE_LIBZ
795 HUGE_VAL_SANITY
796 MMAP_FILE
797 SHLIBEXT
798 LLVM_PREFIX
799 LLVM_BINDIR
800 LLVM_DATADIR
801 LLVM_DOCSDIR
802 LLVM_ETCDIR
803 LLVM_INCLUDEDIR
804 LLVM_INFODIR
805 LLVM_MANDIR
806 LLVM_CONFIGTIME
807 BINDINGS_TO_BUILD
808 HAVE_OCAMLOPT
809 HAVE_OCAML_OUNIT
810 OCAML_LIBDIR
811 ENABLE_VISIBILITY_INLINES_HIDDEN
812 RPATH
813 RDYNAMIC
814 program_prefix
815 LIBOBJS
816 LTLIBOBJS'
817 ac_subst_files=''
818       ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 CPPFLAGS
825 CXX
826 CXXFLAGS
827 CCC
828 CPP'
829 ac_subdirs_all='projects/test-suite
830 projects/llvm-test
831 projects/poolalloc
832 projects/llvm-poolalloc
833 projects/safecode
834 tools/polly'
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886   # If the previous option needs an argument, assign it.
887   if test -n "$ac_prev"; then
888     eval $ac_prev=\$ac_option
889     ac_prev=
890     continue
891   fi
892
893   case $ac_option in
894   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895   *)    ac_optarg=yes ;;
896   esac
897
898   # Accept the important Cygnus configure options, so we can diagnose typos.
899
900   case $ac_dashdash$ac_option in
901   --)
902     ac_dashdash=yes ;;
903
904   -bindir | --bindir | --bindi | --bind | --bin | --bi)
905     ac_prev=bindir ;;
906   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907     bindir=$ac_optarg ;;
908
909   -build | --build | --buil | --bui | --bu)
910     ac_prev=build_alias ;;
911   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912     build_alias=$ac_optarg ;;
913
914   -cache-file | --cache-file | --cache-fil | --cache-fi \
915   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916     ac_prev=cache_file ;;
917   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919     cache_file=$ac_optarg ;;
920
921   --config-cache | -C)
922     cache_file=config.cache ;;
923
924   -datadir | --datadir | --datadi | --datad)
925     ac_prev=datadir ;;
926   -datadir=* | --datadir=* | --datadi=* | --datad=*)
927     datadir=$ac_optarg ;;
928
929   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930   | --dataroo | --dataro | --datar)
931     ac_prev=datarootdir ;;
932   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934     datarootdir=$ac_optarg ;;
935
936   -disable-* | --disable-*)
937     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
944
945   -docdir | --docdir | --docdi | --doc | --do)
946     ac_prev=docdir ;;
947   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948     docdir=$ac_optarg ;;
949
950   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951     ac_prev=dvidir ;;
952   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953     dvidir=$ac_optarg ;;
954
955   -enable-* | --enable-*)
956     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957     # Reject names that are not valid shell variable names.
958     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960    { (exit 1); exit 1; }; }
961     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962     eval enable_$ac_feature=\$ac_optarg ;;
963
964   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966   | --exec | --exe | --ex)
967     ac_prev=exec_prefix ;;
968   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970   | --exec=* | --exe=* | --ex=*)
971     exec_prefix=$ac_optarg ;;
972
973   -gas | --gas | --ga | --g)
974     # Obsolete; use --with-gas.
975     with_gas=yes ;;
976
977   -help | --help | --hel | --he | -h)
978     ac_init_help=long ;;
979   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980     ac_init_help=recursive ;;
981   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982     ac_init_help=short ;;
983
984   -host | --host | --hos | --ho)
985     ac_prev=host_alias ;;
986   -host=* | --host=* | --hos=* | --ho=*)
987     host_alias=$ac_optarg ;;
988
989   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990     ac_prev=htmldir ;;
991   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992   | --ht=*)
993     htmldir=$ac_optarg ;;
994
995   -includedir | --includedir | --includedi | --included | --include \
996   | --includ | --inclu | --incl | --inc)
997     ac_prev=includedir ;;
998   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999   | --includ=* | --inclu=* | --incl=* | --inc=*)
1000     includedir=$ac_optarg ;;
1001
1002   -infodir | --infodir | --infodi | --infod | --info | --inf)
1003     ac_prev=infodir ;;
1004   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005     infodir=$ac_optarg ;;
1006
1007   -libdir | --libdir | --libdi | --libd)
1008     ac_prev=libdir ;;
1009   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010     libdir=$ac_optarg ;;
1011
1012   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013   | --libexe | --libex | --libe)
1014     ac_prev=libexecdir ;;
1015   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016   | --libexe=* | --libex=* | --libe=*)
1017     libexecdir=$ac_optarg ;;
1018
1019   -localedir | --localedir | --localedi | --localed | --locale)
1020     ac_prev=localedir ;;
1021   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022     localedir=$ac_optarg ;;
1023
1024   -localstatedir | --localstatedir | --localstatedi | --localstated \
1025   | --localstate | --localstat | --localsta | --localst | --locals)
1026     ac_prev=localstatedir ;;
1027   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029     localstatedir=$ac_optarg ;;
1030
1031   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032     ac_prev=mandir ;;
1033   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034     mandir=$ac_optarg ;;
1035
1036   -nfp | --nfp | --nf)
1037     # Obsolete; use --without-fp.
1038     with_fp=no ;;
1039
1040   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041   | --no-cr | --no-c | -n)
1042     no_create=yes ;;
1043
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     no_recursion=yes ;;
1047
1048   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050   | --oldin | --oldi | --old | --ol | --o)
1051     ac_prev=oldincludedir ;;
1052   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055     oldincludedir=$ac_optarg ;;
1056
1057   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058     ac_prev=prefix ;;
1059   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060     prefix=$ac_optarg ;;
1061
1062   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063   | --program-pre | --program-pr | --program-p)
1064     ac_prev=program_prefix ;;
1065   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067     program_prefix=$ac_optarg ;;
1068
1069   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070   | --program-suf | --program-su | --program-s)
1071     ac_prev=program_suffix ;;
1072   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074     program_suffix=$ac_optarg ;;
1075
1076   -program-transform-name | --program-transform-name \
1077   | --program-transform-nam | --program-transform-na \
1078   | --program-transform-n | --program-transform- \
1079   | --program-transform | --program-transfor \
1080   | --program-transfo | --program-transf \
1081   | --program-trans | --program-tran \
1082   | --progr-tra | --program-tr | --program-t)
1083     ac_prev=program_transform_name ;;
1084   -program-transform-name=* | --program-transform-name=* \
1085   | --program-transform-nam=* | --program-transform-na=* \
1086   | --program-transform-n=* | --program-transform-=* \
1087   | --program-transform=* | --program-transfor=* \
1088   | --program-transfo=* | --program-transf=* \
1089   | --program-trans=* | --program-tran=* \
1090   | --progr-tra=* | --program-tr=* | --program-t=*)
1091     program_transform_name=$ac_optarg ;;
1092
1093   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094     ac_prev=pdfdir ;;
1095   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096     pdfdir=$ac_optarg ;;
1097
1098   -psdir | --psdir | --psdi | --psd | --ps)
1099     ac_prev=psdir ;;
1100   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101     psdir=$ac_optarg ;;
1102
1103   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104   | -silent | --silent | --silen | --sile | --sil)
1105     silent=yes ;;
1106
1107   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108     ac_prev=sbindir ;;
1109   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110   | --sbi=* | --sb=*)
1111     sbindir=$ac_optarg ;;
1112
1113   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115   | --sharedst | --shareds | --shared | --share | --shar \
1116   | --sha | --sh)
1117     ac_prev=sharedstatedir ;;
1118   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121   | --sha=* | --sh=*)
1122     sharedstatedir=$ac_optarg ;;
1123
1124   -site | --site | --sit)
1125     ac_prev=site ;;
1126   -site=* | --site=* | --sit=*)
1127     site=$ac_optarg ;;
1128
1129   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130     ac_prev=srcdir ;;
1131   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132     srcdir=$ac_optarg ;;
1133
1134   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135   | --syscon | --sysco | --sysc | --sys | --sy)
1136     ac_prev=sysconfdir ;;
1137   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139     sysconfdir=$ac_optarg ;;
1140
1141   -target | --target | --targe | --targ | --tar | --ta | --t)
1142     ac_prev=target_alias ;;
1143   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144     target_alias=$ac_optarg ;;
1145
1146   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147     verbose=yes ;;
1148
1149   -version | --version | --versio | --versi | --vers | -V)
1150     ac_init_version=: ;;
1151
1152   -with-* | --with-*)
1153     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156       { echo "$as_me: error: invalid package name: $ac_package" >&2
1157    { (exit 1); exit 1; }; }
1158     ac_package=`echo $ac_package| sed 's/-/_/g'`
1159     eval with_$ac_package=\$ac_optarg ;;
1160
1161   -without-* | --without-*)
1162     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid package name: $ac_package" >&2
1166    { (exit 1); exit 1; }; }
1167     ac_package=`echo $ac_package | sed 's/-/_/g'`
1168     eval with_$ac_package=no ;;
1169
1170   --x)
1171     # Obsolete; use --with-x.
1172     with_x=yes ;;
1173
1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175   | --x-incl | --x-inc | --x-in | --x-i)
1176     ac_prev=x_includes ;;
1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179     x_includes=$ac_optarg ;;
1180
1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183     ac_prev=x_libraries ;;
1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186     x_libraries=$ac_optarg ;;
1187
1188   -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190    { (exit 1); exit 1; }; }
1191     ;;
1192
1193   *=*)
1194     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198    { (exit 1); exit 1; }; }
1199     eval $ac_envvar=\$ac_optarg
1200     export $ac_envvar ;;
1201
1202   *)
1203     # FIXME: should be removed in autoconf 3.0.
1204     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208     ;;
1209
1210   esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215   { echo "$as_me: error: missing argument to $ac_option" >&2
1216    { (exit 1); exit 1; }; }
1217 fi
1218
1219 # Be sure to have absolute directory names.
1220 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221                 datadir sysconfdir sharedstatedir localstatedir includedir \
1222                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223                 libdir localedir mandir
1224 do
1225   eval ac_val=\$$ac_var
1226   case $ac_val in
1227     [\\/$]* | ?:[\\/]* )  continue;;
1228     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229   esac
1230   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231    { (exit 1); exit 1; }; }
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243   if test "x$build_alias" = x; then
1244     cross_compiling=maybe
1245     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246     If a cross compiler is detected then cross compile mode will be used." >&2
1247   elif test "x$build_alias" != "x$host_alias"; then
1248     cross_compiling=yes
1249   fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261   { echo "$as_me: error: Working directory cannot be determined" >&2
1262    { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264   { echo "$as_me: error: pwd does not report name of working directory" >&2
1265    { (exit 1); exit 1; }; }
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270   ac_srcdir_defaulted=yes
1271   # Try the directory containing this script, then the parent directory.
1272   ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274          X"$0" : 'X\(//\)[^/]' \| \
1275          X"$0" : 'X\(//\)$' \| \
1276          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1277 echo X"$0" |
1278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)[^/].*/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\/\)$/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\).*/{
1291             s//\1/
1292             q
1293           }
1294           s/.*/./; q'`
1295   srcdir=$ac_confdir
1296   if test ! -r "$srcdir/$ac_unique_file"; then
1297     srcdir=..
1298   fi
1299 else
1300   ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305    { (exit 1); exit 1; }; }
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310    { (exit 1); exit 1; }; }
1311         pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314   srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_env_${ac_var}_value=\$${ac_var}
1325   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333   # Omit some internal or obsolete options to make the list less imposing.
1334   # This message is too long to be a string in the A/UX 3.1 sh.
1335   cat <<_ACEOF
1336 \`configure' configures LLVM 3.8.0svn to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346   -h, --help              display this help and exit
1347       --help=short        display options specific to this package
1348       --help=recursive    display the short help of all the included packages
1349   -V, --version           display version information and exit
1350   -q, --quiet, --silent   do not print \`checking...' messages
1351       --cache-file=FILE   cache test results in FILE [disabled]
1352   -C, --config-cache      alias for \`--cache-file=config.cache'
1353   -n, --no-create         do not create output files
1354       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357   --prefix=PREFIX         install architecture-independent files in PREFIX
1358                           [$ac_default_prefix]
1359   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                           [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370   --bindir=DIR           user executables [EPREFIX/bin]
1371   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1372   --libexecdir=DIR       program executables [EPREFIX/libexec]
1373   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1374   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1375   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1376   --libdir=DIR           object code libraries [EPREFIX/lib]
1377   --includedir=DIR       C header files [PREFIX/include]
1378   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1379   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1380   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1381   --infodir=DIR          info documentation [DATAROOTDIR/info]
1382   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1383   --mandir=DIR           man documentation [DATAROOTDIR/man]
1384   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1385   --htmldir=DIR          html documentation [DOCDIR]
1386   --dvidir=DIR           dvi documentation [DOCDIR]
1387   --pdfdir=DIR           pdf documentation [DOCDIR]
1388   --psdir=DIR            ps documentation [DOCDIR]
1389 _ACEOF
1390
1391   cat <<\_ACEOF
1392
1393 System types:
1394   --build=BUILD     configure for building on BUILD [guessed]
1395   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396   --target=TARGET   configure for building compilers for TARGET [HOST]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401   case $ac_init_help in
1402      short | recursive ) echo "Configuration of LLVM 3.8.0svn:";;
1403    esac
1404   cat <<\_ACEOF
1405
1406 Optional Features:
1407   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409   --enable-polly          Use polly if available (default is YES)
1410   --enable-libcpp         Use libc++ if available (default is NO)
1411   --enable-compiler-version-checks
1412                           Check the version of the host compiler (default is
1413                           YES)
1414   --enable-cxx1y          Use c++1y if available (default is NO)
1415   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1416   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1417   --enable-clang-plugin-support
1418                           Enable plugin support in clang (default is YES)
1419   --enable-clang-static-analyzer
1420                           Enable building of clang Static Analyzer (default is
1421                           YES)
1422   --enable-optimized      Compile with optimizations enabled (default is NO)
1423   --enable-profiling      Compile with profiling enabled (default is NO)
1424   --enable-assertions     Compile with assertion checks enabled (default is
1425                           YES)
1426   --enable-werror         Compile with -Werror enabled (default is NO)
1427   --enable-expensive-checks
1428                           Compile with expensive debug checks enabled (default
1429                           is NO)
1430   --enable-abi-breaking-checks
1431                           Compile with abi-breaking asserts support (default
1432                           is with-asserts)
1433   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1434                           NO)
1435   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1436                           optimization is on and YES if it's off)
1437   --enable-keep-symbols   Do not strip installed executables)
1438   --enable-jit            Enable Just In Time Compiling (default is YES)
1439   --enable-docs           Build documents (default is YES)
1440   --enable-doxygen        Build doxygen documentation (default is NO)
1441   --enable-doxygen-search Enable doxygen search support (default is NO)
1442   --enable-doxygen-external-search
1443                           Enable doxygen exteranl search (default is NO)
1444   --enable-doxygen-qt-help
1445                           Build Qt help files (default is NO)
1446   --enable-threads        Use threads if available (default is YES)
1447   --enable-pthreads       Use pthreads if available (default is YES)
1448   --enable-zlib           Use zlib for compression/decompression if available
1449                           (default is YES)
1450   --enable-pic            Build LLVM with Position Independent Code (default
1451                           is YES)
1452   --enable-shared         Build a shared library and link tools against it
1453                           (default is NO)
1454   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1455                           Win32 DLL (default is NO)
1456   --enable-timestamps     Enable embedding timestamp information in build
1457                           (default is YES)
1458   --enable-backtraces     Enable embedding backtraces on crash (default is
1459                           YES)
1460   --enable-crash-overrides
1461                           Enable crash handling overrides (default is YES)
1462   --enable-targets        Build specific host targets: all or
1463                           target1,target2,... Valid targets are: host, x86,
1464                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465                           hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1466                           wasm, and cpp (default=all)
1467   --enable-experimental-targets
1468                           Build experimental host targets: disable or
1469                           target1,target2,... (default=disable)
1470   --enable-bindings       Build specific language bindings:
1471                           all,auto,none,{binding-name} (default=auto)
1472   --enable-terminfo       Query the terminfo database if available (default is
1473                           YES)
1474   --enable-libedit        Use libedit if available (default is YES)
1475   --enable-libffi         Check for the presence of libffi (default is NO)
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-doxygen-search-engine-url
1481                           Specify the external search engine for doxygen
1482   --with-doxygen-search-mappings
1483                           Specify the extra search mapping for doxygen
1484   --with-optimize-option  Select the compiler options to use for optimized
1485                           builds
1486   --with-extra-options    Specify additional options to compile LLVM with
1487   --with-extra-ld-options Specify additional options to link LLVM with
1488   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1489                           is stdlib)
1490   --with-clang-srcdir     Directory to the out-of-tree Clang source
1491   --with-clang-resource-dir
1492                           Relative directory from the Clang binary for
1493                           resource files
1494   --with-c-include-dirs   Colon separated list of directories clang will
1495                           search for headers
1496   --with-gcc-toolchain    Directory where gcc is installed.
1497   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1498   --with-clang-default-openmp-runtime
1499                           The default OpenMP runtime for Clang.
1500   --with-binutils-include Specify path to binutils/include/ containing
1501                           plugin-api.h file for gold plugin.
1502   --with-bug-report-url   Specify the URL where bug reports should be
1503                           submitted (default=http://llvm.org/bugs/)
1504   --with-internal-prefix  Installation directory for internal files
1505   --with-python           path to python
1506   --with-oprofile=<prefix>
1507                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1508   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1509
1510
1511 Some influential environment variables:
1512   CC          C compiler command
1513   CFLAGS      C compiler flags
1514   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1515               nonstandard directory <lib dir>
1516   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517               you have headers in a nonstandard directory <include dir>
1518   CXX         C++ compiler command
1519   CXXFLAGS    C++ compiler flags
1520   CPP         C preprocessor
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to <http://llvm.org/bugs/>.
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531   # If there are subdirs, report their specific --help.
1532   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533     test -d "$ac_dir" || continue
1534     ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540   # A ".." for each directory in $ac_dir_suffix.
1541   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542   case $ac_top_builddir_sub in
1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545   esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553   .)  # We are building in place.
1554     ac_srcdir=.
1555     ac_top_srcdir=$ac_top_builddir_sub
1556     ac_abs_top_srcdir=$ac_pwd ;;
1557   [\\/]* | ?:[\\/]* )  # Absolute name.
1558     ac_srcdir=$srcdir$ac_dir_suffix;
1559     ac_top_srcdir=$srcdir
1560     ac_abs_top_srcdir=$srcdir ;;
1561   *) # Relative name.
1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568     cd "$ac_dir" || { ac_status=$?; continue; }
1569     # Check for guested configure.
1570     if test -f "$ac_srcdir/configure.gnu"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573     elif test -f "$ac_srcdir/configure"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure" --help=recursive
1576     else
1577       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578     fi || ac_status=$?
1579     cd "$ac_pwd" || { ac_status=$?; break; }
1580   done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585   cat <<\_ACEOF
1586 LLVM configure 3.8.0svn
1587 generated by GNU Autoconf 2.60
1588
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593
1594 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1595 _ACEOF
1596   exit
1597 fi
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1601
1602 It was created by LLVM $as_me 3.8.0svn, which was
1603 generated by GNU Autoconf 2.60.  Invocation command line was
1604
1605   $ $0 $@
1606
1607 _ACEOF
1608 exec 5>>config.log
1609 {
1610 cat <<_ASUNAME
1611 ## --------- ##
1612 ## Platform. ##
1613 ## --------- ##
1614
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1620
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1623
1624 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1625 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1628 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1629 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1630 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1631
1632 _ASUNAME
1633
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   echo "PATH: $as_dir"
1640 done
1641 IFS=$as_save_IFS
1642
1643 } >&5
1644
1645 cat >&5 <<_ACEOF
1646
1647
1648 ## ----------- ##
1649 ## Core tests. ##
1650 ## ----------- ##
1651
1652 _ACEOF
1653
1654
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_configure_args=
1661 ac_configure_args0=
1662 ac_configure_args1=
1663 ac_must_keep_next=false
1664 for ac_pass in 1 2
1665 do
1666   for ac_arg
1667   do
1668     case $ac_arg in
1669     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671     | -silent | --silent | --silen | --sile | --sil)
1672       continue ;;
1673     *\'*)
1674       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675     esac
1676     case $ac_pass in
1677     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1678     2)
1679       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680       if test $ac_must_keep_next = true; then
1681         ac_must_keep_next=false # Got value, back to normal.
1682       else
1683         case $ac_arg in
1684           *=* | --config-cache | -C | -disable-* | --disable-* \
1685           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687           | -with-* | --with-* | -without-* | --without-* | --x)
1688             case "$ac_configure_args0 " in
1689               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690             esac
1691             ;;
1692           -* ) ac_must_keep_next=true ;;
1693         esac
1694       fi
1695       ac_configure_args="$ac_configure_args '$ac_arg'"
1696       ;;
1697     esac
1698   done
1699 done
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1702
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log.  We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709   # Save into config.log some information that might help in debugging.
1710   {
1711     echo
1712
1713     cat <<\_ASBOX
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1717 _ASBOX
1718     echo
1719     # The following way of writing the cache mishandles newlines in values,
1720 (
1721   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722     eval ac_val=\$$ac_var
1723     case $ac_val in #(
1724     *${as_nl}*)
1725       case $ac_var in #(
1726       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728       esac
1729       case $ac_var in #(
1730       _ | IFS | as_nl) ;; #(
1731       *) $as_unset $ac_var ;;
1732       esac ;;
1733     esac
1734   done
1735   (set) 2>&1 |
1736     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737     *${as_nl}ac_space=\ *)
1738       sed -n \
1739         "s/'\''/'\''\\\\'\'''\''/g;
1740           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741       ;; #(
1742     *)
1743       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744       ;;
1745     esac |
1746     sort
1747 )
1748     echo
1749
1750     cat <<\_ASBOX
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1754 _ASBOX
1755     echo
1756     for ac_var in $ac_subst_vars
1757     do
1758       eval ac_val=\$$ac_var
1759       case $ac_val in
1760       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761       esac
1762       echo "$ac_var='\''$ac_val'\''"
1763     done | sort
1764     echo
1765
1766     if test -n "$ac_subst_files"; then
1767       cat <<\_ASBOX
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1771 _ASBOX
1772       echo
1773       for ac_var in $ac_subst_files
1774       do
1775         eval ac_val=\$$ac_var
1776         case $ac_val in
1777         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778         esac
1779         echo "$ac_var='\''$ac_val'\''"
1780       done | sort
1781       echo
1782     fi
1783
1784     if test -s confdefs.h; then
1785       cat <<\_ASBOX
1786 ## ----------- ##
1787 ## confdefs.h. ##
1788 ## ----------- ##
1789 _ASBOX
1790       echo
1791       cat confdefs.h
1792       echo
1793     fi
1794     test "$ac_signal" != 0 &&
1795       echo "$as_me: caught signal $ac_signal"
1796     echo "$as_me: exit $exit_status"
1797   } >&5
1798   rm -f core *.core core.conftest.* &&
1799     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800     exit $exit_status
1801 ' 0
1802 for ac_signal in 1 2 13 15; do
1803   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 done
1805 ac_signal=0
1806
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1809
1810 # Predefined preprocessor variables.
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 _ACEOF
1835
1836
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840   set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1843 else
1844   set x "$ac_default_prefix/share/config.site" \
1845         "$ac_default_prefix/etc/config.site"
1846 fi
1847 shift
1848 for ac_site_file
1849 do
1850   if test -r "$ac_site_file"; then
1851     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853     sed 's/^/| /' "$ac_site_file" >&5
1854     . "$ac_site_file"
1855   fi
1856 done
1857
1858 if test -r "$cache_file"; then
1859   # Some versions of bash will fail to source /dev/null (special
1860   # files actually), so we avoid doing that.
1861   if test -f "$cache_file"; then
1862     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1864     case $cache_file in
1865       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866       *)                      . "./$cache_file";;
1867     esac
1868   fi
1869 else
1870   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1872   >$cache_file
1873 fi
1874
1875 # Check that the precious variables saved in the cache have kept the same
1876 # value.
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880   eval ac_new_set=\$ac_env_${ac_var}_set
1881   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882   eval ac_new_val=\$ac_env_${ac_var}_value
1883   case $ac_old_set,$ac_new_set in
1884     set,)
1885       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887       ac_cache_corrupted=: ;;
1888     ,set)
1889       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891       ac_cache_corrupted=: ;;
1892     ,);;
1893     *)
1894       if test "x$ac_old_val" != "x$ac_new_val"; then
1895         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1898 echo "$as_me:   former value:  $ac_old_val" >&2;}
1899         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1900 echo "$as_me:   current value: $ac_new_val" >&2;}
1901         ac_cache_corrupted=:
1902       fi;;
1903   esac
1904   # Pass precious variables to config.status.
1905   if test "$ac_new_set" = set; then
1906     case $ac_new_val in
1907     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908     *) ac_arg=$ac_var=$ac_new_val ;;
1909     esac
1910     case " $ac_configure_args " in
1911       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1912       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913     esac
1914   fi
1915 done
1916 if $ac_cache_corrupted; then
1917   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921    { (exit 1); exit 1; }; }
1922 fi
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953
1954
1955
1956 LLVM_VERSION_MAJOR=3
1957 LLVM_VERSION_MINOR=8
1958 LLVM_VERSION_PATCH=0
1959 LLVM_VERSION_SUFFIX=svn
1960
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1964 _ACEOF
1965
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1969 _ACEOF
1970
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1974 _ACEOF
1975
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1979 _ACEOF
1980
1981
1982
1983
1984
1985
1986
1987 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1988
1989
1990
1991
1992
1993
1994
1995 ac_aux_dir=
1996 for ac_dir in autoconf "$srcdir"/autoconf; do
1997   if test -f "$ac_dir/install-sh"; then
1998     ac_aux_dir=$ac_dir
1999     ac_install_sh="$ac_aux_dir/install-sh -c"
2000     break
2001   elif test -f "$ac_dir/install.sh"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/install.sh -c"
2004     break
2005   elif test -f "$ac_dir/shtool"; then
2006     ac_aux_dir=$ac_dir
2007     ac_install_sh="$ac_aux_dir/shtool install -c"
2008     break
2009   fi
2010 done
2011 if test -z "$ac_aux_dir"; then
2012   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2024
2025
2026
2027 if test ${srcdir} != "." ; then
2028   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2029     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2030 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2031    { (exit 1); exit 1; }; }
2032   fi
2033 fi
2034
2035 if test ${srcdir} == "." ; then
2036   { { echo "$as_me:$LINENO: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
2037 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
2038    { (exit 1); exit 1; }; }
2039 fi
2040
2041 : ${CFLAGS=}
2042 : ${CXXFLAGS=}
2043
2044 ac_ext=c
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050   for ac_prog in clang gcc
2051   do
2052     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2053 set dummy $ac_tool_prefix$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_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$CC"; then
2060   ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$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 "$CC" && break
2090   done
2091 fi
2092 if test -z "$CC"; then
2093   ac_ct_CC=$CC
2094   for ac_prog in clang gcc
2095 do
2096   # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy $ac_prog; ac_word=$2
2098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test -n "$ac_ct_CC"; then
2104   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109   IFS=$as_save_IFS
2110   test -z "$as_dir" && as_dir=.
2111   for ac_exec_ext in '' $ac_executable_extensions; do
2112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2113     ac_cv_prog_ac_ct_CC="$ac_prog"
2114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119 IFS=$as_save_IFS
2120
2121 fi
2122 fi
2123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124 if test -n "$ac_ct_CC"; then
2125   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126 echo "${ECHO_T}$ac_ct_CC" >&6; }
2127 else
2128   { echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6; }
2130 fi
2131
2132
2133   test -n "$ac_ct_CC" && break
2134 done
2135
2136   if test "x$ac_ct_CC" = x; then
2137     CC=""
2138   else
2139     case $cross_compiling:$ac_tool_warned in
2140 yes:)
2141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2142 whose name does not start with the host triplet.  If you think this
2143 configuration is useful to you, please write to autoconf@gnu.org." >&5
2144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2145 whose name does not start with the host triplet.  If you think this
2146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2147 ac_tool_warned=yes ;;
2148 esac
2149     CC=$ac_ct_CC
2150   fi
2151 fi
2152
2153
2154 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: no acceptable C compiler found in \$PATH
2157 See \`config.log' for more details." >&2;}
2158    { (exit 1); exit 1; }; }
2159
2160 # Provide some information about the compiler.
2161 echo "$as_me:$LINENO: checking for C compiler version" >&5
2162 ac_compiler=`set X $ac_compile; echo $2`
2163 { (ac_try="$ac_compiler --version >&5"
2164 case "(($ac_try" in
2165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166   *) ac_try_echo=$ac_try;;
2167 esac
2168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2169   (eval "$ac_compiler --version >&5") 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }
2173 { (ac_try="$ac_compiler -v >&5"
2174 case "(($ac_try" in
2175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176   *) ac_try_echo=$ac_try;;
2177 esac
2178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2179   (eval "$ac_compiler -v >&5") 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }
2183 { (ac_try="$ac_compiler -V >&5"
2184 case "(($ac_try" in
2185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186   *) ac_try_echo=$ac_try;;
2187 esac
2188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2189   (eval "$ac_compiler -V >&5") 2>&5
2190   ac_status=$?
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); }
2193
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h.  */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h.  */
2200
2201 int
2202 main ()
2203 {
2204
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 ac_clean_files_save=$ac_clean_files
2210 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2211 # Try to create an executable without -o first, disregard a.out.
2212 # It will help us diagnose broken compilers, and finding out an intuition
2213 # of exeext.
2214 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2215 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2216 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2217 #
2218 # List of possible output files, starting from the most likely.
2219 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2220 # only as a last resort.  b.out is created by i960 compilers.
2221 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2222 #
2223 # The IRIX 6 linker writes into existing files which may not be
2224 # executable, retaining their permissions.  Remove them first so a
2225 # subsequent execution test works.
2226 ac_rmfiles=
2227 for ac_file in $ac_files
2228 do
2229   case $ac_file in
2230     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2231     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2232   esac
2233 done
2234 rm -f $ac_rmfiles
2235
2236 if { (ac_try="$ac_link_default"
2237 case "(($ac_try" in
2238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239   *) ac_try_echo=$ac_try;;
2240 esac
2241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2242   (eval "$ac_link_default") 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); }; then
2246   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2248 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2249 # so that the user can short-circuit this test for compilers unknown to
2250 # Autoconf.
2251 for ac_file in $ac_files
2252 do
2253   test -f "$ac_file" || continue
2254   case $ac_file in
2255     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2256         ;;
2257     [ab].out )
2258         # We found the default executable, but exeext='' is most
2259         # certainly right.
2260         break;;
2261     *.* )
2262         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2263         then :; else
2264            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265         fi
2266         # We set ac_cv_exeext here because the later test for it is not
2267         # safe: cross compilers may not add the suffix if given an `-o'
2268         # argument, so we may need to know it at that point already.
2269         # Even if this section looks crufty: it has the advantage of
2270         # actually working.
2271         break;;
2272     * )
2273         break;;
2274   esac
2275 done
2276 test "$ac_cv_exeext" = no && ac_cv_exeext=
2277
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: C compiler cannot create executables
2285 See \`config.log' for more details." >&2;}
2286    { (exit 77); exit 77; }; }
2287 fi
2288
2289 ac_exeext=$ac_cv_exeext
2290 { echo "$as_me:$LINENO: result: $ac_file" >&5
2291 echo "${ECHO_T}$ac_file" >&6; }
2292
2293 # Check that the compiler produces executables we can run.  If not, either
2294 # the compiler is broken, or we cross compile.
2295 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2296 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2297 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2298 # If not cross compiling, check that we can run a simple program.
2299 if test "$cross_compiling" != yes; then
2300   if { ac_try='./$ac_file'
2301   { (case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306   (eval "$ac_try") 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; }; then
2310     cross_compiling=no
2311   else
2312     if test "$cross_compiling" = maybe; then
2313         cross_compiling=yes
2314     else
2315         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2316 If you meant to cross compile, use \`--host'.
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot run C compiled programs.
2319 If you meant to cross compile, use \`--host'.
2320 See \`config.log' for more details." >&2;}
2321    { (exit 1); exit 1; }; }
2322     fi
2323   fi
2324 fi
2325 { echo "$as_me:$LINENO: result: yes" >&5
2326 echo "${ECHO_T}yes" >&6; }
2327
2328 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2329 ac_clean_files=$ac_clean_files_save
2330 # Check that the compiler produces executables we can run.  If not, either
2331 # the compiler is broken, or we cross compile.
2332 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2333 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2334 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2335 echo "${ECHO_T}$cross_compiling" >&6; }
2336
2337 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2338 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2339 if { (ac_try="$ac_link"
2340 case "(($ac_try" in
2341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342   *) ac_try_echo=$ac_try;;
2343 esac
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345   (eval "$ac_link") 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }; then
2349   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2350 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2351 # work properly (i.e., refer to `conftest.exe'), while it won't with
2352 # `rm'.
2353 for ac_file in conftest.exe conftest conftest.*; do
2354   test -f "$ac_file" || continue
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2357     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2358           break;;
2359     * ) break;;
2360   esac
2361 done
2362 else
2363   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2366 See \`config.log' for more details." >&2;}
2367    { (exit 1); exit 1; }; }
2368 fi
2369
2370 rm -f conftest$ac_cv_exeext
2371 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2373
2374 rm -f conftest.$ac_ext
2375 EXEEXT=$ac_cv_exeext
2376 ac_exeext=$EXEEXT
2377 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2379 if test "${ac_cv_objext+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h.  */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h.  */
2388
2389 int
2390 main ()
2391 {
2392
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.o conftest.obj
2398 if { (ac_try="$ac_compile"
2399 case "(($ac_try" in
2400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401   *) ac_try_echo=$ac_try;;
2402 esac
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404   (eval "$ac_compile") 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; then
2408   for ac_file in conftest.o conftest.obj conftest.*; do
2409   test -f "$ac_file" || continue;
2410   case $ac_file in
2411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2412     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2413        break;;
2414   esac
2415 done
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2423 See \`config.log' for more details." >&2;}
2424    { (exit 1); exit 1; }; }
2425 fi
2426
2427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2428 fi
2429 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2430 echo "${ECHO_T}$ac_cv_objext" >&6; }
2431 OBJEXT=$ac_cv_objext
2432 ac_objext=$OBJEXT
2433 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2434 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2435 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h.  */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h.  */
2444
2445 int
2446 main ()
2447 {
2448 #ifndef __GNUC__
2449        choke me
2450 #endif
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463   (eval "$ac_compile") 2>conftest.er1
2464   ac_status=$?
2465   grep -v '^ *+' conftest.er1 >conftest.err
2466   rm -f conftest.er1
2467   cat conftest.err >&5
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486   (eval "$ac_try") 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   ac_compiler_gnu=yes
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495         ac_compiler_gnu=no
2496 fi
2497
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2500
2501 fi
2502 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2504 GCC=`test $ac_compiler_gnu = yes && echo yes`
2505 ac_test_CFLAGS=${CFLAGS+set}
2506 ac_save_CFLAGS=$CFLAGS
2507 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2508 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_cc_g+set}" = set; then
2510   echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512   ac_save_c_werror_flag=$ac_c_werror_flag
2513    ac_c_werror_flag=yes
2514    ac_cv_prog_cc_g=no
2515    CFLAGS="-g"
2516    cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2522
2523 int
2524 main ()
2525 {
2526
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (ac_try="$ac_compile"
2533 case "(($ac_try" in
2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535   *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538   (eval "$ac_compile") 2>conftest.er1
2539   ac_status=$?
2540   grep -v '^ *+' conftest.er1 >conftest.err
2541   rm -f conftest.er1
2542   cat conftest.err >&5
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); } &&
2545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2546   { (case "(($ac_try" in
2547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548   *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551   (eval "$ac_try") 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; } &&
2555          { ac_try='test -s conftest.$ac_objext'
2556   { (case "(($ac_try" in
2557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558   *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561   (eval "$ac_try") 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; }; then
2565   ac_cv_prog_cc_g=yes
2566 else
2567   echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2569
2570         CFLAGS=""
2571       cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577
2578 int
2579 main ()
2580 {
2581
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (ac_try="$ac_compile"
2588 case "(($ac_try" in
2589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590   *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593   (eval "$ac_compile") 2>conftest.er1
2594   ac_status=$?
2595   grep -v '^ *+' conftest.er1 >conftest.err
2596   rm -f conftest.er1
2597   cat conftest.err >&5
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); } &&
2600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2601   { (case "(($ac_try" in
2602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603   *) ac_try_echo=$ac_try;;
2604 esac
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606   (eval "$ac_try") 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; } &&
2610          { ac_try='test -s conftest.$ac_objext'
2611   { (case "(($ac_try" in
2612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613   *) ac_try_echo=$ac_try;;
2614 esac
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616   (eval "$ac_try") 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   :
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625         ac_c_werror_flag=$ac_save_c_werror_flag
2626          CFLAGS="-g"
2627          cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633
2634 int
2635 main ()
2636 {
2637
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2644 case "(($ac_try" in
2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646   *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649   (eval "$ac_compile") 2>conftest.er1
2650   ac_status=$?
2651   grep -v '^ *+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
2653   cat conftest.err >&5
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2657   { (case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_try") 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; } &&
2666          { ac_try='test -s conftest.$ac_objext'
2667   { (case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672   (eval "$ac_try") 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }; }; then
2676   ac_cv_prog_cc_g=yes
2677 else
2678   echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681
2682 fi
2683
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 fi
2689
2690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691    ac_c_werror_flag=$ac_save_c_werror_flag
2692 fi
2693 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2695 if test "$ac_test_CFLAGS" = set; then
2696   CFLAGS=$ac_save_CFLAGS
2697 elif test $ac_cv_prog_cc_g = yes; then
2698   if test "$GCC" = yes; then
2699     CFLAGS="-g -O2"
2700   else
2701     CFLAGS="-g"
2702   fi
2703 else
2704   if test "$GCC" = yes; then
2705     CFLAGS="-O2"
2706   else
2707     CFLAGS=
2708   fi
2709 fi
2710 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2711 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_cc_c89+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   ac_cv_prog_cc_c89=no
2716 ac_save_CC=$CC
2717 cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h.  */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h.  */
2723 #include <stdarg.h>
2724 #include <stdio.h>
2725 #include <sys/types.h>
2726 #include <sys/stat.h>
2727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2728 struct buf { int x; };
2729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2730 static char *e (p, i)
2731      char **p;
2732      int i;
2733 {
2734   return p[i];
2735 }
2736 static char *f (char * (*g) (char **, int), char **p, ...)
2737 {
2738   char *s;
2739   va_list v;
2740   va_start (v,p);
2741   s = g (p, va_arg (v,int));
2742   va_end (v);
2743   return s;
2744 }
2745
2746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2747    function prototypes and stuff, but not '\xHH' hex character constants.
2748    These don't provoke an error unfortunately, instead are silently treated
2749    as 'x'.  The following induces an error, until -std is added to get
2750    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2751    array size at least.  It's necessary to write '\x00'==0 to get something
2752    that's true only with -std.  */
2753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2754
2755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2756    inside strings and character constants.  */
2757 #define FOO(x) 'x'
2758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2759
2760 int test (int i, double x);
2761 struct s1 {int (*f) (int a);};
2762 struct s2 {int (*f) (double a);};
2763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764 int argc;
2765 char **argv;
2766 int
2767 main ()
2768 {
2769 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2775         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2776 do
2777   CC="$ac_save_CC $ac_arg"
2778   rm -f conftest.$ac_objext
2779 if { (ac_try="$ac_compile"
2780 case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785   (eval "$ac_compile") 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793   { (case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_try") 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; } &&
2802          { ac_try='test -s conftest.$ac_objext'
2803   { (case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_try") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812   ac_cv_prog_cc_c89=$ac_arg
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817
2818 fi
2819
2820 rm -f core conftest.err conftest.$ac_objext
2821   test "x$ac_cv_prog_cc_c89" != "xno" && break
2822 done
2823 rm -f conftest.$ac_ext
2824 CC=$ac_save_CC
2825
2826 fi
2827 # AC_CACHE_VAL
2828 case "x$ac_cv_prog_cc_c89" in
2829   x)
2830     { echo "$as_me:$LINENO: result: none needed" >&5
2831 echo "${ECHO_T}none needed" >&6; } ;;
2832   xno)
2833     { echo "$as_me:$LINENO: result: unsupported" >&5
2834 echo "${ECHO_T}unsupported" >&6; } ;;
2835   *)
2836     CC="$CC $ac_cv_prog_cc_c89"
2837     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2838 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2839 esac
2840
2841
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847
2848 ac_ext=cpp
2849 ac_cpp='$CXXCPP $CPPFLAGS'
2850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2853 if test -z "$CXX"; then
2854   if test -n "$CCC"; then
2855     CXX=$CCC
2856   else
2857     if test -n "$ac_tool_prefix"; then
2858   for ac_prog in clang++ g++
2859   do
2860     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2861 set dummy $ac_tool_prefix$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_CXX+set}" = set; then
2865   echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867   if test -n "$CXX"; then
2868   ac_cv_prog_CXX="$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_CXX="$ac_tool_prefix$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 CXX=$ac_cv_prog_CXX
2888 if test -n "$CXX"; then
2889   { echo "$as_me:$LINENO: result: $CXX" >&5
2890 echo "${ECHO_T}$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 "$CXX" && break
2898   done
2899 fi
2900 if test -z "$CXX"; then
2901   ac_ct_CXX=$CXX
2902   for ac_prog in clang++ g++
2903 do
2904   # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy $ac_prog; ac_word=$2
2906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911   if test -n "$ac_ct_CXX"; then
2912   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917   IFS=$as_save_IFS
2918   test -z "$as_dir" && as_dir=.
2919   for ac_exec_ext in '' $ac_executable_extensions; do
2920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2921     ac_cv_prog_ac_ct_CXX="$ac_prog"
2922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923     break 2
2924   fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2932 if test -n "$ac_ct_CXX"; then
2933   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2934 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2935 else
2936   { echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6; }
2938 fi
2939
2940
2941   test -n "$ac_ct_CXX" && break
2942 done
2943
2944   if test "x$ac_ct_CXX" = x; then
2945     CXX="g++"
2946   else
2947     case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2950 whose name does not start with the host triplet.  If you think this
2951 configuration is useful to you, please write to autoconf@gnu.org." >&5
2952 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2953 whose name does not start with the host triplet.  If you think this
2954 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2955 ac_tool_warned=yes ;;
2956 esac
2957     CXX=$ac_ct_CXX
2958   fi
2959 fi
2960
2961   fi
2962 fi
2963 # Provide some information about the compiler.
2964 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2965 ac_compiler=`set X $ac_compile; echo $2`
2966 { (ac_try="$ac_compiler --version >&5"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_compiler --version >&5") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }
2976 { (ac_try="$ac_compiler -v >&5"
2977 case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_compiler -v >&5") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }
2986 { (ac_try="$ac_compiler -V >&5"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compiler -V >&5") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }
2996
2997 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2998 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2999 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012 #ifndef __GNUC__
3013        choke me
3014 #endif
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } &&
3034          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; }; then
3054   ac_compiler_gnu=yes
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059         ac_compiler_gnu=no
3060 fi
3061
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3064
3065 fi
3066 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3067 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3068 GXX=`test $ac_compiler_gnu = yes && echo yes`
3069 ac_test_CXXFLAGS=${CXXFLAGS+set}
3070 ac_save_CXXFLAGS=$CXXFLAGS
3071 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3072 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_cxx_g+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3077    ac_cxx_werror_flag=yes
3078    ac_cv_prog_cxx_g=no
3079    CXXFLAGS="-g"
3080    cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_compile") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } &&
3109          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3110   { (case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_try") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; } &&
3119          { ac_try='test -s conftest.$ac_objext'
3120   { (case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_try") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; }; then
3129   ac_cv_prog_cxx_g=yes
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134         CXXFLAGS=""
3135       cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141
3142 int
3143 main ()
3144 {
3145
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3152 case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_compile") 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } &&
3164          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3165   { (case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_try") 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180   (eval "$ac_try") 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   :
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3190          CXXFLAGS="-g"
3191          cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213   (eval "$ac_compile") 2>conftest.er1
3214   ac_status=$?
3215   grep -v '^ *+' conftest.er1 >conftest.err
3216   rm -f conftest.er1
3217   cat conftest.err >&5
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); } &&
3220          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3221   { (case "(($ac_try" in
3222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223   *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226   (eval "$ac_try") 2>&5
3227   ac_status=$?
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); }; } &&
3230          { ac_try='test -s conftest.$ac_objext'
3231   { (case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_try") 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }; }; then
3240   ac_cv_prog_cxx_g=yes
3241 else
3242   echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245
3246 fi
3247
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 fi
3253
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3256 fi
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3259 if test "$ac_test_CXXFLAGS" = set; then
3260   CXXFLAGS=$ac_save_CXXFLAGS
3261 elif test $ac_cv_prog_cxx_g = yes; then
3262   if test "$GXX" = yes; then
3263     CXXFLAGS="-g -O2"
3264   else
3265     CXXFLAGS="-g"
3266   fi
3267 else
3268   if test "$GXX" = yes; then
3269     CXXFLAGS="-O2"
3270   else
3271     CXXFLAGS=
3272   fi
3273 fi
3274 ac_ext=c
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3287 # On Suns, sometimes $CPP names a directory.
3288 if test -n "$CPP" && test -d "$CPP"; then
3289   CPP=
3290 fi
3291 if test -z "$CPP"; then
3292   if test "${ac_cv_prog_CPP+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295       # Double quotes because CPP needs to be expanded
3296     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3297     do
3298       ac_preproc_ok=false
3299 for ac_c_preproc_warn_flag in '' yes
3300 do
3301   # Use a header file that comes with gcc, so configuring glibc
3302   # with a fresh cross-compiler works.
3303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304   # <limits.h> exists even on freestanding compilers.
3305   # On the NeXT, cc -E runs the code through the compiler's parser,
3306   # not just through cpp. "Syntax error" is here to catch this case.
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #ifdef __STDC__
3314 # include <limits.h>
3315 #else
3316 # include <assert.h>
3317 #endif
3318                      Syntax error
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   :
3344 else
3345   echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348   # Broken: fails on valid input.
3349 continue
3350 fi
3351
3352 rm -f conftest.err conftest.$ac_ext
3353
3354   # OK, works on sane cases.  Now check whether nonexistent headers
3355   # can be detected and how.
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 #include <ac_nonexistent.h>
3363 _ACEOF
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } >/dev/null; then
3377   if test -s conftest.err; then
3378     ac_cpp_err=$ac_c_preproc_warn_flag
3379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380   else
3381     ac_cpp_err=
3382   fi
3383 else
3384   ac_cpp_err=yes
3385 fi
3386 if test -z "$ac_cpp_err"; then
3387   # Broken: success on invalid input.
3388 continue
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Passes both tests.
3394 ac_preproc_ok=:
3395 break
3396 fi
3397
3398 rm -f conftest.err conftest.$ac_ext
3399
3400 done
3401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402 rm -f conftest.err conftest.$ac_ext
3403 if $ac_preproc_ok; then
3404   break
3405 fi
3406
3407     done
3408     ac_cv_prog_CPP=$CPP
3409
3410 fi
3411   CPP=$ac_cv_prog_CPP
3412 else
3413   ac_cv_prog_CPP=$CPP
3414 fi
3415 { echo "$as_me:$LINENO: result: $CPP" >&5
3416 echo "${ECHO_T}$CPP" >&6; }
3417 ac_preproc_ok=false
3418 for ac_c_preproc_warn_flag in '' yes
3419 do
3420   # Use a header file that comes with gcc, so configuring glibc
3421   # with a fresh cross-compiler works.
3422   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423   # <limits.h> exists even on freestanding compilers.
3424   # On the NeXT, cc -E runs the code through the compiler's parser,
3425   # not just through cpp. "Syntax error" is here to catch this case.
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #ifdef __STDC__
3433 # include <limits.h>
3434 #else
3435 # include <assert.h>
3436 #endif
3437                      Syntax error
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   :
3463 else
3464   echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467   # Broken: fails on valid input.
3468 continue
3469 fi
3470
3471 rm -f conftest.err conftest.$ac_ext
3472
3473   # OK, works on sane cases.  Now check whether nonexistent headers
3474   # can be detected and how.
3475   cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 #include <ac_nonexistent.h>
3482 _ACEOF
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490   ac_status=$?
3491   grep -v '^ *+' conftest.er1 >conftest.err
3492   rm -f conftest.er1
3493   cat conftest.err >&5
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } >/dev/null; then
3496   if test -s conftest.err; then
3497     ac_cpp_err=$ac_c_preproc_warn_flag
3498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499   else
3500     ac_cpp_err=
3501   fi
3502 else
3503   ac_cpp_err=yes
3504 fi
3505 if test -z "$ac_cpp_err"; then
3506   # Broken: success on invalid input.
3507 continue
3508 else
3509   echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512   # Passes both tests.
3513 ac_preproc_ok=:
3514 break
3515 fi
3516
3517 rm -f conftest.err conftest.$ac_ext
3518
3519 done
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then
3523   :
3524 else
3525   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3526 See \`config.log' for more details." >&5
3527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3528 See \`config.log' for more details." >&2;}
3529    { (exit 1); exit 1; }; }
3530 fi
3531
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537
3538
3539 if test "$CXX" = "clang++" ; then
3540   { echo "$as_me:$LINENO: checking whether clang works" >&5
3541 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3542   ac_ext=cpp
3543 ac_cpp='$CXXCPP $CPPFLAGS'
3544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3547
3548
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h.  */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h.  */
3555 #include <limits>
3556 #if __has_include (<cxxabi.h>)
3557 #include <cxxabi.h>
3558 #endif
3559 #if __has_include (<unwind.h>)
3560 #include <unwind.h>
3561 #endif
3562
3563 int
3564 main ()
3565 {
3566
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3573 case "(($ac_try" in
3574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575   *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578   (eval "$ac_compile") 2>conftest.er1
3579   ac_status=$?
3580   grep -v '^ *+' conftest.er1 >conftest.err
3581   rm -f conftest.er1
3582   cat conftest.err >&5
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); } &&
3585          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3586   { (case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591   (eval "$ac_try") 2>&5
3592   ac_status=$?
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); }; } &&
3595          { ac_try='test -s conftest.$ac_objext'
3596   { (case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601   (eval "$ac_try") 2>&5
3602   ac_status=$?
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); }; }; then
3605
3606   { echo "$as_me:$LINENO: result: yes" >&5
3607 echo "${ECHO_T}yes" >&6; }
3608
3609 else
3610   echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613
3614   { echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6; }
3616   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3617 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3618    { (exit 1); exit 1; }; }
3619
3620 fi
3621
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623   ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629 fi
3630
3631 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3632 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3633 ac_ext=cpp
3634 ac_cpp='$CXXCPP $CPPFLAGS'
3635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3638
3639 llvm_cv_cxx_compiler=unknown
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h.  */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h.  */
3646 #if ! __clang__
3647                                     #error
3648                                     #endif
3649
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3653 case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658   (eval "$ac_compile") 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } &&
3665          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3666   { (case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671   (eval "$ac_try") 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; } &&
3675          { ac_try='test -s conftest.$ac_objext'
3676   { (case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_try") 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; }; then
3685   llvm_cv_cxx_compiler=clang
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690         cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 #if ! __GNUC__
3697                                                        #error
3698                                                        #endif
3699
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3703 case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708   (eval "$ac_compile") 2>conftest.er1
3709   ac_status=$?
3710   grep -v '^ *+' conftest.er1 >conftest.err
3711   rm -f conftest.er1
3712   cat conftest.err >&5
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } &&
3715          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3716   { (case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721   (eval "$ac_try") 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; } &&
3725          { ac_try='test -s conftest.$ac_objext'
3726   { (case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731   (eval "$ac_try") 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; }; then
3735   llvm_cv_cxx_compiler=gcc
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740
3741 fi
3742
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3754 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3755
3756
3757
3758 if test -d ${srcdir}/projects/test-suite ; then
3759   subdirs="$subdirs projects/test-suite"
3760
3761 fi
3762
3763 if test -d ${srcdir}/projects/llvm-test ; then
3764   subdirs="$subdirs projects/llvm-test"
3765
3766 fi
3767
3768 if test -d ${srcdir}/projects/poolalloc ; then
3769   subdirs="$subdirs projects/poolalloc"
3770
3771 fi
3772
3773 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3774   subdirs="$subdirs projects/llvm-poolalloc"
3775
3776 fi
3777
3778 for i in `ls ${srcdir}/projects`
3779 do
3780   if test -d ${srcdir}/projects/${i} ; then
3781     case ${i} in
3782       safecode)     subdirs="$subdirs projects/safecode"
3783  ;;
3784       compiler-rt)       ;;
3785       test-suite)     ;;
3786       llvm-test)      ;;
3787       poolalloc)      ;;
3788       llvm-poolalloc) ;;
3789       *)
3790         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3791 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3792         ;;
3793     esac
3794   fi
3795 done
3796
3797 # Check whether --enable-polly was given.
3798 if test "${enable_polly+set}" = set; then
3799   enableval=$enable_polly;
3800 else
3801   enableval=default
3802 fi
3803
3804 case "$enableval" in
3805   yes) ENABLE_POLLY=1
3806  ;;
3807   no)  ENABLE_POLLY=0
3808  ;;
3809   default) ENABLE_POLLY=1
3810  ;;
3811   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3812 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3813    { (exit 1); exit 1; }; } ;;
3814 esac
3815
3816
3817 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3818   LLVM_HAS_POLLY=1
3819
3820   subdirs="$subdirs tools/polly"
3821
3822 fi
3823
3824
3825 # Make sure we can run config.sub.
3826 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3827   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3828 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3829    { (exit 1); exit 1; }; }
3830
3831 { echo "$as_me:$LINENO: checking build system type" >&5
3832 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3833 if test "${ac_cv_build+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   ac_build_alias=$build_alias
3837 test "x$ac_build_alias" = x &&
3838   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3839 test "x$ac_build_alias" = x &&
3840   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3841 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3842    { (exit 1); exit 1; }; }
3843 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3844   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3845 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3846    { (exit 1); exit 1; }; }
3847
3848 fi
3849 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3850 echo "${ECHO_T}$ac_cv_build" >&6; }
3851 case $ac_cv_build in
3852 *-*-*) ;;
3853 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3854 echo "$as_me: error: invalid value of canonical build" >&2;}
3855    { (exit 1); exit 1; }; };;
3856 esac
3857 build=$ac_cv_build
3858 ac_save_IFS=$IFS; IFS='-'
3859 set x $ac_cv_build
3860 shift
3861 build_cpu=$1
3862 build_vendor=$2
3863 shift; shift
3864 # Remember, the first character of IFS is used to create $*,
3865 # except with old shells:
3866 build_os=$*
3867 IFS=$ac_save_IFS
3868 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3869
3870
3871 { echo "$as_me:$LINENO: checking host system type" >&5
3872 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3873 if test "${ac_cv_host+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   if test "x$host_alias" = x; then
3877   ac_cv_host=$ac_cv_build
3878 else
3879   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3880     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3881 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3882    { (exit 1); exit 1; }; }
3883 fi
3884
3885 fi
3886 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3887 echo "${ECHO_T}$ac_cv_host" >&6; }
3888 case $ac_cv_host in
3889 *-*-*) ;;
3890 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3891 echo "$as_me: error: invalid value of canonical host" >&2;}
3892    { (exit 1); exit 1; }; };;
3893 esac
3894 host=$ac_cv_host
3895 ac_save_IFS=$IFS; IFS='-'
3896 set x $ac_cv_host
3897 shift
3898 host_cpu=$1
3899 host_vendor=$2
3900 shift; shift
3901 # Remember, the first character of IFS is used to create $*,
3902 # except with old shells:
3903 host_os=$*
3904 IFS=$ac_save_IFS
3905 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3906
3907
3908 { echo "$as_me:$LINENO: checking target system type" >&5
3909 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3910 if test "${ac_cv_target+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   if test "x$target_alias" = x; then
3914   ac_cv_target=$ac_cv_host
3915 else
3916   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3917     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3918 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3919    { (exit 1); exit 1; }; }
3920 fi
3921
3922 fi
3923 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3924 echo "${ECHO_T}$ac_cv_target" >&6; }
3925 case $ac_cv_target in
3926 *-*-*) ;;
3927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3928 echo "$as_me: error: invalid value of canonical target" >&2;}
3929    { (exit 1); exit 1; }; };;
3930 esac
3931 target=$ac_cv_target
3932 ac_save_IFS=$IFS; IFS='-'
3933 set x $ac_cv_target
3934 shift
3935 target_cpu=$1
3936 target_vendor=$2
3937 shift; shift
3938 # Remember, the first character of IFS is used to create $*,
3939 # except with old shells:
3940 target_os=$*
3941 IFS=$ac_save_IFS
3942 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3943
3944
3945 # The aliases save the names the user supplied, while $host etc.
3946 # will get canonicalized.
3947 test -n "$target_alias" &&
3948   test "$program_prefix$program_suffix$program_transform_name" = \
3949     NONENONEs,x,x, &&
3950   program_prefix=${target_alias}-
3951
3952 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3953 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3954 if test "${llvm_cv_os_type+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   case $host in
3958   *-*-aix*)
3959     llvm_cv_link_all_option="-Wl,--whole-archive"
3960     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3961     llvm_cv_os_type="AIX"
3962     llvm_cv_platform_type="Unix" ;;
3963   *-*-irix*)
3964     llvm_cv_link_all_option="-Wl,--whole-archive"
3965     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3966     llvm_cv_os_type="IRIX"
3967     llvm_cv_platform_type="Unix" ;;
3968   *-*-cygwin*)
3969     llvm_cv_link_all_option="-Wl,--whole-archive"
3970     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3971     llvm_cv_os_type="Cygwin"
3972     llvm_cv_platform_type="Unix" ;;
3973   *-*-darwin*)
3974     llvm_cv_link_all_option="-Wl,-all_load"
3975     llvm_cv_no_link_all_option="-Wl,-noall_load"
3976     llvm_cv_os_type="Darwin"
3977     llvm_cv_platform_type="Unix" ;;
3978   *-*-minix*)
3979     llvm_cv_link_all_option="-Wl,-all_load"
3980     llvm_cv_no_link_all_option="-Wl,-noall_load"
3981     llvm_cv_os_type="Minix"
3982     llvm_cv_platform_type="Unix" ;;
3983   *-*-freebsd*)
3984     llvm_cv_link_all_option="-Wl,--whole-archive"
3985     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3986     llvm_cv_os_type="FreeBSD"
3987     llvm_cv_platform_type="Unix" ;;
3988   *-*-kfreebsd-gnu)
3989     llvm_cv_link_all_option="-Wl,--whole-archive"
3990     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3991     llvm_cv_os_type="GNU/kFreeBSD"
3992     llvm_cv_platform_type="Unix" ;;
3993   *-*-openbsd*)
3994     llvm_cv_link_all_option="-Wl,--whole-archive"
3995     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3996     llvm_cv_os_type="OpenBSD"
3997     llvm_cv_platform_type="Unix" ;;
3998   *-*-netbsd*)
3999     llvm_cv_link_all_option="-Wl,--whole-archive"
4000     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001     llvm_cv_os_type="NetBSD"
4002     llvm_cv_platform_type="Unix" ;;
4003   *-*-dragonfly*)
4004     llvm_cv_link_all_option="-Wl,--whole-archive"
4005     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006     llvm_cv_os_type="DragonFly"
4007     llvm_cv_platform_type="Unix" ;;
4008   *-*-bitrig*)
4009     llvm_cv_link_all_option="-Wl,--whole-archive"
4010     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011     llvm_cv_os_type="Bitrig"
4012     llvm_cv_platform_type="Unix" ;;
4013   *-*-hpux*)
4014     llvm_cv_link_all_option="-Wl,--whole-archive"
4015     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4016     llvm_cv_os_type="HP-UX"
4017     llvm_cv_platform_type="Unix" ;;
4018   *-*-interix*)
4019     llvm_cv_link_all_option="-Wl,--whole-archive"
4020     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021     llvm_cv_os_type="Interix"
4022     llvm_cv_platform_type="Unix" ;;
4023   *-*-linux*)
4024     llvm_cv_link_all_option="-Wl,--whole-archive"
4025     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026     llvm_cv_os_type="Linux"
4027     llvm_cv_platform_type="Unix" ;;
4028   *-*-gnu*)
4029     llvm_cv_link_all_option="-Wl,--whole-archive"
4030     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031     llvm_cv_os_type="GNU"
4032     llvm_cv_platform_type="Unix" ;;
4033   *-*-solaris*)
4034     llvm_cv_link_all_option="-Wl,-z,allextract"
4035     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4036     llvm_cv_os_type="SunOS"
4037     llvm_cv_platform_type="Unix" ;;
4038   *-*-win32*)
4039     llvm_cv_link_all_option="-Wl,--whole-archive"
4040     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4041     llvm_cv_os_type="Win32"
4042     llvm_cv_platform_type="Win32" ;;
4043   *-*-mingw*)
4044     llvm_cv_link_all_option="-Wl,--whole-archive"
4045     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046     llvm_cv_os_type="MingW"
4047     llvm_cv_platform_type="Win32" ;;
4048   *-*-haiku*)
4049     llvm_cv_link_all_option="-Wl,--whole-archive"
4050     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4051     llvm_cv_os_type="Haiku"
4052     llvm_cv_platform_type="Unix" ;;
4053   *-unknown-eabi*)
4054     llvm_cv_link_all_option="-Wl,--whole-archive"
4055     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056     llvm_cv_os_type="Freestanding"
4057     llvm_cv_platform_type="Unix" ;;
4058   *-unknown-elf*)
4059     llvm_cv_link_all_option="-Wl,--whole-archive"
4060     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061     llvm_cv_os_type="Freestanding"
4062     llvm_cv_platform_type="Unix" ;;
4063   *)
4064     llvm_cv_link_all_option=""
4065     llvm_cv_no_link_all_option=""
4066     llvm_cv_os_type="Unknown"
4067     llvm_cv_platform_type="Unknown" ;;
4068 esac
4069 fi
4070 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4071 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4072
4073 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4074 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4075 if test "${llvm_cv_target_os_type+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   case $target in
4079   *-*-aix*)
4080     llvm_cv_target_os_type="AIX" ;;
4081   *-*-irix*)
4082     llvm_cv_target_os_type="IRIX" ;;
4083   *-*-cygwin*)
4084     llvm_cv_target_os_type="Cygwin" ;;
4085   *-*-darwin*)
4086     llvm_cv_target_os_type="Darwin" ;;
4087   *-*-minix*)
4088     llvm_cv_target_os_type="Minix" ;;
4089   *-*-freebsd*)
4090     llvm_cv_target_os_type="FreeBSD" ;;
4091   *-*-kfreebsd-gnu)
4092     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4093   *-*-openbsd*)
4094     llvm_cv_target_os_type="OpenBSD" ;;
4095   *-*-netbsd*)
4096     llvm_cv_target_os_type="NetBSD" ;;
4097   *-*-dragonfly*)
4098     llvm_cv_target_os_type="DragonFly" ;;
4099   *-*-bitrig*)
4100     llvm_cv_target_os_type="Bitrig" ;;
4101   *-*-hpux*)
4102     llvm_cv_target_os_type="HP-UX" ;;
4103   *-*-interix*)
4104     llvm_cv_target_os_type="Interix" ;;
4105   *-*-linux*)
4106     llvm_cv_target_os_type="Linux" ;;
4107   *-*-gnu*)
4108     llvm_cv_target_os_type="GNU" ;;
4109   *-*-solaris*)
4110     llvm_cv_target_os_type="SunOS" ;;
4111   *-*-win32*)
4112     llvm_cv_target_os_type="Win32" ;;
4113   *-*-mingw*)
4114     llvm_cv_target_os_type="MingW" ;;
4115   *-*-haiku*)
4116     llvm_cv_target_os_type="Haiku" ;;
4117   *-*-rtems*)
4118     llvm_cv_target_os_type="RTEMS" ;;
4119   *-*-nacl*)
4120     llvm_cv_target_os_type="NativeClient" ;;
4121   *-unknown-eabi*)
4122     llvm_cv_target_os_type="Freestanding" ;;
4123   *-*-ps4)
4124     llvm_cv_target_os_type="PS4" ;;
4125   *)
4126     llvm_cv_target_os_type="Unknown" ;;
4127 esac
4128 fi
4129 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4130 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4131
4132 if test "$llvm_cv_os_type" = "Unknown" ; then
4133   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4134 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4135    { (exit 1); exit 1; }; }
4136 fi
4137
4138 OS=$llvm_cv_os_type
4139
4140 HOST_OS=$llvm_cv_os_type
4141
4142 TARGET_OS=$llvm_cv_target_os_type
4143
4144
4145 LINKALL=$llvm_cv_link_all_option
4146
4147 NOLINKALL=$llvm_cv_no_link_all_option
4148
4149
4150 case $llvm_cv_platform_type in
4151   Unix)
4152
4153 cat >>confdefs.h <<\_ACEOF
4154 #define LLVM_ON_UNIX 1
4155 _ACEOF
4156
4157     LLVM_ON_UNIX=1
4158
4159     LLVM_ON_WIN32=0
4160
4161     ;;
4162   Win32)
4163
4164 cat >>confdefs.h <<\_ACEOF
4165 #define LLVM_ON_WIN32 1
4166 _ACEOF
4167
4168     LLVM_ON_UNIX=0
4169
4170     LLVM_ON_WIN32=1
4171
4172     ;;
4173 esac
4174
4175 { echo "$as_me:$LINENO: checking target architecture" >&5
4176 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4177 if test "${llvm_cv_target_arch+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180   case $target in
4181   i?86-*)                 llvm_cv_target_arch="x86" ;;
4182   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4183   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4184   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4185   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4186   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4187   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4188   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4189   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4190   xcore-*)                llvm_cv_target_arch="XCore" ;;
4191   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4192   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4193   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4194   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4195   wasm*-*)                llvm_cv_target_arch="WebAssembly" ;;
4196   *)                      llvm_cv_target_arch="Unknown" ;;
4197 esac
4198 fi
4199 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4200 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4201
4202 if test "$llvm_cv_target_arch" = "Unknown" ; then
4203   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4204 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4205 fi
4206
4207 case "$llvm_cv_target_arch" in
4208     x86)     LLVM_NATIVE_ARCH="X86" ;;
4209     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4210     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4211 esac
4212
4213 ARCH=$llvm_cv_target_arch
4214
4215 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4216
4217
4218 case $host in
4219   i?86-*)                 host_arch="x86" ;;
4220   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4221   sparc*-*)               host_arch="Sparc" ;;
4222   powerpc*-*)             host_arch="PowerPC" ;;
4223   arm64*-*)               host_arch="AArch64" ;;
4224   arm*-*)                 host_arch="ARM" ;;
4225   aarch64*-*)             host_arch="AArch64" ;;
4226   mips-* | mips64-*)      host_arch="Mips" ;;
4227   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4228   xcore-*)                host_arch="XCore" ;;
4229   msp430-*)               host_arch="MSP430" ;;
4230   hexagon-*)              host_arch="Hexagon" ;;
4231   s390x-*)                host_arch="SystemZ" ;;
4232   wasm*-*)                host_arch="WebAssembly" ;;
4233   *)                      host_arch="Unknown" ;;
4234 esac
4235
4236 if test "$host_arch" = "Unknown" ; then
4237   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4238 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4239 fi
4240
4241 HOST_ARCH=$host_arch
4242
4243
4244 if test "$cross_compiling" = yes; then
4245   LLVM_CROSS_COMPILING=1
4246
4247
4248 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4249 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4250 if test "${ac_cv_build_exeext+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4254   ac_cv_build_exeext=.exe
4255 else
4256   ac_build_prefix=${build_alias}-
4257
4258   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4259 set dummy ${ac_build_prefix}gcc; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   if test -n "$BUILD_CC"; then
4266   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273   for ac_exec_ext in '' $ac_executable_extensions; do
4274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4275     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280 done
4281 IFS=$as_save_IFS
4282
4283 fi
4284 fi
4285 BUILD_CC=$ac_cv_prog_BUILD_CC
4286 if test -n "$BUILD_CC"; then
4287   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4288 echo "${ECHO_T}$BUILD_CC" >&6; }
4289 else
4290   { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4292 fi
4293
4294
4295   if test -z "$BUILD_CC"; then
4296      # Extract the first word of "gcc", so it can be a program name with args.
4297 set dummy gcc; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   if test -n "$BUILD_CC"; then
4304   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311   for ac_exec_ext in '' $ac_executable_extensions; do
4312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4313     ac_cv_prog_BUILD_CC="gcc"
4314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318 done
4319 IFS=$as_save_IFS
4320
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      if test -z "$BUILD_CC"; then
4334        # Extract the first word of "cc", so it can be a program name with args.
4335 set dummy cc; ac_word=$2
4336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   if test -n "$BUILD_CC"; then
4342   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4343 else
4344   ac_prog_rejected=no
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350   for ac_exec_ext in '' $ac_executable_extensions; do
4351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4352     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4353        ac_prog_rejected=yes
4354        continue
4355      fi
4356     ac_cv_prog_BUILD_CC="cc"
4357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358     break 2
4359   fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 if test $ac_prog_rejected = yes; then
4365   # We found a bogon in the path, so make sure we never use it.
4366   set dummy $ac_cv_prog_BUILD_CC
4367   shift
4368   if test $# != 0; then
4369     # We chose a different compiler from the bogus one.
4370     # However, it has the same basename, so the bogon will be chosen
4371     # first if we set BUILD_CC to just the basename; use the full file name.
4372     shift
4373     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4374   fi
4375 fi
4376 fi
4377 fi
4378 BUILD_CC=$ac_cv_prog_BUILD_CC
4379 if test -n "$BUILD_CC"; then
4380   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4381 echo "${ECHO_T}$BUILD_CC" >&6; }
4382 else
4383   { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4385 fi
4386
4387
4388      fi
4389   fi
4390   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4391 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4392    { (exit 1); exit 1; }; }
4393   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4394   rm -f conftest*
4395   echo 'int main () { return 0; }' > conftest.$ac_ext
4396   ac_cv_build_exeext=
4397   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4398   (eval $ac_build_link) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; then
4402     for file in conftest.*; do
4403       case $file in
4404       *.c | *.o | *.obj | *.dSYM) ;;
4405       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4406       esac
4407     done
4408   else
4409     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4410 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4411    { (exit 1); exit 1; }; }
4412   fi
4413   rm -f conftest*
4414   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4415 fi
4416 fi
4417
4418 BUILD_EXEEXT=""
4419 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4420 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4421 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4422 ac_build_exeext=$BUILD_EXEEXT
4423
4424   ac_build_prefix=${build_alias}-
4425   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4426 set dummy ${ac_build_prefix}g++; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   if test -n "$BUILD_CXX"; then
4433   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4453 if test -n "$BUILD_CXX"; then
4454   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4455 echo "${ECHO_T}$BUILD_CXX" >&6; }
4456 else
4457   { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4459 fi
4460
4461
4462   if test -z "$BUILD_CXX"; then
4463      # Extract the first word of "g++", so it can be a program name with args.
4464 set dummy g++; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   if test -n "$BUILD_CXX"; then
4471   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480     ac_cv_prog_BUILD_CXX="g++"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486 IFS=$as_save_IFS
4487
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      if test -z "$BUILD_CXX"; then
4501        # Extract the first word of "c++", so it can be a program name with args.
4502 set dummy c++; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   if test -n "$BUILD_CXX"; then
4509   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4510 else
4511   ac_prog_rejected=no
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517   for ac_exec_ext in '' $ac_executable_extensions; do
4518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4519     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4520        ac_prog_rejected=yes
4521        continue
4522      fi
4523     ac_cv_prog_BUILD_CXX="c++"
4524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525     break 2
4526   fi
4527 done
4528 done
4529 IFS=$as_save_IFS
4530
4531 if test $ac_prog_rejected = yes; then
4532   # We found a bogon in the path, so make sure we never use it.
4533   set dummy $ac_cv_prog_BUILD_CXX
4534   shift
4535   if test $# != 0; then
4536     # We chose a different compiler from the bogus one.
4537     # However, it has the same basename, so the bogon will be chosen
4538     # first if we set BUILD_CXX to just the basename; use the full file name.
4539     shift
4540     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4541   fi
4542 fi
4543 fi
4544 fi
4545 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4546 if test -n "$BUILD_CXX"; then
4547   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4548 echo "${ECHO_T}$BUILD_CXX" >&6; }
4549 else
4550   { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4552 fi
4553
4554
4555      fi
4556   fi
4557 else
4558   LLVM_CROSS_COMPILING=0
4559
4560 fi
4561
4562 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4563   cvsbuild="yes"
4564   optimize="no"
4565   CVSBUILD=CVSBUILD=1
4566
4567 else
4568   cvsbuild="no"
4569   optimize="yes"
4570 fi
4571
4572
4573 # Check whether --enable-libcpp was given.
4574 if test "${enable_libcpp+set}" = set; then
4575   enableval=$enable_libcpp;
4576 else
4577   enableval=default
4578 fi
4579
4580 case "$enableval" in
4581   yes) ENABLE_LIBCPP=1
4582  ;;
4583   no)  ENABLE_LIBCPP=0
4584  ;;
4585   default) ENABLE_LIBCPP=0
4586 ;;
4587   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4588 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4589    { (exit 1); exit 1; }; } ;;
4590 esac
4591
4592 # Check whether --enable-compiler-version-checks was given.
4593 if test "${enable_compiler_version_checks+set}" = set; then
4594   enableval=$enable_compiler_version_checks;
4595 else
4596   enableval=default
4597 fi
4598
4599 case "$enableval" in
4600   no)
4601     ;;
4602   yes|default)
4603     ac_ext=cpp
4604 ac_cpp='$CXXCPP $CPPFLAGS'
4605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4608
4609     case "$llvm_cv_cxx_compiler" in
4610     clang)
4611       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4612 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4613       cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619
4620 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4621 #error This version of Clang is too old to build LLVM
4622 #endif
4623
4624 _ACEOF
4625 rm -f conftest.$ac_objext
4626 if { (ac_try="$ac_compile"
4627 case "(($ac_try" in
4628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629   *) ac_try_echo=$ac_try;;
4630 esac
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632   (eval "$ac_compile") 2>conftest.er1
4633   ac_status=$?
4634   grep -v '^ *+' conftest.er1 >conftest.err
4635   rm -f conftest.er1
4636   cat conftest.err >&5
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); } &&
4639          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4640   { (case "(($ac_try" in
4641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642   *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645   (eval "$ac_try") 2>&5
4646   ac_status=$?
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); }; } &&
4649          { ac_try='test -s conftest.$ac_objext'
4650   { (case "(($ac_try" in
4651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652   *) ac_try_echo=$ac_try;;
4653 esac
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655   (eval "$ac_try") 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; }; then
4659   { echo "$as_me:$LINENO: result: yes" >&5
4660 echo "${ECHO_T}yes" >&6; }
4661 else
4662   echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665         { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4667            { { echo "$as_me:$LINENO: error:
4668 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4669 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4670 bypass these sanity checks." >&5
4671 echo "$as_me: error:
4672 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4673 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4674 bypass these sanity checks." >&2;}
4675    { (exit 1); exit 1; }; }
4676 fi
4677
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679
4680                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4681         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4682 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4683         llvm_cv_old_cxxflags="$CXXFLAGS"
4684         CXXFLAGS="$CXXFLAGS -std=c++0x"
4685         cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h.  */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h.  */
4691
4692 #include <atomic>
4693 std::atomic<float> x(0.0f);
4694 int main() { return (float)x; }
4695
4696 _ACEOF
4697 rm -f conftest.$ac_objext conftest$ac_exeext
4698 if { (ac_try="$ac_link"
4699 case "(($ac_try" in
4700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701   *) ac_try_echo=$ac_try;;
4702 esac
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704   (eval "$ac_link") 2>conftest.er1
4705   ac_status=$?
4706   grep -v '^ *+' conftest.er1 >conftest.err
4707   rm -f conftest.er1
4708   cat conftest.err >&5
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); } &&
4711          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4712   { (case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_try") 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; } &&
4721          { ac_try='test -s conftest$ac_exeext'
4722   { (case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727   (eval "$ac_try") 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; }; then
4731   { echo "$as_me:$LINENO: result: yes" >&5
4732 echo "${ECHO_T}yes" >&6; }
4733 else
4734   echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737         { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739              { { echo "$as_me:$LINENO: error:
4740 We detected a missing feature in the standard C++ library that was known to be
4741 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4742 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4743 than 4.7. You will need to update your system and ensure Clang uses the newer
4744 standard library.
4745
4746 If this error is incorrect or you need to force things to work, you may pass
4747 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4748 echo "$as_me: error:
4749 We detected a missing feature in the standard C++ library that was known to be
4750 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4751 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4752 than 4.7. You will need to update your system and ensure Clang uses the newer
4753 standard library.
4754
4755 If this error is incorrect or you need to force things to work, you may pass
4756 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4757    { (exit 1); exit 1; }; }
4758 fi
4759
4760 rm -f core conftest.err conftest.$ac_objext \
4761       conftest$ac_exeext conftest.$ac_ext
4762         CXXFLAGS="$llvm_cv_old_cxxflags"
4763       fi
4764       ;;
4765     gcc)
4766       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4767 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4768       cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h.  */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h.  */
4774
4775 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4776 #error This version of GCC is too old to build LLVM
4777 #endif
4778
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4782 case "(($ac_try" in
4783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784   *) ac_try_echo=$ac_try;;
4785 esac
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787   (eval "$ac_compile") 2>conftest.er1
4788   ac_status=$?
4789   grep -v '^ *+' conftest.er1 >conftest.err
4790   rm -f conftest.er1
4791   cat conftest.err >&5
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); } &&
4794          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4795   { (case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800   (eval "$ac_try") 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (case "(($ac_try" in
4806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807   *) ac_try_echo=$ac_try;;
4808 esac
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810   (eval "$ac_try") 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; }; then
4814   { echo "$as_me:$LINENO: result: yes" >&5
4815 echo "${ECHO_T}yes" >&6; }
4816 else
4817   echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820         { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822            { { echo "$as_me:$LINENO: error:
4823 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4824 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4825 bypass these sanity checks." >&5
4826 echo "$as_me: error:
4827 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4828 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4829 bypass these sanity checks." >&2;}
4830    { (exit 1); exit 1; }; }
4831 fi
4832
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834       ;;
4835     unknown)
4836       ;;
4837     esac
4838     ac_ext=c
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843
4844     ;;
4845   *)
4846     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4848    { (exit 1); exit 1; }; }
4849     ;;
4850 esac
4851
4852 # Check whether --enable-cxx1y was given.
4853 if test "${enable_cxx1y+set}" = set; then
4854   enableval=$enable_cxx1y;
4855 else
4856   enableval=default
4857 fi
4858
4859 case "$enableval" in
4860   yes) ENABLE_CXX1Y=1
4861  ;;
4862   no)  ENABLE_CXX1Y=0
4863  ;;
4864   default) ENABLE_CXX1Y=0
4865 ;;
4866   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4867 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4868    { (exit 1); exit 1; }; } ;;
4869 esac
4870
4871 # Check whether --enable-split-dwarf was given.
4872 if test "${enable_split_dwarf+set}" = set; then
4873   enableval=$enable_split_dwarf;
4874 else
4875   enableval=default
4876 fi
4877
4878 case "$enableval" in
4879   yes) ENABLE_SPLIT_DWARF=1
4880  ;;
4881   no)  ENABLE_SPLIT_DWARF=0
4882  ;;
4883   default) ENABLE_SPLIT_DWARF=0
4884 ;;
4885   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4886 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4887    { (exit 1); exit 1; }; } ;;
4888 esac
4889
4890 clang_arcmt="yes"
4891 # Check whether --enable-clang-arcmt was given.
4892 if test "${enable_clang_arcmt+set}" = set; then
4893   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4894 else
4895   enableval="yes"
4896 fi
4897
4898 case "$enableval" in
4899   yes) ENABLE_CLANG_ARCMT=1
4900  ;;
4901   no)  ENABLE_CLANG_ARCMT=0
4902  ;;
4903   default) ENABLE_CLANG_ARCMT=1
4904 ;;
4905   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4906 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4907    { (exit 1); exit 1; }; } ;;
4908 esac
4909
4910 clang_plugin_support="yes"
4911 # Check whether --enable-clang-plugin-support was given.
4912 if test "${enable_clang_plugin_support+set}" = set; then
4913   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4914 else
4915   enableval="yes"
4916 fi
4917
4918 case "$enableval" in
4919   yes) CLANG_PLUGIN_SUPPORT=1
4920  ;;
4921   no)  CLANG_PLUGIN_SUPPORT=0
4922  ;;
4923   default) CLANG_PLUGIN_SUPPORT=1
4924 ;;
4925   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4926 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4927    { (exit 1); exit 1; }; } ;;
4928 esac
4929
4930 clang_static_analyzer="yes"
4931 # Check whether --enable-clang-static-analyzer was given.
4932 if test "${enable_clang_static_analyzer+set}" = set; then
4933   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4934 else
4935   enableval="yes"
4936 fi
4937
4938 case "$enableval" in
4939   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4940  ;;
4941   no)
4942     if test ${clang_arcmt} != "no" ; then
4943       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4944 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4945    { (exit 1); exit 1; }; }
4946     fi
4947     ENABLE_CLANG_STATIC_ANALYZER=0
4948
4949     ;;
4950   default) ENABLE_CLANG_STATIC_ANALYZER=1
4951 ;;
4952   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4954    { (exit 1); exit 1; }; } ;;
4955 esac
4956
4957 # Check whether --enable-optimized was given.
4958 if test "${enable_optimized+set}" = set; then
4959   enableval=$enable_optimized;
4960 else
4961   enableval=$optimize
4962 fi
4963
4964 if test ${enableval} = "no" ; then
4965   ENABLE_OPTIMIZED=
4966
4967 else
4968   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4969
4970 fi
4971
4972 # Check whether --enable-profiling was given.
4973 if test "${enable_profiling+set}" = set; then
4974   enableval=$enable_profiling;
4975 else
4976   enableval="no"
4977 fi
4978
4979 if test ${enableval} = "no" ; then
4980   ENABLE_PROFILING=
4981
4982 else
4983   ENABLE_PROFILING=ENABLE_PROFILING=1
4984
4985 fi
4986
4987 # Check whether --enable-assertions was given.
4988 if test "${enable_assertions+set}" = set; then
4989   enableval=$enable_assertions;
4990 else
4991   enableval="yes"
4992 fi
4993
4994 if test ${enableval} = "yes" ; then
4995   DISABLE_ASSERTIONS=
4996
4997   assertions_enabled="yes"
4998 else
4999   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5000
5001   assertions_enabled="no"
5002 fi
5003
5004 # Check whether --enable-werror was given.
5005 if test "${enable_werror+set}" = set; then
5006   enableval=$enable_werror;
5007 else
5008   enableval="no"
5009 fi
5010
5011 case "$enableval" in
5012   yes) ENABLE_WERROR=1
5013  ;;
5014   no)  ENABLE_WERROR=0
5015  ;;
5016   default) ENABLE_WERROR=0
5017 ;;
5018   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5019 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5020    { (exit 1); exit 1; }; } ;;
5021 esac
5022
5023 # Check whether --enable-expensive-checks was given.
5024 if test "${enable_expensive_checks+set}" = set; then
5025   enableval=$enable_expensive_checks;
5026 else
5027   enableval="no"
5028 fi
5029
5030 if test ${enableval} = "yes" ; then
5031   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5032
5033   EXPENSIVE_CHECKS=yes
5034
5035 else
5036   ENABLE_EXPENSIVE_CHECKS=
5037
5038   EXPENSIVE_CHECKS=no
5039
5040 fi
5041
5042 # Check whether --enable-abi-breaking-checks was given.
5043 if test "${enable_abi_breaking_checks+set}" = set; then
5044   enableval=$enable_abi_breaking_checks;
5045 else
5046   enableval="with-asserts"
5047 fi
5048
5049 case "$enableval" in
5050   with-asserts)  if test ${assertions_enabled} = "yes" ; then
5051
5052 cat >>confdefs.h <<\_ACEOF
5053 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5054 _ACEOF
5055
5056                    ENABLE_ABI_BREAKING_CHECKS=1
5057
5058                  else
5059                    ENABLE_ABI_BREAKING_CHECKS=0
5060
5061                  fi ;;
5062   yes)
5063
5064 cat >>confdefs.h <<\_ACEOF
5065 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5066 _ACEOF
5067
5068                  ENABLE_ABI_BREAKING_CHECKS=1
5069
5070                  ;;
5071   no)
5072                  ENABLE_ABI_BREAKING_CHECKS=0
5073
5074                  ;;
5075   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5076 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5077    { (exit 1); exit 1; }; }
5078 esac
5079
5080 # Check whether --enable-debug-runtime was given.
5081 if test "${enable_debug_runtime+set}" = set; then
5082   enableval=$enable_debug_runtime;
5083 else
5084   enableval=no
5085 fi
5086
5087 if test ${enableval} = "no" ; then
5088   DEBUG_RUNTIME=
5089
5090 else
5091   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5092
5093 fi
5094
5095 # Check whether --enable-debug-symbols was given.
5096 if test "${enable_debug_symbols+set}" = set; then
5097   enableval=$enable_debug_symbols;
5098 else
5099   enableval=no
5100 fi
5101
5102 if test ${enableval} = "no" ; then
5103   DEBUG_SYMBOLS=
5104
5105 else
5106   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5107
5108 fi
5109
5110 # Check whether --enable-keep-symbols was given.
5111 if test "${enable_keep_symbols+set}" = set; then
5112   enableval=$enable_keep_symbols;
5113 else
5114   enableval=no
5115 fi
5116
5117 if test ${enableval} = "no" ; then
5118   KEEP_SYMBOLS=
5119
5120 else
5121   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5122
5123 fi
5124
5125 # Check whether --enable-jit was given.
5126 if test "${enable_jit+set}" = set; then
5127   enableval=$enable_jit;
5128 else
5129   enableval=default
5130 fi
5131
5132 if test ${enableval} = "no"
5133 then
5134   JIT=
5135
5136 else
5137   case "$llvm_cv_target_arch" in
5138     x86)         TARGET_HAS_JIT=1
5139  ;;
5140     Sparc)       TARGET_HAS_JIT=0
5141  ;;
5142     PowerPC)     TARGET_HAS_JIT=1
5143  ;;
5144     x86_64)      TARGET_HAS_JIT=1
5145  ;;
5146     ARM)         TARGET_HAS_JIT=1
5147  ;;
5148     Mips)        TARGET_HAS_JIT=1
5149  ;;
5150     XCore)       TARGET_HAS_JIT=0
5151  ;;
5152     MSP430)      TARGET_HAS_JIT=0
5153  ;;
5154     Hexagon)     TARGET_HAS_JIT=0
5155  ;;
5156     NVPTX)       TARGET_HAS_JIT=0
5157  ;;
5158     SystemZ)     TARGET_HAS_JIT=1
5159  ;;
5160     WebAssembly) TARGET_HAS_JIT=0
5161  ;;
5162     *)           TARGET_HAS_JIT=0
5163  ;;
5164   esac
5165 fi
5166
5167 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5168 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5169
5170
5171 # Check whether --enable-docs was given.
5172 if test "${enable_docs+set}" = set; then
5173   enableval=$enable_docs;
5174 else
5175   enableval=default
5176 fi
5177
5178 case "$enableval" in
5179   yes) ENABLE_DOCS=1
5180  ;;
5181   no)  ENABLE_DOCS=0
5182  ;;
5183   default) ENABLE_DOCS=1
5184  ;;
5185   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5187    { (exit 1); exit 1; }; } ;;
5188 esac
5189
5190 # Check whether --enable-doxygen was given.
5191 if test "${enable_doxygen+set}" = set; then
5192   enableval=$enable_doxygen;
5193 else
5194   enableval=default
5195 fi
5196
5197 case "$enableval" in
5198   yes) ENABLE_DOXYGEN=1
5199  ;;
5200   no|default) ENABLE_DOXYGEN=0
5201  ;;
5202   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5204    { (exit 1); exit 1; }; } ;;
5205 esac
5206
5207 # Check whether --enable-doxygen-search was given.
5208 if test "${enable_doxygen_search+set}" = set; then
5209   enableval=$enable_doxygen_search;
5210 else
5211   enableval=default
5212 fi
5213
5214 ENABLE_DOXYGEN_SEARCH="$enableval"
5215
5216 case "$enableval" in
5217   yes|no|default) ;;
5218   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5220    { (exit 1); exit 1; }; } ;;
5221 esac
5222
5223 # Check whether --enable-doxygen-external-search was given.
5224 if test "${enable_doxygen_external_search+set}" = set; then
5225   enableval=$enable_doxygen_external_search;
5226 else
5227   enableval=default
5228 fi
5229
5230 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5231
5232 case "$enableval" in
5233   yes)
5234             case "$ENABLE_DOXYGEN_SEARCH" in
5235       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5236       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5237 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5238    { (exit 1); exit 1; }; } ;;
5239     esac
5240     ;;
5241   no|default) ;;
5242   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5243 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5244    { (exit 1); exit 1; }; } ;;
5245 esac
5246
5247
5248 # Check whether --with-doxygen-search-engine-url was given.
5249 if test "${with_doxygen_search_engine_url+set}" = set; then
5250   withval=$with_doxygen_search_engine_url;
5251 fi
5252
5253 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5254
5255
5256 # Check whether --with-doxygen-search-mappings was given.
5257 if test "${with_doxygen_search_mappings+set}" = set; then
5258   withval=$with_doxygen_search_mappings;
5259 fi
5260
5261 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5262
5263 case "$ENABLE_DOXYGEN_SEARCH" in
5264   yes)
5265     if test "$ENABLE_DOXYGEN" = "0" ; then
5266       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5267 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5268    { (exit 1); exit 1; }; }
5269     fi
5270
5271     enable_searchengine=YES
5272
5273
5274     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5275       yes)
5276         enable_external_search=YES
5277
5278         enable_server_based_search=YES
5279
5280         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5281
5282         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5283
5284         ;;
5285
5286       no|default)
5287         enable_external_search=NO
5288
5289         enable_server_based_search=NO
5290
5291
5292
5293         ;;
5294     esac
5295     ;;
5296
5297   no|default)
5298     enable_searchengine=NO
5299
5300
5301     enable_server_based_search=NO
5302
5303     enable_external_search=NO
5304
5305
5306     ;;
5307
5308   *)
5309     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5310 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5311    { (exit 1); exit 1; }; }
5312     ;;
5313 esac
5314
5315 # Check whether --enable-doxygen-qt-help was given.
5316 if test "${enable_doxygen_qt_help+set}" = set; then
5317   enableval=$enable_doxygen_qt_help;
5318 else
5319   enableval=default
5320 fi
5321
5322 case "$enableval" in
5323   yes)
5324     if test "$ENABLE_DOXYGEN" = "0" ; then
5325       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5326 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5327    { (exit 1); exit 1; }; }
5328     fi
5329
5330     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5331 set dummy qhelpgenerator; ac_word=$2
5332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5335   echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337   case $QHELPGENERATOR in
5338   [\\/]* | ?:[\\/]*)
5339   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5340   ;;
5341   *)
5342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345   IFS=$as_save_IFS
5346   test -z "$as_dir" && as_dir=.
5347   for ac_exec_ext in '' $ac_executable_extensions; do
5348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5349     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351     break 2
5352   fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5358   ;;
5359 esac
5360 fi
5361 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5362 if test -n "$QHELPGENERATOR"; then
5363   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5364 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5365 else
5366   { echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6; }
5368 fi
5369
5370
5371
5372         llvm_doxygen_generate_qhp=YES
5373
5374     llvm_doxygen_qch_filename=org.llvm.qch
5375
5376     llvm_doxygen_qhp_namespace=org.llvm
5377
5378     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5379
5380     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5381
5382     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5383
5384
5385         clang_doxygen_generate_qhp=YES
5386
5387     clang_doxygen_qch_filename=org.llvm.clang.qch
5388
5389     clang_doxygen_qhp_namespace=org.llvm.clang
5390
5391     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5392
5393     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5394
5395     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5396
5397     ;;
5398
5399   no|default)
5400     llvm_doxygen_generate_qhp=NO
5401
5402
5403
5404
5405
5406
5407
5408     clang_doxygen_generate_qhp=NO
5409
5410
5411
5412
5413     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5414
5415     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5416
5417     ;;
5418
5419   *)
5420     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5421 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5422    { (exit 1); exit 1; }; } ;;
5423 esac
5424
5425 # Check whether --enable-threads was given.
5426 if test "${enable_threads+set}" = set; then
5427   enableval=$enable_threads;
5428 else
5429   enableval=default
5430 fi
5431
5432 case "$enableval" in
5433   yes) LLVM_ENABLE_THREADS=1
5434  ;;
5435   no)  LLVM_ENABLE_THREADS=0
5436  ;;
5437   default) LLVM_ENABLE_THREADS=1
5438  ;;
5439   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5440 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5441    { (exit 1); exit 1; }; } ;;
5442 esac
5443
5444 cat >>confdefs.h <<_ACEOF
5445 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5446 _ACEOF
5447
5448
5449 # Check whether --enable-pthreads was given.
5450 if test "${enable_pthreads+set}" = set; then
5451   enableval=$enable_pthreads;
5452 else
5453   enableval=default
5454 fi
5455
5456 case "$enableval" in
5457   yes) ENABLE_PTHREADS=1
5458  ;;
5459   no)  ENABLE_PTHREADS=0
5460  ;;
5461   default) ENABLE_PTHREADS=1
5462  ;;
5463   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5465    { (exit 1); exit 1; }; } ;;
5466 esac
5467
5468 # Check whether --enable-zlib was given.
5469 if test "${enable_zlib+set}" = set; then
5470   enableval=$enable_zlib;
5471 else
5472   enableval=default
5473 fi
5474
5475 case "$enableval" in
5476   yes) LLVM_ENABLE_ZLIB=1
5477  ;;
5478   no)  LLVM_ENABLE_ZLIB=0
5479  ;;
5480   default) LLVM_ENABLE_ZLIB=1
5481  ;;
5482   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5483 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5484    { (exit 1); exit 1; }; } ;;
5485 esac
5486
5487 cat >>confdefs.h <<_ACEOF
5488 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5489 _ACEOF
5490
5491
5492 # Check whether --enable-pic was given.
5493 if test "${enable_pic+set}" = set; then
5494   enableval=$enable_pic;
5495 else
5496   enableval=default
5497 fi
5498
5499 case "$enableval" in
5500   yes) ENABLE_PIC=1
5501  ;;
5502   no)  ENABLE_PIC=0
5503  ;;
5504   default) ENABLE_PIC=1
5505  ;;
5506   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5508    { (exit 1); exit 1; }; } ;;
5509 esac
5510
5511 cat >>confdefs.h <<_ACEOF
5512 #define ENABLE_PIC $ENABLE_PIC
5513 _ACEOF
5514
5515
5516 # Check whether --enable-shared was given.
5517 if test "${enable_shared+set}" = set; then
5518   enableval=$enable_shared;
5519 else
5520   enableval=default
5521 fi
5522
5523 case "$enableval" in
5524   yes) ENABLE_SHARED=1
5525  ;;
5526   no)  ENABLE_SHARED=0
5527  ;;
5528   default) ENABLE_SHARED=0
5529  ;;
5530   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5532    { (exit 1); exit 1; }; } ;;
5533 esac
5534
5535 # Check whether --enable-embed-stdcxx was given.
5536 if test "${enable_embed_stdcxx+set}" = set; then
5537   enableval=$enable_embed_stdcxx;
5538 else
5539   enableval=default
5540 fi
5541
5542 case "$enableval" in
5543   yes) ENABLE_EMBED_STDCXX=1
5544  ;;
5545   no)  ENABLE_EMBED_STDCXX=0
5546  ;;
5547   default) ENABLE_EMBED_STDCXX=0
5548  ;;
5549   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5550 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5551    { (exit 1); exit 1; }; } ;;
5552 esac
5553
5554 # Check whether --enable-timestamps was given.
5555 if test "${enable_timestamps+set}" = set; then
5556   enableval=$enable_timestamps;
5557 else
5558   enableval=default
5559 fi
5560
5561 case "$enableval" in
5562   yes) ENABLE_TIMESTAMPS=1
5563  ;;
5564   no)  ENABLE_TIMESTAMPS=0
5565  ;;
5566   default) ENABLE_TIMESTAMPS=1
5567  ;;
5568   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5569 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5570    { (exit 1); exit 1; }; } ;;
5571 esac
5572
5573 cat >>confdefs.h <<_ACEOF
5574 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5575 _ACEOF
5576
5577
5578 # Check whether --enable-backtraces was given.
5579 if test "${enable_backtraces+set}" = set; then
5580   enableval=$enable_backtraces; case "$enableval" in
5581     yes) llvm_cv_enable_backtraces="yes" ;;
5582     no)  llvm_cv_enable_backtraces="no"  ;;
5583     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5584 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5585    { (exit 1); exit 1; }; } ;;
5586   esac
5587 else
5588   llvm_cv_enable_backtraces="yes"
5589 fi
5590
5591 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5592
5593 cat >>confdefs.h <<\_ACEOF
5594 #define ENABLE_BACKTRACES 1
5595 _ACEOF
5596
5597 fi
5598
5599 # Check whether --enable-crash-overrides was given.
5600 if test "${enable_crash_overrides+set}" = set; then
5601   enableval=$enable_crash_overrides; case "$enableval" in
5602     yes) llvm_cv_enable_crash_overrides="yes" ;;
5603     no)  llvm_cv_enable_crash_overrides="no"  ;;
5604     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5605 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5606    { (exit 1); exit 1; }; } ;;
5607   esac
5608 else
5609   llvm_cv_enable_crash_overrides="yes"
5610 fi
5611
5612 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5613
5614 cat >>confdefs.h <<\_ACEOF
5615 #define ENABLE_CRASH_OVERRIDES 1
5616 _ACEOF
5617
5618 fi
5619
5620 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5621 ALL_TARGETS=$ALL_TARGETS
5622
5623
5624 TARGETS_TO_BUILD=""
5625 # Check whether --enable-targets was given.
5626 if test "${enable_targets+set}" = set; then
5627   enableval=$enable_targets;
5628 else
5629   enableval=all
5630 fi
5631
5632 if test "$enableval" = host-only ; then
5633   enableval=host
5634 fi
5635 case "$enableval" in
5636   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5637   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5638       case "$a_target" in
5639         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5640         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5641         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5642         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5643         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5644         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5645         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5646         bpf)      TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5647         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5648         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5652         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5653         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5654         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5655         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5656         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5657         amdgpu)   TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5658         r600)     TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5659         wasm)     TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5660         host) case "$llvm_cv_target_arch" in
5661             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5664             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5665             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5666             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5667             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5668             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5669             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5670             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5671             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5672             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5673             WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5674             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5675 echo "$as_me: error: Can not set target to build" >&2;}
5676    { (exit 1); exit 1; }; } ;;
5677           esac ;;
5678         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5679 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5680    { (exit 1); exit 1; }; } ;;
5681       esac
5682   done
5683   ;;
5684 esac
5685
5686 # Check whether --enable-experimental-targets was given.
5687 if test "${enable_experimental_targets+set}" = set; then
5688   enableval=$enable_experimental_targets;
5689 else
5690   enableval=disable
5691 fi
5692
5693
5694 if test ${enableval} != "disable"
5695 then
5696   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5697 fi
5698
5699 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5700
5701
5702 for a_target in $TARGETS_TO_BUILD; do
5703   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5704
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5707 _ACEOF
5708
5709     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5710     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5711     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5712     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5713     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5714       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5715     fi
5716     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5717       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5718     fi
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5722 _ACEOF
5723
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5727 _ACEOF
5728
5729
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5732 _ACEOF
5733
5734
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5737 _ACEOF
5738
5739     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5743 _ACEOF
5744
5745     fi
5746     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5750 _ACEOF
5751
5752     fi
5753   fi
5754 done
5755
5756 LLVM_ENUM_TARGETS=""
5757 LLVM_ENUM_ASM_PRINTERS=""
5758 LLVM_ENUM_ASM_PARSERS=""
5759 LLVM_ENUM_DISASSEMBLERS=""
5760 for target_to_build in $TARGETS_TO_BUILD; do
5761   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5762   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5763     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5764   fi
5765   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5766     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5767   fi
5768   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5769     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5770   fi
5771 done
5772
5773
5774
5775
5776
5777
5778 # Check whether --with-optimize-option was given.
5779 if test "${with_optimize_option+set}" = set; then
5780   withval=$with_optimize_option;
5781 else
5782   withval=default
5783 fi
5784
5785 { echo "$as_me:$LINENO: checking optimization flags" >&5
5786 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5787 case "$withval" in
5788   default)
5789     case "$llvm_cv_os_type" in
5790     FreeBSD) optimize_option=-O2 ;;
5791     MingW) optimize_option=-O2 ;;
5792     *)     optimize_option=-O3 ;;
5793     esac ;;
5794   *) optimize_option="$withval" ;;
5795 esac
5796 OPTIMIZE_OPTION=$optimize_option
5797
5798 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5799 echo "${ECHO_T}$optimize_option" >&6; }
5800
5801
5802 # Check whether --with-extra-options was given.
5803 if test "${with_extra_options+set}" = set; then
5804   withval=$with_extra_options;
5805 else
5806   withval=default
5807 fi
5808
5809 case "$withval" in
5810   default) EXTRA_OPTIONS= ;;
5811   *) EXTRA_OPTIONS=$withval ;;
5812 esac
5813 EXTRA_OPTIONS=$EXTRA_OPTIONS
5814
5815
5816
5817 # Check whether --with-extra-ld-options was given.
5818 if test "${with_extra_ld_options+set}" = set; then
5819   withval=$with_extra_ld_options;
5820 else
5821   withval=default
5822 fi
5823
5824 case "$withval" in
5825   default) EXTRA_LD_OPTIONS= ;;
5826   *) EXTRA_LD_OPTIONS=$withval ;;
5827 esac
5828 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5829
5830
5831 # Check whether --enable-bindings was given.
5832 if test "${enable_bindings+set}" = set; then
5833   enableval=$enable_bindings;
5834 else
5835   enableval=default
5836 fi
5837
5838 BINDINGS_TO_BUILD=""
5839 case "$enableval" in
5840   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5841   all ) BINDINGS_TO_BUILD="ocaml" ;;
5842   none | no) BINDINGS_TO_BUILD="" ;;
5843   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5844       case "$a_binding" in
5845         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5846         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5847 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5848    { (exit 1); exit 1; }; } ;;
5849       esac
5850   done
5851   ;;
5852 esac
5853
5854
5855 # Check whether --with-ocaml-libdir was given.
5856 if test "${with_ocaml_libdir+set}" = set; then
5857   withval=$with_ocaml_libdir;
5858 else
5859   withval=auto
5860 fi
5861
5862 case "$withval" in
5863   auto) with_ocaml_libdir="$withval" ;;
5864   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5865   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5866 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5867    { (exit 1); exit 1; }; } ;;
5868 esac
5869
5870
5871 # Check whether --with-clang-srcdir was given.
5872 if test "${with_clang_srcdir+set}" = set; then
5873   withval=$with_clang_srcdir;
5874 else
5875   withval="-"
5876 fi
5877
5878 case "$withval" in
5879   -) clang_src_root="" ;;
5880   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5881   *) clang_src_root="$ac_pwd/$withval" ;;
5882 esac
5883 CLANG_SRC_ROOT=$clang_src_root
5884
5885
5886
5887 # Check whether --with-clang-resource-dir was given.
5888 if test "${with_clang_resource_dir+set}" = set; then
5889   withval=$with_clang_resource_dir;
5890 else
5891   withval=""
5892 fi
5893
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define CLANG_RESOURCE_DIR "$withval"
5897 _ACEOF
5898
5899
5900
5901 # Check whether --with-c-include-dirs was given.
5902 if test "${with_c_include_dirs+set}" = set; then
5903   withval=$with_c_include_dirs;
5904 else
5905   withval=""
5906 fi
5907
5908
5909 cat >>confdefs.h <<_ACEOF
5910 #define C_INCLUDE_DIRS "$withval"
5911 _ACEOF
5912
5913
5914 # Clang normally uses the system c++ headers and libraries. With this option,
5915 # clang will use the ones provided by a gcc installation instead. This option should
5916 # be passed the same value that was used with --prefix when configuring gcc.
5917
5918 # Check whether --with-gcc-toolchain was given.
5919 if test "${with_gcc_toolchain+set}" = set; then
5920   withval=$with_gcc_toolchain;
5921 else
5922   withval=""
5923 fi
5924
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define GCC_INSTALL_PREFIX "$withval"
5928 _ACEOF
5929
5930
5931
5932 # Check whether --with-default-sysroot was given.
5933 if test "${with_default_sysroot+set}" = set; then
5934   withval=$with_default_sysroot;
5935 else
5936   withval=""
5937 fi
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define DEFAULT_SYSROOT "$withval"
5942 _ACEOF
5943
5944
5945
5946 # Check whether --with-clang-default-openmp-runtime was given.
5947 if test "${with_clang_default_openmp_runtime+set}" = set; then
5948   withval=$with_clang_default_openmp_runtime;
5949 else
5950   withval="libgomp"
5951 fi
5952
5953
5954 cat >>confdefs.h <<_ACEOF
5955 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5956 _ACEOF
5957
5958
5959
5960 # Check whether --with-binutils-include was given.
5961 if test "${with_binutils_include+set}" = set; then
5962   withval=$with_binutils_include;
5963 else
5964   withval=default
5965 fi
5966
5967 case "$withval" in
5968   default) WITH_BINUTILS_INCDIR=default ;;
5969   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5970   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5971 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5972    { (exit 1); exit 1; }; } ;;
5973 esac
5974 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5975   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5976
5977   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5978      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5979      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5980 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5981    { (exit 1); exit 1; }; };
5982   fi
5983 fi
5984
5985
5986 # Check whether --with-bug-report-url was given.
5987 if test "${with_bug_report_url+set}" = set; then
5988   withval=$with_bug_report_url;
5989 else
5990   withval="http://llvm.org/bugs/"
5991 fi
5992
5993
5994 cat >>confdefs.h <<_ACEOF
5995 #define BUG_REPORT_URL "$withval"
5996 _ACEOF
5997
5998
5999 # Check whether --enable-terminfo was given.
6000 if test "${enable_terminfo+set}" = set; then
6001   enableval=$enable_terminfo; case "$enableval" in
6002     yes) llvm_cv_enable_terminfo="yes" ;;
6003     no)  llvm_cv_enable_terminfo="no"  ;;
6004     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6005 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6006    { (exit 1); exit 1; }; } ;;
6007   esac
6008 else
6009   llvm_cv_enable_terminfo="yes"
6010 fi
6011
6012 case "$llvm_cv_enable_terminfo" in
6013   yes) ENABLE_TERMINFO=1
6014  ;;
6015   no)  ENABLE_TERMINFO=0
6016  ;;
6017 esac
6018
6019 # Check whether --enable-libedit was given.
6020 if test "${enable_libedit+set}" = set; then
6021   enableval=$enable_libedit; case "$enableval" in
6022     yes) llvm_cv_enable_libedit="yes" ;;
6023     no)  llvm_cv_enable_libedit="no"  ;;
6024     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6025 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6026    { (exit 1); exit 1; }; } ;;
6027   esac
6028 else
6029   llvm_cv_enable_libedit="yes"
6030 fi
6031
6032
6033 # Check whether --enable-libffi was given.
6034 if test "${enable_libffi+set}" = set; then
6035   enableval=$enable_libffi; case "$enableval" in
6036     yes) llvm_cv_enable_libffi="yes" ;;
6037     no)  llvm_cv_enable_libffi="no"  ;;
6038     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6039 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6040    { (exit 1); exit 1; }; } ;;
6041   esac
6042 else
6043   llvm_cv_enable_libffi=no
6044 fi
6045
6046
6047
6048 # Check whether --with-internal-prefix was given.
6049 if test "${with_internal_prefix+set}" = set; then
6050   withval=$with_internal_prefix;
6051 else
6052   withval=""
6053 fi
6054
6055 INTERNAL_PREFIX=$withval
6056
6057
6058
6059 { echo "$as_me:$LINENO: checking for GNU make" >&5
6060 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6061 if test "${llvm_cv_gnu_make_command+set}" = set; then
6062   echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064   llvm_cv_gnu_make_command=''
6065  for a in "$MAKE" make gmake gnumake ; do
6066   if test -z "$a" ; then continue ; fi ;
6067   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6068   then
6069    llvm_cv_gnu_make_command=$a ;
6070    break;
6071   fi
6072  done
6073 fi
6074 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6075 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6076  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6077    ifGNUmake='' ;
6078  else
6079    ifGNUmake='#' ;
6080    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6081 echo "${ECHO_T}\"Not found\"" >&6; };
6082  fi
6083
6084
6085 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6086 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6087 LN_S=$as_ln_s
6088 if test "$LN_S" = "ln -s"; then
6089   { echo "$as_me:$LINENO: result: yes" >&5
6090 echo "${ECHO_T}yes" >&6; }
6091 else
6092   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6093 echo "${ECHO_T}no, using $LN_S" >&6; }
6094 fi
6095
6096 # Extract the first word of "nm", so it can be a program name with args.
6097 set dummy nm; ac_word=$2
6098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 if test "${ac_cv_path_NM+set}" = set; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103   case $NM in
6104   [\\/]* | ?:[\\/]*)
6105   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6106   ;;
6107   *)
6108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113   for ac_exec_ext in '' $ac_executable_extensions; do
6114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6115     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6124   ;;
6125 esac
6126 fi
6127 NM=$ac_cv_path_NM
6128 if test -n "$NM"; then
6129   { echo "$as_me:$LINENO: result: $NM" >&5
6130 echo "${ECHO_T}$NM" >&6; }
6131 else
6132   { echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6; }
6134 fi
6135
6136
6137 # Extract the first word of "cmp", so it can be a program name with args.
6138 set dummy cmp; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_path_CMP+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   case $CMP in
6145   [\\/]* | ?:[\\/]*)
6146   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6147   ;;
6148   *)
6149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   test -z "$as_dir" && as_dir=.
6154   for ac_exec_ext in '' $ac_executable_extensions; do
6155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158     break 2
6159   fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6165   ;;
6166 esac
6167 fi
6168 CMP=$ac_cv_path_CMP
6169 if test -n "$CMP"; then
6170   { echo "$as_me:$LINENO: result: $CMP" >&5
6171 echo "${ECHO_T}$CMP" >&6; }
6172 else
6173   { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6175 fi
6176
6177
6178 # Extract the first word of "cp", so it can be a program name with args.
6179 set dummy cp; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_path_CP+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   case $CP in
6186   [\\/]* | ?:[\\/]*)
6187   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6188   ;;
6189   *)
6190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195   for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6206   ;;
6207 esac
6208 fi
6209 CP=$ac_cv_path_CP
6210 if test -n "$CP"; then
6211   { echo "$as_me:$LINENO: result: $CP" >&5
6212 echo "${ECHO_T}$CP" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218
6219 # Extract the first word of "date", so it can be a program name with args.
6220 set dummy date; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_DATE+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   case $DATE in
6227   [\\/]* | ?:[\\/]*)
6228   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6229   ;;
6230   *)
6231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236   for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6247   ;;
6248 esac
6249 fi
6250 DATE=$ac_cv_path_DATE
6251 if test -n "$DATE"; then
6252   { echo "$as_me:$LINENO: result: $DATE" >&5
6253 echo "${ECHO_T}$DATE" >&6; }
6254 else
6255   { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6257 fi
6258
6259
6260 # Extract the first word of "find", so it can be a program name with args.
6261 set dummy find; ac_word=$2
6262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264 if test "${ac_cv_path_FIND+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   case $FIND in
6268   [\\/]* | ?:[\\/]*)
6269   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6270   ;;
6271   *)
6272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275   IFS=$as_save_IFS
6276   test -z "$as_dir" && as_dir=.
6277   for ac_exec_ext in '' $ac_executable_extensions; do
6278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281     break 2
6282   fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6288   ;;
6289 esac
6290 fi
6291 FIND=$ac_cv_path_FIND
6292 if test -n "$FIND"; then
6293   { echo "$as_me:$LINENO: result: $FIND" >&5
6294 echo "${ECHO_T}$FIND" >&6; }
6295 else
6296   { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6298 fi
6299
6300
6301 # Extract the first word of "grep", so it can be a program name with args.
6302 set dummy grep; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_GREP+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   case $GREP in
6309   [\\/]* | ?:[\\/]*)
6310   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6311   ;;
6312   *)
6313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6329   ;;
6330 esac
6331 fi
6332 GREP=$ac_cv_path_GREP
6333 if test -n "$GREP"; then
6334   { echo "$as_me:$LINENO: result: $GREP" >&5
6335 echo "${ECHO_T}$GREP" >&6; }
6336 else
6337   { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6339 fi
6340
6341
6342 # Extract the first word of "mkdir", so it can be a program name with args.
6343 set dummy mkdir; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_path_MKDIR+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   case $MKDIR in
6350   [\\/]* | ?:[\\/]*)
6351   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6352   ;;
6353   *)
6354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359   for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6370   ;;
6371 esac
6372 fi
6373 MKDIR=$ac_cv_path_MKDIR
6374 if test -n "$MKDIR"; then
6375   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6376 echo "${ECHO_T}$MKDIR" >&6; }
6377 else
6378   { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6380 fi
6381
6382
6383 # Extract the first word of "mv", so it can be a program name with args.
6384 set dummy mv; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_path_MV+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   case $MV in
6391   [\\/]* | ?:[\\/]*)
6392   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6393   ;;
6394   *)
6395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400   for ac_exec_ext in '' $ac_executable_extensions; do
6401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6402     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407 done
6408 IFS=$as_save_IFS
6409
6410   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6411   ;;
6412 esac
6413 fi
6414 MV=$ac_cv_path_MV
6415 if test -n "$MV"; then
6416   { echo "$as_me:$LINENO: result: $MV" >&5
6417 echo "${ECHO_T}$MV" >&6; }
6418 else
6419   { echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6; }
6421 fi
6422
6423
6424 if test -n "$ac_tool_prefix"; then
6425   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429 if test "${ac_cv_prog_RANLIB+set}" = set; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   if test -n "$RANLIB"; then
6433   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440   for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447 done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 RANLIB=$ac_cv_prog_RANLIB
6453 if test -n "$RANLIB"; then
6454   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6455 echo "${ECHO_T}$RANLIB" >&6; }
6456 else
6457   { echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6; }
6459 fi
6460
6461
6462 fi
6463 if test -z "$ac_cv_prog_RANLIB"; then
6464   ac_ct_RANLIB=$RANLIB
6465   # Extract the first word of "ranlib", so it can be a program name with args.
6466 set dummy ranlib; ac_word=$2
6467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   if test -n "$ac_ct_RANLIB"; then
6473   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_prog_ac_ct_RANLIB="ranlib"
6483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6493 if test -n "$ac_ct_RANLIB"; then
6494   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6495 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6496 else
6497   { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6499 fi
6500
6501   if test "x$ac_ct_RANLIB" = x; then
6502     RANLIB=":"
6503   else
6504     case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6507 whose name does not start with the host triplet.  If you think this
6508 configuration is useful to you, please write to autoconf@gnu.org." >&5
6509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet.  If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6512 ac_tool_warned=yes ;;
6513 esac
6514     RANLIB=$ac_ct_RANLIB
6515   fi
6516 else
6517   RANLIB="$ac_cv_prog_RANLIB"
6518 fi
6519
6520 if test -n "$ac_tool_prefix"; then
6521   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}ar; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_prog_AR+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   if test -n "$AR"; then
6529   ac_cv_prog_AR="$AR" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536   for ac_exec_ext in '' $ac_executable_extensions; do
6537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538     ac_cv_prog_AR="${ac_tool_prefix}ar"
6539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi
6547 fi
6548 AR=$ac_cv_prog_AR
6549 if test -n "$AR"; then
6550   { echo "$as_me:$LINENO: result: $AR" >&5
6551 echo "${ECHO_T}$AR" >&6; }
6552 else
6553   { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6555 fi
6556
6557
6558 fi
6559 if test -z "$ac_cv_prog_AR"; then
6560   ac_ct_AR=$AR
6561   # Extract the first word of "ar", so it can be a program name with args.
6562 set dummy ar; ac_word=$2
6563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   if test -n "$ac_ct_AR"; then
6569   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576   for ac_exec_ext in '' $ac_executable_extensions; do
6577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578     ac_cv_prog_ac_ct_AR="ar"
6579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6589 if test -n "$ac_ct_AR"; then
6590   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6591 echo "${ECHO_T}$ac_ct_AR" >&6; }
6592 else
6593   { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6595 fi
6596
6597   if test "x$ac_ct_AR" = x; then
6598     AR="false"
6599   else
6600     case $cross_compiling:$ac_tool_warned in
6601 yes:)
6602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6603 whose name does not start with the host triplet.  If you think this
6604 configuration is useful to you, please write to autoconf@gnu.org." >&5
6605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet.  If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6608 ac_tool_warned=yes ;;
6609 esac
6610     AR=$ac_ct_AR
6611   fi
6612 else
6613   AR="$ac_cv_prog_AR"
6614 fi
6615
6616 # Extract the first word of "rm", so it can be a program name with args.
6617 set dummy rm; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_path_RM+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   case $RM in
6624   [\\/]* | ?:[\\/]*)
6625   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6626   ;;
6627   *)
6628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633   for ac_exec_ext in '' $ac_executable_extensions; do
6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640 done
6641 IFS=$as_save_IFS
6642
6643   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6644   ;;
6645 esac
6646 fi
6647 RM=$ac_cv_path_RM
6648 if test -n "$RM"; then
6649   { echo "$as_me:$LINENO: result: $RM" >&5
6650 echo "${ECHO_T}$RM" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 # Extract the first word of "sed", so it can be a program name with args.
6658 set dummy sed; ac_word=$2
6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661 if test "${ac_cv_path_SED+set}" = set; then
6662   echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664   case $SED in
6665   [\\/]* | ?:[\\/]*)
6666   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6667   ;;
6668   *)
6669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672   IFS=$as_save_IFS
6673   test -z "$as_dir" && as_dir=.
6674   for ac_exec_ext in '' $ac_executable_extensions; do
6675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6676     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678     break 2
6679   fi
6680 done
6681 done
6682 IFS=$as_save_IFS
6683
6684   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6685   ;;
6686 esac
6687 fi
6688 SED=$ac_cv_path_SED
6689 if test -n "$SED"; then
6690   { echo "$as_me:$LINENO: result: $SED" >&5
6691 echo "${ECHO_T}$SED" >&6; }
6692 else
6693   { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697
6698 # Extract the first word of "tar", so it can be a program name with args.
6699 set dummy tar; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_TAR+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   case $TAR in
6706   [\\/]* | ?:[\\/]*)
6707   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6708   ;;
6709   *)
6710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715   for ac_exec_ext in '' $ac_executable_extensions; do
6716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6726   ;;
6727 esac
6728 fi
6729 TAR=$ac_cv_path_TAR
6730 if test -n "$TAR"; then
6731   { echo "$as_me:$LINENO: result: $TAR" >&5
6732 echo "${ECHO_T}$TAR" >&6; }
6733 else
6734   { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6736 fi
6737
6738
6739 # Extract the first word of "pwd", so it can be a program name with args.
6740 set dummy pwd; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_path_BINPWD+set}" = set; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   case $BINPWD in
6747   [\\/]* | ?:[\\/]*)
6748   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6749   ;;
6750   *)
6751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756   for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6767   ;;
6768 esac
6769 fi
6770 BINPWD=$ac_cv_path_BINPWD
6771 if test -n "$BINPWD"; then
6772   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6773 echo "${ECHO_T}$BINPWD" >&6; }
6774 else
6775   { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6777 fi
6778
6779
6780
6781 # Extract the first word of "dot", so it can be a program name with args.
6782 set dummy dot; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_DOT+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   case $DOT in
6789   [\\/]* | ?:[\\/]*)
6790   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6791   ;;
6792   *)
6793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6809   ;;
6810 esac
6811 fi
6812 DOT=$ac_cv_path_DOT
6813 if test -n "$DOT"; then
6814   { echo "$as_me:$LINENO: result: $DOT" >&5
6815 echo "${ECHO_T}$DOT" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822 if test "$DOT" != "echo dot" ; then
6823
6824 cat >>confdefs.h <<\_ACEOF
6825 #define HAVE_DOT 1
6826 _ACEOF
6827
6828     if test "$llvm_cv_os_type" = "MingW" ; then
6829     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6830   fi
6831
6832 cat >>confdefs.h <<_ACEOF
6833 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6834 _ACEOF
6835
6836 fi
6837
6838 # Find a good install program.  We prefer a C program (faster),
6839 # so one script is as good as another.  But avoid the broken or
6840 # incompatible versions:
6841 # SysV /etc/install, /usr/sbin/install
6842 # SunOS /usr/etc/install
6843 # IRIX /sbin/install
6844 # AIX /bin/install
6845 # AmigaOS /C/install, which installs bootblocks on floppy discs
6846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6849 # OS/2's system install, which has a completely different semantic
6850 # ./install, which can be erroneously created by make from ./install.sh.
6851 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6852 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6853 if test -z "$INSTALL"; then
6854 if test "${ac_cv_path_install+set}" = set; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862   # Account for people who put trailing slashes in PATH elements.
6863 case $as_dir/ in
6864   ./ | .// | /cC/* | \
6865   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6866   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6867   /usr/ucb/* ) ;;
6868   *)
6869     # OSF1 and SCO ODT 3.0 have their own names for install.
6870     # Don't use installbsd from OSF since it installs stuff as root
6871     # by default.
6872     for ac_prog in ginstall scoinst install; do
6873       for ac_exec_ext in '' $ac_executable_extensions; do
6874         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6875           if test $ac_prog = install &&
6876             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6877             # AIX install.  It has an incompatible calling convention.
6878             :
6879           elif test $ac_prog = install &&
6880             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6881             # program-specific install script used by HP pwplus--don't use.
6882             :
6883           else
6884             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6885             break 3
6886           fi
6887         fi
6888       done
6889     done
6890     ;;
6891 esac
6892 done
6893 IFS=$as_save_IFS
6894
6895
6896 fi
6897   if test "${ac_cv_path_install+set}" = set; then
6898     INSTALL=$ac_cv_path_install
6899   else
6900     # As a last resort, use the slow shell script.  Don't cache a
6901     # value for INSTALL within a source directory, because that will
6902     # break other packages using the cache if that directory is
6903     # removed, or if the value is a relative name.
6904     INSTALL=$ac_install_sh
6905   fi
6906 fi
6907 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6908 echo "${ECHO_T}$INSTALL" >&6; }
6909
6910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6911 # It thinks the first close brace ends the variable substitution.
6912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6913
6914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6915
6916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6917
6918 case "$INSTALL" in
6919  [\\/$]* | ?:[\\/]* ) ;;
6920  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6921 esac
6922
6923 # Extract the first word of "bzip2", so it can be a program name with args.
6924 set dummy bzip2; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_BZIP2+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   case $BZIP2 in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950   ;;
6951 esac
6952 fi
6953 BZIP2=$ac_cv_path_BZIP2
6954 if test -n "$BZIP2"; then
6955   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6956 echo "${ECHO_T}$BZIP2" >&6; }
6957 else
6958   { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6961
6962
6963 # Extract the first word of "cat", so it can be a program name with args.
6964 set dummy cat; ac_word=$2
6965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967 if test "${ac_cv_path_CAT+set}" = set; then
6968   echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970   case $CAT in
6971   [\\/]* | ?:[\\/]*)
6972   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6973   ;;
6974   *)
6975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980   for ac_exec_ext in '' $ac_executable_extensions; do
6981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990   ;;
6991 esac
6992 fi
6993 CAT=$ac_cv_path_CAT
6994 if test -n "$CAT"; then
6995   { echo "$as_me:$LINENO: result: $CAT" >&5
6996 echo "${ECHO_T}$CAT" >&6; }
6997 else
6998   { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7000 fi
7001
7002
7003 # Extract the first word of "doxygen", so it can be a program name with args.
7004 set dummy doxygen; ac_word=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7008   echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010   case $DOXYGEN in
7011   [\\/]* | ?:[\\/]*)
7012   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7013   ;;
7014   *)
7015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020   for ac_exec_ext in '' $ac_executable_extensions; do
7021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030   ;;
7031 esac
7032 fi
7033 DOXYGEN=$ac_cv_path_DOXYGEN
7034 if test -n "$DOXYGEN"; then
7035   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7036 echo "${ECHO_T}$DOXYGEN" >&6; }
7037 else
7038   { echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6; }
7040 fi
7041
7042
7043 # Extract the first word of "groff", so it can be a program name with args.
7044 set dummy groff; ac_word=$2
7045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047 if test "${ac_cv_path_GROFF+set}" = set; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   case $GROFF in
7051   [\\/]* | ?:[\\/]*)
7052   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7053   ;;
7054   *)
7055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060   for ac_exec_ext in '' $ac_executable_extensions; do
7061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070   ;;
7071 esac
7072 fi
7073 GROFF=$ac_cv_path_GROFF
7074 if test -n "$GROFF"; then
7075   { echo "$as_me:$LINENO: result: $GROFF" >&5
7076 echo "${ECHO_T}$GROFF" >&6; }
7077 else
7078   { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7080 fi
7081
7082
7083 # Extract the first word of "gzip", so it can be a program name with args.
7084 set dummy gzip; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   case $GZIPBIN in
7091   [\\/]* | ?:[\\/]*)
7092   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7093   ;;
7094   *)
7095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100   for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110   ;;
7111 esac
7112 fi
7113 GZIPBIN=$ac_cv_path_GZIPBIN
7114 if test -n "$GZIPBIN"; then
7115   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7116 echo "${ECHO_T}$GZIPBIN" >&6; }
7117 else
7118   { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7120 fi
7121
7122
7123 # Extract the first word of "pdfroff", so it can be a program name with args.
7124 set dummy pdfroff; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_PDFROFF+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   case $PDFROFF in
7131   [\\/]* | ?:[\\/]*)
7132   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7133   ;;
7134   *)
7135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150   ;;
7151 esac
7152 fi
7153 PDFROFF=$ac_cv_path_PDFROFF
7154 if test -n "$PDFROFF"; then
7155   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7156 echo "${ECHO_T}$PDFROFF" >&6; }
7157 else
7158   { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7160 fi
7161
7162
7163 # Extract the first word of "zip", so it can be a program name with args.
7164 set dummy zip; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_ZIP+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   case $ZIP in
7171   [\\/]* | ?:[\\/]*)
7172   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7173   ;;
7174   *)
7175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190   ;;
7191 esac
7192 fi
7193 ZIP=$ac_cv_path_ZIP
7194 if test -n "$ZIP"; then
7195   { echo "$as_me:$LINENO: result: $ZIP" >&5
7196 echo "${ECHO_T}$ZIP" >&6; }
7197 else
7198   { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7200 fi
7201
7202
7203 # Extract the first word of "go", so it can be a program name with args.
7204 set dummy go; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_GO+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   case $GO in
7211   [\\/]* | ?:[\\/]*)
7212   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7213   ;;
7214   *)
7215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230   ;;
7231 esac
7232 fi
7233 GO=$ac_cv_path_GO
7234 if test -n "$GO"; then
7235   { echo "$as_me:$LINENO: result: $GO" >&5
7236 echo "${ECHO_T}$GO" >&6; }
7237 else
7238   { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7240 fi
7241
7242
7243 for ac_prog in ocamlfind
7244 do
7245   # Extract the first word of "$ac_prog", so it can be a program name with args.
7246 set dummy $ac_prog; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   case $OCAMLFIND in
7253   [\\/]* | ?:[\\/]*)
7254   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7255   ;;
7256   *)
7257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262   for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272   ;;
7273 esac
7274 fi
7275 OCAMLFIND=$ac_cv_path_OCAMLFIND
7276 if test -n "$OCAMLFIND"; then
7277   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7278 echo "${ECHO_T}$OCAMLFIND" >&6; }
7279 else
7280   { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284
7285   test -n "$OCAMLFIND" && break
7286 done
7287
7288 for ac_prog in gas as
7289 do
7290   # Extract the first word of "$ac_prog", so it can be a program name with args.
7291 set dummy $ac_prog; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_path_GAS+set}" = set; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297   case $GAS in
7298   [\\/]* | ?:[\\/]*)
7299   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7300   ;;
7301   *)
7302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305   IFS=$as_save_IFS
7306   test -z "$as_dir" && as_dir=.
7307   for ac_exec_ext in '' $ac_executable_extensions; do
7308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311     break 2
7312   fi
7313 done
7314 done
7315 IFS=$as_save_IFS
7316
7317   ;;
7318 esac
7319 fi
7320 GAS=$ac_cv_path_GAS
7321 if test -n "$GAS"; then
7322   { echo "$as_me:$LINENO: result: $GAS" >&5
7323 echo "${ECHO_T}$GAS" >&6; }
7324 else
7325   { echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6; }
7327 fi
7328
7329
7330   test -n "$GAS" && break
7331 done
7332
7333
7334 { echo "$as_me:$LINENO: checking for linker version" >&5
7335 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7336 if test "${llvm_cv_link_version+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339
7340    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7341
7342    # Check for ld64.
7343    if (echo "$version_string" | grep -q "ld64"); then
7344      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7345    else
7346      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7347    fi
7348
7349 fi
7350 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7351 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7352
7353 cat >>confdefs.h <<_ACEOF
7354 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7355 _ACEOF
7356
7357
7358
7359
7360 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7361 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7362 if test "${llvm_cv_link_use_r+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365    ac_ext=c
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7370
7371   oldcflags="$CFLAGS"
7372   CFLAGS="$CFLAGS -Wl,-R."
7373   cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h.  */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h.  */
7379
7380 int
7381 main ()
7382 {
7383
7384   ;
7385   return 0;
7386 }
7387 _ACEOF
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (ac_try="$ac_link"
7390 case "(($ac_try" in
7391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392   *) ac_try_echo=$ac_try;;
7393 esac
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395   (eval "$ac_link") 2>conftest.er1
7396   ac_status=$?
7397   grep -v '^ *+' conftest.er1 >conftest.err
7398   rm -f conftest.er1
7399   cat conftest.err >&5
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); } &&
7402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7403   { (case "(($ac_try" in
7404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405   *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408   (eval "$ac_try") 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); }; } &&
7412          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7422   llvm_cv_link_use_r=yes
7423 else
7424   echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427         llvm_cv_link_use_r=no
7428 fi
7429
7430 rm -f core conftest.err conftest.$ac_objext \
7431       conftest$ac_exeext conftest.$ac_ext
7432   CFLAGS="$oldcflags"
7433   ac_ext=c
7434 ac_cpp='$CPP $CPPFLAGS'
7435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438
7439
7440 fi
7441 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7442 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7443 if test "$llvm_cv_link_use_r" = yes ; then
7444
7445 cat >>confdefs.h <<\_ACEOF
7446 #define HAVE_LINK_R 1
7447 _ACEOF
7448
7449   fi
7450
7451
7452 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7453 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7454 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457    ac_ext=c
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462
7463   oldcflags="$CFLAGS"
7464   CFLAGS="$CFLAGS -rdynamic"
7465   cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h.  */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h.  */
7471
7472 int
7473 main ()
7474 {
7475
7476   ;
7477   return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7482 case "(($ac_try" in
7483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484   *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487   (eval "$ac_link") 2>conftest.er1
7488   ac_status=$?
7489   grep -v '^ *+' conftest.er1 >conftest.err
7490   rm -f conftest.er1
7491   cat conftest.err >&5
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); } &&
7494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7495   { (case "(($ac_try" in
7496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497   *) ac_try_echo=$ac_try;;
7498 esac
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500   (eval "$ac_try") 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }; } &&
7504          { ac_try='test -s conftest$ac_exeext'
7505   { (case "(($ac_try" in
7506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507   *) ac_try_echo=$ac_try;;
7508 esac
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510   (eval "$ac_try") 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); }; }; then
7514   llvm_cv_link_use_export_dynamic=yes
7515 else
7516   echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519         llvm_cv_link_use_export_dynamic=no
7520 fi
7521
7522 rm -f core conftest.err conftest.$ac_objext \
7523       conftest$ac_exeext conftest.$ac_ext
7524   CFLAGS="$oldcflags"
7525   ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530
7531
7532 fi
7533 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7534 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7535 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7536
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_LINK_EXPORT_DYNAMIC 1
7539 _ACEOF
7540
7541   fi
7542
7543
7544 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7545 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7546 if test "${llvm_cv_link_use_version_script+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549    ac_ext=c
7550 ac_cpp='$CPP $CPPFLAGS'
7551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7554
7555   oldcflags="$CFLAGS"
7556
7557   # The following code is from the autoconf manual,
7558   # "11.13: Limitations of Usual Tools".
7559   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7560   # Use mktemp if possible; otherwise fall back on mkdir,
7561   # with $RANDOM to make collisions less likely.
7562   : ${TMPDIR=/tmp}
7563   {
7564     tmp=`
7565       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7566     ` &&
7567     test -n "$tmp" && test -d "$tmp"
7568   } || {
7569     tmp=$TMPDIR/foo$$-$RANDOM
7570     (umask 077 && mkdir "$tmp")
7571   } || exit $?
7572
7573   echo "{" > "$tmp/export.map"
7574   echo "  global: main;" >> "$tmp/export.map"
7575   echo "  local: *;" >> "$tmp/export.map"
7576   echo "};" >> "$tmp/export.map"
7577
7578   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7579   cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h.  */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h.  */
7585
7586 int
7587 main ()
7588 {
7589
7590   ;
7591   return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (ac_try="$ac_link"
7596 case "(($ac_try" in
7597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598   *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601   (eval "$ac_link") 2>conftest.er1
7602   ac_status=$?
7603   grep -v '^ *+' conftest.er1 >conftest.err
7604   rm -f conftest.er1
7605   cat conftest.err >&5
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } &&
7608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7609   { (case "(($ac_try" in
7610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611   *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614   (eval "$ac_try") 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; } &&
7618          { ac_try='test -s conftest$ac_exeext'
7619   { (case "(($ac_try" in
7620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621   *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624   (eval "$ac_try") 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   llvm_cv_link_use_version_script=yes
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633         llvm_cv_link_use_version_script=no
7634 fi
7635
7636 rm -f core conftest.err conftest.$ac_objext \
7637       conftest$ac_exeext conftest.$ac_ext
7638   rm "$tmp/export.map"
7639   rmdir "$tmp"
7640   CFLAGS="$oldcflags"
7641   ac_ext=c
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646
7647
7648 fi
7649 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7650 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7651 if test "$llvm_cv_link_use_version_script" = yes ; then
7652   HAVE_LINK_VERSION_SCRIPT=1
7653
7654   fi
7655
7656
7657
7658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7660 if test "${ac_cv_path_GREP+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   # Extract the first word of "grep ggrep" to use in msg output
7664 if test -z "$GREP"; then
7665 set dummy grep ggrep; ac_prog_name=$2
7666 if test "${ac_cv_path_GREP+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   ac_path_GREP_found=false
7670 # Loop through the user's path and test for each of PROGNAME-LIST
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_prog in grep ggrep; do
7677   for ac_exec_ext in '' $ac_executable_extensions; do
7678     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7679     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7680     # Check for GNU ac_path_GREP and select it if it is found.
7681   # Check for GNU $ac_path_GREP
7682 case `"$ac_path_GREP" --version 2>&1` in
7683 *GNU*)
7684   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7685 *)
7686   ac_count=0
7687   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7688   while :
7689   do
7690     cat "conftest.in" "conftest.in" >"conftest.tmp"
7691     mv "conftest.tmp" "conftest.in"
7692     cp "conftest.in" "conftest.nl"
7693     echo 'GREP' >> "conftest.nl"
7694     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7696     ac_count=`expr $ac_count + 1`
7697     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7698       # Best one so far, save it but keep looking for a better one
7699       ac_cv_path_GREP="$ac_path_GREP"
7700       ac_path_GREP_max=$ac_count
7701     fi
7702     # 10*(2^10) chars as input seems more than enough
7703     test $ac_count -gt 10 && break
7704   done
7705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7706 esac
7707
7708
7709     $ac_path_GREP_found && break 3
7710   done
7711 done
7712
7713 done
7714 IFS=$as_save_IFS
7715
7716
7717 fi
7718
7719 GREP="$ac_cv_path_GREP"
7720 if test -z "$GREP"; then
7721   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7723    { (exit 1); exit 1; }; }
7724 fi
7725
7726 else
7727   ac_cv_path_GREP=$GREP
7728 fi
7729
7730
7731 fi
7732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7734  GREP="$ac_cv_path_GREP"
7735
7736
7737 { echo "$as_me:$LINENO: checking for egrep" >&5
7738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7739 if test "${ac_cv_path_EGREP+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7743    then ac_cv_path_EGREP="$GREP -E"
7744    else
7745      # Extract the first word of "egrep" to use in msg output
7746 if test -z "$EGREP"; then
7747 set dummy egrep; ac_prog_name=$2
7748 if test "${ac_cv_path_EGREP+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   ac_path_EGREP_found=false
7752 # Loop through the user's path and test for each of PROGNAME-LIST
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_prog in egrep; do
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7761     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7762     # Check for GNU ac_path_EGREP and select it if it is found.
7763   # Check for GNU $ac_path_EGREP
7764 case `"$ac_path_EGREP" --version 2>&1` in
7765 *GNU*)
7766   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7767 *)
7768   ac_count=0
7769   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7770   while :
7771   do
7772     cat "conftest.in" "conftest.in" >"conftest.tmp"
7773     mv "conftest.tmp" "conftest.in"
7774     cp "conftest.in" "conftest.nl"
7775     echo 'EGREP' >> "conftest.nl"
7776     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7777     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7778     ac_count=`expr $ac_count + 1`
7779     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7780       # Best one so far, save it but keep looking for a better one
7781       ac_cv_path_EGREP="$ac_path_EGREP"
7782       ac_path_EGREP_max=$ac_count
7783     fi
7784     # 10*(2^10) chars as input seems more than enough
7785     test $ac_count -gt 10 && break
7786   done
7787   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7788 esac
7789
7790
7791     $ac_path_EGREP_found && break 3
7792   done
7793 done
7794
7795 done
7796 IFS=$as_save_IFS
7797
7798
7799 fi
7800
7801 EGREP="$ac_cv_path_EGREP"
7802 if test -z "$EGREP"; then
7803   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7805    { (exit 1); exit 1; }; }
7806 fi
7807
7808 else
7809   ac_cv_path_EGREP=$EGREP
7810 fi
7811
7812
7813    fi
7814 fi
7815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7817  EGREP="$ac_cv_path_EGREP"
7818
7819
7820 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7822 if test "${ac_cv_header_stdc+set}" = set; then
7823   echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825   cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831 #include <stdlib.h>
7832 #include <stdarg.h>
7833 #include <string.h>
7834 #include <float.h>
7835
7836 int
7837 main ()
7838 {
7839
7840   ;
7841   return 0;
7842 }
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   ac_cv_header_stdc=yes
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883         ac_cv_header_stdc=no
7884 fi
7885
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887
7888 if test $ac_cv_header_stdc = yes; then
7889   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7890   cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 #include <string.h>
7897
7898 _ACEOF
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900   $EGREP "memchr" >/dev/null 2>&1; then
7901   :
7902 else
7903   ac_cv_header_stdc=no
7904 fi
7905 rm -f conftest*
7906
7907 fi
7908
7909 if test $ac_cv_header_stdc = yes; then
7910   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911   cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h.  */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h.  */
7917 #include <stdlib.h>
7918
7919 _ACEOF
7920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7921   $EGREP "free" >/dev/null 2>&1; then
7922   :
7923 else
7924   ac_cv_header_stdc=no
7925 fi
7926 rm -f conftest*
7927
7928 fi
7929
7930 if test $ac_cv_header_stdc = yes; then
7931   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7932   if test "$cross_compiling" = yes; then
7933   :
7934 else
7935   cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h.  */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h.  */
7941 #include <ctype.h>
7942 #include <stdlib.h>
7943 #if ((' ' & 0x0FF) == 0x020)
7944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7946 #else
7947 # define ISLOWER(c) \
7948                    (('a' <= (c) && (c) <= 'i') \
7949                      || ('j' <= (c) && (c) <= 'r') \
7950                      || ('s' <= (c) && (c) <= 'z'))
7951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7952 #endif
7953
7954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7955 int
7956 main ()
7957 {
7958   int i;
7959   for (i = 0; i < 256; i++)
7960     if (XOR (islower (i), ISLOWER (i))
7961         || toupper (i) != TOUPPER (i))
7962       return 2;
7963   return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest$ac_exeext
7967 if { (ac_try="$ac_link"
7968 case "(($ac_try" in
7969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970   *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973   (eval "$ac_link") 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7977   { (case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_try") 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; }; then
7986   :
7987 else
7988   echo "$as_me: program exited with status $ac_status" >&5
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ( exit $ac_status )
7993 ac_cv_header_stdc=no
7994 fi
7995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7996 fi
7997
7998
7999 fi
8000 fi
8001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8003 if test $ac_cv_header_stdc = yes; then
8004
8005 cat >>confdefs.h <<\_ACEOF
8006 #define STDC_HEADERS 1
8007 _ACEOF
8008
8009 fi
8010
8011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8022                   inttypes.h stdint.h unistd.h
8023 do
8024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8028   echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030   cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h.  */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h.  */
8036 $ac_includes_default
8037
8038 #include <$ac_header>
8039 _ACEOF
8040 rm -f conftest.$ac_objext
8041 if { (ac_try="$ac_compile"
8042 case "(($ac_try" in
8043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044   *) ac_try_echo=$ac_try;;
8045 esac
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047   (eval "$ac_compile") 2>conftest.er1
8048   ac_status=$?
8049   grep -v '^ *+' conftest.er1 >conftest.err
8050   rm -f conftest.er1
8051   cat conftest.err >&5
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } &&
8054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055   { (case "(($ac_try" in
8056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057   *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060   (eval "$ac_try") 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; } &&
8064          { ac_try='test -s conftest.$ac_objext'
8065   { (case "(($ac_try" in
8066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067   *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070   (eval "$ac_try") 2>&5
8071   ac_status=$?
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); }; }; then
8074   eval "$as_ac_Header=yes"
8075 else
8076   echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079         eval "$as_ac_Header=no"
8080 fi
8081
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 fi
8084 ac_res=`eval echo '${'$as_ac_Header'}'`
8085                { echo "$as_me:$LINENO: result: $ac_res" >&5
8086 echo "${ECHO_T}$ac_res" >&6; }
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088   cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8090 _ACEOF
8091
8092 fi
8093
8094 done
8095
8096
8097
8098 for ac_header in errno.h
8099 do
8100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 fi
8107 ac_res=`eval echo '${'$as_ac_Header'}'`
8108                { echo "$as_me:$LINENO: result: $ac_res" >&5
8109 echo "${ECHO_T}$ac_res" >&6; }
8110 else
8111   # Is the header compilable?
8112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120 $ac_includes_default
8121 #include <$ac_header>
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (ac_try="$ac_compile"
8125 case "(($ac_try" in
8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127   *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130   (eval "$ac_compile") 2>conftest.er1
8131   ac_status=$?
8132   grep -v '^ *+' conftest.er1 >conftest.err
8133   rm -f conftest.er1
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } &&
8137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8138   { (case "(($ac_try" in
8139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140   *) ac_try_echo=$ac_try;;
8141 esac
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143   (eval "$ac_try") 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; } &&
8147          { ac_try='test -s conftest.$ac_objext'
8148   { (case "(($ac_try" in
8149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150   *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153   (eval "$ac_try") 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); }; }; then
8157   ac_header_compiler=yes
8158 else
8159   echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162         ac_header_compiler=no
8163 fi
8164
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8167 echo "${ECHO_T}$ac_header_compiler" >&6; }
8168
8169 # Is the header present?
8170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h.  */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h.  */
8178 #include <$ac_header>
8179 _ACEOF
8180 if { (ac_try="$ac_cpp conftest.$ac_ext"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } >/dev/null; then
8193   if test -s conftest.err; then
8194     ac_cpp_err=$ac_c_preproc_warn_flag
8195     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8196   else
8197     ac_cpp_err=
8198   fi
8199 else
8200   ac_cpp_err=yes
8201 fi
8202 if test -z "$ac_cpp_err"; then
8203   ac_header_preproc=yes
8204 else
8205   echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208   ac_header_preproc=no
8209 fi
8210
8211 rm -f conftest.err conftest.$ac_ext
8212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8213 echo "${ECHO_T}$ac_header_preproc" >&6; }
8214
8215 # So?  What about this header?
8216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8217   yes:no: )
8218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8222     ac_header_preproc=yes
8223     ;;
8224   no:yes:* )
8225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8237     ( cat <<\_ASBOX
8238 ## ------------------------------------ ##
8239 ## Report this to http://llvm.org/bugs/ ##
8240 ## ------------------------------------ ##
8241 _ASBOX
8242      ) | sed "s/^/$as_me: WARNING:     /" >&2
8243     ;;
8244 esac
8245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8248   echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250   eval "$as_ac_Header=\$ac_header_preproc"
8251 fi
8252 ac_res=`eval echo '${'$as_ac_Header'}'`
8253                { echo "$as_me:$LINENO: result: $ac_res" >&5
8254 echo "${ECHO_T}$ac_res" >&6; }
8255
8256 fi
8257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8258   cat >>confdefs.h <<_ACEOF
8259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8260 _ACEOF
8261
8262 fi
8263
8264 done
8265
8266
8267 case "$llvm_cv_os_type" in
8268   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8269   Darwin) llvm_shlib_ext=.dylib ;;
8270   *) llvm_shlib_ext=.so ;;
8271 esac
8272
8273
8274 cat >>confdefs.h <<_ACEOF
8275 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8276 _ACEOF
8277
8278
8279 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8280 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8281
8282 ICC=no
8283 IXX=no
8284 case $CC in
8285   icc*|icpc*)
8286     ICC=yes
8287     IXX=yes
8288     ;;
8289    *)
8290     ;;
8291 esac
8292
8293 if test "$GCC" != "yes" && test "$ICC" != "yes"
8294 then
8295   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8296 echo "$as_me: error: gcc|icc required but not found" >&2;}
8297    { (exit 1); exit 1; }; }
8298 fi
8299
8300 if test "$GXX" != "yes" && test "$IXX" != "yes"
8301 then
8302   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8303 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8304    { (exit 1); exit 1; }; }
8305 fi
8306
8307 if test "$GCC" = "yes"
8308 then
8309   cat >conftest.$ac_ext <<_ACEOF
8310
8311   /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316
8317     #if !defined(__GNUC__) || __GNUC__ < 3
8318     #error Unsupported GCC version
8319     #endif
8320
8321
8322 _ACEOF
8323 rm -f conftest.$ac_objext
8324 if { (ac_try="$ac_compile"
8325 case "(($ac_try" in
8326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327   *) ac_try_echo=$ac_try;;
8328 esac
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330   (eval "$ac_compile") 2>conftest.er1
8331   ac_status=$?
8332   grep -v '^ *+' conftest.er1 >conftest.err
8333   rm -f conftest.er1
8334   cat conftest.err >&5
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } &&
8337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338   { (case "(($ac_try" in
8339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340   *) ac_try_echo=$ac_try;;
8341 esac
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343   (eval "$ac_try") 2>&5
8344   ac_status=$?
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }; } &&
8347          { ac_try='test -s conftest.$ac_objext'
8348   { (case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_try") 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); }; }; then
8357   :
8358 else
8359   echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8361
8362         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8363 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8364    { (exit 1); exit 1; }; }
8365 fi
8366
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369
8370 if test -z "$llvm_cv_gnu_make_command"
8371 then
8372   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8373 echo "$as_me: error: GNU Make required but not found" >&2;}
8374    { (exit 1); exit 1; }; }
8375 fi
8376
8377 { echo "$as_me:$LINENO: result: ok" >&5
8378 echo "${ECHO_T}ok" >&6; }
8379
8380 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8381 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8382 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8383
8384 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8385
8386 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8387
8388
8389 NO_UNINITIALIZED=
8390 NO_MAYBE_UNINITIALIZED=
8391 if test "$GXX" = "yes"
8392 then
8393   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8394
8395         if test -z "$NO_MAYBE_UNINITIALIZED"
8396   then
8397     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8398
8399   fi
8400 fi
8401
8402 no_comment=
8403 llvm_cv_old_cxxflags="$CXXFLAGS"
8404 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8405 cat >conftest.$ac_ext <<_ACEOF
8406
8407   /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412 // Comment \o\
8413 // Another comment
8414 int main() { return 0; }
8415
8416
8417 _ACEOF
8418 rm -f conftest.$ac_objext
8419 if { (ac_try="$ac_compile"
8420 case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_compile") 2>conftest.er1
8426   ac_status=$?
8427   grep -v '^ *+' conftest.er1 >conftest.err
8428   rm -f conftest.er1
8429   cat conftest.err >&5
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433   { (case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_try") 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; } &&
8442          { ac_try='test -s conftest.$ac_objext'
8443   { (case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_try") 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452
8453   no_comment=-Wno-comment
8454
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459
8460 fi
8461
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 NO_COMMENT=$no_comment
8464
8465 CXXFLAGS="$llvm_cv_old_cxxflags"
8466
8467 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8468 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8469
8470
8471 # Check whether --with-python was given.
8472 if test "${with_python+set}" = set; then
8473   withval=$with_python; PYTHON="$withval"
8474 fi
8475
8476
8477 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8478   { echo "$as_me:$LINENO: checking for python" >&5
8479 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8480   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8481 echo "${ECHO_T}user defined: $with_python" >&6; }
8482 else
8483   if test -n "$PYTHON" ; then
8484     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8485 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8486   fi
8487
8488   # Extract the first word of "python python2 python27", so it can be a program name with args.
8489 set dummy python python2 python27; ac_word=$2
8490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8492 if test "${ac_cv_path_PYTHON+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   case $PYTHON in
8496   [\\/]* | ?:[\\/]*)
8497   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8498   ;;
8499   *)
8500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8502 do
8503   IFS=$as_save_IFS
8504   test -z "$as_dir" && as_dir=.
8505   for ac_exec_ext in '' $ac_executable_extensions; do
8506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8507     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509     break 2
8510   fi
8511 done
8512 done
8513 IFS=$as_save_IFS
8514
8515   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8516 echo "${ECHO_T}not found" >&6; }
8517                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8518 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8519    { (exit 1); exit 1; }; }"
8520   ;;
8521 esac
8522 fi
8523 PYTHON=$ac_cv_path_PYTHON
8524 if test -n "$PYTHON"; then
8525   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8526 echo "${ECHO_T}$PYTHON" >&6; }
8527 else
8528   { echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6; }
8530 fi
8531
8532
8533 fi
8534
8535 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8536 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8537 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8538 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8539 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8540 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8541 if test "$ac_python_version_major" -gt "2" || \
8542    (test "$ac_python_version_major" -eq "2" && \
8543     test "$ac_python_version_minor" -ge "7") ; then
8544   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8545 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8546 else
8547   { echo "$as_me:$LINENO: result: not found" >&5
8548 echo "${ECHO_T}not found" >&6; }
8549   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8550 See \`config.log' for more details." >&5
8551 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8552 See \`config.log' for more details." >&2;}
8553    { (exit 1); exit 1; }; }
8554 fi
8555
8556
8557
8558 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8559 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8560 if test "${ac_cv_lib_m_sin+set}" = set; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   ac_check_lib_save_LIBS=$LIBS
8564 LIBS="-lm  $LIBS"
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h.  */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h.  */
8571
8572 /* Override any GCC internal prototype to avoid an error.
8573    Use char because int might match the return type of a GCC
8574    builtin and then its argument prototype would still apply.  */
8575 #ifdef __cplusplus
8576 extern "C"
8577 #endif
8578 char sin ();
8579 int
8580 main ()
8581 {
8582 return sin ();
8583   ;
8584   return 0;
8585 }
8586 _ACEOF
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8589 case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594   (eval "$ac_link") 2>conftest.er1
8595   ac_status=$?
8596   grep -v '^ *+' conftest.er1 >conftest.err
8597   rm -f conftest.er1
8598   cat conftest.err >&5
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); } &&
8601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8602   { (case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_try") 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; } &&
8611          { ac_try='test -s conftest$ac_exeext'
8612   { (case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_try") 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   ac_cv_lib_m_sin=yes
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626         ac_cv_lib_m_sin=no
8627 fi
8628
8629 rm -f core conftest.err conftest.$ac_objext \
8630       conftest$ac_exeext conftest.$ac_ext
8631 LIBS=$ac_check_lib_save_LIBS
8632 fi
8633 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8634 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8635 if test $ac_cv_lib_m_sin = yes; then
8636   cat >>confdefs.h <<_ACEOF
8637 #define HAVE_LIBM 1
8638 _ACEOF
8639
8640   LIBS="-lm $LIBS"
8641
8642 fi
8643
8644 if test "$llvm_cv_os_type" = "MingW" ; then
8645
8646 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8647 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8648 if test "${ac_cv_lib_ole32_main+set}" = set; then
8649   echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651   ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-lole32  $LIBS"
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h.  */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h.  */
8659
8660
8661 int
8662 main ()
8663 {
8664 return main ();
8665   ;
8666   return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (ac_try="$ac_link"
8671 case "(($ac_try" in
8672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673   *) ac_try_echo=$ac_try;;
8674 esac
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676   (eval "$ac_link") 2>conftest.er1
8677   ac_status=$?
8678   grep -v '^ *+' conftest.er1 >conftest.err
8679   rm -f conftest.er1
8680   cat conftest.err >&5
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); } &&
8683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8684   { (case "(($ac_try" in
8685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686   *) ac_try_echo=$ac_try;;
8687 esac
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689   (eval "$ac_try") 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; } &&
8693          { ac_try='test -s conftest$ac_exeext'
8694   { (case "(($ac_try" in
8695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696   *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699   (eval "$ac_try") 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; }; then
8703   ac_cv_lib_ole32_main=yes
8704 else
8705   echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8707
8708         ac_cv_lib_ole32_main=no
8709 fi
8710
8711 rm -f core conftest.err conftest.$ac_objext \
8712       conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8714 fi
8715 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5
8716 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8717 if test $ac_cv_lib_ole32_main = yes; then
8718   cat >>confdefs.h <<_ACEOF
8719 #define HAVE_LIBOLE32 1
8720 _ACEOF
8721
8722   LIBS="-lole32 $LIBS"
8723
8724 fi
8725
8726
8727 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8728 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8729 if test "${ac_cv_lib_psapi_main+set}" = set; then
8730   echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732   ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lpsapi  $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740
8741
8742 int
8743 main ()
8744 {
8745 return main ();
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (ac_try="$ac_link"
8752 case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757   (eval "$ac_link") 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } &&
8764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8765   { (case "(($ac_try" in
8766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767   *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770   (eval "$ac_try") 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; } &&
8774          { ac_try='test -s conftest$ac_exeext'
8775   { (case "(($ac_try" in
8776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777   *) ac_try_echo=$ac_try;;
8778 esac
8779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780   (eval "$ac_try") 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; }; then
8784   ac_cv_lib_psapi_main=yes
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789         ac_cv_lib_psapi_main=no
8790 fi
8791
8792 rm -f core conftest.err conftest.$ac_objext \
8793       conftest$ac_exeext conftest.$ac_ext
8794 LIBS=$ac_check_lib_save_LIBS
8795 fi
8796 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8797 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8798 if test $ac_cv_lib_psapi_main = yes; then
8799   cat >>confdefs.h <<_ACEOF
8800 #define HAVE_LIBPSAPI 1
8801 _ACEOF
8802
8803   LIBS="-lpsapi $LIBS"
8804
8805 fi
8806
8807
8808 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8809 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8810 if test "${ac_cv_lib_shell32_main+set}" = set; then
8811   echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813   ac_check_lib_save_LIBS=$LIBS
8814 LIBS="-lshell32  $LIBS"
8815 cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h.  */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h.  */
8821
8822
8823 int
8824 main ()
8825 {
8826 return main ();
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (ac_try="$ac_link"
8833 case "(($ac_try" in
8834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835   *) ac_try_echo=$ac_try;;
8836 esac
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838   (eval "$ac_link") 2>conftest.er1
8839   ac_status=$?
8840   grep -v '^ *+' conftest.er1 >conftest.err
8841   rm -f conftest.er1
8842   cat conftest.err >&5
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } &&
8845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8846   { (case "(($ac_try" in
8847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848   *) ac_try_echo=$ac_try;;
8849 esac
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851   (eval "$ac_try") 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; } &&
8855          { ac_try='test -s conftest$ac_exeext'
8856   { (case "(($ac_try" in
8857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858   *) ac_try_echo=$ac_try;;
8859 esac
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861   (eval "$ac_try") 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; }; then
8865   ac_cv_lib_shell32_main=yes
8866 else
8867   echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870         ac_cv_lib_shell32_main=no
8871 fi
8872
8873 rm -f core conftest.err conftest.$ac_objext \
8874       conftest$ac_exeext conftest.$ac_ext
8875 LIBS=$ac_check_lib_save_LIBS
8876 fi
8877 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8878 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8879 if test $ac_cv_lib_shell32_main = yes; then
8880   cat >>confdefs.h <<_ACEOF
8881 #define HAVE_LIBSHELL32 1
8882 _ACEOF
8883
8884   LIBS="-lshell32 $LIBS"
8885
8886 fi
8887
8888 fi
8889
8890 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8891 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8892 if test "${ac_cv_search_dlopen+set}" = set; then
8893   echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895   ac_func_search_save_LIBS=$LIBS
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h.  */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h.  */
8902
8903 /* Override any GCC internal prototype to avoid an error.
8904    Use char because int might match the return type of a GCC
8905    builtin and then its argument prototype would still apply.  */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 char dlopen ();
8910 int
8911 main ()
8912 {
8913 return dlopen ();
8914   ;
8915   return 0;
8916 }
8917 _ACEOF
8918 for ac_lib in '' dl; do
8919   if test -z "$ac_lib"; then
8920     ac_res="none required"
8921   else
8922     ac_res=-l$ac_lib
8923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8924   fi
8925   rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8927 case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932   (eval "$ac_link") 2>conftest.er1
8933   ac_status=$?
8934   grep -v '^ *+' conftest.er1 >conftest.err
8935   rm -f conftest.er1
8936   cat conftest.err >&5
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); } &&
8939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8940   { (case "(($ac_try" in
8941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942   *) ac_try_echo=$ac_try;;
8943 esac
8944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945   (eval "$ac_try") 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; } &&
8949          { ac_try='test -s conftest$ac_exeext'
8950   { (case "(($ac_try" in
8951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952   *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955   (eval "$ac_try") 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; }; then
8959   ac_cv_search_dlopen=$ac_res
8960 else
8961   echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8963
8964
8965 fi
8966
8967 rm -f core conftest.err conftest.$ac_objext \
8968       conftest$ac_exeext
8969   if test "${ac_cv_search_dlopen+set}" = set; then
8970   break
8971 fi
8972 done
8973 if test "${ac_cv_search_dlopen+set}" = set; then
8974   :
8975 else
8976   ac_cv_search_dlopen=no
8977 fi
8978 rm conftest.$ac_ext
8979 LIBS=$ac_func_search_save_LIBS
8980 fi
8981 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8982 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8983 ac_res=$ac_cv_search_dlopen
8984 if test "$ac_res" != no; then
8985   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8986
8987
8988 cat >>confdefs.h <<\_ACEOF
8989 #define HAVE_DLOPEN 1
8990 _ACEOF
8991
8992 HAVE_DLOPEN='1'
8993
8994
8995 else
8996   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8997 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8998 fi
8999
9000
9001 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9002 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9003 if test "${ac_cv_search_clock_gettime+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006   ac_func_search_save_LIBS=$LIBS
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h.  */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h.  */
9013
9014 /* Override any GCC internal prototype to avoid an error.
9015    Use char because int might match the return type of a GCC
9016    builtin and then its argument prototype would still apply.  */
9017 #ifdef __cplusplus
9018 extern "C"
9019 #endif
9020 char clock_gettime ();
9021 int
9022 main ()
9023 {
9024 return clock_gettime ();
9025   ;
9026   return 0;
9027 }
9028 _ACEOF
9029 for ac_lib in '' rt; do
9030   if test -z "$ac_lib"; then
9031     ac_res="none required"
9032   else
9033     ac_res=-l$ac_lib
9034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9035   fi
9036   rm -f conftest.$ac_objext conftest$ac_exeext
9037 if { (ac_try="$ac_link"
9038 case "(($ac_try" in
9039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040   *) ac_try_echo=$ac_try;;
9041 esac
9042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043   (eval "$ac_link") 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } &&
9050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9051   { (case "(($ac_try" in
9052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053   *) ac_try_echo=$ac_try;;
9054 esac
9055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056   (eval "$ac_try") 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; } &&
9060          { ac_try='test -s conftest$ac_exeext'
9061   { (case "(($ac_try" in
9062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063   *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066   (eval "$ac_try") 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; }; then
9070   ac_cv_search_clock_gettime=$ac_res
9071 else
9072   echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075
9076 fi
9077
9078 rm -f core conftest.err conftest.$ac_objext \
9079       conftest$ac_exeext
9080   if test "${ac_cv_search_clock_gettime+set}" = set; then
9081   break
9082 fi
9083 done
9084 if test "${ac_cv_search_clock_gettime+set}" = set; then
9085   :
9086 else
9087   ac_cv_search_clock_gettime=no
9088 fi
9089 rm conftest.$ac_ext
9090 LIBS=$ac_func_search_save_LIBS
9091 fi
9092 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9093 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9094 ac_res=$ac_cv_search_clock_gettime
9095 if test "$ac_res" != no; then
9096   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9097
9098 fi
9099
9100
9101 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9102     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9103 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9104 if test "${ac_cv_search_setupterm+set}" = set; then
9105   echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9107   ac_func_search_save_LIBS=$LIBS
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114
9115 /* Override any GCC internal prototype to avoid an error.
9116    Use char because int might match the return type of a GCC
9117    builtin and then its argument prototype would still apply.  */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 char setupterm ();
9122 int
9123 main ()
9124 {
9125 return setupterm ();
9126   ;
9127   return 0;
9128 }
9129 _ACEOF
9130 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9131   if test -z "$ac_lib"; then
9132     ac_res="none required"
9133   else
9134     ac_res=-l$ac_lib
9135     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9136   fi
9137   rm -f conftest.$ac_objext conftest$ac_exeext
9138 if { (ac_try="$ac_link"
9139 case "(($ac_try" in
9140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9141   *) ac_try_echo=$ac_try;;
9142 esac
9143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9144   (eval "$ac_link") 2>conftest.er1
9145   ac_status=$?
9146   grep -v '^ *+' conftest.er1 >conftest.err
9147   rm -f conftest.er1
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); } &&
9151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9152   { (case "(($ac_try" in
9153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154   *) ac_try_echo=$ac_try;;
9155 esac
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157   (eval "$ac_try") 2>&5
9158   ac_status=$?
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); }; } &&
9161          { ac_try='test -s conftest$ac_exeext'
9162   { (case "(($ac_try" in
9163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164   *) ac_try_echo=$ac_try;;
9165 esac
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167   (eval "$ac_try") 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); }; }; then
9171   ac_cv_search_setupterm=$ac_res
9172 else
9173   echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9175
9176
9177 fi
9178
9179 rm -f core conftest.err conftest.$ac_objext \
9180       conftest$ac_exeext
9181   if test "${ac_cv_search_setupterm+set}" = set; then
9182   break
9183 fi
9184 done
9185 if test "${ac_cv_search_setupterm+set}" = set; then
9186   :
9187 else
9188   ac_cv_search_setupterm=no
9189 fi
9190 rm conftest.$ac_ext
9191 LIBS=$ac_func_search_save_LIBS
9192 fi
9193 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9194 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9195 ac_res=$ac_cv_search_setupterm
9196 if test "$ac_res" != no; then
9197   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9198
9199
9200 cat >>confdefs.h <<\_ACEOF
9201 #define HAVE_TERMINFO 1
9202 _ACEOF
9203
9204 HAVE_TERMINFO='1'
9205
9206
9207 fi
9208
9209 fi
9210
9211 if test "$llvm_cv_enable_libedit" = "yes" ; then
9212   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9213 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9214 if test "${ac_cv_search_el_init+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   ac_func_search_save_LIBS=$LIBS
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h.  */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h.  */
9224
9225 /* Override any GCC internal prototype to avoid an error.
9226    Use char because int might match the return type of a GCC
9227    builtin and then its argument prototype would still apply.  */
9228 #ifdef __cplusplus
9229 extern "C"
9230 #endif
9231 char el_init ();
9232 int
9233 main ()
9234 {
9235 return el_init ();
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240 for ac_lib in '' edit; do
9241   if test -z "$ac_lib"; then
9242     ac_res="none required"
9243   else
9244     ac_res=-l$ac_lib
9245     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9246   fi
9247   rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (ac_try="$ac_link"
9249 case "(($ac_try" in
9250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251   *) ac_try_echo=$ac_try;;
9252 esac
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254   (eval "$ac_link") 2>conftest.er1
9255   ac_status=$?
9256   grep -v '^ *+' conftest.er1 >conftest.err
9257   rm -f conftest.er1
9258   cat conftest.err >&5
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); } &&
9261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9262   { (case "(($ac_try" in
9263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264   *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267   (eval "$ac_try") 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; } &&
9271          { ac_try='test -s conftest$ac_exeext'
9272   { (case "(($ac_try" in
9273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274   *) ac_try_echo=$ac_try;;
9275 esac
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277   (eval "$ac_try") 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); }; }; then
9281   ac_cv_search_el_init=$ac_res
9282 else
9283   echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286
9287 fi
9288
9289 rm -f core conftest.err conftest.$ac_objext \
9290       conftest$ac_exeext
9291   if test "${ac_cv_search_el_init+set}" = set; then
9292   break
9293 fi
9294 done
9295 if test "${ac_cv_search_el_init+set}" = set; then
9296   :
9297 else
9298   ac_cv_search_el_init=no
9299 fi
9300 rm conftest.$ac_ext
9301 LIBS=$ac_func_search_save_LIBS
9302 fi
9303 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9304 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9305 ac_res=$ac_cv_search_el_init
9306 if test "$ac_res" != no; then
9307   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9308
9309 cat >>confdefs.h <<\_ACEOF
9310 #define HAVE_LIBEDIT 1
9311 _ACEOF
9312
9313 fi
9314
9315 fi
9316
9317 if test "$llvm_cv_enable_libffi" = "yes" ; then
9318   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9319 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9320 if test "${ac_cv_search_ffi_call+set}" = set; then
9321   echo $ECHO_N "(cached) $ECHO_C" >&6
9322 else
9323   ac_func_search_save_LIBS=$LIBS
9324 cat >conftest.$ac_ext <<_ACEOF
9325 /* confdefs.h.  */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h.  */
9330
9331 /* Override any GCC internal prototype to avoid an error.
9332    Use char because int might match the return type of a GCC
9333    builtin and then its argument prototype would still apply.  */
9334 #ifdef __cplusplus
9335 extern "C"
9336 #endif
9337 char ffi_call ();
9338 int
9339 main ()
9340 {
9341 return ffi_call ();
9342   ;
9343   return 0;
9344 }
9345 _ACEOF
9346 for ac_lib in '' ffi; do
9347   if test -z "$ac_lib"; then
9348     ac_res="none required"
9349   else
9350     ac_res=-l$ac_lib
9351     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9352   fi
9353   rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (ac_try="$ac_link"
9355 case "(($ac_try" in
9356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357   *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360   (eval "$ac_link") 2>conftest.er1
9361   ac_status=$?
9362   grep -v '^ *+' conftest.er1 >conftest.err
9363   rm -f conftest.er1
9364   cat conftest.err >&5
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); } &&
9367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9368   { (case "(($ac_try" in
9369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370   *) ac_try_echo=$ac_try;;
9371 esac
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373   (eval "$ac_try") 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; } &&
9377          { ac_try='test -s conftest$ac_exeext'
9378   { (case "(($ac_try" in
9379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380   *) ac_try_echo=$ac_try;;
9381 esac
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383   (eval "$ac_try") 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); }; }; then
9387   ac_cv_search_ffi_call=$ac_res
9388 else
9389   echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9391
9392
9393 fi
9394
9395 rm -f core conftest.err conftest.$ac_objext \
9396       conftest$ac_exeext
9397   if test "${ac_cv_search_ffi_call+set}" = set; then
9398   break
9399 fi
9400 done
9401 if test "${ac_cv_search_ffi_call+set}" = set; then
9402   :
9403 else
9404   ac_cv_search_ffi_call=no
9405 fi
9406 rm conftest.$ac_ext
9407 LIBS=$ac_func_search_save_LIBS
9408 fi
9409 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9410 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9411 ac_res=$ac_cv_search_ffi_call
9412 if test "$ac_res" != no; then
9413   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9414
9415 cat >>confdefs.h <<\_ACEOF
9416 #define HAVE_FFI_CALL 1
9417 _ACEOF
9418
9419 else
9420   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9421 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9422    { (exit 1); exit 1; }; }
9423 fi
9424
9425 fi
9426
9427 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9428 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9429 if test "${ac_cv_search_mallinfo+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   ac_func_search_save_LIBS=$LIBS
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439
9440 /* Override any GCC internal prototype to avoid an error.
9441    Use char because int might match the return type of a GCC
9442    builtin and then its argument prototype would still apply.  */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 char mallinfo ();
9447 int
9448 main ()
9449 {
9450 return mallinfo ();
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 for ac_lib in '' malloc; do
9456   if test -z "$ac_lib"; then
9457     ac_res="none required"
9458   else
9459     ac_res=-l$ac_lib
9460     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9461   fi
9462   rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (ac_try="$ac_link"
9464 case "(($ac_try" in
9465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466   *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469   (eval "$ac_link") 2>conftest.er1
9470   ac_status=$?
9471   grep -v '^ *+' conftest.er1 >conftest.err
9472   rm -f conftest.er1
9473   cat conftest.err >&5
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477   { (case "(($ac_try" in
9478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479   *) ac_try_echo=$ac_try;;
9480 esac
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482   (eval "$ac_try") 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; } &&
9486          { ac_try='test -s conftest$ac_exeext'
9487   { (case "(($ac_try" in
9488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489   *) ac_try_echo=$ac_try;;
9490 esac
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492   (eval "$ac_try") 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   ac_cv_search_mallinfo=$ac_res
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501
9502 fi
9503
9504 rm -f core conftest.err conftest.$ac_objext \
9505       conftest$ac_exeext
9506   if test "${ac_cv_search_mallinfo+set}" = set; then
9507   break
9508 fi
9509 done
9510 if test "${ac_cv_search_mallinfo+set}" = set; then
9511   :
9512 else
9513   ac_cv_search_mallinfo=no
9514 fi
9515 rm conftest.$ac_ext
9516 LIBS=$ac_func_search_save_LIBS
9517 fi
9518 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9519 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9520 ac_res=$ac_cv_search_mallinfo
9521 if test "$ac_res" != no; then
9522   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define HAVE_MALLINFO 1
9526 _ACEOF
9527
9528 fi
9529
9530
9531 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9532
9533 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9534 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9535 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   ac_check_lib_save_LIBS=$LIBS
9539 LIBS="-lpthread  $LIBS"
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h.  */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h.  */
9546
9547 /* Override any GCC internal prototype to avoid an error.
9548    Use char because int might match the return type of a GCC
9549    builtin and then its argument prototype would still apply.  */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 char pthread_mutex_init ();
9554 int
9555 main ()
9556 {
9557 return pthread_mutex_init ();
9558   ;
9559   return 0;
9560 }
9561 _ACEOF
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (ac_try="$ac_link"
9564 case "(($ac_try" in
9565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566   *) ac_try_echo=$ac_try;;
9567 esac
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569   (eval "$ac_link") 2>conftest.er1
9570   ac_status=$?
9571   grep -v '^ *+' conftest.er1 >conftest.err
9572   rm -f conftest.er1
9573   cat conftest.err >&5
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } &&
9576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9577   { (case "(($ac_try" in
9578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579   *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582   (eval "$ac_try") 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); }; } &&
9586          { ac_try='test -s conftest$ac_exeext'
9587   { (case "(($ac_try" in
9588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589   *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592   (eval "$ac_try") 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); }; }; then
9596   ac_cv_lib_pthread_pthread_mutex_init=yes
9597 else
9598   echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601         ac_cv_lib_pthread_pthread_mutex_init=no
9602 fi
9603
9604 rm -f core conftest.err conftest.$ac_objext \
9605       conftest$ac_exeext conftest.$ac_ext
9606 LIBS=$ac_check_lib_save_LIBS
9607 fi
9608 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9609 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9610 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9611   cat >>confdefs.h <<_ACEOF
9612 #define HAVE_LIBPTHREAD 1
9613 _ACEOF
9614
9615   LIBS="-lpthread $LIBS"
9616
9617 fi
9618
9619   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9620 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9621 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   ac_func_search_save_LIBS=$LIBS
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631
9632 /* Override any GCC internal prototype to avoid an error.
9633    Use char because int might match the return type of a GCC
9634    builtin and then its argument prototype would still apply.  */
9635 #ifdef __cplusplus
9636 extern "C"
9637 #endif
9638 char pthread_mutex_lock ();
9639 int
9640 main ()
9641 {
9642 return pthread_mutex_lock ();
9643   ;
9644   return 0;
9645 }
9646 _ACEOF
9647 for ac_lib in '' pthread; do
9648   if test -z "$ac_lib"; then
9649     ac_res="none required"
9650   else
9651     ac_res=-l$ac_lib
9652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9653   fi
9654   rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (ac_try="$ac_link"
9656 case "(($ac_try" in
9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658   *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661   (eval "$ac_link") 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } &&
9668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9669   { (case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674   (eval "$ac_try") 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; } &&
9678          { ac_try='test -s conftest$ac_exeext'
9679   { (case "(($ac_try" in
9680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681   *) ac_try_echo=$ac_try;;
9682 esac
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684   (eval "$ac_try") 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); }; }; then
9688   ac_cv_search_pthread_mutex_lock=$ac_res
9689 else
9690   echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693
9694 fi
9695
9696 rm -f core conftest.err conftest.$ac_objext \
9697       conftest$ac_exeext
9698   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9699   break
9700 fi
9701 done
9702 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9703   :
9704 else
9705   ac_cv_search_pthread_mutex_lock=no
9706 fi
9707 rm conftest.$ac_ext
9708 LIBS=$ac_func_search_save_LIBS
9709 fi
9710 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9711 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9712 ac_res=$ac_cv_search_pthread_mutex_lock
9713 if test "$ac_res" != no; then
9714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9715
9716 cat >>confdefs.h <<\_ACEOF
9717 #define HAVE_PTHREAD_MUTEX_LOCK 1
9718 _ACEOF
9719
9720 fi
9721
9722   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9723 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9724 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   ac_func_search_save_LIBS=$LIBS
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734
9735 /* Override any GCC internal prototype to avoid an error.
9736    Use char because int might match the return type of a GCC
9737    builtin and then its argument prototype would still apply.  */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 char pthread_rwlock_init ();
9742 int
9743 main ()
9744 {
9745 return pthread_rwlock_init ();
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 for ac_lib in '' pthread; do
9751   if test -z "$ac_lib"; then
9752     ac_res="none required"
9753   else
9754     ac_res=-l$ac_lib
9755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9756   fi
9757   rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9759 case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_link") 2>conftest.er1
9765   ac_status=$?
9766   grep -v '^ *+' conftest.er1 >conftest.err
9767   rm -f conftest.er1
9768   cat conftest.err >&5
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } &&
9771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9772   { (case "(($ac_try" in
9773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774   *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777   (eval "$ac_try") 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); }; } &&
9781          { ac_try='test -s conftest$ac_exeext'
9782   { (case "(($ac_try" in
9783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784   *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787   (eval "$ac_try") 2>&5
9788   ac_status=$?
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); }; }; then
9791   ac_cv_search_pthread_rwlock_init=$ac_res
9792 else
9793   echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796
9797 fi
9798
9799 rm -f core conftest.err conftest.$ac_objext \
9800       conftest$ac_exeext
9801   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9802   break
9803 fi
9804 done
9805 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9806   :
9807 else
9808   ac_cv_search_pthread_rwlock_init=no
9809 fi
9810 rm conftest.$ac_ext
9811 LIBS=$ac_func_search_save_LIBS
9812 fi
9813 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9814 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9815 ac_res=$ac_cv_search_pthread_rwlock_init
9816 if test "$ac_res" != no; then
9817   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9818
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_PTHREAD_RWLOCK_INIT 1
9821 _ACEOF
9822
9823 fi
9824
9825   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9826 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9827 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   ac_func_search_save_LIBS=$LIBS
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837
9838 /* Override any GCC internal prototype to avoid an error.
9839    Use char because int might match the return type of a GCC
9840    builtin and then its argument prototype would still apply.  */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 char pthread_getspecific ();
9845 int
9846 main ()
9847 {
9848 return pthread_getspecific ();
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 for ac_lib in '' pthread; do
9854   if test -z "$ac_lib"; then
9855     ac_res="none required"
9856   else
9857     ac_res=-l$ac_lib
9858     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9859   fi
9860   rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (ac_try="$ac_link"
9862 case "(($ac_try" in
9863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864   *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867   (eval "$ac_link") 2>conftest.er1
9868   ac_status=$?
9869   grep -v '^ *+' conftest.er1 >conftest.err
9870   rm -f conftest.er1
9871   cat conftest.err >&5
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9875   { (case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_try") 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; } &&
9884          { ac_try='test -s conftest$ac_exeext'
9885   { (case "(($ac_try" in
9886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887   *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890   (eval "$ac_try") 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; }; then
9894   ac_cv_search_pthread_getspecific=$ac_res
9895 else
9896   echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899
9900 fi
9901
9902 rm -f core conftest.err conftest.$ac_objext \
9903       conftest$ac_exeext
9904   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9905   break
9906 fi
9907 done
9908 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9909   :
9910 else
9911   ac_cv_search_pthread_getspecific=no
9912 fi
9913 rm conftest.$ac_ext
9914 LIBS=$ac_func_search_save_LIBS
9915 fi
9916 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9917 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9918 ac_res=$ac_cv_search_pthread_getspecific
9919 if test "$ac_res" != no; then
9920   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9921
9922 cat >>confdefs.h <<\_ACEOF
9923 #define HAVE_PTHREAD_GETSPECIFIC 1
9924 _ACEOF
9925
9926 fi
9927
9928 fi
9929
9930 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9931
9932 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9933 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9934 if test "${ac_cv_lib_z_compress2+set}" = set; then
9935   echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937   ac_check_lib_save_LIBS=$LIBS
9938 LIBS="-lz  $LIBS"
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h.  */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h.  */
9945
9946 /* Override any GCC internal prototype to avoid an error.
9947    Use char because int might match the return type of a GCC
9948    builtin and then its argument prototype would still apply.  */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 char compress2 ();
9953 int
9954 main ()
9955 {
9956 return compress2 ();
9957   ;
9958   return 0;
9959 }
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (ac_try="$ac_link"
9963 case "(($ac_try" in
9964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965   *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968   (eval "$ac_link") 2>conftest.er1
9969   ac_status=$?
9970   grep -v '^ *+' conftest.er1 >conftest.err
9971   rm -f conftest.er1
9972   cat conftest.err >&5
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); } &&
9975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9976   { (case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_try") 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; } &&
9985          { ac_try='test -s conftest$ac_exeext'
9986   { (case "(($ac_try" in
9987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988   *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991   (eval "$ac_try") 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; }; then
9995   ac_cv_lib_z_compress2=yes
9996 else
9997   echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000         ac_cv_lib_z_compress2=no
10001 fi
10002
10003 rm -f core conftest.err conftest.$ac_objext \
10004       conftest$ac_exeext conftest.$ac_ext
10005 LIBS=$ac_check_lib_save_LIBS
10006 fi
10007 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10008 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10009 if test $ac_cv_lib_z_compress2 = yes; then
10010   cat >>confdefs.h <<_ACEOF
10011 #define HAVE_LIBZ 1
10012 _ACEOF
10013
10014   LIBS="-lz $LIBS"
10015
10016 fi
10017
10018 fi
10019
10020
10021 # Check whether --with-oprofile was given.
10022 if test "${with_oprofile+set}" = set; then
10023   withval=$with_oprofile;
10024       USE_OPROFILE=1
10025
10026       case "$withval" in
10027         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10028         no) llvm_cv_oppath=
10029             USE_OPROFILE=0
10030  ;;
10031         *) llvm_cv_oppath="${withval}/lib/oprofile"
10032            CPPFLAGS="-I${withval}/include";;
10033       esac
10034       case $llvm_cv_os_type in
10035         Linux)
10036           if test -n "$llvm_cv_oppath" ; then
10037             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10038                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10039 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10040 if test "${ac_cv_search_bfd_init+set}" = set; then
10041   echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043   ac_func_search_save_LIBS=$LIBS
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h.  */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h.  */
10050
10051 /* Override any GCC internal prototype to avoid an error.
10052    Use char because int might match the return type of a GCC
10053    builtin and then its argument prototype would still apply.  */
10054 #ifdef __cplusplus
10055 extern "C"
10056 #endif
10057 char bfd_init ();
10058 int
10059 main ()
10060 {
10061 return bfd_init ();
10062   ;
10063   return 0;
10064 }
10065 _ACEOF
10066 for ac_lib in '' bfd; do
10067   if test -z "$ac_lib"; then
10068     ac_res="none required"
10069   else
10070     ac_res=-l$ac_lib
10071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10072   fi
10073   rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (ac_try="$ac_link"
10075 case "(($ac_try" in
10076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077   *) ac_try_echo=$ac_try;;
10078 esac
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080   (eval "$ac_link") 2>conftest.er1
10081   ac_status=$?
10082   grep -v '^ *+' conftest.er1 >conftest.err
10083   rm -f conftest.er1
10084   cat conftest.err >&5
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); } &&
10087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10088   { (case "(($ac_try" in
10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090   *) ac_try_echo=$ac_try;;
10091 esac
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093   (eval "$ac_try") 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; } &&
10097          { ac_try='test -s conftest$ac_exeext'
10098   { (case "(($ac_try" in
10099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100   *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103   (eval "$ac_try") 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); }; }; then
10107   ac_cv_search_bfd_init=$ac_res
10108 else
10109   echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10111
10112
10113 fi
10114
10115 rm -f core conftest.err conftest.$ac_objext \
10116       conftest$ac_exeext
10117   if test "${ac_cv_search_bfd_init+set}" = set; then
10118   break
10119 fi
10120 done
10121 if test "${ac_cv_search_bfd_init+set}" = set; then
10122   :
10123 else
10124   ac_cv_search_bfd_init=no
10125 fi
10126 rm conftest.$ac_ext
10127 LIBS=$ac_func_search_save_LIBS
10128 fi
10129 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10130 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10131 ac_res=$ac_cv_search_bfd_init
10132 if test "$ac_res" != no; then
10133   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10134
10135 fi
10136
10137             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10138 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10139 if test "${ac_cv_search_op_open_agent+set}" = set; then
10140   echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142   ac_func_search_save_LIBS=$LIBS
10143 cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h.  */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h.  */
10149
10150 /* Override any GCC internal prototype to avoid an error.
10151    Use char because int might match the return type of a GCC
10152    builtin and then its argument prototype would still apply.  */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 char op_open_agent ();
10157 int
10158 main ()
10159 {
10160 return op_open_agent ();
10161   ;
10162   return 0;
10163 }
10164 _ACEOF
10165 for ac_lib in '' opagent; do
10166   if test -z "$ac_lib"; then
10167     ac_res="none required"
10168   else
10169     ac_res=-l$ac_lib
10170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10171   fi
10172   rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176   *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179   (eval "$ac_link") 2>conftest.er1
10180   ac_status=$?
10181   grep -v '^ *+' conftest.er1 >conftest.err
10182   rm -f conftest.er1
10183   cat conftest.err >&5
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } &&
10186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187   { (case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192   (eval "$ac_try") 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; } &&
10196          { ac_try='test -s conftest$ac_exeext'
10197   { (case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202   (eval "$ac_try") 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   ac_cv_search_op_open_agent=$ac_res
10207 else
10208   echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211
10212 fi
10213
10214 rm -f core conftest.err conftest.$ac_objext \
10215       conftest$ac_exeext
10216   if test "${ac_cv_search_op_open_agent+set}" = set; then
10217   break
10218 fi
10219 done
10220 if test "${ac_cv_search_op_open_agent+set}" = set; then
10221   :
10222 else
10223   ac_cv_search_op_open_agent=no
10224 fi
10225 rm conftest.$ac_ext
10226 LIBS=$ac_func_search_save_LIBS
10227 fi
10228 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10229 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10230 ac_res=$ac_cv_search_op_open_agent
10231 if test "$ac_res" != no; then
10232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10233
10234 else
10235
10236               echo "Error! You need to have libopagent around."
10237               exit 1
10238
10239 fi
10240
10241             if test "${ac_cv_header_opagent_h+set}" = set; then
10242   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10243 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10244 if test "${ac_cv_header_opagent_h+set}" = set; then
10245   echo $ECHO_N "(cached) $ECHO_C" >&6
10246 fi
10247 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10248 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10249 else
10250   # Is the header compilable?
10251 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10252 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h.  */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h.  */
10259 $ac_includes_default
10260 #include <opagent.h>
10261 _ACEOF
10262 rm -f conftest.$ac_objext
10263 if { (ac_try="$ac_compile"
10264 case "(($ac_try" in
10265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266   *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269   (eval "$ac_compile") 2>conftest.er1
10270   ac_status=$?
10271   grep -v '^ *+' conftest.er1 >conftest.err
10272   rm -f conftest.er1
10273   cat conftest.err >&5
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } &&
10276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10277   { (case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282   (eval "$ac_try") 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); }; } &&
10286          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   ac_header_compiler=yes
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301         ac_header_compiler=no
10302 fi
10303
10304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10306 echo "${ECHO_T}$ac_header_compiler" >&6; }
10307
10308 # Is the header present?
10309 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10310 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10311 cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h.  */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h.  */
10317 #include <opagent.h>
10318 _ACEOF
10319 if { (ac_try="$ac_cpp conftest.$ac_ext"
10320 case "(($ac_try" in
10321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322   *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10326   ac_status=$?
10327   grep -v '^ *+' conftest.er1 >conftest.err
10328   rm -f conftest.er1
10329   cat conftest.err >&5
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } >/dev/null; then
10332   if test -s conftest.err; then
10333     ac_cpp_err=$ac_c_preproc_warn_flag
10334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10335   else
10336     ac_cpp_err=
10337   fi
10338 else
10339   ac_cpp_err=yes
10340 fi
10341 if test -z "$ac_cpp_err"; then
10342   ac_header_preproc=yes
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347   ac_header_preproc=no
10348 fi
10349
10350 rm -f conftest.err conftest.$ac_ext
10351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10352 echo "${ECHO_T}$ac_header_preproc" >&6; }
10353
10354 # So?  What about this header?
10355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10356   yes:no: )
10357     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10358 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10359     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10360 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10361     ac_header_preproc=yes
10362     ;;
10363   no:yes:* )
10364     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10365 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10366     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10367 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10368     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10369 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10370     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10371 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10372     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10373 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10374     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10375 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10376     ( cat <<\_ASBOX
10377 ## ------------------------------------ ##
10378 ## Report this to http://llvm.org/bugs/ ##
10379 ## ------------------------------------ ##
10380 _ASBOX
10381      ) | sed "s/^/$as_me: WARNING:     /" >&2
10382     ;;
10383 esac
10384 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10385 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10386 if test "${ac_cv_header_opagent_h+set}" = set; then
10387   echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389   ac_cv_header_opagent_h=$ac_header_preproc
10390 fi
10391 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10392 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10393
10394 fi
10395 if test $ac_cv_header_opagent_h = yes; then
10396   :
10397 else
10398
10399               echo "Error! You need to have opagent.h around."
10400               exit 1
10401
10402 fi
10403
10404
10405           fi ;;
10406         *)
10407           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10408 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10409    { (exit 1); exit 1; }; } ;;
10410       esac
10411
10412 else
10413
10414       USE_OPROFILE=0
10415
10416
10417 fi
10418
10419
10420 cat >>confdefs.h <<_ACEOF
10421 #define LLVM_USE_OPROFILE $USE_OPROFILE
10422 _ACEOF
10423
10424
10425
10426 # Check whether --with-intel-jitevents was given.
10427 if test "${with_intel_jitevents+set}" = set; then
10428   withval=$with_intel_jitevents;
10429        case "$withval" in
10430           yes) USE_INTEL_JITEVENTS=1
10431 ;;
10432           no)  USE_INTEL_JITEVENTS=0
10433 ;;
10434           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10435 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10436    { (exit 1); exit 1; }; };;
10437        esac
10438
10439       case $llvm_cv_os_type in
10440         Linux|Win32|Cygwin|MingW) ;;
10441         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10442 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10443    { (exit 1); exit 1; }; };;
10444       esac
10445
10446       case "$llvm_cv_target_arch" in
10447         x86|x86_64) ;;
10448         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10449 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10450    { (exit 1); exit 1; }; };;
10451       esac
10452
10453 else
10454
10455       USE_INTEL_JITEVENTS=0
10456
10457
10458 fi
10459
10460
10461 cat >>confdefs.h <<_ACEOF
10462 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10463 _ACEOF
10464
10465
10466 for ac_prog in xml2-config
10467 do
10468   # Extract the first word of "$ac_prog", so it can be a program name with args.
10469 set dummy $ac_prog; ac_word=$2
10470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10472 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10473   echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475   if test -n "$XML2CONFIG"; then
10476   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10477 else
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10480 do
10481   IFS=$as_save_IFS
10482   test -z "$as_dir" && as_dir=.
10483   for ac_exec_ext in '' $ac_executable_extensions; do
10484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10485     ac_cv_prog_XML2CONFIG="$ac_prog"
10486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10487     break 2
10488   fi
10489 done
10490 done
10491 IFS=$as_save_IFS
10492
10493 fi
10494 fi
10495 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10496 if test -n "$XML2CONFIG"; then
10497   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10498 echo "${ECHO_T}$XML2CONFIG" >&6; }
10499 else
10500   { echo "$as_me:$LINENO: result: no" >&5
10501 echo "${ECHO_T}no" >&6; }
10502 fi
10503
10504
10505   test -n "$XML2CONFIG" && break
10506 done
10507
10508
10509 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10510 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10511 if test "x$XML2CONFIG" = "x"; then
10512  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10513 echo "${ECHO_T}xml2-config not found" >&6; }
10514 else
10515  LIBXML2_INC=`$XML2CONFIG --cflags`
10516  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10517 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10518  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10519 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10520 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10521   echo $ECHO_N "(cached) $ECHO_C" >&6
10522 else
10523   ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-lxml2  $LIBS"
10525 cat >conftest.$ac_ext <<_ACEOF
10526 /* confdefs.h.  */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h.  */
10531
10532 /* Override any GCC internal prototype to avoid an error.
10533    Use char because int might match the return type of a GCC
10534    builtin and then its argument prototype would still apply.  */
10535 #ifdef __cplusplus
10536 extern "C"
10537 #endif
10538 char xmlReadFile ();
10539 int
10540 main ()
10541 {
10542 return xmlReadFile ();
10543   ;
10544   return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551   *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554   (eval "$ac_link") 2>conftest.er1
10555   ac_status=$?
10556   grep -v '^ *+' conftest.er1 >conftest.err
10557   rm -f conftest.er1
10558   cat conftest.err >&5
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); } &&
10561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10562   { (case "(($ac_try" in
10563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564   *) ac_try_echo=$ac_try;;
10565 esac
10566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567   (eval "$ac_try") 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; } &&
10571          { ac_try='test -s conftest$ac_exeext'
10572   { (case "(($ac_try" in
10573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574   *) ac_try_echo=$ac_try;;
10575 esac
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577   (eval "$ac_try") 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }; then
10581   ac_cv_lib_xml2_xmlReadFile=yes
10582 else
10583   echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586         ac_cv_lib_xml2_xmlReadFile=no
10587 fi
10588
10589 rm -f core conftest.err conftest.$ac_objext \
10590       conftest$ac_exeext conftest.$ac_ext
10591 LIBS=$ac_check_lib_save_LIBS
10592 fi
10593 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10594 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10595 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10596
10597 cat >>confdefs.h <<\_ACEOF
10598 #define CLANG_HAVE_LIBXML 1
10599 _ACEOF
10600
10601                                 LIBXML2_LIBS="-lxml2"
10602 fi
10603
10604 fi
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 ac_header_dirent=no
10615 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10616   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10617 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10618 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10620   echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622   cat >conftest.$ac_ext <<_ACEOF
10623 /* confdefs.h.  */
10624 _ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h.  */
10628 #include <sys/types.h>
10629 #include <$ac_hdr>
10630
10631 int
10632 main ()
10633 {
10634 if ((DIR *) 0)
10635 return 0;
10636   ;
10637   return 0;
10638 }
10639 _ACEOF
10640 rm -f conftest.$ac_objext
10641 if { (ac_try="$ac_compile"
10642 case "(($ac_try" in
10643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644   *) ac_try_echo=$ac_try;;
10645 esac
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647   (eval "$ac_compile") 2>conftest.er1
10648   ac_status=$?
10649   grep -v '^ *+' conftest.er1 >conftest.err
10650   rm -f conftest.er1
10651   cat conftest.err >&5
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } &&
10654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655   { (case "(($ac_try" in
10656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657   *) ac_try_echo=$ac_try;;
10658 esac
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660   (eval "$ac_try") 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; } &&
10664          { ac_try='test -s conftest.$ac_objext'
10665   { (case "(($ac_try" in
10666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667   *) ac_try_echo=$ac_try;;
10668 esac
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670   (eval "$ac_try") 2>&5
10671   ac_status=$?
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); }; }; then
10674   eval "$as_ac_Header=yes"
10675 else
10676   echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679         eval "$as_ac_Header=no"
10680 fi
10681
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 fi
10684 ac_res=`eval echo '${'$as_ac_Header'}'`
10685                { echo "$as_me:$LINENO: result: $ac_res" >&5
10686 echo "${ECHO_T}$ac_res" >&6; }
10687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10688   cat >>confdefs.h <<_ACEOF
10689 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10690 _ACEOF
10691
10692 ac_header_dirent=$ac_hdr; break
10693 fi
10694
10695 done
10696 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10697 if test $ac_header_dirent = dirent.h; then
10698   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10699 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10700 if test "${ac_cv_search_opendir+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   ac_func_search_save_LIBS=$LIBS
10704 cat >conftest.$ac_ext <<_ACEOF
10705 /* confdefs.h.  */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h.  */
10710
10711 /* Override any GCC internal prototype to avoid an error.
10712    Use char because int might match the return type of a GCC
10713    builtin and then its argument prototype would still apply.  */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char opendir ();
10718 int
10719 main ()
10720 {
10721 return opendir ();
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 for ac_lib in '' dir; do
10727   if test -z "$ac_lib"; then
10728     ac_res="none required"
10729   else
10730     ac_res=-l$ac_lib
10731     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10732   fi
10733   rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (ac_try="$ac_link"
10735 case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740   (eval "$ac_link") 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } &&
10747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748   { (case "(($ac_try" in
10749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750   *) ac_try_echo=$ac_try;;
10751 esac
10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753   (eval "$ac_try") 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; } &&
10757          { ac_try='test -s conftest$ac_exeext'
10758   { (case "(($ac_try" in
10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760   *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763   (eval "$ac_try") 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; }; then
10767   ac_cv_search_opendir=$ac_res
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772
10773 fi
10774
10775 rm -f core conftest.err conftest.$ac_objext \
10776       conftest$ac_exeext
10777   if test "${ac_cv_search_opendir+set}" = set; then
10778   break
10779 fi
10780 done
10781 if test "${ac_cv_search_opendir+set}" = set; then
10782   :
10783 else
10784   ac_cv_search_opendir=no
10785 fi
10786 rm conftest.$ac_ext
10787 LIBS=$ac_func_search_save_LIBS
10788 fi
10789 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10790 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10791 ac_res=$ac_cv_search_opendir
10792 if test "$ac_res" != no; then
10793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10794
10795 fi
10796
10797 else
10798   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10799 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10800 if test "${ac_cv_search_opendir+set}" = set; then
10801   echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803   ac_func_search_save_LIBS=$LIBS
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810
10811 /* Override any GCC internal prototype to avoid an error.
10812    Use char because int might match the return type of a GCC
10813    builtin and then its argument prototype would still apply.  */
10814 #ifdef __cplusplus
10815 extern "C"
10816 #endif
10817 char opendir ();
10818 int
10819 main ()
10820 {
10821 return opendir ();
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 for ac_lib in '' x; do
10827   if test -z "$ac_lib"; then
10828     ac_res="none required"
10829   else
10830     ac_res=-l$ac_lib
10831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10832   fi
10833   rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837   *) ac_try_echo=$ac_try;;
10838 esac
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840   (eval "$ac_link") 2>conftest.er1
10841   ac_status=$?
10842   grep -v '^ *+' conftest.er1 >conftest.err
10843   rm -f conftest.er1
10844   cat conftest.err >&5
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } &&
10847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10848   { (case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853   (eval "$ac_try") 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; } &&
10857          { ac_try='test -s conftest$ac_exeext'
10858   { (case "(($ac_try" in
10859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860   *) ac_try_echo=$ac_try;;
10861 esac
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863   (eval "$ac_try") 2>&5
10864   ac_status=$?
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); }; }; then
10867   ac_cv_search_opendir=$ac_res
10868 else
10869   echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872
10873 fi
10874
10875 rm -f core conftest.err conftest.$ac_objext \
10876       conftest$ac_exeext
10877   if test "${ac_cv_search_opendir+set}" = set; then
10878   break
10879 fi
10880 done
10881 if test "${ac_cv_search_opendir+set}" = set; then
10882   :
10883 else
10884   ac_cv_search_opendir=no
10885 fi
10886 rm conftest.$ac_ext
10887 LIBS=$ac_func_search_save_LIBS
10888 fi
10889 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10890 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10891 ac_res=$ac_cv_search_opendir
10892 if test "$ac_res" != no; then
10893   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10894
10895 fi
10896
10897 fi
10898
10899 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10900 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10901 if test "${ac_cv_header_mmap_anon+set}" = set; then
10902   echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904    ac_ext=c
10905 ac_cpp='$CPP $CPPFLAGS'
10906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10909
10910   cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h.  */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h.  */
10916 #include <sys/mman.h>
10917 #include <unistd.h>
10918 #include <fcntl.h>
10919 int
10920 main ()
10921 {
10922 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_compile") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942   { (case "(($ac_try" in
10943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944   *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947   (eval "$ac_try") 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; } &&
10951          { ac_try='test -s conftest.$ac_objext'
10952   { (case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957   (eval "$ac_try") 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); }; }; then
10961   ac_cv_header_mmap_anon=yes
10962 else
10963   echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966         ac_cv_header_mmap_anon=no
10967 fi
10968
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970   ac_ext=c
10971 ac_cpp='$CPP $CPPFLAGS'
10972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10975
10976
10977 fi
10978 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10979 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10980 if test "$ac_cv_header_mmap_anon" = yes; then
10981
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_MMAP_ANONYMOUS 1
10984 _ACEOF
10985
10986 fi
10987
10988 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10989 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10990 if test "${ac_cv_header_stat_broken+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999 #include <sys/types.h>
11000 #include <sys/stat.h>
11001
11002 #if defined S_ISBLK && defined S_IFDIR
11003 # if S_ISBLK (S_IFDIR)
11004 You lose.
11005 # endif
11006 #endif
11007
11008 #if defined S_ISBLK && defined S_IFCHR
11009 # if S_ISBLK (S_IFCHR)
11010 You lose.
11011 # endif
11012 #endif
11013
11014 #if defined S_ISLNK && defined S_IFREG
11015 # if S_ISLNK (S_IFREG)
11016 You lose.
11017 # endif
11018 #endif
11019
11020 #if defined S_ISSOCK && defined S_IFREG
11021 # if S_ISSOCK (S_IFREG)
11022 You lose.
11023 # endif
11024 #endif
11025
11026 _ACEOF
11027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11028   $EGREP "You lose" >/dev/null 2>&1; then
11029   ac_cv_header_stat_broken=yes
11030 else
11031   ac_cv_header_stat_broken=no
11032 fi
11033 rm -f conftest*
11034
11035 fi
11036 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11037 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11038 if test $ac_cv_header_stat_broken = yes; then
11039
11040 cat >>confdefs.h <<\_ACEOF
11041 #define STAT_MACROS_BROKEN 1
11042 _ACEOF
11043
11044 fi
11045
11046 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11047 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11048 if test "${ac_cv_header_time+set}" = set; then
11049   echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051   cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057 #include <sys/types.h>
11058 #include <sys/time.h>
11059 #include <time.h>
11060
11061 int
11062 main ()
11063 {
11064 if ((struct tm *) 0)
11065 return 0;
11066   ;
11067   return 0;
11068 }
11069 _ACEOF
11070 rm -f conftest.$ac_objext
11071 if { (ac_try="$ac_compile"
11072 case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_compile") 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } &&
11084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11085   { (case "(($ac_try" in
11086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087   *) ac_try_echo=$ac_try;;
11088 esac
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090   (eval "$ac_try") 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; } &&
11094          { ac_try='test -s conftest.$ac_objext'
11095   { (case "(($ac_try" in
11096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097   *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100   (eval "$ac_try") 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; }; then
11104   ac_cv_header_time=yes
11105 else
11106   echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109         ac_cv_header_time=no
11110 fi
11111
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 fi
11114 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11115 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11116 if test $ac_cv_header_time = yes; then
11117
11118 cat >>confdefs.h <<\_ACEOF
11119 #define TIME_WITH_SYS_TIME 1
11120 _ACEOF
11121
11122 fi
11123
11124
11125 ac_ext=cpp
11126 ac_cpp='$CXXCPP $CPPFLAGS'
11127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11130
11131
11132 for ac_header in cxxabi.h
11133 do
11134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11138   echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140   cat >conftest.$ac_ext <<_ACEOF
11141 /* confdefs.h.  */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h.  */
11146 #include <stddef.h>
11147
11148
11149 #include <$ac_header>
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (ac_try="$ac_compile"
11153 case "(($ac_try" in
11154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155   *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158   (eval "$ac_compile") 2>conftest.er1
11159   ac_status=$?
11160   grep -v '^ *+' conftest.er1 >conftest.err
11161   rm -f conftest.er1
11162   cat conftest.err >&5
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } &&
11165          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11166   { (case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171   (eval "$ac_try") 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; } &&
11175          { ac_try='test -s conftest.$ac_objext'
11176   { (case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_try") 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   eval "$as_ac_Header=yes"
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190         eval "$as_ac_Header=no"
11191 fi
11192
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11199   cat >>confdefs.h <<_ACEOF
11200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11201 _ACEOF
11202
11203 fi
11204
11205 done
11206
11207 ac_ext=c
11208 ac_cpp='$CPP $CPPFLAGS'
11209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11212
11213
11214
11215
11216
11217
11218
11219 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11220 do
11221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11223   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 fi
11228 ac_res=`eval echo '${'$as_ac_Header'}'`
11229                { echo "$as_me:$LINENO: result: $ac_res" >&5
11230 echo "${ECHO_T}$ac_res" >&6; }
11231 else
11232   # Is the header compilable?
11233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11235 cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 $ac_includes_default
11242 #include <$ac_header>
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (ac_try="$ac_compile"
11246 case "(($ac_try" in
11247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248   *) ac_try_echo=$ac_try;;
11249 esac
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251   (eval "$ac_compile") 2>conftest.er1
11252   ac_status=$?
11253   grep -v '^ *+' conftest.er1 >conftest.err
11254   rm -f conftest.er1
11255   cat conftest.err >&5
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } &&
11258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11259   { (case "(($ac_try" in
11260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261   *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264   (eval "$ac_try") 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); }; } &&
11268          { ac_try='test -s conftest.$ac_objext'
11269   { (case "(($ac_try" in
11270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271   *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274   (eval "$ac_try") 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); }; }; then
11278   ac_header_compiler=yes
11279 else
11280   echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283         ac_header_compiler=no
11284 fi
11285
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11288 echo "${ECHO_T}$ac_header_compiler" >&6; }
11289
11290 # Is the header present?
11291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h.  */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h.  */
11299 #include <$ac_header>
11300 _ACEOF
11301 if { (ac_try="$ac_cpp conftest.$ac_ext"
11302 case "(($ac_try" in
11303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304   *) ac_try_echo=$ac_try;;
11305 esac
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11308   ac_status=$?
11309   grep -v '^ *+' conftest.er1 >conftest.err
11310   rm -f conftest.er1
11311   cat conftest.err >&5
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); } >/dev/null; then
11314   if test -s conftest.err; then
11315     ac_cpp_err=$ac_c_preproc_warn_flag
11316     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11317   else
11318     ac_cpp_err=
11319   fi
11320 else
11321   ac_cpp_err=yes
11322 fi
11323 if test -z "$ac_cpp_err"; then
11324   ac_header_preproc=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329   ac_header_preproc=no
11330 fi
11331
11332 rm -f conftest.err conftest.$ac_ext
11333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11334 echo "${ECHO_T}$ac_header_preproc" >&6; }
11335
11336 # So?  What about this header?
11337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11338   yes:no: )
11339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11343     ac_header_preproc=yes
11344     ;;
11345   no:yes:* )
11346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11358     ( cat <<\_ASBOX
11359 ## ------------------------------------ ##
11360 ## Report this to http://llvm.org/bugs/ ##
11361 ## ------------------------------------ ##
11362 _ASBOX
11363      ) | sed "s/^/$as_me: WARNING:     /" >&2
11364     ;;
11365 esac
11366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11369   echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371   eval "$as_ac_Header=\$ac_header_preproc"
11372 fi
11373 ac_res=`eval echo '${'$as_ac_Header'}'`
11374                { echo "$as_me:$LINENO: result: $ac_res" >&5
11375 echo "${ECHO_T}$ac_res" >&6; }
11376
11377 fi
11378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11379   cat >>confdefs.h <<_ACEOF
11380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11381 _ACEOF
11382
11383 fi
11384
11385 done
11386
11387
11388
11389
11390
11391
11392
11393 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11394 do
11395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11397   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400   echo $ECHO_N "(cached) $ECHO_C" >&6
11401 fi
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403                { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11405 else
11406   # Is the header compilable?
11407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h.  */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h.  */
11415 $ac_includes_default
11416 #include <$ac_header>
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (ac_try="$ac_compile"
11420 case "(($ac_try" in
11421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422   *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425   (eval "$ac_compile") 2>conftest.er1
11426   ac_status=$?
11427   grep -v '^ *+' conftest.er1 >conftest.err
11428   rm -f conftest.er1
11429   cat conftest.err >&5
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } &&
11432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433   { (case "(($ac_try" in
11434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435   *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438   (eval "$ac_try") 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); }; } &&
11442          { ac_try='test -s conftest.$ac_objext'
11443   { (case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_try") 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; }; then
11452   ac_header_compiler=yes
11453 else
11454   echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11456
11457         ac_header_compiler=no
11458 fi
11459
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11462 echo "${ECHO_T}$ac_header_compiler" >&6; }
11463
11464 # Is the header present?
11465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h.  */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h.  */
11473 #include <$ac_header>
11474 _ACEOF
11475 if { (ac_try="$ac_cpp conftest.$ac_ext"
11476 case "(($ac_try" in
11477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478   *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11482   ac_status=$?
11483   grep -v '^ *+' conftest.er1 >conftest.err
11484   rm -f conftest.er1
11485   cat conftest.err >&5
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } >/dev/null; then
11488   if test -s conftest.err; then
11489     ac_cpp_err=$ac_c_preproc_warn_flag
11490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11491   else
11492     ac_cpp_err=
11493   fi
11494 else
11495   ac_cpp_err=yes
11496 fi
11497 if test -z "$ac_cpp_err"; then
11498   ac_header_preproc=yes
11499 else
11500   echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11502
11503   ac_header_preproc=no
11504 fi
11505
11506 rm -f conftest.err conftest.$ac_ext
11507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11508 echo "${ECHO_T}$ac_header_preproc" >&6; }
11509
11510 # So?  What about this header?
11511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11512   yes:no: )
11513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11517     ac_header_preproc=yes
11518     ;;
11519   no:yes:* )
11520     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11522     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11523 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11526     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11527 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11530     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11532     ( cat <<\_ASBOX
11533 ## ------------------------------------ ##
11534 ## Report this to http://llvm.org/bugs/ ##
11535 ## ------------------------------------ ##
11536 _ASBOX
11537      ) | sed "s/^/$as_me: WARNING:     /" >&2
11538     ;;
11539 esac
11540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11543   echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545   eval "$as_ac_Header=\$ac_header_preproc"
11546 fi
11547 ac_res=`eval echo '${'$as_ac_Header'}'`
11548                { echo "$as_me:$LINENO: result: $ac_res" >&5
11549 echo "${ECHO_T}$ac_res" >&6; }
11550
11551 fi
11552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11553   cat >>confdefs.h <<_ACEOF
11554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11555 _ACEOF
11556
11557 fi
11558
11559 done
11560
11561
11562
11563
11564
11565
11566 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11567 do
11568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 fi
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576                { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11578 else
11579   # Is the header compilable?
11580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h.  */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h.  */
11588 $ac_includes_default
11589 #include <$ac_header>
11590 _ACEOF
11591 rm -f conftest.$ac_objext
11592 if { (ac_try="$ac_compile"
11593 case "(($ac_try" in
11594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595   *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598   (eval "$ac_compile") 2>conftest.er1
11599   ac_status=$?
11600   grep -v '^ *+' conftest.er1 >conftest.err
11601   rm -f conftest.er1
11602   cat conftest.err >&5
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); } &&
11605          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606   { (case "(($ac_try" in
11607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608   *) ac_try_echo=$ac_try;;
11609 esac
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611   (eval "$ac_try") 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); }; } &&
11615          { ac_try='test -s conftest.$ac_objext'
11616   { (case "(($ac_try" in
11617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618   *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621   (eval "$ac_try") 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; }; then
11625   ac_header_compiler=yes
11626 else
11627   echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630         ac_header_compiler=no
11631 fi
11632
11633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635 echo "${ECHO_T}$ac_header_compiler" >&6; }
11636
11637 # Is the header present?
11638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h.  */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h.  */
11646 #include <$ac_header>
11647 _ACEOF
11648 if { (ac_try="$ac_cpp conftest.$ac_ext"
11649 case "(($ac_try" in
11650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651   *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11655   ac_status=$?
11656   grep -v '^ *+' conftest.er1 >conftest.err
11657   rm -f conftest.er1
11658   cat conftest.err >&5
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } >/dev/null; then
11661   if test -s conftest.err; then
11662     ac_cpp_err=$ac_c_preproc_warn_flag
11663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11664   else
11665     ac_cpp_err=
11666   fi
11667 else
11668   ac_cpp_err=yes
11669 fi
11670 if test -z "$ac_cpp_err"; then
11671   ac_header_preproc=yes
11672 else
11673   echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676   ac_header_preproc=no
11677 fi
11678
11679 rm -f conftest.err conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11682
11683 # So?  What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685   yes:no: )
11686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690     ac_header_preproc=yes
11691     ;;
11692   no:yes:* )
11693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11705     ( cat <<\_ASBOX
11706 ## ------------------------------------ ##
11707 ## Report this to http://llvm.org/bugs/ ##
11708 ## ------------------------------------ ##
11709 _ASBOX
11710      ) | sed "s/^/$as_me: WARNING:     /" >&2
11711     ;;
11712 esac
11713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11716   echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718   eval "$as_ac_Header=\$ac_header_preproc"
11719 fi
11720 ac_res=`eval echo '${'$as_ac_Header'}'`
11721                { echo "$as_me:$LINENO: result: $ac_res" >&5
11722 echo "${ECHO_T}$ac_res" >&6; }
11723
11724 fi
11725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726   cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11728 _ACEOF
11729
11730 fi
11731
11732 done
11733
11734
11735
11736
11737 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11738 do
11739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11741   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 fi
11746 ac_res=`eval echo '${'$as_ac_Header'}'`
11747                { echo "$as_me:$LINENO: result: $ac_res" >&5
11748 echo "${ECHO_T}$ac_res" >&6; }
11749 else
11750   # Is the header compilable?
11751 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h.  */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h.  */
11759 $ac_includes_default
11760 #include <$ac_header>
11761 _ACEOF
11762 rm -f conftest.$ac_objext
11763 if { (ac_try="$ac_compile"
11764 case "(($ac_try" in
11765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766   *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769   (eval "$ac_compile") 2>conftest.er1
11770   ac_status=$?
11771   grep -v '^ *+' conftest.er1 >conftest.err
11772   rm -f conftest.er1
11773   cat conftest.err >&5
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); } &&
11776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777   { (case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782   (eval "$ac_try") 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; } &&
11786          { ac_try='test -s conftest.$ac_objext'
11787   { (case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792   (eval "$ac_try") 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   ac_header_compiler=yes
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801         ac_header_compiler=no
11802 fi
11803
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11806 echo "${ECHO_T}$ac_header_compiler" >&6; }
11807
11808 # Is the header present?
11809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h.  */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h.  */
11817 #include <$ac_header>
11818 _ACEOF
11819 if { (ac_try="$ac_cpp conftest.$ac_ext"
11820 case "(($ac_try" in
11821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822   *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11826   ac_status=$?
11827   grep -v '^ *+' conftest.er1 >conftest.err
11828   rm -f conftest.er1
11829   cat conftest.err >&5
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); } >/dev/null; then
11832   if test -s conftest.err; then
11833     ac_cpp_err=$ac_c_preproc_warn_flag
11834     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11835   else
11836     ac_cpp_err=
11837   fi
11838 else
11839   ac_cpp_err=yes
11840 fi
11841 if test -z "$ac_cpp_err"; then
11842   ac_header_preproc=yes
11843 else
11844   echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847   ac_header_preproc=no
11848 fi
11849
11850 rm -f conftest.err conftest.$ac_ext
11851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11852 echo "${ECHO_T}$ac_header_preproc" >&6; }
11853
11854 # So?  What about this header?
11855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11856   yes:no: )
11857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11861     ac_header_preproc=yes
11862     ;;
11863   no:yes:* )
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11876     ( cat <<\_ASBOX
11877 ## ------------------------------------ ##
11878 ## Report this to http://llvm.org/bugs/ ##
11879 ## ------------------------------------ ##
11880 _ASBOX
11881      ) | sed "s/^/$as_me: WARNING:     /" >&2
11882     ;;
11883 esac
11884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11887   echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889   eval "$as_ac_Header=\$ac_header_preproc"
11890 fi
11891 ac_res=`eval echo '${'$as_ac_Header'}'`
11892                { echo "$as_me:$LINENO: result: $ac_res" >&5
11893 echo "${ECHO_T}$ac_res" >&6; }
11894
11895 fi
11896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11897   cat >>confdefs.h <<_ACEOF
11898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11899 _ACEOF
11900
11901 fi
11902
11903 done
11904
11905
11906 for ac_header in valgrind/valgrind.h
11907 do
11908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11910   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11913   echo $ECHO_N "(cached) $ECHO_C" >&6
11914 fi
11915 ac_res=`eval echo '${'$as_ac_Header'}'`
11916                { echo "$as_me:$LINENO: result: $ac_res" >&5
11917 echo "${ECHO_T}$ac_res" >&6; }
11918 else
11919   # Is the header compilable?
11920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h.  */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h.  */
11928 $ac_includes_default
11929 #include <$ac_header>
11930 _ACEOF
11931 rm -f conftest.$ac_objext
11932 if { (ac_try="$ac_compile"
11933 case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_compile") 2>conftest.er1
11939   ac_status=$?
11940   grep -v '^ *+' conftest.er1 >conftest.err
11941   rm -f conftest.er1
11942   cat conftest.err >&5
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); } &&
11945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11946   { (case "(($ac_try" in
11947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948   *) ac_try_echo=$ac_try;;
11949 esac
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951   (eval "$ac_try") 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; } &&
11955          { ac_try='test -s conftest.$ac_objext'
11956   { (case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_try") 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; }; then
11965   ac_header_compiler=yes
11966 else
11967   echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970         ac_header_compiler=no
11971 fi
11972
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11975 echo "${ECHO_T}$ac_header_compiler" >&6; }
11976
11977 # Is the header present?
11978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986 #include <$ac_header>
11987 _ACEOF
11988 if { (ac_try="$ac_cpp conftest.$ac_ext"
11989 case "(($ac_try" in
11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991   *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } >/dev/null; then
12001   if test -s conftest.err; then
12002     ac_cpp_err=$ac_c_preproc_warn_flag
12003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12004   else
12005     ac_cpp_err=
12006   fi
12007 else
12008   ac_cpp_err=yes
12009 fi
12010 if test -z "$ac_cpp_err"; then
12011   ac_header_preproc=yes
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016   ac_header_preproc=no
12017 fi
12018
12019 rm -f conftest.err conftest.$ac_ext
12020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12021 echo "${ECHO_T}$ac_header_preproc" >&6; }
12022
12023 # So?  What about this header?
12024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12025   yes:no: )
12026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12030     ac_header_preproc=yes
12031     ;;
12032   no:yes:* )
12033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12045     ( cat <<\_ASBOX
12046 ## ------------------------------------ ##
12047 ## Report this to http://llvm.org/bugs/ ##
12048 ## ------------------------------------ ##
12049 _ASBOX
12050      ) | sed "s/^/$as_me: WARNING:     /" >&2
12051     ;;
12052 esac
12053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058   eval "$as_ac_Header=\$ac_header_preproc"
12059 fi
12060 ac_res=`eval echo '${'$as_ac_Header'}'`
12061                { echo "$as_me:$LINENO: result: $ac_res" >&5
12062 echo "${ECHO_T}$ac_res" >&6; }
12063
12064 fi
12065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12066   cat >>confdefs.h <<_ACEOF
12067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12068 _ACEOF
12069
12070 fi
12071
12072 done
12073
12074
12075 for ac_header in fenv.h
12076 do
12077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12082   echo $ECHO_N "(cached) $ECHO_C" >&6
12083 fi
12084 ac_res=`eval echo '${'$as_ac_Header'}'`
12085                { echo "$as_me:$LINENO: result: $ac_res" >&5
12086 echo "${ECHO_T}$ac_res" >&6; }
12087 else
12088   # Is the header compilable?
12089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12091 cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h.  */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h.  */
12097 $ac_includes_default
12098 #include <$ac_header>
12099 _ACEOF
12100 rm -f conftest.$ac_objext
12101 if { (ac_try="$ac_compile"
12102 case "(($ac_try" in
12103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104   *) ac_try_echo=$ac_try;;
12105 esac
12106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107   (eval "$ac_compile") 2>conftest.er1
12108   ac_status=$?
12109   grep -v '^ *+' conftest.er1 >conftest.err
12110   rm -f conftest.er1
12111   cat conftest.err >&5
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); } &&
12114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12115   { (case "(($ac_try" in
12116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117   *) ac_try_echo=$ac_try;;
12118 esac
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120   (eval "$ac_try") 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; } &&
12124          { ac_try='test -s conftest.$ac_objext'
12125   { (case "(($ac_try" in
12126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127   *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130   (eval "$ac_try") 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; }; then
12134   ac_header_compiler=yes
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139         ac_header_compiler=no
12140 fi
12141
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12144 echo "${ECHO_T}$ac_header_compiler" >&6; }
12145
12146 # Is the header present?
12147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h.  */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h.  */
12155 #include <$ac_header>
12156 _ACEOF
12157 if { (ac_try="$ac_cpp conftest.$ac_ext"
12158 case "(($ac_try" in
12159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160   *) ac_try_echo=$ac_try;;
12161 esac
12162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12164   ac_status=$?
12165   grep -v '^ *+' conftest.er1 >conftest.err
12166   rm -f conftest.er1
12167   cat conftest.err >&5
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); } >/dev/null; then
12170   if test -s conftest.err; then
12171     ac_cpp_err=$ac_c_preproc_warn_flag
12172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12173   else
12174     ac_cpp_err=
12175   fi
12176 else
12177   ac_cpp_err=yes
12178 fi
12179 if test -z "$ac_cpp_err"; then
12180   ac_header_preproc=yes
12181 else
12182   echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185   ac_header_preproc=no
12186 fi
12187
12188 rm -f conftest.err conftest.$ac_ext
12189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12190 echo "${ECHO_T}$ac_header_preproc" >&6; }
12191
12192 # So?  What about this header?
12193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12194   yes:no: )
12195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12199     ac_header_preproc=yes
12200     ;;
12201   no:yes:* )
12202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12214     ( cat <<\_ASBOX
12215 ## ------------------------------------ ##
12216 ## Report this to http://llvm.org/bugs/ ##
12217 ## ------------------------------------ ##
12218 _ASBOX
12219      ) | sed "s/^/$as_me: WARNING:     /" >&2
12220     ;;
12221 esac
12222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   eval "$as_ac_Header=\$ac_header_preproc"
12228 fi
12229 ac_res=`eval echo '${'$as_ac_Header'}'`
12230                { echo "$as_me:$LINENO: result: $ac_res" >&5
12231 echo "${ECHO_T}$ac_res" >&6; }
12232
12233 fi
12234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12235   cat >>confdefs.h <<_ACEOF
12236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12237 _ACEOF
12238
12239 fi
12240
12241 done
12242
12243 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12244 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12245 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248   cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h.  */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h.  */
12254 #include <fenv.h>
12255
12256 int
12257 main ()
12258 {
12259 #ifndef FE_ALL_EXCEPT
12260   char *p = (char *) FE_ALL_EXCEPT;
12261   return !p;
12262 #endif
12263
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (ac_try="$ac_compile"
12270 case "(($ac_try" in
12271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272   *) ac_try_echo=$ac_try;;
12273 esac
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275   (eval "$ac_compile") 2>conftest.er1
12276   ac_status=$?
12277   grep -v '^ *+' conftest.er1 >conftest.err
12278   rm -f conftest.er1
12279   cat conftest.err >&5
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); } &&
12282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12283   { (case "(($ac_try" in
12284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285   *) ac_try_echo=$ac_try;;
12286 esac
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288   (eval "$ac_try") 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; } &&
12292          { ac_try='test -s conftest.$ac_objext'
12293   { (case "(($ac_try" in
12294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295   *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298   (eval "$ac_try") 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; }; then
12302   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12303 else
12304   echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12306
12307         ac_cv_have_decl_FE_ALL_EXCEPT=no
12308 fi
12309
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12311 fi
12312 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12313 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12314 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12315
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_DECL_FE_ALL_EXCEPT 1
12318 _ACEOF
12319
12320
12321 else
12322   cat >>confdefs.h <<_ACEOF
12323 #define HAVE_DECL_FE_ALL_EXCEPT 0
12324 _ACEOF
12325
12326
12327 fi
12328 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12329 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12330 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333   cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339 #include <fenv.h>
12340
12341 int
12342 main ()
12343 {
12344 #ifndef FE_INEXACT
12345   char *p = (char *) FE_INEXACT;
12346   return !p;
12347 #endif
12348
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (ac_try="$ac_compile"
12355 case "(($ac_try" in
12356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357   *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360   (eval "$ac_compile") 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } &&
12367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12368   { (case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373   (eval "$ac_try") 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; } &&
12377          { ac_try='test -s conftest.$ac_objext'
12378   { (case "(($ac_try" in
12379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380   *) ac_try_echo=$ac_try;;
12381 esac
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383   (eval "$ac_try") 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); }; }; then
12387   ac_cv_have_decl_FE_INEXACT=yes
12388 else
12389   echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12391
12392         ac_cv_have_decl_FE_INEXACT=no
12393 fi
12394
12395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12396 fi
12397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12398 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12399 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12400
12401 cat >>confdefs.h <<_ACEOF
12402 #define HAVE_DECL_FE_INEXACT 1
12403 _ACEOF
12404
12405
12406 else
12407   cat >>confdefs.h <<_ACEOF
12408 #define HAVE_DECL_FE_INEXACT 0
12409 _ACEOF
12410
12411
12412 fi
12413
12414
12415 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12416
12417 for ac_header in pthread.h
12418 do
12419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12421   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 fi
12426 ac_res=`eval echo '${'$as_ac_Header'}'`
12427                { echo "$as_me:$LINENO: result: $ac_res" >&5
12428 echo "${ECHO_T}$ac_res" >&6; }
12429 else
12430   # Is the header compilable?
12431 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12433 cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439 $ac_includes_default
12440 #include <$ac_header>
12441 _ACEOF
12442 rm -f conftest.$ac_objext
12443 if { (ac_try="$ac_compile"
12444 case "(($ac_try" in
12445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446   *) ac_try_echo=$ac_try;;
12447 esac
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449   (eval "$ac_compile") 2>conftest.er1
12450   ac_status=$?
12451   grep -v '^ *+' conftest.er1 >conftest.err
12452   rm -f conftest.er1
12453   cat conftest.err >&5
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); } &&
12456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12457   { (case "(($ac_try" in
12458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459   *) ac_try_echo=$ac_try;;
12460 esac
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462   (eval "$ac_try") 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); }; } &&
12466          { ac_try='test -s conftest.$ac_objext'
12467   { (case "(($ac_try" in
12468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12469   *) ac_try_echo=$ac_try;;
12470 esac
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472   (eval "$ac_try") 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   ac_header_compiler=yes
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481         ac_header_compiler=no
12482 fi
12483
12484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12486 echo "${ECHO_T}$ac_header_compiler" >&6; }
12487
12488 # Is the header present?
12489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h.  */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h.  */
12497 #include <$ac_header>
12498 _ACEOF
12499 if { (ac_try="$ac_cpp conftest.$ac_ext"
12500 case "(($ac_try" in
12501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502   *) ac_try_echo=$ac_try;;
12503 esac
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12506   ac_status=$?
12507   grep -v '^ *+' conftest.er1 >conftest.err
12508   rm -f conftest.er1
12509   cat conftest.err >&5
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); } >/dev/null; then
12512   if test -s conftest.err; then
12513     ac_cpp_err=$ac_c_preproc_warn_flag
12514     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12515   else
12516     ac_cpp_err=
12517   fi
12518 else
12519   ac_cpp_err=yes
12520 fi
12521 if test -z "$ac_cpp_err"; then
12522   ac_header_preproc=yes
12523 else
12524   echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527   ac_header_preproc=no
12528 fi
12529
12530 rm -f conftest.err conftest.$ac_ext
12531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12532 echo "${ECHO_T}$ac_header_preproc" >&6; }
12533
12534 # So?  What about this header?
12535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12536   yes:no: )
12537     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12541     ac_header_preproc=yes
12542     ;;
12543   no:yes:* )
12544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12546     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12547 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12548     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12550     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12551 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12554     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12556     ( cat <<\_ASBOX
12557 ## ------------------------------------ ##
12558 ## Report this to http://llvm.org/bugs/ ##
12559 ## ------------------------------------ ##
12560 _ASBOX
12561      ) | sed "s/^/$as_me: WARNING:     /" >&2
12562     ;;
12563 esac
12564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12567   echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569   eval "$as_ac_Header=\$ac_header_preproc"
12570 fi
12571 ac_res=`eval echo '${'$as_ac_Header'}'`
12572                { echo "$as_me:$LINENO: result: $ac_res" >&5
12573 echo "${ECHO_T}$ac_res" >&6; }
12574
12575 fi
12576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12577   cat >>confdefs.h <<_ACEOF
12578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12579 _ACEOF
12580  HAVE_PTHREAD=1
12581
12582 else
12583   HAVE_PTHREAD=0
12584
12585 fi
12586
12587 done
12588
12589 else
12590   HAVE_PTHREAD=0
12591
12592 fi
12593 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12594
12595 for ac_header in zlib.h
12596 do
12597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12599   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12602   echo $ECHO_N "(cached) $ECHO_C" >&6
12603 fi
12604 ac_res=`eval echo '${'$as_ac_Header'}'`
12605                { echo "$as_me:$LINENO: result: $ac_res" >&5
12606 echo "${ECHO_T}$ac_res" >&6; }
12607 else
12608   # Is the header compilable?
12609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h.  */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h.  */
12617 $ac_includes_default
12618 #include <$ac_header>
12619 _ACEOF
12620 rm -f conftest.$ac_objext
12621 if { (ac_try="$ac_compile"
12622 case "(($ac_try" in
12623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624   *) ac_try_echo=$ac_try;;
12625 esac
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627   (eval "$ac_compile") 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } &&
12634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635   { (case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640   (eval "$ac_try") 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; } &&
12644          { ac_try='test -s conftest.$ac_objext'
12645   { (case "(($ac_try" in
12646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647   *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650   (eval "$ac_try") 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; }; then
12654   ac_header_compiler=yes
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659         ac_header_compiler=no
12660 fi
12661
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12664 echo "${ECHO_T}$ac_header_compiler" >&6; }
12665
12666 # Is the header present?
12667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h.  */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h.  */
12675 #include <$ac_header>
12676 _ACEOF
12677 if { (ac_try="$ac_cpp conftest.$ac_ext"
12678 case "(($ac_try" in
12679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680   *) ac_try_echo=$ac_try;;
12681 esac
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12684   ac_status=$?
12685   grep -v '^ *+' conftest.er1 >conftest.err
12686   rm -f conftest.er1
12687   cat conftest.err >&5
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); } >/dev/null; then
12690   if test -s conftest.err; then
12691     ac_cpp_err=$ac_c_preproc_warn_flag
12692     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12693   else
12694     ac_cpp_err=
12695   fi
12696 else
12697   ac_cpp_err=yes
12698 fi
12699 if test -z "$ac_cpp_err"; then
12700   ac_header_preproc=yes
12701 else
12702   echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705   ac_header_preproc=no
12706 fi
12707
12708 rm -f conftest.err conftest.$ac_ext
12709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12710 echo "${ECHO_T}$ac_header_preproc" >&6; }
12711
12712 # So?  What about this header?
12713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12714   yes:no: )
12715     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12719     ac_header_preproc=yes
12720     ;;
12721   no:yes:* )
12722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12724     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12725 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12726     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12728     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12729 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12732     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12734     ( cat <<\_ASBOX
12735 ## ------------------------------------ ##
12736 ## Report this to http://llvm.org/bugs/ ##
12737 ## ------------------------------------ ##
12738 _ASBOX
12739      ) | sed "s/^/$as_me: WARNING:     /" >&2
12740     ;;
12741 esac
12742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   eval "$as_ac_Header=\$ac_header_preproc"
12748 fi
12749 ac_res=`eval echo '${'$as_ac_Header'}'`
12750                { echo "$as_me:$LINENO: result: $ac_res" >&5
12751 echo "${ECHO_T}$ac_res" >&6; }
12752
12753 fi
12754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12755   cat >>confdefs.h <<_ACEOF
12756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12757 _ACEOF
12758  HAVE_LIBZ=1
12759
12760 else
12761   HAVE_LIBZ=0
12762
12763 fi
12764
12765 done
12766
12767 else
12768   HAVE_LIBZ=0
12769
12770 fi
12771
12772 if test "$llvm_cv_enable_libffi" = "yes" ; then
12773
12774
12775 for ac_header in ffi.h ffi/ffi.h
12776 do
12777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12779   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12782   echo $ECHO_N "(cached) $ECHO_C" >&6
12783 fi
12784 ac_res=`eval echo '${'$as_ac_Header'}'`
12785                { echo "$as_me:$LINENO: result: $ac_res" >&5
12786 echo "${ECHO_T}$ac_res" >&6; }
12787 else
12788   # Is the header compilable?
12789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12791 cat >conftest.$ac_ext <<_ACEOF
12792 /* confdefs.h.  */
12793 _ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h.  */
12797 $ac_includes_default
12798 #include <$ac_header>
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (ac_try="$ac_compile"
12802 case "(($ac_try" in
12803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804   *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807   (eval "$ac_compile") 2>conftest.er1
12808   ac_status=$?
12809   grep -v '^ *+' conftest.er1 >conftest.err
12810   rm -f conftest.er1
12811   cat conftest.err >&5
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } &&
12814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12815   { (case "(($ac_try" in
12816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817   *) ac_try_echo=$ac_try;;
12818 esac
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820   (eval "$ac_try") 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); }; } &&
12824          { ac_try='test -s conftest.$ac_objext'
12825   { (case "(($ac_try" in
12826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827   *) ac_try_echo=$ac_try;;
12828 esac
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830   (eval "$ac_try") 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); }; }; then
12834   ac_header_compiler=yes
12835 else
12836   echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12838
12839         ac_header_compiler=no
12840 fi
12841
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12844 echo "${ECHO_T}$ac_header_compiler" >&6; }
12845
12846 # Is the header present?
12847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12849 cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h.  */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h.  */
12855 #include <$ac_header>
12856 _ACEOF
12857 if { (ac_try="$ac_cpp conftest.$ac_ext"
12858 case "(($ac_try" in
12859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860   *) ac_try_echo=$ac_try;;
12861 esac
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12864   ac_status=$?
12865   grep -v '^ *+' conftest.er1 >conftest.err
12866   rm -f conftest.er1
12867   cat conftest.err >&5
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); } >/dev/null; then
12870   if test -s conftest.err; then
12871     ac_cpp_err=$ac_c_preproc_warn_flag
12872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12873   else
12874     ac_cpp_err=
12875   fi
12876 else
12877   ac_cpp_err=yes
12878 fi
12879 if test -z "$ac_cpp_err"; then
12880   ac_header_preproc=yes
12881 else
12882   echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885   ac_header_preproc=no
12886 fi
12887
12888 rm -f conftest.err conftest.$ac_ext
12889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12890 echo "${ECHO_T}$ac_header_preproc" >&6; }
12891
12892 # So?  What about this header?
12893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12894   yes:no: )
12895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12899     ac_header_preproc=yes
12900     ;;
12901   no:yes:* )
12902     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12904     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12905 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12906     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12908     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12909 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12912     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12914     ( cat <<\_ASBOX
12915 ## ------------------------------------ ##
12916 ## Report this to http://llvm.org/bugs/ ##
12917 ## ------------------------------------ ##
12918 _ASBOX
12919      ) | sed "s/^/$as_me: WARNING:     /" >&2
12920     ;;
12921 esac
12922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12925   echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927   eval "$as_ac_Header=\$ac_header_preproc"
12928 fi
12929 ac_res=`eval echo '${'$as_ac_Header'}'`
12930                { echo "$as_me:$LINENO: result: $ac_res" >&5
12931 echo "${ECHO_T}$ac_res" >&6; }
12932
12933 fi
12934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12935   cat >>confdefs.h <<_ACEOF
12936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12937 _ACEOF
12938
12939 fi
12940
12941 done
12942
12943 fi
12944
12945
12946 for ac_header in CrashReporterClient.h
12947 do
12948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12950   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 fi
12955 ac_res=`eval echo '${'$as_ac_Header'}'`
12956                { echo "$as_me:$LINENO: result: $ac_res" >&5
12957 echo "${ECHO_T}$ac_res" >&6; }
12958 else
12959   # Is the header compilable?
12960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h.  */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h.  */
12968 $ac_includes_default
12969 #include <$ac_header>
12970 _ACEOF
12971 rm -f conftest.$ac_objext
12972 if { (ac_try="$ac_compile"
12973 case "(($ac_try" in
12974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975   *) ac_try_echo=$ac_try;;
12976 esac
12977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978   (eval "$ac_compile") 2>conftest.er1
12979   ac_status=$?
12980   grep -v '^ *+' conftest.er1 >conftest.err
12981   rm -f conftest.er1
12982   cat conftest.err >&5
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); } &&
12985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12986   { (case "(($ac_try" in
12987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988   *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991   (eval "$ac_try") 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; } &&
12995          { ac_try='test -s conftest.$ac_objext'
12996   { (case "(($ac_try" in
12997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998   *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001   (eval "$ac_try") 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); }; }; then
13005   ac_header_compiler=yes
13006 else
13007   echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13009
13010         ac_header_compiler=no
13011 fi
13012
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13015 echo "${ECHO_T}$ac_header_compiler" >&6; }
13016
13017 # Is the header present?
13018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13020 cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026 #include <$ac_header>
13027 _ACEOF
13028 if { (ac_try="$ac_cpp conftest.$ac_ext"
13029 case "(($ac_try" in
13030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031   *) ac_try_echo=$ac_try;;
13032 esac
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13035   ac_status=$?
13036   grep -v '^ *+' conftest.er1 >conftest.err
13037   rm -f conftest.er1
13038   cat conftest.err >&5
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); } >/dev/null; then
13041   if test -s conftest.err; then
13042     ac_cpp_err=$ac_c_preproc_warn_flag
13043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13044   else
13045     ac_cpp_err=
13046   fi
13047 else
13048   ac_cpp_err=yes
13049 fi
13050 if test -z "$ac_cpp_err"; then
13051   ac_header_preproc=yes
13052 else
13053   echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056   ac_header_preproc=no
13057 fi
13058
13059 rm -f conftest.err conftest.$ac_ext
13060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13061 echo "${ECHO_T}$ac_header_preproc" >&6; }
13062
13063 # So?  What about this header?
13064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13065   yes:no: )
13066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13070     ac_header_preproc=yes
13071     ;;
13072   no:yes:* )
13073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13075     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13076 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13077     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13079     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13080 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13083     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13085     ( cat <<\_ASBOX
13086 ## ------------------------------------ ##
13087 ## Report this to http://llvm.org/bugs/ ##
13088 ## ------------------------------------ ##
13089 _ASBOX
13090      ) | sed "s/^/$as_me: WARNING:     /" >&2
13091     ;;
13092 esac
13093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13096   echo $ECHO_N "(cached) $ECHO_C" >&6
13097 else
13098   eval "$as_ac_Header=\$ac_header_preproc"
13099 fi
13100 ac_res=`eval echo '${'$as_ac_Header'}'`
13101                { echo "$as_me:$LINENO: result: $ac_res" >&5
13102 echo "${ECHO_T}$ac_res" >&6; }
13103
13104 fi
13105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13106   cat >>confdefs.h <<_ACEOF
13107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13108 _ACEOF
13109
13110 fi
13111
13112 done
13113
13114
13115 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13116 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13117 cat >conftest.$ac_ext <<_ACEOF
13118
13119   /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124
13125     extern const char *__crashreporter_info__;
13126     int main() {
13127       __crashreporter_info__ = "test";
13128       return 0;
13129     }
13130
13131
13132 _ACEOF
13133 rm -f conftest.$ac_objext conftest$ac_exeext
13134 if { (ac_try="$ac_link"
13135 case "(($ac_try" in
13136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137   *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140   (eval "$ac_link") 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } &&
13147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13148   { (case "(($ac_try" in
13149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150   *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153   (eval "$ac_try") 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; } &&
13157          { ac_try='test -s conftest$ac_exeext'
13158   { (case "(($ac_try" in
13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160   *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163   (eval "$ac_try") 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; }; then
13167
13168   { echo "$as_me:$LINENO: result: yes" >&5
13169 echo "${ECHO_T}yes" >&6; }
13170
13171 cat >>confdefs.h <<\_ACEOF
13172 #define HAVE_CRASHREPORTER_INFO 1
13173 _ACEOF
13174
13175
13176 else
13177   echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180
13181   { echo "$as_me:$LINENO: result: no" >&5
13182 echo "${ECHO_T}no" >&6; }
13183
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_CRASHREPORTER_INFO 0
13186 _ACEOF
13187
13188
13189 fi
13190
13191 rm -f core conftest.err conftest.$ac_objext \
13192       conftest$ac_exeext conftest.$ac_ext
13193
13194
13195
13196   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13197 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13198 if test "${ac_cv_huge_val_sanity+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201
13202     ac_ext=cpp
13203 ac_cpp='$CXXCPP $CPPFLAGS'
13204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13207
13208     ac_save_CXXFLAGS=$CXXFLAGS
13209     CXXFLAGS="$CXXFLAGS -pedantic"
13210     if test "$cross_compiling" = yes; then
13211   ac_cv_huge_val_sanity=yes
13212 else
13213   cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 #include <math.h>
13220 int
13221 main ()
13222 {
13223 double x = HUGE_VAL; return x != x;
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 rm -f conftest$ac_exeext
13229 if { (ac_try="$ac_link"
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_link") 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13239   { (case "(($ac_try" in
13240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241   *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244   (eval "$ac_try") 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   ac_cv_huge_val_sanity=yes
13249 else
13250   echo "$as_me: program exited with status $ac_status" >&5
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ( exit $ac_status )
13255 ac_cv_huge_val_sanity=no
13256 fi
13257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13258 fi
13259
13260
13261     CXXFLAGS=$ac_save_CXXFLAGS
13262     ac_ext=c
13263 ac_cpp='$CPP $CPPFLAGS'
13264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13267
13268
13269 fi
13270 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13271 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13272   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13273
13274
13275 { echo "$as_me:$LINENO: checking for pid_t" >&5
13276 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13277 if test "${ac_cv_type_pid_t+set}" = set; then
13278   echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280   cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 $ac_includes_default
13287 typedef pid_t ac__type_new_;
13288 int
13289 main ()
13290 {
13291 if ((ac__type_new_ *) 0)
13292   return 0;
13293 if (sizeof (ac__type_new_))
13294   return 0;
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (ac_try="$ac_compile"
13301 case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306   (eval "$ac_compile") 2>conftest.er1
13307   ac_status=$?
13308   grep -v '^ *+' conftest.er1 >conftest.err
13309   rm -f conftest.er1
13310   cat conftest.err >&5
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } &&
13313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13314   { (case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_try") 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; } &&
13323          { ac_try='test -s conftest.$ac_objext'
13324   { (case "(($ac_try" in
13325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326   *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329   (eval "$ac_try") 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); }; }; then
13333   ac_cv_type_pid_t=yes
13334 else
13335   echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338         ac_cv_type_pid_t=no
13339 fi
13340
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342 fi
13343 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13344 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13345 if test $ac_cv_type_pid_t = yes; then
13346   :
13347 else
13348
13349 cat >>confdefs.h <<_ACEOF
13350 #define pid_t int
13351 _ACEOF
13352
13353 fi
13354
13355 { echo "$as_me:$LINENO: checking for size_t" >&5
13356 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13357 if test "${ac_cv_type_size_t+set}" = set; then
13358   echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360   cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h.  */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h.  */
13366 $ac_includes_default
13367 typedef size_t ac__type_new_;
13368 int
13369 main ()
13370 {
13371 if ((ac__type_new_ *) 0)
13372   return 0;
13373 if (sizeof (ac__type_new_))
13374   return 0;
13375   ;
13376   return 0;
13377 }
13378 _ACEOF
13379 rm -f conftest.$ac_objext
13380 if { (ac_try="$ac_compile"
13381 case "(($ac_try" in
13382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383   *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386   (eval "$ac_compile") 2>conftest.er1
13387   ac_status=$?
13388   grep -v '^ *+' conftest.er1 >conftest.err
13389   rm -f conftest.er1
13390   cat conftest.err >&5
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); } &&
13393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13394   { (case "(($ac_try" in
13395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396   *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399   (eval "$ac_try") 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); }; } &&
13403          { ac_try='test -s conftest.$ac_objext'
13404   { (case "(($ac_try" in
13405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406   *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409   (eval "$ac_try") 2>&5
13410   ac_status=$?
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); }; }; then
13413   ac_cv_type_size_t=yes
13414 else
13415   echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13417
13418         ac_cv_type_size_t=no
13419 fi
13420
13421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13422 fi
13423 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13424 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13425 if test $ac_cv_type_size_t = yes; then
13426   :
13427 else
13428
13429 cat >>confdefs.h <<_ACEOF
13430 #define size_t unsigned int
13431 _ACEOF
13432
13433 fi
13434
13435
13436 cat >>confdefs.h <<_ACEOF
13437 #define RETSIGTYPE void
13438 _ACEOF
13439
13440 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13441 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13442 if test "${ac_cv_struct_tm+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445   cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451 #include <sys/types.h>
13452 #include <time.h>
13453
13454 int
13455 main ()
13456 {
13457 struct tm *tp; tp->tm_sec;
13458   ;
13459   return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext
13463 if { (ac_try="$ac_compile"
13464 case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_compile") 2>conftest.er1
13470   ac_status=$?
13471   grep -v '^ *+' conftest.er1 >conftest.err
13472   rm -f conftest.er1
13473   cat conftest.err >&5
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); } &&
13476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13477   { (case "(($ac_try" in
13478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479   *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482   (eval "$ac_try") 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); }; } &&
13486          { ac_try='test -s conftest.$ac_objext'
13487   { (case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492   (eval "$ac_try") 2>&5
13493   ac_status=$?
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); }; }; then
13496   ac_cv_struct_tm=time.h
13497 else
13498   echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501         ac_cv_struct_tm=sys/time.h
13502 fi
13503
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 fi
13506 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13507 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13508 if test $ac_cv_struct_tm = sys/time.h; then
13509
13510 cat >>confdefs.h <<\_ACEOF
13511 #define TM_IN_SYS_TIME 1
13512 _ACEOF
13513
13514 fi
13515
13516 { echo "$as_me:$LINENO: checking for int64_t" >&5
13517 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13518 if test "${ac_cv_type_int64_t+set}" = set; then
13519   echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521   cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h.  */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h.  */
13527 $ac_includes_default
13528 typedef int64_t ac__type_new_;
13529 int
13530 main ()
13531 {
13532 if ((ac__type_new_ *) 0)
13533   return 0;
13534 if (sizeof (ac__type_new_))
13535   return 0;
13536   ;
13537   return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext
13541 if { (ac_try="$ac_compile"
13542 case "(($ac_try" in
13543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544   *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547   (eval "$ac_compile") 2>conftest.er1
13548   ac_status=$?
13549   grep -v '^ *+' conftest.er1 >conftest.err
13550   rm -f conftest.er1
13551   cat conftest.err >&5
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } &&
13554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13555   { (case "(($ac_try" in
13556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557   *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560   (eval "$ac_try") 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; } &&
13564          { ac_try='test -s conftest.$ac_objext'
13565   { (case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_try") 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; }; then
13574   ac_cv_type_int64_t=yes
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579         ac_cv_type_int64_t=no
13580 fi
13581
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583 fi
13584 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13585 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13586 if test $ac_cv_type_int64_t = yes; then
13587
13588 cat >>confdefs.h <<_ACEOF
13589 #define HAVE_INT64_T 1
13590 _ACEOF
13591
13592
13593 else
13594   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13595 echo "$as_me: error: Type int64_t required but not found" >&2;}
13596    { (exit 1); exit 1; }; }
13597 fi
13598
13599 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13600 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13601 if test "${ac_cv_type_uint64_t+set}" = set; then
13602   echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604   cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13610 $ac_includes_default
13611 typedef uint64_t ac__type_new_;
13612 int
13613 main ()
13614 {
13615 if ((ac__type_new_ *) 0)
13616   return 0;
13617 if (sizeof (ac__type_new_))
13618   return 0;
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext
13624 if { (ac_try="$ac_compile"
13625 case "(($ac_try" in
13626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627   *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630   (eval "$ac_compile") 2>conftest.er1
13631   ac_status=$?
13632   grep -v '^ *+' conftest.er1 >conftest.err
13633   rm -f conftest.er1
13634   cat conftest.err >&5
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); } &&
13637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13638   { (case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643   (eval "$ac_try") 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; } &&
13647          { ac_try='test -s conftest.$ac_objext'
13648   { (case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_try") 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; }; then
13657   ac_cv_type_uint64_t=yes
13658 else
13659   echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662         ac_cv_type_uint64_t=no
13663 fi
13664
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 fi
13667 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13668 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13669 if test $ac_cv_type_uint64_t = yes; then
13670
13671 cat >>confdefs.h <<_ACEOF
13672 #define HAVE_UINT64_T 1
13673 _ACEOF
13674
13675
13676 else
13677   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13678 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13679 if test "${ac_cv_type_u_int64_t+set}" = set; then
13680   echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682   cat >conftest.$ac_ext <<_ACEOF
13683 /* confdefs.h.  */
13684 _ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h.  */
13688 $ac_includes_default
13689 typedef u_int64_t ac__type_new_;
13690 int
13691 main ()
13692 {
13693 if ((ac__type_new_ *) 0)
13694   return 0;
13695 if (sizeof (ac__type_new_))
13696   return 0;
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 rm -f conftest.$ac_objext
13702 if { (ac_try="$ac_compile"
13703 case "(($ac_try" in
13704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705   *) ac_try_echo=$ac_try;;
13706 esac
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708   (eval "$ac_compile") 2>conftest.er1
13709   ac_status=$?
13710   grep -v '^ *+' conftest.er1 >conftest.err
13711   rm -f conftest.er1
13712   cat conftest.err >&5
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); } &&
13715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13716   { (case "(($ac_try" in
13717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718   *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721   (eval "$ac_try") 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; } &&
13725          { ac_try='test -s conftest.$ac_objext'
13726   { (case "(($ac_try" in
13727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728   *) ac_try_echo=$ac_try;;
13729 esac
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731   (eval "$ac_try") 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; }; then
13735   ac_cv_type_u_int64_t=yes
13736 else
13737   echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740         ac_cv_type_u_int64_t=no
13741 fi
13742
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 fi
13745 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13746 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13747 if test $ac_cv_type_u_int64_t = yes; then
13748
13749 cat >>confdefs.h <<_ACEOF
13750 #define HAVE_U_INT64_T 1
13751 _ACEOF
13752
13753
13754 else
13755   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13756 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13757    { (exit 1); exit 1; }; }
13758 fi
13759
13760 fi
13761
13762
13763
13764
13765
13766 for ac_func in backtrace getcwd
13767 do
13768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   cat >conftest.$ac_ext <<_ACEOF
13775 /* confdefs.h.  */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h.  */
13780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13782 #define $ac_func innocuous_$ac_func
13783
13784 /* System header to define __stub macros and hopefully few prototypes,
13785     which can conflict with char $ac_func (); below.
13786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13787     <limits.h> exists even on freestanding compilers.  */
13788
13789 #ifdef __STDC__
13790 # include <limits.h>
13791 #else
13792 # include <assert.h>
13793 #endif
13794
13795 #undef $ac_func
13796
13797 /* Override any GCC internal prototype to avoid an error.
13798    Use char because int might match the return type of a GCC
13799    builtin and then its argument prototype would still apply.  */
13800 #ifdef __cplusplus
13801 extern "C"
13802 #endif
13803 char $ac_func ();
13804 /* The GNU C library defines this for functions which it implements
13805     to always fail with ENOSYS.  Some functions are actually named
13806     something starting with __ and the normal name is an alias.  */
13807 #if defined __stub_$ac_func || defined __stub___$ac_func
13808 choke me
13809 #endif
13810
13811 int
13812 main ()
13813 {
13814 return $ac_func ();
13815   ;
13816   return 0;
13817 }
13818 _ACEOF
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (ac_try="$ac_link"
13821 case "(($ac_try" in
13822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823   *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826   (eval "$ac_link") 2>conftest.er1
13827   ac_status=$?
13828   grep -v '^ *+' conftest.er1 >conftest.err
13829   rm -f conftest.er1
13830   cat conftest.err >&5
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); } &&
13833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13834   { (case "(($ac_try" in
13835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836   *) ac_try_echo=$ac_try;;
13837 esac
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839   (eval "$ac_try") 2>&5
13840   ac_status=$?
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); }; } &&
13843          { ac_try='test -s conftest$ac_exeext'
13844   { (case "(($ac_try" in
13845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846   *) ac_try_echo=$ac_try;;
13847 esac
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849   (eval "$ac_try") 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; }; then
13853   eval "$as_ac_var=yes"
13854 else
13855   echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858         eval "$as_ac_var=no"
13859 fi
13860
13861 rm -f core conftest.err conftest.$ac_objext \
13862       conftest$ac_exeext conftest.$ac_ext
13863 fi
13864 ac_res=`eval echo '${'$as_ac_var'}'`
13865                { echo "$as_me:$LINENO: result: $ac_res" >&5
13866 echo "${ECHO_T}$ac_res" >&6; }
13867 if test `eval echo '${'$as_ac_var'}'` = yes; then
13868   cat >>confdefs.h <<_ACEOF
13869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13870 _ACEOF
13871
13872 fi
13873 done
13874
13875
13876
13877
13878
13879
13880 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
13881 do
13882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13886   echo $ECHO_N "(cached) $ECHO_C" >&6
13887 else
13888   cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h.  */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h.  */
13894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13896 #define $ac_func innocuous_$ac_func
13897
13898 /* System header to define __stub macros and hopefully few prototypes,
13899     which can conflict with char $ac_func (); below.
13900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13901     <limits.h> exists even on freestanding compilers.  */
13902
13903 #ifdef __STDC__
13904 # include <limits.h>
13905 #else
13906 # include <assert.h>
13907 #endif
13908
13909 #undef $ac_func
13910
13911 /* Override any GCC internal prototype to avoid an error.
13912    Use char because int might match the return type of a GCC
13913    builtin and then its argument prototype would still apply.  */
13914 #ifdef __cplusplus
13915 extern "C"
13916 #endif
13917 char $ac_func ();
13918 /* The GNU C library defines this for functions which it implements
13919     to always fail with ENOSYS.  Some functions are actually named
13920     something starting with __ and the normal name is an alias.  */
13921 #if defined __stub_$ac_func || defined __stub___$ac_func
13922 choke me
13923 #endif
13924
13925 int
13926 main ()
13927 {
13928 return $ac_func ();
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext conftest$ac_exeext
13934 if { (ac_try="$ac_link"
13935 case "(($ac_try" in
13936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937   *) ac_try_echo=$ac_try;;
13938 esac
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940   (eval "$ac_link") 2>conftest.er1
13941   ac_status=$?
13942   grep -v '^ *+' conftest.er1 >conftest.err
13943   rm -f conftest.er1
13944   cat conftest.err >&5
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); } &&
13947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13948   { (case "(($ac_try" in
13949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950   *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953   (eval "$ac_try") 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; } &&
13957          { ac_try='test -s conftest$ac_exeext'
13958   { (case "(($ac_try" in
13959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960   *) ac_try_echo=$ac_try;;
13961 esac
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963   (eval "$ac_try") 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); }; }; then
13967   eval "$as_ac_var=yes"
13968 else
13969   echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13971
13972         eval "$as_ac_var=no"
13973 fi
13974
13975 rm -f core conftest.err conftest.$ac_objext \
13976       conftest$ac_exeext conftest.$ac_ext
13977 fi
13978 ac_res=`eval echo '${'$as_ac_var'}'`
13979                { echo "$as_me:$LINENO: result: $ac_res" >&5
13980 echo "${ECHO_T}$ac_res" >&6; }
13981 if test `eval echo '${'$as_ac_var'}'` = yes; then
13982   cat >>confdefs.h <<_ACEOF
13983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13984 _ACEOF
13985
13986 fi
13987 done
13988
13989
13990
13991
13992 for ac_func in isatty mkdtemp mkstemp
13993 do
13994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13998   echo $ECHO_N "(cached) $ECHO_C" >&6
13999 else
14000   cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14008 #define $ac_func innocuous_$ac_func
14009
14010 /* System header to define __stub macros and hopefully few prototypes,
14011     which can conflict with char $ac_func (); below.
14012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14013     <limits.h> exists even on freestanding compilers.  */
14014
14015 #ifdef __STDC__
14016 # include <limits.h>
14017 #else
14018 # include <assert.h>
14019 #endif
14020
14021 #undef $ac_func
14022
14023 /* Override any GCC internal prototype to avoid an error.
14024    Use char because int might match the return type of a GCC
14025    builtin and then its argument prototype would still apply.  */
14026 #ifdef __cplusplus
14027 extern "C"
14028 #endif
14029 char $ac_func ();
14030 /* The GNU C library defines this for functions which it implements
14031     to always fail with ENOSYS.  Some functions are actually named
14032     something starting with __ and the normal name is an alias.  */
14033 #if defined __stub_$ac_func || defined __stub___$ac_func
14034 choke me
14035 #endif
14036
14037 int
14038 main ()
14039 {
14040 return $ac_func ();
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 rm -f conftest.$ac_objext conftest$ac_exeext
14046 if { (ac_try="$ac_link"
14047 case "(($ac_try" in
14048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049   *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052   (eval "$ac_link") 2>conftest.er1
14053   ac_status=$?
14054   grep -v '^ *+' conftest.er1 >conftest.err
14055   rm -f conftest.er1
14056   cat conftest.err >&5
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); } &&
14059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060   { (case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_try") 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; } &&
14069          { ac_try='test -s conftest$ac_exeext'
14070   { (case "(($ac_try" in
14071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072   *) ac_try_echo=$ac_try;;
14073 esac
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075   (eval "$ac_try") 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); }; }; then
14079   eval "$as_ac_var=yes"
14080 else
14081   echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084         eval "$as_ac_var=no"
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext \
14088       conftest$ac_exeext conftest.$ac_ext
14089 fi
14090 ac_res=`eval echo '${'$as_ac_var'}'`
14091                { echo "$as_me:$LINENO: result: $ac_res" >&5
14092 echo "${ECHO_T}$ac_res" >&6; }
14093 if test `eval echo '${'$as_ac_var'}'` = yes; then
14094   cat >>confdefs.h <<_ACEOF
14095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14096 _ACEOF
14097
14098 fi
14099 done
14100
14101
14102
14103
14104
14105
14106
14107 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14108 do
14109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14113   echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115   cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h.  */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h.  */
14121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14123 #define $ac_func innocuous_$ac_func
14124
14125 /* System header to define __stub macros and hopefully few prototypes,
14126     which can conflict with char $ac_func (); below.
14127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14128     <limits.h> exists even on freestanding compilers.  */
14129
14130 #ifdef __STDC__
14131 # include <limits.h>
14132 #else
14133 # include <assert.h>
14134 #endif
14135
14136 #undef $ac_func
14137
14138 /* Override any GCC internal prototype to avoid an error.
14139    Use char because int might match the return type of a GCC
14140    builtin and then its argument prototype would still apply.  */
14141 #ifdef __cplusplus
14142 extern "C"
14143 #endif
14144 char $ac_func ();
14145 /* The GNU C library defines this for functions which it implements
14146     to always fail with ENOSYS.  Some functions are actually named
14147     something starting with __ and the normal name is an alias.  */
14148 #if defined __stub_$ac_func || defined __stub___$ac_func
14149 choke me
14150 #endif
14151
14152 int
14153 main ()
14154 {
14155 return $ac_func ();
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 rm -f conftest.$ac_objext conftest$ac_exeext
14161 if { (ac_try="$ac_link"
14162 case "(($ac_try" in
14163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164   *) ac_try_echo=$ac_try;;
14165 esac
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167   (eval "$ac_link") 2>conftest.er1
14168   ac_status=$?
14169   grep -v '^ *+' conftest.er1 >conftest.err
14170   rm -f conftest.er1
14171   cat conftest.err >&5
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); } &&
14174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14175   { (case "(($ac_try" in
14176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177   *) ac_try_echo=$ac_try;;
14178 esac
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180   (eval "$ac_try") 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; } &&
14184          { ac_try='test -s conftest$ac_exeext'
14185   { (case "(($ac_try" in
14186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187   *) ac_try_echo=$ac_try;;
14188 esac
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190   (eval "$ac_try") 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); }; }; then
14194   eval "$as_ac_var=yes"
14195 else
14196   echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14198
14199         eval "$as_ac_var=no"
14200 fi
14201
14202 rm -f core conftest.err conftest.$ac_objext \
14203       conftest$ac_exeext conftest.$ac_ext
14204 fi
14205 ac_res=`eval echo '${'$as_ac_var'}'`
14206                { echo "$as_me:$LINENO: result: $ac_res" >&5
14207 echo "${ECHO_T}$ac_res" >&6; }
14208 if test `eval echo '${'$as_ac_var'}'` = yes; then
14209   cat >>confdefs.h <<_ACEOF
14210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14211 _ACEOF
14212
14213 fi
14214 done
14215
14216
14217
14218
14219 for ac_func in strerror strerror_r setenv
14220 do
14221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227   cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14235 #define $ac_func innocuous_$ac_func
14236
14237 /* System header to define __stub macros and hopefully few prototypes,
14238     which can conflict with char $ac_func (); below.
14239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14240     <limits.h> exists even on freestanding compilers.  */
14241
14242 #ifdef __STDC__
14243 # include <limits.h>
14244 #else
14245 # include <assert.h>
14246 #endif
14247
14248 #undef $ac_func
14249
14250 /* Override any GCC internal prototype to avoid an error.
14251    Use char because int might match the return type of a GCC
14252    builtin and then its argument prototype would still apply.  */
14253 #ifdef __cplusplus
14254 extern "C"
14255 #endif
14256 char $ac_func ();
14257 /* The GNU C library defines this for functions which it implements
14258     to always fail with ENOSYS.  Some functions are actually named
14259     something starting with __ and the normal name is an alias.  */
14260 #if defined __stub_$ac_func || defined __stub___$ac_func
14261 choke me
14262 #endif
14263
14264 int
14265 main ()
14266 {
14267 return $ac_func ();
14268   ;
14269   return 0;
14270 }
14271 _ACEOF
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (ac_try="$ac_link"
14274 case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_link") 2>conftest.er1
14280   ac_status=$?
14281   grep -v '^ *+' conftest.er1 >conftest.err
14282   rm -f conftest.er1
14283   cat conftest.err >&5
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); } &&
14286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14287   { (case "(($ac_try" in
14288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289   *) ac_try_echo=$ac_try;;
14290 esac
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292   (eval "$ac_try") 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); }; } &&
14296          { ac_try='test -s conftest$ac_exeext'
14297   { (case "(($ac_try" in
14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299   *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302   (eval "$ac_try") 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   eval "$as_ac_var=yes"
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311         eval "$as_ac_var=no"
14312 fi
14313
14314 rm -f core conftest.err conftest.$ac_objext \
14315       conftest$ac_exeext conftest.$ac_ext
14316 fi
14317 ac_res=`eval echo '${'$as_ac_var'}'`
14318                { echo "$as_me:$LINENO: result: $ac_res" >&5
14319 echo "${ECHO_T}$ac_res" >&6; }
14320 if test `eval echo '${'$as_ac_var'}'` = yes; then
14321   cat >>confdefs.h <<_ACEOF
14322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14323 _ACEOF
14324
14325 fi
14326 done
14327
14328
14329
14330
14331
14332 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14333 do
14334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14338   echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340   cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h.  */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h.  */
14346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14348 #define $ac_func innocuous_$ac_func
14349
14350 /* System header to define __stub macros and hopefully few prototypes,
14351     which can conflict with char $ac_func (); below.
14352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14353     <limits.h> exists even on freestanding compilers.  */
14354
14355 #ifdef __STDC__
14356 # include <limits.h>
14357 #else
14358 # include <assert.h>
14359 #endif
14360
14361 #undef $ac_func
14362
14363 /* Override any GCC internal prototype to avoid an error.
14364    Use char because int might match the return type of a GCC
14365    builtin and then its argument prototype would still apply.  */
14366 #ifdef __cplusplus
14367 extern "C"
14368 #endif
14369 char $ac_func ();
14370 /* The GNU C library defines this for functions which it implements
14371     to always fail with ENOSYS.  Some functions are actually named
14372     something starting with __ and the normal name is an alias.  */
14373 #if defined __stub_$ac_func || defined __stub___$ac_func
14374 choke me
14375 #endif
14376
14377 int
14378 main ()
14379 {
14380 return $ac_func ();
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext conftest$ac_exeext
14386 if { (ac_try="$ac_link"
14387 case "(($ac_try" in
14388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389   *) ac_try_echo=$ac_try;;
14390 esac
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392   (eval "$ac_link") 2>conftest.er1
14393   ac_status=$?
14394   grep -v '^ *+' conftest.er1 >conftest.err
14395   rm -f conftest.er1
14396   cat conftest.err >&5
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); } &&
14399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14400   { (case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_try") 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; } &&
14409          { ac_try='test -s conftest$ac_exeext'
14410   { (case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415   (eval "$ac_try") 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; }; then
14419   eval "$as_ac_var=yes"
14420 else
14421   echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14423
14424         eval "$as_ac_var=no"
14425 fi
14426
14427 rm -f core conftest.err conftest.$ac_objext \
14428       conftest$ac_exeext conftest.$ac_ext
14429 fi
14430 ac_res=`eval echo '${'$as_ac_var'}'`
14431                { echo "$as_me:$LINENO: result: $ac_res" >&5
14432 echo "${ECHO_T}$ac_res" >&6; }
14433 if test `eval echo '${'$as_ac_var'}'` = yes; then
14434   cat >>confdefs.h <<_ACEOF
14435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14436 _ACEOF
14437
14438 fi
14439 done
14440
14441
14442
14443
14444 for ac_func in setjmp longjmp writev
14445 do
14446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14450   echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452   cat >conftest.$ac_ext <<_ACEOF
14453 /* confdefs.h.  */
14454 _ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h.  */
14458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14460 #define $ac_func innocuous_$ac_func
14461
14462 /* System header to define __stub macros and hopefully few prototypes,
14463     which can conflict with char $ac_func (); below.
14464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14465     <limits.h> exists even on freestanding compilers.  */
14466
14467 #ifdef __STDC__
14468 # include <limits.h>
14469 #else
14470 # include <assert.h>
14471 #endif
14472
14473 #undef $ac_func
14474
14475 /* Override any GCC internal prototype to avoid an error.
14476    Use char because int might match the return type of a GCC
14477    builtin and then its argument prototype would still apply.  */
14478 #ifdef __cplusplus
14479 extern "C"
14480 #endif
14481 char $ac_func ();
14482 /* The GNU C library defines this for functions which it implements
14483     to always fail with ENOSYS.  Some functions are actually named
14484     something starting with __ and the normal name is an alias.  */
14485 #if defined __stub_$ac_func || defined __stub___$ac_func
14486 choke me
14487 #endif
14488
14489 int
14490 main ()
14491 {
14492 return $ac_func ();
14493   ;
14494   return 0;
14495 }
14496 _ACEOF
14497 rm -f conftest.$ac_objext conftest$ac_exeext
14498 if { (ac_try="$ac_link"
14499 case "(($ac_try" in
14500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501   *) ac_try_echo=$ac_try;;
14502 esac
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504   (eval "$ac_link") 2>conftest.er1
14505   ac_status=$?
14506   grep -v '^ *+' conftest.er1 >conftest.err
14507   rm -f conftest.er1
14508   cat conftest.err >&5
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); } &&
14511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14512   { (case "(($ac_try" in
14513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514   *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517   (eval "$ac_try") 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; } &&
14521          { ac_try='test -s conftest$ac_exeext'
14522   { (case "(($ac_try" in
14523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524   *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527   (eval "$ac_try") 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; }; then
14531   eval "$as_ac_var=yes"
14532 else
14533   echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536         eval "$as_ac_var=no"
14537 fi
14538
14539 rm -f core conftest.err conftest.$ac_objext \
14540       conftest$ac_exeext conftest.$ac_ext
14541 fi
14542 ac_res=`eval echo '${'$as_ac_var'}'`
14543                { echo "$as_me:$LINENO: result: $ac_res" >&5
14544 echo "${ECHO_T}$ac_res" >&6; }
14545 if test `eval echo '${'$as_ac_var'}'` = yes; then
14546   cat >>confdefs.h <<_ACEOF
14547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14548 _ACEOF
14549
14550 fi
14551 done
14552
14553
14554
14555 for ac_func in futimes futimens
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 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14665 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14666 if test "${llvm_cv_c_printf_a+set}" = set; then
14667   echo $ECHO_N "(cached) $ECHO_C" >&6
14668 else
14669   ac_ext=c
14670 ac_cpp='$CPP $CPPFLAGS'
14671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14674
14675  if test "$cross_compiling" = yes; then
14676   llvmac_cv_c_printf_a=no
14677 else
14678   cat >conftest.$ac_ext <<_ACEOF
14679
14680   /* confdefs.h.  */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h.  */
14685
14686 #include <stdio.h>
14687 #include <stdlib.h>
14688
14689 int
14690 main ()
14691 {
14692
14693 volatile double A, B;
14694 char Buffer[100];
14695 A = 1;
14696 A /= 10.0;
14697 sprintf(Buffer, "%a", A);
14698 B = atof(Buffer);
14699 if (A != B)
14700   return (1);
14701 if (A != 0x1.999999999999ap-4)
14702   return (1);
14703 return (0);
14704   ;
14705   return 0;
14706 }
14707 _ACEOF
14708 rm -f conftest$ac_exeext
14709 if { (ac_try="$ac_link"
14710 case "(($ac_try" in
14711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712   *) ac_try_echo=$ac_try;;
14713 esac
14714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715   (eval "$ac_link") 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14719   { (case "(($ac_try" in
14720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721   *) ac_try_echo=$ac_try;;
14722 esac
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724   (eval "$ac_try") 2>&5
14725   ac_status=$?
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); }; }; then
14728   llvm_cv_c_printf_a=yes
14729 else
14730   echo "$as_me: program exited with status $ac_status" >&5
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734 ( exit $ac_status )
14735 llvmac_cv_c_printf_a=no
14736 fi
14737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14738 fi
14739
14740
14741  ac_ext=c
14742 ac_cpp='$CPP $CPPFLAGS'
14743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14746
14747 fi
14748 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14749 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14750  if test "$llvm_cv_c_printf_a" = "yes"; then
14751
14752 cat >>confdefs.h <<\_ACEOF
14753 #define HAVE_PRINTF_A 1
14754 _ACEOF
14755
14756  fi
14757
14758
14759 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
14760 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
14761 if test "${ac_cv_have_decl_arc4random+set}" = set; then
14762   echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764   cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h.  */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h.  */
14770 $ac_includes_default
14771 int
14772 main ()
14773 {
14774 #ifndef arc4random
14775   char *p = (char *) arc4random;
14776   return !p;
14777 #endif
14778
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790   (eval "$ac_compile") 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14798   { (case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_try") 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; } &&
14807          { ac_try='test -s conftest.$ac_objext'
14808   { (case "(($ac_try" in
14809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810   *) ac_try_echo=$ac_try;;
14811 esac
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813   (eval "$ac_try") 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; }; then
14817   ac_cv_have_decl_arc4random=yes
14818 else
14819   echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14821
14822         ac_cv_have_decl_arc4random=no
14823 fi
14824
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 fi
14827 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
14828 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
14829 if test $ac_cv_have_decl_arc4random = yes; then
14830
14831 cat >>confdefs.h <<_ACEOF
14832 #define HAVE_DECL_ARC4RANDOM 1
14833 _ACEOF
14834
14835
14836 else
14837   cat >>confdefs.h <<_ACEOF
14838 #define HAVE_DECL_ARC4RANDOM 0
14839 _ACEOF
14840
14841
14842 fi
14843
14844
14845
14846 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
14847 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
14848 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
14849   echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851   cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h.  */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h.  */
14857 $ac_includes_default
14858 int
14859 main ()
14860 {
14861 #ifndef strerror_s
14862   char *p = (char *) strerror_s;
14863   return !p;
14864 #endif
14865
14866   ;
14867   return 0;
14868 }
14869 _ACEOF
14870 rm -f conftest.$ac_objext
14871 if { (ac_try="$ac_compile"
14872 case "(($ac_try" in
14873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874   *) ac_try_echo=$ac_try;;
14875 esac
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877   (eval "$ac_compile") 2>conftest.er1
14878   ac_status=$?
14879   grep -v '^ *+' conftest.er1 >conftest.err
14880   rm -f conftest.er1
14881   cat conftest.err >&5
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); } &&
14884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14885   { (case "(($ac_try" in
14886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887   *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890   (eval "$ac_try") 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; } &&
14894          { ac_try='test -s conftest.$ac_objext'
14895   { (case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900   (eval "$ac_try") 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); }; }; then
14904   ac_cv_have_decl_strerror_s=yes
14905 else
14906   echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14908
14909         ac_cv_have_decl_strerror_s=no
14910 fi
14911
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 fi
14914 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
14915 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
14916 if test $ac_cv_have_decl_strerror_s = yes; then
14917
14918 cat >>confdefs.h <<_ACEOF
14919 #define HAVE_DECL_STRERROR_S 1
14920 _ACEOF
14921
14922
14923 else
14924   cat >>confdefs.h <<_ACEOF
14925 #define HAVE_DECL_STRERROR_S 0
14926 _ACEOF
14927
14928
14929 fi
14930
14931
14932
14933 if test "$llvm_cv_os_type" = "MingW" ; then
14934   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
14935 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
14936 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
14937   echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939   ac_check_lib_save_LIBS=$LIBS
14940 LIBS="-lgcc  $LIBS"
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h.  */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h.  */
14947
14948 /* Override any GCC internal prototype to avoid an error.
14949    Use char because int might match the return type of a GCC
14950    builtin and then its argument prototype would still apply.  */
14951 #ifdef __cplusplus
14952 extern "C"
14953 #endif
14954 char _alloca ();
14955 int
14956 main ()
14957 {
14958 return _alloca ();
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (ac_try="$ac_link"
14965 case "(($ac_try" in
14966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967   *) ac_try_echo=$ac_try;;
14968 esac
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970   (eval "$ac_link") 2>conftest.er1
14971   ac_status=$?
14972   grep -v '^ *+' conftest.er1 >conftest.err
14973   rm -f conftest.er1
14974   cat conftest.err >&5
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); } &&
14977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14978   { (case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983   (eval "$ac_try") 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); }; } &&
14987          { ac_try='test -s conftest$ac_exeext'
14988   { (case "(($ac_try" in
14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990   *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993   (eval "$ac_try") 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; }; then
14997   ac_cv_lib_gcc__alloca=yes
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002         ac_cv_lib_gcc__alloca=no
15003 fi
15004
15005 rm -f core conftest.err conftest.$ac_objext \
15006       conftest$ac_exeext conftest.$ac_ext
15007 LIBS=$ac_check_lib_save_LIBS
15008 fi
15009 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15010 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15011 if test $ac_cv_lib_gcc__alloca = yes; then
15012
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE__ALLOCA 1
15015 _ACEOF
15016
15017 fi
15018
15019   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15020 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15021 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15022   echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024   ac_check_lib_save_LIBS=$LIBS
15025 LIBS="-lgcc  $LIBS"
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h.  */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h.  */
15032
15033 /* Override any GCC internal prototype to avoid an error.
15034    Use char because int might match the return type of a GCC
15035    builtin and then its argument prototype would still apply.  */
15036 #ifdef __cplusplus
15037 extern "C"
15038 #endif
15039 char __alloca ();
15040 int
15041 main ()
15042 {
15043 return __alloca ();
15044   ;
15045   return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052   *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055   (eval "$ac_link") 2>conftest.er1
15056   ac_status=$?
15057   grep -v '^ *+' conftest.er1 >conftest.err
15058   rm -f conftest.er1
15059   cat conftest.err >&5
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15063   { (case "(($ac_try" in
15064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065   *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068   (eval "$ac_try") 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); }; } &&
15072          { ac_try='test -s conftest$ac_exeext'
15073   { (case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078   (eval "$ac_try") 2>&5
15079   ac_status=$?
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); }; }; then
15082   ac_cv_lib_gcc___alloca=yes
15083 else
15084   echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15086
15087         ac_cv_lib_gcc___alloca=no
15088 fi
15089
15090 rm -f core conftest.err conftest.$ac_objext \
15091       conftest$ac_exeext conftest.$ac_ext
15092 LIBS=$ac_check_lib_save_LIBS
15093 fi
15094 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15095 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15096 if test $ac_cv_lib_gcc___alloca = yes; then
15097
15098 cat >>confdefs.h <<\_ACEOF
15099 #define HAVE___ALLOCA 1
15100 _ACEOF
15101
15102 fi
15103
15104   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15105 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15106 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109   ac_check_lib_save_LIBS=$LIBS
15110 LIBS="-lgcc  $LIBS"
15111 cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h.  */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h.  */
15117
15118 /* Override any GCC internal prototype to avoid an error.
15119    Use char because int might match the return type of a GCC
15120    builtin and then its argument prototype would still apply.  */
15121 #ifdef __cplusplus
15122 extern "C"
15123 #endif
15124 char __chkstk ();
15125 int
15126 main ()
15127 {
15128 return __chkstk ();
15129   ;
15130   return 0;
15131 }
15132 _ACEOF
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (ac_try="$ac_link"
15135 case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_link") 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } &&
15147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148   { (case "(($ac_try" in
15149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150   *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153   (eval "$ac_try") 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; } &&
15157          { ac_try='test -s conftest$ac_exeext'
15158   { (case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_try") 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }; then
15167   ac_cv_lib_gcc___chkstk=yes
15168 else
15169   echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172         ac_cv_lib_gcc___chkstk=no
15173 fi
15174
15175 rm -f core conftest.err conftest.$ac_objext \
15176       conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15178 fi
15179 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15180 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15181 if test $ac_cv_lib_gcc___chkstk = yes; then
15182
15183 cat >>confdefs.h <<\_ACEOF
15184 #define HAVE___CHKSTK 1
15185 _ACEOF
15186
15187 fi
15188
15189   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15190 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15191 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15192   echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194   ac_check_lib_save_LIBS=$LIBS
15195 LIBS="-lgcc  $LIBS"
15196 cat >conftest.$ac_ext <<_ACEOF
15197 /* confdefs.h.  */
15198 _ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h.  */
15202
15203 /* Override any GCC internal prototype to avoid an error.
15204    Use char because int might match the return type of a GCC
15205    builtin and then its argument prototype would still apply.  */
15206 #ifdef __cplusplus
15207 extern "C"
15208 #endif
15209 char __chkstk_ms ();
15210 int
15211 main ()
15212 {
15213 return __chkstk_ms ();
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (ac_try="$ac_link"
15220 case "(($ac_try" in
15221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222   *) ac_try_echo=$ac_try;;
15223 esac
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225   (eval "$ac_link") 2>conftest.er1
15226   ac_status=$?
15227   grep -v '^ *+' conftest.er1 >conftest.err
15228   rm -f conftest.er1
15229   cat conftest.err >&5
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); } &&
15232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15233   { (case "(($ac_try" in
15234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235   *) ac_try_echo=$ac_try;;
15236 esac
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238   (eval "$ac_try") 2>&5
15239   ac_status=$?
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); }; } &&
15242          { ac_try='test -s conftest$ac_exeext'
15243   { (case "(($ac_try" in
15244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245   *) ac_try_echo=$ac_try;;
15246 esac
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248   (eval "$ac_try") 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }; }; then
15252   ac_cv_lib_gcc___chkstk_ms=yes
15253 else
15254   echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15256
15257         ac_cv_lib_gcc___chkstk_ms=no
15258 fi
15259
15260 rm -f core conftest.err conftest.$ac_objext \
15261       conftest$ac_exeext conftest.$ac_ext
15262 LIBS=$ac_check_lib_save_LIBS
15263 fi
15264 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15265 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15266 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15267
15268 cat >>confdefs.h <<\_ACEOF
15269 #define HAVE___CHKSTK_MS 1
15270 _ACEOF
15271
15272 fi
15273
15274   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15275 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15276 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15277   echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279   ac_check_lib_save_LIBS=$LIBS
15280 LIBS="-lgcc  $LIBS"
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h.  */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h.  */
15287
15288 /* Override any GCC internal prototype to avoid an error.
15289    Use char because int might match the return type of a GCC
15290    builtin and then its argument prototype would still apply.  */
15291 #ifdef __cplusplus
15292 extern "C"
15293 #endif
15294 char ___chkstk ();
15295 int
15296 main ()
15297 {
15298 return ___chkstk ();
15299   ;
15300   return 0;
15301 }
15302 _ACEOF
15303 rm -f conftest.$ac_objext conftest$ac_exeext
15304 if { (ac_try="$ac_link"
15305 case "(($ac_try" in
15306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307   *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310   (eval "$ac_link") 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } &&
15317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15318   { (case "(($ac_try" in
15319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320   *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323   (eval "$ac_try") 2>&5
15324   ac_status=$?
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); }; } &&
15327          { ac_try='test -s conftest$ac_exeext'
15328   { (case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333   (eval "$ac_try") 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; }; then
15337   ac_cv_lib_gcc____chkstk=yes
15338 else
15339   echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342         ac_cv_lib_gcc____chkstk=no
15343 fi
15344
15345 rm -f core conftest.err conftest.$ac_objext \
15346       conftest$ac_exeext conftest.$ac_ext
15347 LIBS=$ac_check_lib_save_LIBS
15348 fi
15349 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15350 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15351 if test $ac_cv_lib_gcc____chkstk = yes; then
15352
15353 cat >>confdefs.h <<\_ACEOF
15354 #define HAVE____CHKSTK 1
15355 _ACEOF
15356
15357 fi
15358
15359   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15360 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15361 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15362   echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364   ac_check_lib_save_LIBS=$LIBS
15365 LIBS="-lgcc  $LIBS"
15366 cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h.  */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h.  */
15372
15373 /* Override any GCC internal prototype to avoid an error.
15374    Use char because int might match the return type of a GCC
15375    builtin and then its argument prototype would still apply.  */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 char ___chkstk_ms ();
15380 int
15381 main ()
15382 {
15383 return ___chkstk_ms ();
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392   *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395   (eval "$ac_link") 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } &&
15402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15403   { (case "(($ac_try" in
15404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405   *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408   (eval "$ac_try") 2>&5
15409   ac_status=$?
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); }; } &&
15412          { ac_try='test -s conftest$ac_exeext'
15413   { (case "(($ac_try" in
15414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415   *) ac_try_echo=$ac_try;;
15416 esac
15417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418   (eval "$ac_try") 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); }; }; then
15422   ac_cv_lib_gcc____chkstk_ms=yes
15423 else
15424   echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15426
15427         ac_cv_lib_gcc____chkstk_ms=no
15428 fi
15429
15430 rm -f core conftest.err conftest.$ac_objext \
15431       conftest$ac_exeext conftest.$ac_ext
15432 LIBS=$ac_check_lib_save_LIBS
15433 fi
15434 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15435 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15436 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15437
15438 cat >>confdefs.h <<\_ACEOF
15439 #define HAVE____CHKSTK_MS 1
15440 _ACEOF
15441
15442 fi
15443
15444
15445   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15446 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15447 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15448   echo $ECHO_N "(cached) $ECHO_C" >&6
15449 else
15450   ac_check_lib_save_LIBS=$LIBS
15451 LIBS="-lgcc  $LIBS"
15452 cat >conftest.$ac_ext <<_ACEOF
15453 /* confdefs.h.  */
15454 _ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h.  */
15458
15459 /* Override any GCC internal prototype to avoid an error.
15460    Use char because int might match the return type of a GCC
15461    builtin and then its argument prototype would still apply.  */
15462 #ifdef __cplusplus
15463 extern "C"
15464 #endif
15465 char __ashldi3 ();
15466 int
15467 main ()
15468 {
15469 return __ashldi3 ();
15470   ;
15471   return 0;
15472 }
15473 _ACEOF
15474 rm -f conftest.$ac_objext conftest$ac_exeext
15475 if { (ac_try="$ac_link"
15476 case "(($ac_try" in
15477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478   *) ac_try_echo=$ac_try;;
15479 esac
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481   (eval "$ac_link") 2>conftest.er1
15482   ac_status=$?
15483   grep -v '^ *+' conftest.er1 >conftest.err
15484   rm -f conftest.er1
15485   cat conftest.err >&5
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); } &&
15488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15489   { (case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_try") 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; } &&
15498          { ac_try='test -s conftest$ac_exeext'
15499   { (case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_try") 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; }; then
15508   ac_cv_lib_gcc___ashldi3=yes
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513         ac_cv_lib_gcc___ashldi3=no
15514 fi
15515
15516 rm -f core conftest.err conftest.$ac_objext \
15517       conftest$ac_exeext conftest.$ac_ext
15518 LIBS=$ac_check_lib_save_LIBS
15519 fi
15520 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15521 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15522 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15523
15524 cat >>confdefs.h <<\_ACEOF
15525 #define HAVE___ASHLDI3 1
15526 _ACEOF
15527
15528 fi
15529
15530   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15531 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15532 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15533   echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535   ac_check_lib_save_LIBS=$LIBS
15536 LIBS="-lgcc  $LIBS"
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h.  */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h.  */
15543
15544 /* Override any GCC internal prototype to avoid an error.
15545    Use char because int might match the return type of a GCC
15546    builtin and then its argument prototype would still apply.  */
15547 #ifdef __cplusplus
15548 extern "C"
15549 #endif
15550 char __ashrdi3 ();
15551 int
15552 main ()
15553 {
15554 return __ashrdi3 ();
15555   ;
15556   return 0;
15557 }
15558 _ACEOF
15559 rm -f conftest.$ac_objext conftest$ac_exeext
15560 if { (ac_try="$ac_link"
15561 case "(($ac_try" in
15562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563   *) ac_try_echo=$ac_try;;
15564 esac
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566   (eval "$ac_link") 2>conftest.er1
15567   ac_status=$?
15568   grep -v '^ *+' conftest.er1 >conftest.err
15569   rm -f conftest.er1
15570   cat conftest.err >&5
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); } &&
15573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15574   { (case "(($ac_try" in
15575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576   *) ac_try_echo=$ac_try;;
15577 esac
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579   (eval "$ac_try") 2>&5
15580   ac_status=$?
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); }; } &&
15583          { ac_try='test -s conftest$ac_exeext'
15584   { (case "(($ac_try" in
15585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586   *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589   (eval "$ac_try") 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; }; then
15593   ac_cv_lib_gcc___ashrdi3=yes
15594 else
15595   echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15597
15598         ac_cv_lib_gcc___ashrdi3=no
15599 fi
15600
15601 rm -f core conftest.err conftest.$ac_objext \
15602       conftest$ac_exeext conftest.$ac_ext
15603 LIBS=$ac_check_lib_save_LIBS
15604 fi
15605 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15606 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15607 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15608
15609 cat >>confdefs.h <<\_ACEOF
15610 #define HAVE___ASHRDI3 1
15611 _ACEOF
15612
15613 fi
15614
15615   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15616 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15617 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15618   echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620   ac_check_lib_save_LIBS=$LIBS
15621 LIBS="-lgcc  $LIBS"
15622 cat >conftest.$ac_ext <<_ACEOF
15623 /* confdefs.h.  */
15624 _ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h.  */
15628
15629 /* Override any GCC internal prototype to avoid an error.
15630    Use char because int might match the return type of a GCC
15631    builtin and then its argument prototype would still apply.  */
15632 #ifdef __cplusplus
15633 extern "C"
15634 #endif
15635 char __divdi3 ();
15636 int
15637 main ()
15638 {
15639 return __divdi3 ();
15640   ;
15641   return 0;
15642 }
15643 _ACEOF
15644 rm -f conftest.$ac_objext conftest$ac_exeext
15645 if { (ac_try="$ac_link"
15646 case "(($ac_try" in
15647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15648   *) ac_try_echo=$ac_try;;
15649 esac
15650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15651   (eval "$ac_link") 2>conftest.er1
15652   ac_status=$?
15653   grep -v '^ *+' conftest.er1 >conftest.err
15654   rm -f conftest.er1
15655   cat conftest.err >&5
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); } &&
15658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15659   { (case "(($ac_try" in
15660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661   *) ac_try_echo=$ac_try;;
15662 esac
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664   (eval "$ac_try") 2>&5
15665   ac_status=$?
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); }; } &&
15668          { ac_try='test -s conftest$ac_exeext'
15669   { (case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_try") 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; }; then
15678   ac_cv_lib_gcc___divdi3=yes
15679 else
15680   echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683         ac_cv_lib_gcc___divdi3=no
15684 fi
15685
15686 rm -f core conftest.err conftest.$ac_objext \
15687       conftest$ac_exeext conftest.$ac_ext
15688 LIBS=$ac_check_lib_save_LIBS
15689 fi
15690 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15691 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15692 if test $ac_cv_lib_gcc___divdi3 = yes; then
15693
15694 cat >>confdefs.h <<\_ACEOF
15695 #define HAVE___DIVDI3 1
15696 _ACEOF
15697
15698 fi
15699
15700   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15701 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15702 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15703   echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705   ac_check_lib_save_LIBS=$LIBS
15706 LIBS="-lgcc  $LIBS"
15707 cat >conftest.$ac_ext <<_ACEOF
15708 /* confdefs.h.  */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h.  */
15713
15714 /* Override any GCC internal prototype to avoid an error.
15715    Use char because int might match the return type of a GCC
15716    builtin and then its argument prototype would still apply.  */
15717 #ifdef __cplusplus
15718 extern "C"
15719 #endif
15720 char __fixdfdi ();
15721 int
15722 main ()
15723 {
15724 return __fixdfdi ();
15725   ;
15726   return 0;
15727 }
15728 _ACEOF
15729 rm -f conftest.$ac_objext conftest$ac_exeext
15730 if { (ac_try="$ac_link"
15731 case "(($ac_try" in
15732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733   *) ac_try_echo=$ac_try;;
15734 esac
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736   (eval "$ac_link") 2>conftest.er1
15737   ac_status=$?
15738   grep -v '^ *+' conftest.er1 >conftest.err
15739   rm -f conftest.er1
15740   cat conftest.err >&5
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); } &&
15743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15744   { (case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_try") 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; } &&
15753          { ac_try='test -s conftest$ac_exeext'
15754   { (case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_try") 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763   ac_cv_lib_gcc___fixdfdi=yes
15764 else
15765   echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15767
15768         ac_cv_lib_gcc___fixdfdi=no
15769 fi
15770
15771 rm -f core conftest.err conftest.$ac_objext \
15772       conftest$ac_exeext conftest.$ac_ext
15773 LIBS=$ac_check_lib_save_LIBS
15774 fi
15775 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
15776 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
15777 if test $ac_cv_lib_gcc___fixdfdi = yes; then
15778
15779 cat >>confdefs.h <<\_ACEOF
15780 #define HAVE___FIXDFDI 1
15781 _ACEOF
15782
15783 fi
15784
15785   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15786 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15787 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15788   echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790   ac_check_lib_save_LIBS=$LIBS
15791 LIBS="-lgcc  $LIBS"
15792 cat >conftest.$ac_ext <<_ACEOF
15793 /* confdefs.h.  */
15794 _ACEOF
15795 cat confdefs.h >>conftest.$ac_ext
15796 cat >>conftest.$ac_ext <<_ACEOF
15797 /* end confdefs.h.  */
15798
15799 /* Override any GCC internal prototype to avoid an error.
15800    Use char because int might match the return type of a GCC
15801    builtin and then its argument prototype would still apply.  */
15802 #ifdef __cplusplus
15803 extern "C"
15804 #endif
15805 char __fixsfdi ();
15806 int
15807 main ()
15808 {
15809 return __fixsfdi ();
15810   ;
15811   return 0;
15812 }
15813 _ACEOF
15814 rm -f conftest.$ac_objext conftest$ac_exeext
15815 if { (ac_try="$ac_link"
15816 case "(($ac_try" in
15817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818   *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821   (eval "$ac_link") 2>conftest.er1
15822   ac_status=$?
15823   grep -v '^ *+' conftest.er1 >conftest.err
15824   rm -f conftest.er1
15825   cat conftest.err >&5
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } &&
15828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15829   { (case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_try") 2>&5
15835   ac_status=$?
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); }; } &&
15838          { ac_try='test -s conftest$ac_exeext'
15839   { (case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_try") 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; }; then
15848   ac_cv_lib_gcc___fixsfdi=yes
15849 else
15850   echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853         ac_cv_lib_gcc___fixsfdi=no
15854 fi
15855
15856 rm -f core conftest.err conftest.$ac_objext \
15857       conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15859 fi
15860 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15861 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15862 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15863
15864 cat >>confdefs.h <<\_ACEOF
15865 #define HAVE___FIXSFDI 1
15866 _ACEOF
15867
15868 fi
15869
15870   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15871 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15872 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15873   echo $ECHO_N "(cached) $ECHO_C" >&6
15874 else
15875   ac_check_lib_save_LIBS=$LIBS
15876 LIBS="-lgcc  $LIBS"
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h.  */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h.  */
15883
15884 /* Override any GCC internal prototype to avoid an error.
15885    Use char because int might match the return type of a GCC
15886    builtin and then its argument prototype would still apply.  */
15887 #ifdef __cplusplus
15888 extern "C"
15889 #endif
15890 char __floatdidf ();
15891 int
15892 main ()
15893 {
15894 return __floatdidf ();
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (ac_try="$ac_link"
15901 case "(($ac_try" in
15902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903   *) ac_try_echo=$ac_try;;
15904 esac
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906   (eval "$ac_link") 2>conftest.er1
15907   ac_status=$?
15908   grep -v '^ *+' conftest.er1 >conftest.err
15909   rm -f conftest.er1
15910   cat conftest.err >&5
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); } &&
15913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15914   { (case "(($ac_try" in
15915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916   *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919   (eval "$ac_try") 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; } &&
15923          { ac_try='test -s conftest$ac_exeext'
15924   { (case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929   (eval "$ac_try") 2>&5
15930   ac_status=$?
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); }; }; then
15933   ac_cv_lib_gcc___floatdidf=yes
15934 else
15935   echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15937
15938         ac_cv_lib_gcc___floatdidf=no
15939 fi
15940
15941 rm -f core conftest.err conftest.$ac_objext \
15942       conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15944 fi
15945 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15946 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15947 if test $ac_cv_lib_gcc___floatdidf = yes; then
15948
15949 cat >>confdefs.h <<\_ACEOF
15950 #define HAVE___FLOATDIDF 1
15951 _ACEOF
15952
15953 fi
15954
15955   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15956 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15957 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15958   echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960   ac_check_lib_save_LIBS=$LIBS
15961 LIBS="-lgcc  $LIBS"
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968
15969 /* Override any GCC internal prototype to avoid an error.
15970    Use char because int might match the return type of a GCC
15971    builtin and then its argument prototype would still apply.  */
15972 #ifdef __cplusplus
15973 extern "C"
15974 #endif
15975 char __lshrdi3 ();
15976 int
15977 main ()
15978 {
15979 return __lshrdi3 ();
15980   ;
15981   return 0;
15982 }
15983 _ACEOF
15984 rm -f conftest.$ac_objext conftest$ac_exeext
15985 if { (ac_try="$ac_link"
15986 case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991   (eval "$ac_link") 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15999   { (case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004   (eval "$ac_try") 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); }; } &&
16008          { ac_try='test -s conftest$ac_exeext'
16009   { (case "(($ac_try" in
16010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011   *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014   (eval "$ac_try") 2>&5
16015   ac_status=$?
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); }; }; then
16018   ac_cv_lib_gcc___lshrdi3=yes
16019 else
16020   echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023         ac_cv_lib_gcc___lshrdi3=no
16024 fi
16025
16026 rm -f core conftest.err conftest.$ac_objext \
16027       conftest$ac_exeext conftest.$ac_ext
16028 LIBS=$ac_check_lib_save_LIBS
16029 fi
16030 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16031 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16032 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16033
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE___LSHRDI3 1
16036 _ACEOF
16037
16038 fi
16039
16040   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16041 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16042 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16043   echo $ECHO_N "(cached) $ECHO_C" >&6
16044 else
16045   ac_check_lib_save_LIBS=$LIBS
16046 LIBS="-lgcc  $LIBS"
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h.  */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h.  */
16053
16054 /* Override any GCC internal prototype to avoid an error.
16055    Use char because int might match the return type of a GCC
16056    builtin and then its argument prototype would still apply.  */
16057 #ifdef __cplusplus
16058 extern "C"
16059 #endif
16060 char __moddi3 ();
16061 int
16062 main ()
16063 {
16064 return __moddi3 ();
16065   ;
16066   return 0;
16067 }
16068 _ACEOF
16069 rm -f conftest.$ac_objext conftest$ac_exeext
16070 if { (ac_try="$ac_link"
16071 case "(($ac_try" in
16072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073   *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076   (eval "$ac_link") 2>conftest.er1
16077   ac_status=$?
16078   grep -v '^ *+' conftest.er1 >conftest.err
16079   rm -f conftest.er1
16080   cat conftest.err >&5
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); } &&
16083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16084   { (case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089   (eval "$ac_try") 2>&5
16090   ac_status=$?
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); }; } &&
16093          { ac_try='test -s conftest$ac_exeext'
16094   { (case "(($ac_try" in
16095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096   *) ac_try_echo=$ac_try;;
16097 esac
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099   (eval "$ac_try") 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; }; then
16103   ac_cv_lib_gcc___moddi3=yes
16104 else
16105   echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16107
16108         ac_cv_lib_gcc___moddi3=no
16109 fi
16110
16111 rm -f core conftest.err conftest.$ac_objext \
16112       conftest$ac_exeext conftest.$ac_ext
16113 LIBS=$ac_check_lib_save_LIBS
16114 fi
16115 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16116 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16117 if test $ac_cv_lib_gcc___moddi3 = yes; then
16118
16119 cat >>confdefs.h <<\_ACEOF
16120 #define HAVE___MODDI3 1
16121 _ACEOF
16122
16123 fi
16124
16125   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16126 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16127 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130   ac_check_lib_save_LIBS=$LIBS
16131 LIBS="-lgcc  $LIBS"
16132 cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h.  */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h.  */
16138
16139 /* Override any GCC internal prototype to avoid an error.
16140    Use char because int might match the return type of a GCC
16141    builtin and then its argument prototype would still apply.  */
16142 #ifdef __cplusplus
16143 extern "C"
16144 #endif
16145 char __udivdi3 ();
16146 int
16147 main ()
16148 {
16149 return __udivdi3 ();
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (ac_try="$ac_link"
16156 case "(($ac_try" in
16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158   *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161   (eval "$ac_link") 2>conftest.er1
16162   ac_status=$?
16163   grep -v '^ *+' conftest.er1 >conftest.err
16164   rm -f conftest.er1
16165   cat conftest.err >&5
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } &&
16168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16169   { (case "(($ac_try" in
16170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171   *) ac_try_echo=$ac_try;;
16172 esac
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174   (eval "$ac_try") 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; } &&
16178          { ac_try='test -s conftest$ac_exeext'
16179   { (case "(($ac_try" in
16180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181   *) ac_try_echo=$ac_try;;
16182 esac
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184   (eval "$ac_try") 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; }; then
16188   ac_cv_lib_gcc___udivdi3=yes
16189 else
16190   echo "$as_me: failed program was:" >&5
16191 sed 's/^/| /' conftest.$ac_ext >&5
16192
16193         ac_cv_lib_gcc___udivdi3=no
16194 fi
16195
16196 rm -f core conftest.err conftest.$ac_objext \
16197       conftest$ac_exeext conftest.$ac_ext
16198 LIBS=$ac_check_lib_save_LIBS
16199 fi
16200 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16201 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16202 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16203
16204 cat >>confdefs.h <<\_ACEOF
16205 #define HAVE___UDIVDI3 1
16206 _ACEOF
16207
16208 fi
16209
16210   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16211 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16212 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16213   echo $ECHO_N "(cached) $ECHO_C" >&6
16214 else
16215   ac_check_lib_save_LIBS=$LIBS
16216 LIBS="-lgcc  $LIBS"
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h.  */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h.  */
16223
16224 /* Override any GCC internal prototype to avoid an error.
16225    Use char because int might match the return type of a GCC
16226    builtin and then its argument prototype would still apply.  */
16227 #ifdef __cplusplus
16228 extern "C"
16229 #endif
16230 char __umoddi3 ();
16231 int
16232 main ()
16233 {
16234 return __umoddi3 ();
16235   ;
16236   return 0;
16237 }
16238 _ACEOF
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (ac_try="$ac_link"
16241 case "(($ac_try" in
16242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243   *) ac_try_echo=$ac_try;;
16244 esac
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246   (eval "$ac_link") 2>conftest.er1
16247   ac_status=$?
16248   grep -v '^ *+' conftest.er1 >conftest.err
16249   rm -f conftest.er1
16250   cat conftest.err >&5
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); } &&
16253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16254   { (case "(($ac_try" in
16255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256   *) ac_try_echo=$ac_try;;
16257 esac
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259   (eval "$ac_try") 2>&5
16260   ac_status=$?
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); }; } &&
16263          { ac_try='test -s conftest$ac_exeext'
16264   { (case "(($ac_try" in
16265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266   *) ac_try_echo=$ac_try;;
16267 esac
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269   (eval "$ac_try") 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; }; then
16273   ac_cv_lib_gcc___umoddi3=yes
16274 else
16275   echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278         ac_cv_lib_gcc___umoddi3=no
16279 fi
16280
16281 rm -f core conftest.err conftest.$ac_objext \
16282       conftest$ac_exeext conftest.$ac_ext
16283 LIBS=$ac_check_lib_save_LIBS
16284 fi
16285 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16286 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16287 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16288
16289 cat >>confdefs.h <<\_ACEOF
16290 #define HAVE___UMODDI3 1
16291 _ACEOF
16292
16293 fi
16294
16295
16296   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16297 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16298 if test "${ac_cv_lib_gcc___main+set}" = set; then
16299   echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301   ac_check_lib_save_LIBS=$LIBS
16302 LIBS="-lgcc  $LIBS"
16303 cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309
16310 /* Override any GCC internal prototype to avoid an error.
16311    Use char because int might match the return type of a GCC
16312    builtin and then its argument prototype would still apply.  */
16313 #ifdef __cplusplus
16314 extern "C"
16315 #endif
16316 char __main ();
16317 int
16318 main ()
16319 {
16320 return __main ();
16321   ;
16322   return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext conftest$ac_exeext
16326 if { (ac_try="$ac_link"
16327 case "(($ac_try" in
16328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329   *) ac_try_echo=$ac_try;;
16330 esac
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332   (eval "$ac_link") 2>conftest.er1
16333   ac_status=$?
16334   grep -v '^ *+' conftest.er1 >conftest.err
16335   rm -f conftest.er1
16336   cat conftest.err >&5
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); } &&
16339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16340   { (case "(($ac_try" in
16341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342   *) ac_try_echo=$ac_try;;
16343 esac
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345   (eval "$ac_try") 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; } &&
16349          { ac_try='test -s conftest$ac_exeext'
16350   { (case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_try") 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; }; then
16359   ac_cv_lib_gcc___main=yes
16360 else
16361   echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16363
16364         ac_cv_lib_gcc___main=no
16365 fi
16366
16367 rm -f core conftest.err conftest.$ac_objext \
16368       conftest$ac_exeext conftest.$ac_ext
16369 LIBS=$ac_check_lib_save_LIBS
16370 fi
16371 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16372 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16373 if test $ac_cv_lib_gcc___main = yes; then
16374
16375 cat >>confdefs.h <<\_ACEOF
16376 #define HAVE___MAIN 1
16377 _ACEOF
16378
16379 fi
16380
16381   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16382 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16383 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16384   echo $ECHO_N "(cached) $ECHO_C" >&6
16385 else
16386   ac_check_lib_save_LIBS=$LIBS
16387 LIBS="-lgcc  $LIBS"
16388 cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h.  */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h.  */
16394
16395 /* Override any GCC internal prototype to avoid an error.
16396    Use char because int might match the return type of a GCC
16397    builtin and then its argument prototype would still apply.  */
16398 #ifdef __cplusplus
16399 extern "C"
16400 #endif
16401 char __cmpdi2 ();
16402 int
16403 main ()
16404 {
16405 return __cmpdi2 ();
16406   ;
16407   return 0;
16408 }
16409 _ACEOF
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (ac_try="$ac_link"
16412 case "(($ac_try" in
16413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414   *) ac_try_echo=$ac_try;;
16415 esac
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417   (eval "$ac_link") 2>conftest.er1
16418   ac_status=$?
16419   grep -v '^ *+' conftest.er1 >conftest.err
16420   rm -f conftest.er1
16421   cat conftest.err >&5
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); } &&
16424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16425   { (case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430   (eval "$ac_try") 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; } &&
16434          { ac_try='test -s conftest$ac_exeext'
16435   { (case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440   (eval "$ac_try") 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; }; then
16444   ac_cv_lib_gcc___cmpdi2=yes
16445 else
16446   echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16448
16449         ac_cv_lib_gcc___cmpdi2=no
16450 fi
16451
16452 rm -f core conftest.err conftest.$ac_objext \
16453       conftest$ac_exeext conftest.$ac_ext
16454 LIBS=$ac_check_lib_save_LIBS
16455 fi
16456 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16457 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16458 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16459
16460 cat >>confdefs.h <<\_ACEOF
16461 #define HAVE___CMPDI2 1
16462 _ACEOF
16463
16464 fi
16465
16466 fi
16467
16468 if test "$llvm_cv_os_type" = "MingW" ; then
16469   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16470 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16471   cat >conftest.$ac_ext <<_ACEOF
16472
16473   /* confdefs.h.  */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h.  */
16478
16479     #include <windows.h>
16480     #include <imagehlp.h>
16481     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16482     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16483
16484
16485 _ACEOF
16486 rm -f conftest.$ac_objext
16487 if { (ac_try="$ac_compile"
16488 case "(($ac_try" in
16489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490   *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493   (eval "$ac_compile") 2>conftest.er1
16494   ac_status=$?
16495   grep -v '^ *+' conftest.er1 >conftest.err
16496   rm -f conftest.er1
16497   cat conftest.err >&5
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); } &&
16500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16501   { (case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_try") 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); }; } &&
16510          { ac_try='test -s conftest.$ac_objext'
16511   { (case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_try") 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; }; then
16520
16521   { echo "$as_me:$LINENO: result: yes" >&5
16522 echo "${ECHO_T}yes" >&6; }
16523   llvm_cv_win32_elmcb_pcstr="PCSTR"
16524
16525 else
16526   echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16528
16529
16530   { echo "$as_me:$LINENO: result: no" >&5
16531 echo "${ECHO_T}no" >&6; }
16532   llvm_cv_win32_elmcb_pcstr="PSTR"
16533
16534 fi
16535
16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537
16538 cat >>confdefs.h <<_ACEOF
16539 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16540 _ACEOF
16541
16542 fi
16543
16544 if test "$llvm_cv_platform_type" = "Unix" ; then
16545
16546
16547 for ac_header in stdlib.h unistd.h
16548 do
16549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16551   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16554   echo $ECHO_N "(cached) $ECHO_C" >&6
16555 fi
16556 ac_res=`eval echo '${'$as_ac_Header'}'`
16557                { echo "$as_me:$LINENO: result: $ac_res" >&5
16558 echo "${ECHO_T}$ac_res" >&6; }
16559 else
16560   # Is the header compilable?
16561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h.  */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h.  */
16569 $ac_includes_default
16570 #include <$ac_header>
16571 _ACEOF
16572 rm -f conftest.$ac_objext
16573 if { (ac_try="$ac_compile"
16574 case "(($ac_try" in
16575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576   *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579   (eval "$ac_compile") 2>conftest.er1
16580   ac_status=$?
16581   grep -v '^ *+' conftest.er1 >conftest.err
16582   rm -f conftest.er1
16583   cat conftest.err >&5
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } &&
16586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16587   { (case "(($ac_try" in
16588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589   *) ac_try_echo=$ac_try;;
16590 esac
16591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592   (eval "$ac_try") 2>&5
16593   ac_status=$?
16594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); }; } &&
16596          { ac_try='test -s conftest.$ac_objext'
16597   { (case "(($ac_try" in
16598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599   *) ac_try_echo=$ac_try;;
16600 esac
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602   (eval "$ac_try") 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }; }; then
16606   ac_header_compiler=yes
16607 else
16608   echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611         ac_header_compiler=no
16612 fi
16613
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16616 echo "${ECHO_T}$ac_header_compiler" >&6; }
16617
16618 # Is the header present?
16619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16621 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627 #include <$ac_header>
16628 _ACEOF
16629 if { (ac_try="$ac_cpp conftest.$ac_ext"
16630 case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16636   ac_status=$?
16637   grep -v '^ *+' conftest.er1 >conftest.err
16638   rm -f conftest.er1
16639   cat conftest.err >&5
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); } >/dev/null; then
16642   if test -s conftest.err; then
16643     ac_cpp_err=$ac_c_preproc_warn_flag
16644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16645   else
16646     ac_cpp_err=
16647   fi
16648 else
16649   ac_cpp_err=yes
16650 fi
16651 if test -z "$ac_cpp_err"; then
16652   ac_header_preproc=yes
16653 else
16654   echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16656
16657   ac_header_preproc=no
16658 fi
16659
16660 rm -f conftest.err conftest.$ac_ext
16661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16662 echo "${ECHO_T}$ac_header_preproc" >&6; }
16663
16664 # So?  What about this header?
16665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16666   yes:no: )
16667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16671     ac_header_preproc=yes
16672     ;;
16673   no:yes:* )
16674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16686     ( cat <<\_ASBOX
16687 ## ------------------------------------ ##
16688 ## Report this to http://llvm.org/bugs/ ##
16689 ## ------------------------------------ ##
16690 _ASBOX
16691      ) | sed "s/^/$as_me: WARNING:     /" >&2
16692     ;;
16693 esac
16694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16697   echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699   eval "$as_ac_Header=\$ac_header_preproc"
16700 fi
16701 ac_res=`eval echo '${'$as_ac_Header'}'`
16702                { echo "$as_me:$LINENO: result: $ac_res" >&5
16703 echo "${ECHO_T}$ac_res" >&6; }
16704
16705 fi
16706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16707   cat >>confdefs.h <<_ACEOF
16708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16709 _ACEOF
16710
16711 fi
16712
16713 done
16714
16715
16716 for ac_func in getpagesize
16717 do
16718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724   cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16732 #define $ac_func innocuous_$ac_func
16733
16734 /* System header to define __stub macros and hopefully few prototypes,
16735     which can conflict with char $ac_func (); below.
16736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16737     <limits.h> exists even on freestanding compilers.  */
16738
16739 #ifdef __STDC__
16740 # include <limits.h>
16741 #else
16742 # include <assert.h>
16743 #endif
16744
16745 #undef $ac_func
16746
16747 /* Override any GCC internal prototype to avoid an error.
16748    Use char because int might match the return type of a GCC
16749    builtin and then its argument prototype would still apply.  */
16750 #ifdef __cplusplus
16751 extern "C"
16752 #endif
16753 char $ac_func ();
16754 /* The GNU C library defines this for functions which it implements
16755     to always fail with ENOSYS.  Some functions are actually named
16756     something starting with __ and the normal name is an alias.  */
16757 #if defined __stub_$ac_func || defined __stub___$ac_func
16758 choke me
16759 #endif
16760
16761 int
16762 main ()
16763 {
16764 return $ac_func ();
16765   ;
16766   return 0;
16767 }
16768 _ACEOF
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (ac_try="$ac_link"
16771 case "(($ac_try" in
16772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773   *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776   (eval "$ac_link") 2>conftest.er1
16777   ac_status=$?
16778   grep -v '^ *+' conftest.er1 >conftest.err
16779   rm -f conftest.er1
16780   cat conftest.err >&5
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } &&
16783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16784   { (case "(($ac_try" in
16785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786   *) ac_try_echo=$ac_try;;
16787 esac
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789   (eval "$ac_try") 2>&5
16790   ac_status=$?
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); }; } &&
16793          { ac_try='test -s conftest$ac_exeext'
16794   { (case "(($ac_try" in
16795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796   *) ac_try_echo=$ac_try;;
16797 esac
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799   (eval "$ac_try") 2>&5
16800   ac_status=$?
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); }; }; then
16803   eval "$as_ac_var=yes"
16804 else
16805   echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16807
16808         eval "$as_ac_var=no"
16809 fi
16810
16811 rm -f core conftest.err conftest.$ac_objext \
16812       conftest$ac_exeext conftest.$ac_ext
16813 fi
16814 ac_res=`eval echo '${'$as_ac_var'}'`
16815                { echo "$as_me:$LINENO: result: $ac_res" >&5
16816 echo "${ECHO_T}$ac_res" >&6; }
16817 if test `eval echo '${'$as_ac_var'}'` = yes; then
16818   cat >>confdefs.h <<_ACEOF
16819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16820 _ACEOF
16821
16822 fi
16823 done
16824
16825 { echo "$as_me:$LINENO: checking for working mmap" >&5
16826 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16827 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   if test "$cross_compiling" = yes; then
16831   ac_cv_func_mmap_fixed_mapped=no
16832 else
16833   cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839 $ac_includes_default
16840 /* malloc might have been renamed as rpl_malloc. */
16841 #undef malloc
16842
16843 /* Thanks to Mike Haertel and Jim Avera for this test.
16844    Here is a matrix of mmap possibilities:
16845         mmap private not fixed
16846         mmap private fixed at somewhere currently unmapped
16847         mmap private fixed at somewhere already mapped
16848         mmap shared not fixed
16849         mmap shared fixed at somewhere currently unmapped
16850         mmap shared fixed at somewhere already mapped
16851    For private mappings, we should verify that changes cannot be read()
16852    back from the file, nor mmap's back from the file at a different
16853    address.  (There have been systems where private was not correctly
16854    implemented like the infamous i386 svr4.0, and systems where the
16855    VM page cache was not coherent with the file system buffer cache
16856    like early versions of FreeBSD and possibly contemporary NetBSD.)
16857    For shared mappings, we should conversely verify that changes get
16858    propagated back to all the places they're supposed to be.
16859
16860    Grep wants private fixed already mapped.
16861    The main things grep needs to know about mmap are:
16862    * does it exist and is it safe to write into the mmap'd area
16863    * how to use it (BSD variants)  */
16864
16865 #include <fcntl.h>
16866 #include <sys/mman.h>
16867
16868 #if !STDC_HEADERS && !HAVE_STDLIB_H
16869 char *malloc ();
16870 #endif
16871
16872 /* This mess was copied from the GNU getpagesize.h.  */
16873 #if !HAVE_GETPAGESIZE
16874 /* Assume that all systems that can run configure have sys/param.h.  */
16875 # if !HAVE_SYS_PARAM_H
16876 #  define HAVE_SYS_PARAM_H 1
16877 # endif
16878
16879 # ifdef _SC_PAGESIZE
16880 #  define getpagesize() sysconf(_SC_PAGESIZE)
16881 # else /* no _SC_PAGESIZE */
16882 #  if HAVE_SYS_PARAM_H
16883 #   include <sys/param.h>
16884 #   ifdef EXEC_PAGESIZE
16885 #    define getpagesize() EXEC_PAGESIZE
16886 #   else /* no EXEC_PAGESIZE */
16887 #    ifdef NBPG
16888 #     define getpagesize() NBPG * CLSIZE
16889 #     ifndef CLSIZE
16890 #      define CLSIZE 1
16891 #     endif /* no CLSIZE */
16892 #    else /* no NBPG */
16893 #     ifdef NBPC
16894 #      define getpagesize() NBPC
16895 #     else /* no NBPC */
16896 #      ifdef PAGESIZE
16897 #       define getpagesize() PAGESIZE
16898 #      endif /* PAGESIZE */
16899 #     endif /* no NBPC */
16900 #    endif /* no NBPG */
16901 #   endif /* no EXEC_PAGESIZE */
16902 #  else /* no HAVE_SYS_PARAM_H */
16903 #   define getpagesize() 8192   /* punt totally */
16904 #  endif /* no HAVE_SYS_PARAM_H */
16905 # endif /* no _SC_PAGESIZE */
16906
16907 #endif /* no HAVE_GETPAGESIZE */
16908
16909 int
16910 main ()
16911 {
16912   char *data, *data2, *data3;
16913   int i, pagesize;
16914   int fd;
16915
16916   pagesize = getpagesize ();
16917
16918   /* First, make a file with some known garbage in it. */
16919   data = (char *) malloc (pagesize);
16920   if (!data)
16921     return 1;
16922   for (i = 0; i < pagesize; ++i)
16923     *(data + i) = rand ();
16924   umask (0);
16925   fd = creat ("conftest.mmap", 0600);
16926   if (fd < 0)
16927     return 1;
16928   if (write (fd, data, pagesize) != pagesize)
16929     return 1;
16930   close (fd);
16931
16932   /* Next, try to mmap the file at a fixed address which already has
16933      something else allocated at it.  If we can, also make sure that
16934      we see the same garbage.  */
16935   fd = open ("conftest.mmap", O_RDWR);
16936   if (fd < 0)
16937     return 1;
16938   data2 = (char *) malloc (2 * pagesize);
16939   if (!data2)
16940     return 1;
16941   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16942   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16943                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16944     return 1;
16945   for (i = 0; i < pagesize; ++i)
16946     if (*(data + i) != *(data2 + i))
16947       return 1;
16948
16949   /* Finally, make sure that changes to the mapped area do not
16950      percolate back to the file as seen by read().  (This is a bug on
16951      some variants of i386 svr4.0.)  */
16952   for (i = 0; i < pagesize; ++i)
16953     *(data2 + i) = *(data2 + i) + 1;
16954   data3 = (char *) malloc (pagesize);
16955   if (!data3)
16956     return 1;
16957   if (read (fd, data3, pagesize) != pagesize)
16958     return 1;
16959   for (i = 0; i < pagesize; ++i)
16960     if (*(data + i) != *(data3 + i))
16961       return 1;
16962   close (fd);
16963   return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest$ac_exeext
16967 if { (ac_try="$ac_link"
16968 case "(($ac_try" in
16969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970   *) ac_try_echo=$ac_try;;
16971 esac
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973   (eval "$ac_link") 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16977   { (case "(($ac_try" in
16978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979   *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982   (eval "$ac_try") 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); }; }; then
16986   ac_cv_func_mmap_fixed_mapped=yes
16987 else
16988   echo "$as_me: program exited with status $ac_status" >&5
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 ( exit $ac_status )
16993 ac_cv_func_mmap_fixed_mapped=no
16994 fi
16995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16996 fi
16997
16998
16999 fi
17000 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17001 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17002 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17003
17004 cat >>confdefs.h <<\_ACEOF
17005 #define HAVE_MMAP 1
17006 _ACEOF
17007
17008 fi
17009 rm -f conftest.mmap
17010
17011   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17012 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17013 if test "${ac_cv_func_mmap_file+set}" = set; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016    ac_ext=c
17017 ac_cpp='$CPP $CPPFLAGS'
17018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17021
17022   if test "$cross_compiling" = yes; then
17023   ac_cv_func_mmap_file=no
17024 else
17025   cat >conftest.$ac_ext <<_ACEOF
17026
17027     /* confdefs.h.  */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h.  */
17032
17033 #include <sys/types.h>
17034 #include <sys/mman.h>
17035 #include <fcntl.h>
17036
17037 int
17038 main ()
17039 {
17040
17041   int fd;
17042   fd = creat ("foo",0777);
17043   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17044   unlink ("foo");
17045   return (fd != (int) MAP_FAILED);
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest$ac_exeext
17051 if { (ac_try="$ac_link"
17052 case "(($ac_try" in
17053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054   *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057   (eval "$ac_link") 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17061   { (case "(($ac_try" in
17062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063   *) ac_try_echo=$ac_try;;
17064 esac
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066   (eval "$ac_try") 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; }; then
17070   ac_cv_func_mmap_file=yes
17071 else
17072   echo "$as_me: program exited with status $ac_status" >&5
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076 ( exit $ac_status )
17077 ac_cv_func_mmap_file=no
17078 fi
17079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17080 fi
17081
17082
17083   ac_ext=c
17084 ac_cpp='$CPP $CPPFLAGS'
17085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17088
17089
17090 fi
17091 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17092 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17093 if test "$ac_cv_func_mmap_file" = yes; then
17094
17095 cat >>confdefs.h <<\_ACEOF
17096 #define HAVE_MMAP_FILE
17097 _ACEOF
17098
17099    MMAP_FILE=yes
17100
17101 fi
17102
17103   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17104 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17105 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   if test "$llvm_cv_os_type" = "Interix" ; then
17109    ac_cv_need_dev_zero_for_mmap=yes
17110  else
17111    ac_cv_need_dev_zero_for_mmap=no
17112  fi
17113
17114 fi
17115 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17116 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17117 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17118
17119 cat >>confdefs.h <<\_ACEOF
17120 #define NEED_DEV_ZERO_FOR_MMAP 1
17121 _ACEOF
17122
17123 fi
17124
17125   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17126   then
17127     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17128 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17129   fi
17130   if test "$ac_cv_func_mmap_file" = "no"
17131   then
17132     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17133 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17134   fi
17135 fi
17136
17137 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17138 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17139 ac_ext=cpp
17140 ac_cpp='$CXXCPP $CPPFLAGS'
17141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17144
17145 cat >conftest.$ac_ext <<_ACEOF
17146
17147   /* confdefs.h.  */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h.  */
17152
17153     int main() {
17154       volatile unsigned long val = 1;
17155       __sync_synchronize();
17156       __sync_val_compare_and_swap(&val, 1, 0);
17157       __sync_add_and_fetch(&val, 1);
17158       __sync_sub_and_fetch(&val, 1);
17159       return 0;
17160     }
17161
17162
17163 _ACEOF
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (ac_try="$ac_link"
17166 case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171   (eval "$ac_link") 2>conftest.er1
17172   ac_status=$?
17173   grep -v '^ *+' conftest.er1 >conftest.err
17174   rm -f conftest.er1
17175   cat conftest.err >&5
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); } &&
17178          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17179   { (case "(($ac_try" in
17180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181   *) ac_try_echo=$ac_try;;
17182 esac
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184   (eval "$ac_try") 2>&5
17185   ac_status=$?
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); }; } &&
17188          { ac_try='test -s conftest$ac_exeext'
17189   { (case "(($ac_try" in
17190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191   *) ac_try_echo=$ac_try;;
17192 esac
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194   (eval "$ac_try") 2>&5
17195   ac_status=$?
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); }; }; then
17198
17199   { echo "$as_me:$LINENO: result: yes" >&5
17200 echo "${ECHO_T}yes" >&6; }
17201
17202 cat >>confdefs.h <<\_ACEOF
17203 #define LLVM_HAS_ATOMICS 1
17204 _ACEOF
17205
17206
17207 else
17208   echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211
17212   { echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6; }
17214
17215 cat >>confdefs.h <<\_ACEOF
17216 #define LLVM_HAS_ATOMICS 0
17217 _ACEOF
17218
17219   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17220 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17221
17222 fi
17223
17224 rm -f core conftest.err conftest.$ac_objext \
17225       conftest$ac_exeext conftest.$ac_ext
17226 ac_ext=c
17227 ac_cpp='$CPP $CPPFLAGS'
17228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17231
17232
17233
17234 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17235   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17236 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17237 if test "${llvm_cv_linux_mixed+set}" = set; then
17238   echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240    ac_ext=c
17241 ac_cpp='$CPP $CPPFLAGS'
17242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17245
17246   cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h.  */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h.  */
17252 #ifndef __x86_64__
17253        error: Not x86-64 even if uname says so!
17254       #endif
17255
17256 int
17257 main ()
17258 {
17259
17260   ;
17261   return 0;
17262 }
17263 _ACEOF
17264 rm -f conftest.$ac_objext
17265 if { (ac_try="$ac_compile"
17266 case "(($ac_try" in
17267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268   *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271   (eval "$ac_compile") 2>conftest.er1
17272   ac_status=$?
17273   grep -v '^ *+' conftest.er1 >conftest.err
17274   rm -f conftest.er1
17275   cat conftest.err >&5
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } &&
17278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17279   { (case "(($ac_try" in
17280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281   *) ac_try_echo=$ac_try;;
17282 esac
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284   (eval "$ac_try") 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; } &&
17288          { ac_try='test -s conftest.$ac_objext'
17289   { (case "(($ac_try" in
17290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291   *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294   (eval "$ac_try") 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); }; }; then
17298   llvm_cv_linux_mixed=no
17299 else
17300   echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303         llvm_cv_linux_mixed=yes
17304 fi
17305
17306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17307   ac_ext=c
17308 ac_cpp='$CPP $CPPFLAGS'
17309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17312
17313
17314 fi
17315 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17316 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17317
17318   if test "$llvm_cv_linux_mixed" = "yes"; then
17319     llvm_cv_target_arch="x86"
17320     ARCH="x86"
17321   fi
17322 fi
17323
17324
17325 for ac_func in __dso_handle
17326 do
17327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333   cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h.  */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h.  */
17339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17341 #define $ac_func innocuous_$ac_func
17342
17343 /* System header to define __stub macros and hopefully few prototypes,
17344     which can conflict with char $ac_func (); below.
17345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17346     <limits.h> exists even on freestanding compilers.  */
17347
17348 #ifdef __STDC__
17349 # include <limits.h>
17350 #else
17351 # include <assert.h>
17352 #endif
17353
17354 #undef $ac_func
17355
17356 /* Override any GCC internal prototype to avoid an error.
17357    Use char because int might match the return type of a GCC
17358    builtin and then its argument prototype would still apply.  */
17359 #ifdef __cplusplus
17360 extern "C"
17361 #endif
17362 char $ac_func ();
17363 /* The GNU C library defines this for functions which it implements
17364     to always fail with ENOSYS.  Some functions are actually named
17365     something starting with __ and the normal name is an alias.  */
17366 #if defined __stub_$ac_func || defined __stub___$ac_func
17367 choke me
17368 #endif
17369
17370 int
17371 main ()
17372 {
17373 return $ac_func ();
17374   ;
17375   return 0;
17376 }
17377 _ACEOF
17378 rm -f conftest.$ac_objext conftest$ac_exeext
17379 if { (ac_try="$ac_link"
17380 case "(($ac_try" in
17381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382   *) ac_try_echo=$ac_try;;
17383 esac
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385   (eval "$ac_link") 2>conftest.er1
17386   ac_status=$?
17387   grep -v '^ *+' conftest.er1 >conftest.err
17388   rm -f conftest.er1
17389   cat conftest.err >&5
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); } &&
17392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17393   { (case "(($ac_try" in
17394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395   *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398   (eval "$ac_try") 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; } &&
17402          { ac_try='test -s conftest$ac_exeext'
17403   { (case "(($ac_try" in
17404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405   *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408   (eval "$ac_try") 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; }; then
17412   eval "$as_ac_var=yes"
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417         eval "$as_ac_var=no"
17418 fi
17419
17420 rm -f core conftest.err conftest.$ac_objext \
17421       conftest$ac_exeext conftest.$ac_ext
17422 fi
17423 ac_res=`eval echo '${'$as_ac_var'}'`
17424                { echo "$as_me:$LINENO: result: $ac_res" >&5
17425 echo "${ECHO_T}$ac_res" >&6; }
17426 if test `eval echo '${'$as_ac_var'}'` = yes; then
17427   cat >>confdefs.h <<_ACEOF
17428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17429 _ACEOF
17430
17431 fi
17432 done
17433
17434
17435 SHLIBEXT=$llvm_shlib_ext
17436
17437
17438 if test "${prefix}" = "NONE" ; then
17439   prefix="/usr/local"
17440 fi
17441 eval LLVM_PREFIX="${prefix}";
17442 eval LLVM_BINDIR="${prefix}/bin";
17443 eval LLVM_DATADIR="${prefix}/share/llvm";
17444 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17445 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17446 eval LLVM_INCLUDEDIR="${prefix}/include";
17447 eval LLVM_INFODIR="${prefix}/info";
17448 eval LLVM_MANDIR="${prefix}/man";
17449 LLVM_CONFIGTIME=`date`
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17461   LLVM_CONFIGTIME="(timestamp not enabled)"
17462 fi
17463
17464
17465 cat >>confdefs.h <<_ACEOF
17466 #define LLVM_PREFIX "$LLVM_PREFIX"
17467 _ACEOF
17468
17469
17470 cat >>confdefs.h <<_ACEOF
17471 #define LLVM_BINDIR "$LLVM_BINDIR"
17472 _ACEOF
17473
17474
17475 cat >>confdefs.h <<_ACEOF
17476 #define LLVM_DATADIR "$LLVM_DATADIR"
17477 _ACEOF
17478
17479
17480 cat >>confdefs.h <<_ACEOF
17481 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17482 _ACEOF
17483
17484
17485 cat >>confdefs.h <<_ACEOF
17486 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17487 _ACEOF
17488
17489
17490 cat >>confdefs.h <<_ACEOF
17491 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17492 _ACEOF
17493
17494
17495 cat >>confdefs.h <<_ACEOF
17496 #define LLVM_INFODIR "$LLVM_INFODIR"
17497 _ACEOF
17498
17499
17500 cat >>confdefs.h <<_ACEOF
17501 #define LLVM_MANDIR "$LLVM_MANDIR"
17502 _ACEOF
17503
17504
17505 cat >>confdefs.h <<_ACEOF
17506 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17507 _ACEOF
17508
17509
17510 cat >>confdefs.h <<_ACEOF
17511 #define LLVM_HOST_TRIPLE "$host"
17512 _ACEOF
17513
17514
17515 cat >>confdefs.h <<_ACEOF
17516 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17517 _ACEOF
17518
17519
17520 if test "$BINDINGS_TO_BUILD" = auto ; then
17521   BINDINGS_TO_BUILD=""
17522   if test "x$OCAMLFIND" != x ; then
17523     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17524   fi
17525   if test "x$GO" != x ; then
17526     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17527       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17528     fi
17529   fi
17530 fi
17531 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17532
17533
17534 binding_prereqs_failed=0
17535 for a_binding in $BINDINGS_TO_BUILD ; do
17536   case "$a_binding" in
17537   ocaml)
17538     if test "x$OCAMLFIND" = x ; then
17539       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17540 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17541       binding_prereqs_failed=1
17542     fi
17543
17544     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17545       HAVE_OCAMLOPT=1
17546     else
17547       HAVE_OCAMLOPT=0
17548     fi
17549
17550
17551     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17552       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17553 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17554       binding_prereqs_failed=1
17555     fi
17556
17557     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17558       HAVE_OCAML_OUNIT=1
17559     else
17560       HAVE_OCAML_OUNIT=0
17561       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17562 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17563           fi
17564
17565
17566     if test "x$with_ocaml_libdir" != xauto ; then
17567       OCAML_LIBDIR=$with_ocaml_libdir
17568
17569     else
17570       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17571       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17572       then
17573         # ocaml stdlib is beneath our prefix; use stdlib
17574         OCAML_LIBDIR=$ocaml_stdlib
17575
17576       else
17577         # ocaml stdlib is outside our prefix; use libdir/ocaml
17578         OCAML_LIBDIR=${prefix}/lib/ocaml
17579
17580       fi
17581     fi
17582     ;;
17583   go)
17584     if test "x$GO" = x ; then
17585       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17586 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17587       binding_prereqs_failed=1
17588     else
17589       if $GO run ${srcdir}/bindings/go/conftest.go ; then
17590         :
17591       else
17592         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17593 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17594         binding_prereqs_failed=1
17595       fi
17596     fi
17597     ;;
17598   esac
17599 done
17600 if test "$binding_prereqs_failed" = 1 ; then
17601   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17602 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17603    { (exit 1); exit 1; }; }
17604 fi
17605
17606 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17607 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17608 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17609   echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611    ac_ext=cpp
17612 ac_cpp='$CXXCPP $CPPFLAGS'
17613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17616
17617   oldcxxflags="$CXXFLAGS"
17618   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17619   cat >conftest.$ac_ext <<_ACEOF
17620 /* confdefs.h.  */
17621 _ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h.  */
17625 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17626 int
17627 main ()
17628 {
17629 X<int>().f();
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (ac_try="$ac_compile"
17636 case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641   (eval "$ac_compile") 2>conftest.er1
17642   ac_status=$?
17643   grep -v '^ *+' conftest.er1 >conftest.err
17644   rm -f conftest.er1
17645   cat conftest.err >&5
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); } &&
17648          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17649   { (case "(($ac_try" in
17650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651   *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654   (eval "$ac_try") 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; } &&
17658          { ac_try='test -s conftest.$ac_objext'
17659   { (case "(($ac_try" in
17660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661   *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664   (eval "$ac_try") 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); }; }; then
17668   llvm_cv_cxx_visibility_inlines_hidden=yes
17669 else
17670   echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17672
17673         llvm_cv_cxx_visibility_inlines_hidden=no
17674 fi
17675
17676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17677   CXXFLAGS="$oldcxxflags"
17678   ac_ext=c
17679 ac_cpp='$CPP $CPPFLAGS'
17680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17683
17684
17685 fi
17686 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17687 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17688 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17689   ENABLE_VISIBILITY_INLINES_HIDDEN=1
17690
17691 else
17692   ENABLE_VISIBILITY_INLINES_HIDDEN=0
17693
17694 fi
17695
17696
17697 if test "$llvm_cv_link_use_r" = "yes" ; then
17698   RPATH="-Wl,-R"
17699 else
17700   RPATH="-Wl,-rpath"
17701 fi
17702
17703
17704 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
17705   RDYNAMIC="-rdynamic"
17706 else
17707   RDYNAMIC=""
17708 fi
17709
17710
17711
17712 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
17713
17714
17715
17716
17717
17718
17719 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
17720
17721 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
17722
17723 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
17724
17725 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
17726
17727 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
17728
17729
17730 ac_config_files="$ac_config_files Makefile.config"
17731
17732
17733 ac_config_files="$ac_config_files llvm.spec"
17734
17735
17736 ac_config_files="$ac_config_files docs/doxygen.cfg"
17737
17738
17739 if test "${clang_src_root}" = ""; then
17740   clang_src_root="$srcdir/tools/clang"
17741 fi
17742 if test -f ${clang_src_root}/README.txt; then
17743
17744 cat >>confdefs.h <<_ACEOF
17745 #define CLANG_LIBDIR_SUFFIX ""
17746 _ACEOF
17747
17748
17749     configh="include/clang/Config/config.h"
17750   doxy="docs/doxygen.cfg"
17751   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
17752
17753   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
17754
17755 fi
17756
17757 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
17758
17759
17760 test "x$program_prefix" = "xNONE" && program_prefix=""
17761
17762
17763
17764 ac_config_commands="$ac_config_commands setup"
17765
17766 ac_config_commands="$ac_config_commands Makefile"
17767
17768
17769 ac_config_commands="$ac_config_commands Makefile.common"
17770
17771
17772 ac_config_commands="$ac_config_commands examples/Makefile"
17773
17774
17775 ac_config_commands="$ac_config_commands lib/Makefile"
17776
17777
17778 ac_config_commands="$ac_config_commands test/Makefile"
17779
17780
17781 ac_config_commands="$ac_config_commands test/Makefile.tests"
17782
17783
17784 ac_config_commands="$ac_config_commands unittests/Makefile"
17785
17786
17787 ac_config_commands="$ac_config_commands tools/Makefile"
17788
17789
17790 ac_config_commands="$ac_config_commands utils/Makefile"
17791
17792
17793 ac_config_commands="$ac_config_commands projects/Makefile"
17794
17795
17796 ac_config_commands="$ac_config_commands bindings/Makefile"
17797
17798
17799 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
17800
17801
17802
17803 cat >confcache <<\_ACEOF
17804 # This file is a shell script that caches the results of configure
17805 # tests run on this system so they can be shared between configure
17806 # scripts and configure runs, see configure's option --config-cache.
17807 # It is not useful on other systems.  If it contains results you don't
17808 # want to keep, you may remove or edit it.
17809 #
17810 # config.status only pays attention to the cache file if you give it
17811 # the --recheck option to rerun configure.
17812 #
17813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17815 # following values.
17816
17817 _ACEOF
17818
17819 # The following way of writing the cache mishandles newlines in values,
17820 # but we know of no workaround that is simple, portable, and efficient.
17821 # So, we kill variables containing newlines.
17822 # Ultrix sh set writes to stderr and can't be redirected directly,
17823 # and sets the high bit in the cache file unless we assign to the vars.
17824 (
17825   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17826     eval ac_val=\$$ac_var
17827     case $ac_val in #(
17828     *${as_nl}*)
17829       case $ac_var in #(
17830       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17831 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17832       esac
17833       case $ac_var in #(
17834       _ | IFS | as_nl) ;; #(
17835       *) $as_unset $ac_var ;;
17836       esac ;;
17837     esac
17838   done
17839
17840   (set) 2>&1 |
17841     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17842     *${as_nl}ac_space=\ *)
17843       # `set' does not quote correctly, so add quotes (double-quote
17844       # substitution turns \\\\ into \\, and sed turns \\ into \).
17845       sed -n \
17846         "s/'/'\\\\''/g;
17847           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17848       ;; #(
17849     *)
17850       # `set' quotes correctly as required by POSIX, so do not add quotes.
17851       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17852       ;;
17853     esac |
17854     sort
17855 ) |
17856   sed '
17857      /^ac_cv_env_/b end
17858      t clear
17859      :clear
17860      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17861      t end
17862      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17863      :end' >>confcache
17864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17865   if test -w "$cache_file"; then
17866     test "x$cache_file" != "x/dev/null" &&
17867       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17868 echo "$as_me: updating cache $cache_file" >&6;}
17869     cat confcache >$cache_file
17870   else
17871     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17872 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17873   fi
17874 fi
17875 rm -f confcache
17876
17877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17878 # Let make expand exec_prefix.
17879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17880
17881 DEFS=-DHAVE_CONFIG_H
17882
17883 ac_libobjs=
17884 ac_ltlibobjs=
17885 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17886   # 1. Remove the extension, and $U if already installed.
17887   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17888   ac_i=`echo "$ac_i" | sed "$ac_script"`
17889   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17890   #    will be set to the directory where LIBOBJS objects are built.
17891   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17892   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17893 done
17894 LIBOBJS=$ac_libobjs
17895
17896 LTLIBOBJS=$ac_ltlibobjs
17897
17898
17899
17900 : ${CONFIG_STATUS=./config.status}
17901 ac_clean_files_save=$ac_clean_files
17902 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17903 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17904 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17905 cat >$CONFIG_STATUS <<_ACEOF
17906 #! $SHELL
17907 # Generated by $as_me.
17908 # Run this file to recreate the current configuration.
17909 # Compiler output produced by configure, useful for debugging
17910 # configure, is in config.log if it exists.
17911
17912 debug=false
17913 ac_cs_recheck=false
17914 ac_cs_silent=false
17915 SHELL=\${CONFIG_SHELL-$SHELL}
17916 _ACEOF
17917
17918 cat >>$CONFIG_STATUS <<\_ACEOF
17919 ## --------------------- ##
17920 ## M4sh Initialization.  ##
17921 ## --------------------- ##
17922
17923 # Be Bourne compatible
17924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17925   emulate sh
17926   NULLCMD=:
17927   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17928   # is contrary to our usage.  Disable this feature.
17929   alias -g '${1+"$@"}'='"$@"'
17930   setopt NO_GLOB_SUBST
17931 else
17932   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17933 fi
17934 BIN_SH=xpg4; export BIN_SH # for Tru64
17935 DUALCASE=1; export DUALCASE # for MKS sh
17936
17937
17938 # PATH needs CR
17939 # Avoid depending upon Character Ranges.
17940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17943 as_cr_digits='0123456789'
17944 as_cr_alnum=$as_cr_Letters$as_cr_digits
17945
17946 # The user is always right.
17947 if test "${PATH_SEPARATOR+set}" != set; then
17948   echo "#! /bin/sh" >conf$$.sh
17949   echo  "exit 0"   >>conf$$.sh
17950   chmod +x conf$$.sh
17951   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17952     PATH_SEPARATOR=';'
17953   else
17954     PATH_SEPARATOR=:
17955   fi
17956   rm -f conf$$.sh
17957 fi
17958
17959 # Support unset when possible.
17960 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17961   as_unset=unset
17962 else
17963   as_unset=false
17964 fi
17965
17966
17967 # IFS
17968 # We need space, tab and new line, in precisely that order.  Quoting is
17969 # there to prevent editors from complaining about space-tab.
17970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17971 # splitting by setting IFS to empty value.)
17972 as_nl='
17973 '
17974 IFS=" ""        $as_nl"
17975
17976 # Find who we are.  Look in the path if we contain no directory separator.
17977 case $0 in
17978   *[\\/]* ) as_myself=$0 ;;
17979   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17980 for as_dir in $PATH
17981 do
17982   IFS=$as_save_IFS
17983   test -z "$as_dir" && as_dir=.
17984   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17985 done
17986 IFS=$as_save_IFS
17987
17988      ;;
17989 esac
17990 # We did not find ourselves, most probably we were run as `sh COMMAND'
17991 # in which case we are not to be found in the path.
17992 if test "x$as_myself" = x; then
17993   as_myself=$0
17994 fi
17995 if test ! -f "$as_myself"; then
17996   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17997   { (exit 1); exit 1; }
17998 fi
17999
18000 # Work around bugs in pre-3.0 UWIN ksh.
18001 for as_var in ENV MAIL MAILPATH
18002 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18003 done
18004 PS1='$ '
18005 PS2='> '
18006 PS4='+ '
18007
18008 # NLS nuisances.
18009 for as_var in \
18010   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18011   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18012   LC_TELEPHONE LC_TIME
18013 do
18014   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18015     eval $as_var=C; export $as_var
18016   else
18017     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18018   fi
18019 done
18020
18021 # Required to use basename.
18022 if expr a : '\(a\)' >/dev/null 2>&1 &&
18023    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18024   as_expr=expr
18025 else
18026   as_expr=false
18027 fi
18028
18029 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18030   as_basename=basename
18031 else
18032   as_basename=false
18033 fi
18034
18035
18036 # Name of the executable.
18037 as_me=`$as_basename -- "$0" ||
18038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18039          X"$0" : 'X\(//\)$' \| \
18040          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18041 echo X/"$0" |
18042     sed '/^.*\/\([^/][^/]*\)\/*$/{
18043             s//\1/
18044             q
18045           }
18046           /^X\/\(\/\/\)$/{
18047             s//\1/
18048             q
18049           }
18050           /^X\/\(\/\).*/{
18051             s//\1/
18052             q
18053           }
18054           s/.*/./; q'`
18055
18056 # CDPATH.
18057 $as_unset CDPATH
18058
18059
18060
18061   as_lineno_1=$LINENO
18062   as_lineno_2=$LINENO
18063   test "x$as_lineno_1" != "x$as_lineno_2" &&
18064   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18065
18066   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18067   # uniformly replaced by the line number.  The first 'sed' inserts a
18068   # line-number line after each line using $LINENO; the second 'sed'
18069   # does the real work.  The second script uses 'N' to pair each
18070   # line-number line with the line containing $LINENO, and appends
18071   # trailing '-' during substitution so that $LINENO is not a special
18072   # case at line end.
18073   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18074   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18075   # E. McMahon (1931-1989) for sed's syntax.  :-)
18076   sed -n '
18077     p
18078     /[$]LINENO/=
18079   ' <$as_myself |
18080     sed '
18081       s/[$]LINENO.*/&-/
18082       t lineno
18083       b
18084       :lineno
18085       N
18086       :loop
18087       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18088       t loop
18089       s/-\n.*//
18090     ' >$as_me.lineno &&
18091   chmod +x "$as_me.lineno" ||
18092     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18093    { (exit 1); exit 1; }; }
18094
18095   # Don't try to exec as it changes $[0], causing all sort of problems
18096   # (the dirname of $[0] is not the place where we might find the
18097   # original and so on.  Autoconf is especially sensitive to this).
18098   . "./$as_me.lineno"
18099   # Exit status is that of the last command.
18100   exit
18101 }
18102
18103
18104 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18105   as_dirname=dirname
18106 else
18107   as_dirname=false
18108 fi
18109
18110 ECHO_C= ECHO_N= ECHO_T=
18111 case `echo -n x` in
18112 -n*)
18113   case `echo 'x\c'` in
18114   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18115   *)   ECHO_C='\c';;
18116   esac;;
18117 *)
18118   ECHO_N='-n';;
18119 esac
18120
18121 if expr a : '\(a\)' >/dev/null 2>&1 &&
18122    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18123   as_expr=expr
18124 else
18125   as_expr=false
18126 fi
18127
18128 rm -f conf$$ conf$$.exe conf$$.file
18129 if test -d conf$$.dir; then
18130   rm -f conf$$.dir/conf$$.file
18131 else
18132   rm -f conf$$.dir
18133   mkdir conf$$.dir
18134 fi
18135 echo >conf$$.file
18136 if ln -s conf$$.file conf$$ 2>/dev/null; then
18137   as_ln_s='ln -s'
18138   # ... but there are two gotchas:
18139   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18140   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18141   # In both cases, we have to default to `cp -p'.
18142   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18143     as_ln_s='cp -p'
18144 elif ln conf$$.file conf$$ 2>/dev/null; then
18145   as_ln_s=ln
18146 else
18147   as_ln_s='cp -p'
18148 fi
18149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18150 rmdir conf$$.dir 2>/dev/null
18151
18152 if mkdir -p . 2>/dev/null; then
18153   as_mkdir_p=:
18154 else
18155   test -d ./-p && rmdir ./-p
18156   as_mkdir_p=false
18157 fi
18158
18159 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18160 # systems may use methods other than mode bits to determine executability.
18161 cat >conf$$.file <<_ASEOF
18162 #! /bin/sh
18163 exit 0
18164 _ASEOF
18165 chmod +x conf$$.file
18166 if test -x conf$$.file >/dev/null 2>&1; then
18167   as_executable_p="test -x"
18168 else
18169   as_executable_p=:
18170 fi
18171 rm -f conf$$.file
18172
18173 # Sed expression to map a string onto a valid CPP name.
18174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18175
18176 # Sed expression to map a string onto a valid variable name.
18177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18178
18179
18180 exec 6>&1
18181
18182 # Save the log message, to keep $[0] and so on meaningful, and to
18183 # report actual input values of CONFIG_FILES etc. instead of their
18184 # values after options handling.
18185 ac_log="
18186 This file was extended by LLVM $as_me 3.8.0svn, which was
18187 generated by GNU Autoconf 2.60.  Invocation command line was
18188
18189   CONFIG_FILES    = $CONFIG_FILES
18190   CONFIG_HEADERS  = $CONFIG_HEADERS
18191   CONFIG_LINKS    = $CONFIG_LINKS
18192   CONFIG_COMMANDS = $CONFIG_COMMANDS
18193   $ $0 $@
18194
18195 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18196 "
18197
18198 _ACEOF
18199
18200 cat >>$CONFIG_STATUS <<_ACEOF
18201 # Files that config.status was made for.
18202 config_files="$ac_config_files"
18203 config_headers="$ac_config_headers"
18204 config_commands="$ac_config_commands"
18205
18206 _ACEOF
18207
18208 cat >>$CONFIG_STATUS <<\_ACEOF
18209 ac_cs_usage="\
18210 \`$as_me' instantiates files from templates according to the
18211 current configuration.
18212
18213 Usage: $0 [OPTIONS] [FILE]...
18214
18215   -h, --help       print this help, then exit
18216   -V, --version    print version number, then exit
18217   -q, --quiet      do not print progress messages
18218   -d, --debug      don't remove temporary files
18219       --recheck    update $as_me by reconfiguring in the same conditions
18220   --file=FILE[:TEMPLATE]
18221                    instantiate the configuration file FILE
18222   --header=FILE[:TEMPLATE]
18223                    instantiate the configuration header FILE
18224
18225 Configuration files:
18226 $config_files
18227
18228 Configuration headers:
18229 $config_headers
18230
18231 Configuration commands:
18232 $config_commands
18233
18234 Report bugs to <bug-autoconf@gnu.org>."
18235
18236 _ACEOF
18237 cat >>$CONFIG_STATUS <<_ACEOF
18238 ac_cs_version="\\
18239 LLVM config.status 3.8.0svn
18240 configured by $0, generated by GNU Autoconf 2.60,
18241   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18242
18243 Copyright (C) 2006 Free Software Foundation, Inc.
18244 This config.status script is free software; the Free Software Foundation
18245 gives unlimited permission to copy, distribute and modify it."
18246
18247 ac_pwd='$ac_pwd'
18248 srcdir='$srcdir'
18249 INSTALL='$INSTALL'
18250 _ACEOF
18251
18252 cat >>$CONFIG_STATUS <<\_ACEOF
18253 # If no file are specified by the user, then we need to provide default
18254 # value.  By we need to know if files were specified by the user.
18255 ac_need_defaults=:
18256 while test $# != 0
18257 do
18258   case $1 in
18259   --*=*)
18260     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18261     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18262     ac_shift=:
18263     ;;
18264   *)
18265     ac_option=$1
18266     ac_optarg=$2
18267     ac_shift=shift
18268     ;;
18269   esac
18270
18271   case $ac_option in
18272   # Handling of the options.
18273   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18274     ac_cs_recheck=: ;;
18275   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18276     echo "$ac_cs_version"; exit ;;
18277   --debug | --debu | --deb | --de | --d | -d )
18278     debug=: ;;
18279   --file | --fil | --fi | --f )
18280     $ac_shift
18281     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18282     ac_need_defaults=false;;
18283   --header | --heade | --head | --hea )
18284     $ac_shift
18285     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18286     ac_need_defaults=false;;
18287   --he | --h)
18288     # Conflict between --help and --header
18289     { echo "$as_me: error: ambiguous option: $1
18290 Try \`$0 --help' for more information." >&2
18291    { (exit 1); exit 1; }; };;
18292   --help | --hel | -h )
18293     echo "$ac_cs_usage"; exit ;;
18294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18295   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18296     ac_cs_silent=: ;;
18297
18298   # This is an error.
18299   -*) { echo "$as_me: error: unrecognized option: $1
18300 Try \`$0 --help' for more information." >&2
18301    { (exit 1); exit 1; }; } ;;
18302
18303   *) ac_config_targets="$ac_config_targets $1"
18304      ac_need_defaults=false ;;
18305
18306   esac
18307   shift
18308 done
18309
18310 ac_configure_extra_args=
18311
18312 if $ac_cs_silent; then
18313   exec 6>/dev/null
18314   ac_configure_extra_args="$ac_configure_extra_args --silent"
18315 fi
18316
18317 _ACEOF
18318 cat >>$CONFIG_STATUS <<_ACEOF
18319 if \$ac_cs_recheck; then
18320   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18321   CONFIG_SHELL=$SHELL
18322   export CONFIG_SHELL
18323   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18324 fi
18325
18326 _ACEOF
18327 cat >>$CONFIG_STATUS <<\_ACEOF
18328 exec 5>>config.log
18329 {
18330   echo
18331   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18332 ## Running $as_me. ##
18333 _ASBOX
18334   echo "$ac_log"
18335 } >&5
18336
18337 _ACEOF
18338 cat >>$CONFIG_STATUS <<_ACEOF
18339 #
18340 # INIT-COMMANDS
18341 #
18342 llvm_src="${srcdir}"
18343
18344 _ACEOF
18345
18346 cat >>$CONFIG_STATUS <<\_ACEOF
18347
18348 # Handling of arguments.
18349 for ac_config_target in $ac_config_targets
18350 do
18351   case $ac_config_target in
18352     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18353     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18354     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18355     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18356     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18357     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18358     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18359     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18360     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18361     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18362     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18363     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18364     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18365     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18366     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18367     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18368     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18369     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18370     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18371     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18372     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18373     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18374     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18375     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18376     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18377     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18378
18379   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18380 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18381    { (exit 1); exit 1; }; };;
18382   esac
18383 done
18384
18385
18386 # If the user did not use the arguments to specify the items to instantiate,
18387 # then the envvar interface is used.  Set only those that are not.
18388 # We use the long form for the default assignment because of an extremely
18389 # bizarre bug on SunOS 4.1.3.
18390 if $ac_need_defaults; then
18391   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18392   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18393   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18394 fi
18395
18396 # Have a temporary directory for convenience.  Make it in the build tree
18397 # simply because there is no reason against having it here, and in addition,
18398 # creating and moving files from /tmp can sometimes cause problems.
18399 # Hook for its removal unless debugging.
18400 # Note that there is a small window in which the directory will not be cleaned:
18401 # after its creation but before its name has been assigned to `$tmp'.
18402 $debug ||
18403 {
18404   tmp=
18405   trap 'exit_status=$?
18406   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18407 ' 0
18408   trap '{ (exit 1); exit 1; }' 1 2 13 15
18409 }
18410 # Create a (secure) tmp directory for tmp files.
18411
18412 {
18413   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18414   test -n "$tmp" && test -d "$tmp"
18415 }  ||
18416 {
18417   tmp=./conf$$-$RANDOM
18418   (umask 077 && mkdir "$tmp")
18419 } ||
18420 {
18421    echo "$me: cannot create a temporary directory in ." >&2
18422    { (exit 1); exit 1; }
18423 }
18424
18425 #
18426 # Set up the sed scripts for CONFIG_FILES section.
18427 #
18428
18429 # No need to generate the scripts if there are no CONFIG_FILES.
18430 # This happens for instance when ./config.status config.h
18431 if test -n "$CONFIG_FILES"; then
18432
18433 _ACEOF
18434
18435
18436
18437 ac_delim='%!_!# '
18438 for ac_last_try in false false false false false :; do
18439   cat >conf$$subs.sed <<_ACEOF
18440 SHELL!$SHELL$ac_delim
18441 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18442 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18443 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18444 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18445 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18446 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18447 exec_prefix!$exec_prefix$ac_delim
18448 prefix!$prefix$ac_delim
18449 program_transform_name!$program_transform_name$ac_delim
18450 bindir!$bindir$ac_delim
18451 sbindir!$sbindir$ac_delim
18452 libexecdir!$libexecdir$ac_delim
18453 datarootdir!$datarootdir$ac_delim
18454 datadir!$datadir$ac_delim
18455 sysconfdir!$sysconfdir$ac_delim
18456 sharedstatedir!$sharedstatedir$ac_delim
18457 localstatedir!$localstatedir$ac_delim
18458 includedir!$includedir$ac_delim
18459 oldincludedir!$oldincludedir$ac_delim
18460 docdir!$docdir$ac_delim
18461 infodir!$infodir$ac_delim
18462 htmldir!$htmldir$ac_delim
18463 dvidir!$dvidir$ac_delim
18464 pdfdir!$pdfdir$ac_delim
18465 psdir!$psdir$ac_delim
18466 libdir!$libdir$ac_delim
18467 localedir!$localedir$ac_delim
18468 mandir!$mandir$ac_delim
18469 DEFS!$DEFS$ac_delim
18470 ECHO_C!$ECHO_C$ac_delim
18471 ECHO_N!$ECHO_N$ac_delim
18472 ECHO_T!$ECHO_T$ac_delim
18473 LIBS!$LIBS$ac_delim
18474 build_alias!$build_alias$ac_delim
18475 host_alias!$host_alias$ac_delim
18476 target_alias!$target_alias$ac_delim
18477 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18478 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18479 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18480 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18481 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18482 CC!$CC$ac_delim
18483 CFLAGS!$CFLAGS$ac_delim
18484 LDFLAGS!$LDFLAGS$ac_delim
18485 CPPFLAGS!$CPPFLAGS$ac_delim
18486 ac_ct_CC!$ac_ct_CC$ac_delim
18487 EXEEXT!$EXEEXT$ac_delim
18488 OBJEXT!$OBJEXT$ac_delim
18489 CXX!$CXX$ac_delim
18490 CXXFLAGS!$CXXFLAGS$ac_delim
18491 ac_ct_CXX!$ac_ct_CXX$ac_delim
18492 CPP!$CPP$ac_delim
18493 subdirs!$subdirs$ac_delim
18494 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18495 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18496 build!$build$ac_delim
18497 build_cpu!$build_cpu$ac_delim
18498 build_vendor!$build_vendor$ac_delim
18499 build_os!$build_os$ac_delim
18500 host!$host$ac_delim
18501 host_cpu!$host_cpu$ac_delim
18502 host_vendor!$host_vendor$ac_delim
18503 host_os!$host_os$ac_delim
18504 target!$target$ac_delim
18505 target_cpu!$target_cpu$ac_delim
18506 target_vendor!$target_vendor$ac_delim
18507 target_os!$target_os$ac_delim
18508 OS!$OS$ac_delim
18509 HOST_OS!$HOST_OS$ac_delim
18510 TARGET_OS!$TARGET_OS$ac_delim
18511 LINKALL!$LINKALL$ac_delim
18512 NOLINKALL!$NOLINKALL$ac_delim
18513 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18514 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18515 ARCH!$ARCH$ac_delim
18516 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18517 HOST_ARCH!$HOST_ARCH$ac_delim
18518 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18519 BUILD_CC!$BUILD_CC$ac_delim
18520 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18521 BUILD_CXX!$BUILD_CXX$ac_delim
18522 CVSBUILD!$CVSBUILD$ac_delim
18523 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18524 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18525 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18526 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18527 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18528 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18529 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18530 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18531 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18532 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18533 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18534 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18535 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18536 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18537 _ACEOF
18538
18539   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18540     break
18541   elif $ac_last_try; then
18542     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18543 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18544    { (exit 1); exit 1; }; }
18545   else
18546     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18547   fi
18548 done
18549
18550 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18551 if test -n "$ac_eof"; then
18552   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18553   ac_eof=`expr $ac_eof + 1`
18554 fi
18555
18556 cat >>$CONFIG_STATUS <<_ACEOF
18557 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18559 _ACEOF
18560 sed '
18561 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18562 s/^/s,@/; s/!/@,|#_!!_#|/
18563 :n
18564 t n
18565 s/'"$ac_delim"'$/,g/; t
18566 s/$/\\/; p
18567 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18568 ' >>$CONFIG_STATUS <conf$$subs.sed
18569 rm -f conf$$subs.sed
18570 cat >>$CONFIG_STATUS <<_ACEOF
18571 CEOF$ac_eof
18572 _ACEOF
18573
18574
18575 ac_delim='%!_!# '
18576 for ac_last_try in false false false false false :; do
18577   cat >conf$$subs.sed <<_ACEOF
18578 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18579 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18580 JIT!$JIT$ac_delim
18581 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18582 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18583 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18584 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18585 enable_searchengine!$enable_searchengine$ac_delim
18586 enable_external_search!$enable_external_search$ac_delim
18587 enable_server_based_search!$enable_server_based_search$ac_delim
18588 searchengine_url!$searchengine_url$ac_delim
18589 extra_search_mappings!$extra_search_mappings$ac_delim
18590 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18591 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18592 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18593 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18594 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18595 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18596 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18597 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18598 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18599 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18600 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18601 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18602 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18603 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18604 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18605 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18606 ENABLE_PIC!$ENABLE_PIC$ac_delim
18607 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18608 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18609 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18610 ALL_TARGETS!$ALL_TARGETS$ac_delim
18611 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18612 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18613 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18614 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18615 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18616 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18617 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18618 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18619 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18620 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18621 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18622 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18623 ifGNUmake!$ifGNUmake$ac_delim
18624 LN_S!$LN_S$ac_delim
18625 NM!$NM$ac_delim
18626 CMP!$CMP$ac_delim
18627 CP!$CP$ac_delim
18628 DATE!$DATE$ac_delim
18629 FIND!$FIND$ac_delim
18630 GREP!$GREP$ac_delim
18631 MKDIR!$MKDIR$ac_delim
18632 MV!$MV$ac_delim
18633 RANLIB!$RANLIB$ac_delim
18634 AR!$AR$ac_delim
18635 RM!$RM$ac_delim
18636 SED!$SED$ac_delim
18637 TAR!$TAR$ac_delim
18638 BINPWD!$BINPWD$ac_delim
18639 DOT!$DOT$ac_delim
18640 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18641 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18642 INSTALL_DATA!$INSTALL_DATA$ac_delim
18643 BZIP2!$BZIP2$ac_delim
18644 CAT!$CAT$ac_delim
18645 DOXYGEN!$DOXYGEN$ac_delim
18646 GROFF!$GROFF$ac_delim
18647 GZIPBIN!$GZIPBIN$ac_delim
18648 PDFROFF!$PDFROFF$ac_delim
18649 ZIP!$ZIP$ac_delim
18650 GO!$GO$ac_delim
18651 OCAMLFIND!$OCAMLFIND$ac_delim
18652 GAS!$GAS$ac_delim
18653 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18654 EGREP!$EGREP$ac_delim
18655 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18656 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18657 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18658 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18659 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18660 NO_COMMENT!$NO_COMMENT$ac_delim
18661 PYTHON!$PYTHON$ac_delim
18662 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18663 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18664 USE_OPROFILE!$USE_OPROFILE$ac_delim
18665 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18666 XML2CONFIG!$XML2CONFIG$ac_delim
18667 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18668 LIBXML2_INC!$LIBXML2_INC$ac_delim
18669 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18670 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18671 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18672 MMAP_FILE!$MMAP_FILE$ac_delim
18673 SHLIBEXT!$SHLIBEXT$ac_delim
18674 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18675 _ACEOF
18676
18677   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18678     break
18679   elif $ac_last_try; then
18680     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18681 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18682    { (exit 1); exit 1; }; }
18683   else
18684     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18685   fi
18686 done
18687
18688 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18689 if test -n "$ac_eof"; then
18690   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18691   ac_eof=`expr $ac_eof + 1`
18692 fi
18693
18694 cat >>$CONFIG_STATUS <<_ACEOF
18695 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18697 _ACEOF
18698 sed '
18699 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18700 s/^/s,@/; s/!/@,|#_!!_#|/
18701 :n
18702 t n
18703 s/'"$ac_delim"'$/,g/; t
18704 s/$/\\/; p
18705 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18706 ' >>$CONFIG_STATUS <conf$$subs.sed
18707 rm -f conf$$subs.sed
18708 cat >>$CONFIG_STATUS <<_ACEOF
18709 CEOF$ac_eof
18710 _ACEOF
18711
18712
18713 ac_delim='%!_!# '
18714 for ac_last_try in false false false false false :; do
18715   cat >conf$$subs.sed <<_ACEOF
18716 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18717 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18718 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18719 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18720 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18721 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18722 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18723 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18724 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18725 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
18726 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
18727 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18728 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
18729 RPATH!$RPATH$ac_delim
18730 RDYNAMIC!$RDYNAMIC$ac_delim
18731 program_prefix!$program_prefix$ac_delim
18732 LIBOBJS!$LIBOBJS$ac_delim
18733 LTLIBOBJS!$LTLIBOBJS$ac_delim
18734 _ACEOF
18735
18736   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
18737     break
18738   elif $ac_last_try; then
18739     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18740 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18741    { (exit 1); exit 1; }; }
18742   else
18743     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18744   fi
18745 done
18746
18747 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18748 if test -n "$ac_eof"; then
18749   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18750   ac_eof=`expr $ac_eof + 1`
18751 fi
18752
18753 cat >>$CONFIG_STATUS <<_ACEOF
18754 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18756 _ACEOF
18757 sed '
18758 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18759 s/^/s,@/; s/!/@,|#_!!_#|/
18760 :n
18761 t n
18762 s/'"$ac_delim"'$/,g/; t
18763 s/$/\\/; p
18764 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18765 ' >>$CONFIG_STATUS <conf$$subs.sed
18766 rm -f conf$$subs.sed
18767 cat >>$CONFIG_STATUS <<_ACEOF
18768 :end
18769 s/|#_!!_#|//g
18770 CEOF$ac_eof
18771 _ACEOF
18772
18773
18774 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18775 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18776 # trailing colons and then remove the whole line if VPATH becomes empty
18777 # (actually we leave an empty line to preserve line numbers).
18778 if test "x$srcdir" = x.; then
18779   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18780 s/:*\$(srcdir):*/:/
18781 s/:*\${srcdir}:*/:/
18782 s/:*@srcdir@:*/:/
18783 s/^\([^=]*=[     ]*\):*/\1/
18784 s/:*$//
18785 s/^[^=]*=[       ]*$//
18786 }'
18787 fi
18788
18789 cat >>$CONFIG_STATUS <<\_ACEOF
18790 fi # test -n "$CONFIG_FILES"
18791
18792
18793 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
18794 do
18795   case $ac_tag in
18796   :[FHLC]) ac_mode=$ac_tag; continue;;
18797   esac
18798   case $ac_mode$ac_tag in
18799   :[FHL]*:*);;
18800   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18801 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18802    { (exit 1); exit 1; }; };;
18803   :[FH]-) ac_tag=-:-;;
18804   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18805   esac
18806   ac_save_IFS=$IFS
18807   IFS=:
18808   set x $ac_tag
18809   IFS=$ac_save_IFS
18810   shift
18811   ac_file=$1
18812   shift
18813
18814   case $ac_mode in
18815   :L) ac_source=$1;;
18816   :[FH])
18817     ac_file_inputs=
18818     for ac_f
18819     do
18820       case $ac_f in
18821       -) ac_f="$tmp/stdin";;
18822       *) # Look for the file first in the build tree, then in the source tree
18823          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18824          # because $ac_f cannot contain `:'.
18825          test -f "$ac_f" ||
18826            case $ac_f in
18827            [\\/$]*) false;;
18828            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18829            esac ||
18830            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18831 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18832    { (exit 1); exit 1; }; };;
18833       esac
18834       ac_file_inputs="$ac_file_inputs $ac_f"
18835     done
18836
18837     # Let's still pretend it is `configure' which instantiates (i.e., don't
18838     # use $as_me), people would be surprised to read:
18839     #    /* config.h.  Generated by config.status.  */
18840     configure_input="Generated from "`IFS=:
18841           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18842     if test x"$ac_file" != x-; then
18843       configure_input="$ac_file.  $configure_input"
18844       { echo "$as_me:$LINENO: creating $ac_file" >&5
18845 echo "$as_me: creating $ac_file" >&6;}
18846     fi
18847
18848     case $ac_tag in
18849     *:-:* | *:-) cat >"$tmp/stdin";;
18850     esac
18851     ;;
18852   esac
18853
18854   ac_dir=`$as_dirname -- "$ac_file" ||
18855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18856          X"$ac_file" : 'X\(//\)[^/]' \| \
18857          X"$ac_file" : 'X\(//\)$' \| \
18858          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18859 echo X"$ac_file" |
18860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18861             s//\1/
18862             q
18863           }
18864           /^X\(\/\/\)[^/].*/{
18865             s//\1/
18866             q
18867           }
18868           /^X\(\/\/\)$/{
18869             s//\1/
18870             q
18871           }
18872           /^X\(\/\).*/{
18873             s//\1/
18874             q
18875           }
18876           s/.*/./; q'`
18877   { as_dir="$ac_dir"
18878   case $as_dir in #(
18879   -*) as_dir=./$as_dir;;
18880   esac
18881   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18882     as_dirs=
18883     while :; do
18884       case $as_dir in #(
18885       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18886       *) as_qdir=$as_dir;;
18887       esac
18888       as_dirs="'$as_qdir' $as_dirs"
18889       as_dir=`$as_dirname -- "$as_dir" ||
18890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18891          X"$as_dir" : 'X\(//\)[^/]' \| \
18892          X"$as_dir" : 'X\(//\)$' \| \
18893          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18894 echo X"$as_dir" |
18895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18896             s//\1/
18897             q
18898           }
18899           /^X\(\/\/\)[^/].*/{
18900             s//\1/
18901             q
18902           }
18903           /^X\(\/\/\)$/{
18904             s//\1/
18905             q
18906           }
18907           /^X\(\/\).*/{
18908             s//\1/
18909             q
18910           }
18911           s/.*/./; q'`
18912       test -d "$as_dir" && break
18913     done
18914     test -z "$as_dirs" || eval "mkdir $as_dirs"
18915   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18916 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18917    { (exit 1); exit 1; }; }; }
18918   ac_builddir=.
18919
18920 case "$ac_dir" in
18921 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18922 *)
18923   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18924   # A ".." for each directory in $ac_dir_suffix.
18925   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18926   case $ac_top_builddir_sub in
18927   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18928   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18929   esac ;;
18930 esac
18931 ac_abs_top_builddir=$ac_pwd
18932 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18933 # for backward compatibility:
18934 ac_top_builddir=$ac_top_build_prefix
18935
18936 case $srcdir in
18937   .)  # We are building in place.
18938     ac_srcdir=.
18939     ac_top_srcdir=$ac_top_builddir_sub
18940     ac_abs_top_srcdir=$ac_pwd ;;
18941   [\\/]* | ?:[\\/]* )  # Absolute name.
18942     ac_srcdir=$srcdir$ac_dir_suffix;
18943     ac_top_srcdir=$srcdir
18944     ac_abs_top_srcdir=$srcdir ;;
18945   *) # Relative name.
18946     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18947     ac_top_srcdir=$ac_top_build_prefix$srcdir
18948     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18949 esac
18950 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18951
18952
18953   case $ac_mode in
18954   :F)
18955   #
18956   # CONFIG_FILE
18957   #
18958
18959   case $INSTALL in
18960   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18961   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18962   esac
18963 _ACEOF
18964
18965 cat >>$CONFIG_STATUS <<\_ACEOF
18966 # If the template does not know about datarootdir, expand it.
18967 # FIXME: This hack should be removed a few years after 2.60.
18968 ac_datarootdir_hack=; ac_datarootdir_seen=
18969
18970 case `sed -n '/datarootdir/ {
18971   p
18972   q
18973 }
18974 /@datadir@/p
18975 /@docdir@/p
18976 /@infodir@/p
18977 /@localedir@/p
18978 /@mandir@/p
18979 ' $ac_file_inputs` in
18980 *datarootdir*) ac_datarootdir_seen=yes;;
18981 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18982   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18983 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18984 _ACEOF
18985 cat >>$CONFIG_STATUS <<_ACEOF
18986   ac_datarootdir_hack='
18987   s&@datadir@&$datadir&g
18988   s&@docdir@&$docdir&g
18989   s&@infodir@&$infodir&g
18990   s&@localedir@&$localedir&g
18991   s&@mandir@&$mandir&g
18992     s&\\\${datarootdir}&$datarootdir&g' ;;
18993 esac
18994 _ACEOF
18995
18996 # Neutralize VPATH when `$srcdir' = `.'.
18997 # Shell code in configure.ac might set extrasub.
18998 # FIXME: do we really want to maintain this feature?
18999 cat >>$CONFIG_STATUS <<_ACEOF
19000   sed "$ac_vpsub
19001 $extrasub
19002 _ACEOF
19003 cat >>$CONFIG_STATUS <<\_ACEOF
19004 :t
19005 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19006 s&@configure_input@&$configure_input&;t t
19007 s&@top_builddir@&$ac_top_builddir_sub&;t t
19008 s&@srcdir@&$ac_srcdir&;t t
19009 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19010 s&@top_srcdir@&$ac_top_srcdir&;t t
19011 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19012 s&@builddir@&$ac_builddir&;t t
19013 s&@abs_builddir@&$ac_abs_builddir&;t t
19014 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19015 s&@INSTALL@&$ac_INSTALL&;t t
19016 $ac_datarootdir_hack
19017 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19018
19019 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19020   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19021   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19022   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19023 which seems to be undefined.  Please make sure it is defined." >&5
19024 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19025 which seems to be undefined.  Please make sure it is defined." >&2;}
19026
19027   rm -f "$tmp/stdin"
19028   case $ac_file in
19029   -) cat "$tmp/out"; rm -f "$tmp/out";;
19030   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19031   esac
19032  ;;
19033   :H)
19034   #
19035   # CONFIG_HEADER
19036   #
19037 _ACEOF
19038
19039 # Transform confdefs.h into a sed script `conftest.defines', that
19040 # substitutes the proper values into config.h.in to produce config.h.
19041 rm -f conftest.defines conftest.tail
19042 # First, append a space to every undef/define line, to ease matching.
19043 echo 's/$/ /' >conftest.defines
19044 # Then, protect against being on the right side of a sed subst, or in
19045 # an unquoted here document, in config.status.  If some macros were
19046 # called several times there might be several #defines for the same
19047 # symbol, which is useless.  But do not sort them, since the last
19048 # AC_DEFINE must be honored.
19049 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19050 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19051 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19052 # PARAMS is the parameter list in the macro definition--in most cases, it's
19053 # just an empty string.
19054 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19055 ac_dB='\\)[      (].*,\\1define\\2'
19056 ac_dC=' '
19057 ac_dD=' ,'
19058
19059 uniq confdefs.h |
19060   sed -n '
19061         t rset
19062         :rset
19063         s/^[     ]*#[    ]*define[       ][      ]*//
19064         t ok
19065         d
19066         :ok
19067         s/[\\&,]/\\&/g
19068         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19069         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19070   ' >>conftest.defines
19071
19072 # Remove the space that was appended to ease matching.
19073 # Then replace #undef with comments.  This is necessary, for
19074 # example, in the case of _POSIX_SOURCE, which is predefined and required
19075 # on some systems where configure will not decide to define it.
19076 # (The regexp can be short, since the line contains either #define or #undef.)
19077 echo 's/ $//
19078 s,^[     #]*u.*,/* & */,' >>conftest.defines
19079
19080 # Break up conftest.defines:
19081 ac_max_sed_lines=50
19082
19083 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19084 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19085 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19086 # et cetera.
19087 ac_in='$ac_file_inputs'
19088 ac_out='"$tmp/out1"'
19089 ac_nxt='"$tmp/out2"'
19090
19091 while :
19092 do
19093   # Write a here document:
19094     cat >>$CONFIG_STATUS <<_ACEOF
19095     # First, check the format of the line:
19096     cat >"\$tmp/defines.sed" <<\\CEOF
19097 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19098 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19099 b
19100 :def
19101 _ACEOF
19102   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19103   echo 'CEOF
19104     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19105   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19106   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19107   grep . conftest.tail >/dev/null || break
19108   rm -f conftest.defines
19109   mv conftest.tail conftest.defines
19110 done
19111 rm -f conftest.defines conftest.tail
19112
19113 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19114 cat >>$CONFIG_STATUS <<\_ACEOF
19115   if test x"$ac_file" != x-; then
19116     echo "/* $configure_input  */" >"$tmp/config.h"
19117     cat "$ac_result" >>"$tmp/config.h"
19118     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19119       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19120 echo "$as_me: $ac_file is unchanged" >&6;}
19121     else
19122       rm -f $ac_file
19123       mv "$tmp/config.h" $ac_file
19124     fi
19125   else
19126     echo "/* $configure_input  */"
19127     cat "$ac_result"
19128   fi
19129   rm -f "$tmp/out12"
19130  ;;
19131
19132   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19133 echo "$as_me: executing $ac_file commands" >&6;}
19134  ;;
19135   esac
19136
19137
19138   case $ac_file$ac_mode in
19139     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19140    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19141     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19142    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19143     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19144    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19145     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19146    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19147     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19148    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19149     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19150    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19151     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19152    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19153     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19154    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19155     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19156    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19157     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19158    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19159     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19160    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19161     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19162    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19163
19164   esac
19165 done # for ac_tag
19166
19167
19168 { (exit 0); exit 0; }
19169 _ACEOF
19170 chmod +x $CONFIG_STATUS
19171 ac_clean_files=$ac_clean_files_save
19172
19173
19174 # configure is writing to config.log, and then calls config.status.
19175 # config.status does its own redirection, appending to config.log.
19176 # Unfortunately, on DOS this fails, as config.log is still kept open
19177 # by configure, so config.status won't be able to write to it; its
19178 # output is simply discarded.  So we exec the FD to /dev/null,
19179 # effectively closing config.log, so it can be properly (re)opened and
19180 # appended to by config.status.  When coming back to configure, we
19181 # need to make the FD available again.
19182 if test "$no_create" != yes; then
19183   ac_cs_success=:
19184   ac_config_status_args=
19185   test "$silent" = yes &&
19186     ac_config_status_args="$ac_config_status_args --quiet"
19187   exec 5>/dev/null
19188   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19189   exec 5>>config.log
19190   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19191   # would make configure fail if this is the last instruction.
19192   $ac_cs_success || { (exit 1); exit 1; }
19193 fi
19194
19195 #
19196 # CONFIG_SUBDIRS section.
19197 #
19198 if test "$no_recursion" != yes; then
19199
19200   # Remove --cache-file and --srcdir arguments so they do not pile up.
19201   ac_sub_configure_args=
19202   ac_prev=
19203   eval "set x $ac_configure_args"
19204   shift
19205   for ac_arg
19206   do
19207     if test -n "$ac_prev"; then
19208       ac_prev=
19209       continue
19210     fi
19211     case $ac_arg in
19212     -cache-file | --cache-file | --cache-fil | --cache-fi \
19213     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19214       ac_prev=cache_file ;;
19215     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19216     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19217     | --c=*)
19218       ;;
19219     --config-cache | -C)
19220       ;;
19221     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19222       ac_prev=srcdir ;;
19223     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19224       ;;
19225     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19226       ac_prev=prefix ;;
19227     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19228       ;;
19229     *)
19230       case $ac_arg in
19231       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19232       esac
19233       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19234     esac
19235   done
19236
19237   # Always prepend --prefix to ensure using the same prefix
19238   # in subdir configurations.
19239   ac_arg="--prefix=$prefix"
19240   case $ac_arg in
19241   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19242   esac
19243   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19244
19245   ac_popdir=`pwd`
19246   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19247
19248     # Do not complain, so a configure script can configure whichever
19249     # parts of a large source tree are present.
19250     test -d "$srcdir/$ac_dir" || continue
19251
19252     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19253     echo "$as_me:$LINENO: $ac_msg" >&5
19254     echo "$ac_msg" >&6
19255     { as_dir="$ac_dir"
19256   case $as_dir in #(
19257   -*) as_dir=./$as_dir;;
19258   esac
19259   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19260     as_dirs=
19261     while :; do
19262       case $as_dir in #(
19263       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19264       *) as_qdir=$as_dir;;
19265       esac
19266       as_dirs="'$as_qdir' $as_dirs"
19267       as_dir=`$as_dirname -- "$as_dir" ||
19268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19269          X"$as_dir" : 'X\(//\)[^/]' \| \
19270          X"$as_dir" : 'X\(//\)$' \| \
19271          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19272 echo X"$as_dir" |
19273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19274             s//\1/
19275             q
19276           }
19277           /^X\(\/\/\)[^/].*/{
19278             s//\1/
19279             q
19280           }
19281           /^X\(\/\/\)$/{
19282             s//\1/
19283             q
19284           }
19285           /^X\(\/\).*/{
19286             s//\1/
19287             q
19288           }
19289           s/.*/./; q'`
19290       test -d "$as_dir" && break
19291     done
19292     test -z "$as_dirs" || eval "mkdir $as_dirs"
19293   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19294 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19295    { (exit 1); exit 1; }; }; }
19296     ac_builddir=.
19297
19298 case "$ac_dir" in
19299 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19300 *)
19301   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19302   # A ".." for each directory in $ac_dir_suffix.
19303   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19304   case $ac_top_builddir_sub in
19305   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19306   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19307   esac ;;
19308 esac
19309 ac_abs_top_builddir=$ac_pwd
19310 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19311 # for backward compatibility:
19312 ac_top_builddir=$ac_top_build_prefix
19313
19314 case $srcdir in
19315   .)  # We are building in place.
19316     ac_srcdir=.
19317     ac_top_srcdir=$ac_top_builddir_sub
19318     ac_abs_top_srcdir=$ac_pwd ;;
19319   [\\/]* | ?:[\\/]* )  # Absolute name.
19320     ac_srcdir=$srcdir$ac_dir_suffix;
19321     ac_top_srcdir=$srcdir
19322     ac_abs_top_srcdir=$srcdir ;;
19323   *) # Relative name.
19324     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19325     ac_top_srcdir=$ac_top_build_prefix$srcdir
19326     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19327 esac
19328 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19329
19330
19331     cd "$ac_dir"
19332
19333     # Check for guested configure; otherwise get Cygnus style configure.
19334     if test -f "$ac_srcdir/configure.gnu"; then
19335       ac_sub_configure=$ac_srcdir/configure.gnu
19336     elif test -f "$ac_srcdir/configure"; then
19337       ac_sub_configure=$ac_srcdir/configure
19338     elif test -f "$ac_srcdir/configure.in"; then
19339       # This should be Cygnus configure.
19340       ac_sub_configure=$ac_aux_dir/configure
19341     else
19342       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19343 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19344       ac_sub_configure=
19345     fi
19346
19347     # The recursion is here.
19348     if test -n "$ac_sub_configure"; then
19349       # Make the cache file name correct relative to the subdirectory.
19350       case $cache_file in
19351       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19352       *) # Relative name.
19353         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19354       esac
19355
19356       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19357 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19358       # The eval makes quoting arguments work.
19359       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19360            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19361         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19362 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19363    { (exit 1); exit 1; }; }
19364     fi
19365
19366     cd "$ac_popdir"
19367   done
19368 fi
19369