[WebAssembly] Initial WebAssembly backend
[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.7.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.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.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.7.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.7.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.7.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.7.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=7
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: WARNING: **************************************************************************************" >&5
2037 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2039 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2040   { echo "$as_me:$LINENO: WARNING: *                                   WARNING                                          *" >&5
2041 echo "$as_me: WARNING: *                                   WARNING                                          *" >&2;}
2042   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2043 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2044   { echo "$as_me:$LINENO: WARNING: *                        In-source builds are deprecated.                            *" >&5
2045 echo "$as_me: WARNING: *                        In-source builds are deprecated.                            *" >&2;}
2046   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2047 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2048   { echo "$as_me:$LINENO: WARNING: *               Please configure from a separate build directory!                    *" >&5
2049 echo "$as_me: WARNING: *               Please configure from a separate build directory!                    *" >&2;}
2050   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2051 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2052   { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2054 fi
2055
2056 : ${CFLAGS=}
2057 : ${CXXFLAGS=}
2058
2059 ac_ext=c
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065   for ac_prog in clang gcc
2066   do
2067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$CC"; then
2075   ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104     test -n "$CC" && break
2105   done
2106 fi
2107 if test -z "$CC"; then
2108   ac_ct_CC=$CC
2109   for ac_prog in clang gcc
2110 do
2111   # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$ac_ct_CC"; then
2119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_ac_ct_CC="$ac_prog"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148   test -n "$ac_ct_CC" && break
2149 done
2150
2151   if test "x$ac_ct_CC" = x; then
2152     CC=""
2153   else
2154     case $cross_compiling:$ac_tool_warned in
2155 yes:)
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet.  If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet.  If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2163 esac
2164     CC=$ac_ct_CC
2165   fi
2166 fi
2167
2168
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173    { (exit 1); exit 1; }; }
2174
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184   (eval "$ac_compiler --version >&5") 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2189 case "(($ac_try" in
2190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191   *) ac_try_echo=$ac_try;;
2192 esac
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194   (eval "$ac_compiler -v >&5") 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2199 case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204   (eval "$ac_compiler -V >&5") 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }
2208
2209 cat >conftest.$ac_ext <<_ACEOF
2210 /* confdefs.h.  */
2211 _ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h.  */
2215
2216 int
2217 main ()
2218 {
2219
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2228 # of exeext.
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2232 #
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort.  b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2237 #
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions.  Remove them first so a
2240 # subsequent execution test works.
2241 ac_rmfiles=
2242 for ac_file in $ac_files
2243 do
2244   case $ac_file in
2245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2247   esac
2248 done
2249 rm -f $ac_rmfiles
2250
2251 if { (ac_try="$ac_link_default"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_link_default") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; then
2261   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2265 # Autoconf.
2266 for ac_file in $ac_files
2267 do
2268   test -f "$ac_file" || continue
2269   case $ac_file in
2270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2271         ;;
2272     [ab].out )
2273         # We found the default executable, but exeext='' is most
2274         # certainly right.
2275         break;;
2276     *.* )
2277         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2278         then :; else
2279            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280         fi
2281         # We set ac_cv_exeext here because the later test for it is not
2282         # safe: cross compilers may not add the suffix if given an `-o'
2283         # argument, so we may need to know it at that point already.
2284         # Even if this section looks crufty: it has the advantage of
2285         # actually working.
2286         break;;
2287     * )
2288         break;;
2289   esac
2290 done
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2292
2293 else
2294   echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&2;}
2301    { (exit 77); exit 77; }; }
2302 fi
2303
2304 ac_exeext=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_file" >&5
2306 echo "${ECHO_T}$ac_file" >&6; }
2307
2308 # Check that the compiler produces executables we can run.  If not, either
2309 # the compiler is broken, or we cross compile.
2310 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313 # If not cross compiling, check that we can run a simple program.
2314 if test "$cross_compiling" != yes; then
2315   if { ac_try='./$ac_file'
2316   { (case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321   (eval "$ac_try") 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325     cross_compiling=no
2326   else
2327     if test "$cross_compiling" = maybe; then
2328         cross_compiling=yes
2329     else
2330         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot run C compiled programs.
2334 If you meant to cross compile, use \`--host'.
2335 See \`config.log' for more details." >&2;}
2336    { (exit 1); exit 1; }; }
2337     fi
2338   fi
2339 fi
2340 { echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6; }
2342
2343 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344 ac_clean_files=$ac_clean_files_save
2345 # Check that the compiler produces executables we can run.  If not, either
2346 # the compiler is broken, or we cross compile.
2347 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2349 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350 echo "${ECHO_T}$cross_compiling" >&6; }
2351
2352 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2354 if { (ac_try="$ac_link"
2355 case "(($ac_try" in
2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357   *) ac_try_echo=$ac_try;;
2358 esac
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360   (eval "$ac_link") 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; then
2364   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2367 # `rm'.
2368 for ac_file in conftest.exe conftest conftest.*; do
2369   test -f "$ac_file" || continue
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2373           break;;
2374     * ) break;;
2375   esac
2376 done
2377 else
2378   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }
2383 fi
2384
2385 rm -f conftest$ac_cv_exeext
2386 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2388
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419   (eval "$ac_compile") 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; then
2423   for ac_file in conftest.o conftest.obj conftest.*; do
2424   test -f "$ac_file" || continue;
2425   case $ac_file in
2426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2427     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2428        break;;
2429   esac
2430 done
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6; }
2446 OBJEXT=$ac_cv_objext
2447 ac_objext=$OBJEXT
2448 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 int
2461 main ()
2462 {
2463 #ifndef __GNUC__
2464        choke me
2465 #endif
2466
2467   ;
2468   return 0;
2469 }
2470 _ACEOF
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2473 case "(($ac_try" in
2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475   *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478   (eval "$ac_compile") 2>conftest.er1
2479   ac_status=$?
2480   grep -v '^ *+' conftest.er1 >conftest.err
2481   rm -f conftest.er1
2482   cat conftest.err >&5
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486   { (case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_try") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_try") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; }; then
2505   ac_compiler_gnu=yes
2506 else
2507   echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510         ac_compiler_gnu=no
2511 fi
2512
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515
2516 fi
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   ac_save_c_werror_flag=$ac_c_werror_flag
2528    ac_c_werror_flag=yes
2529    ac_cv_prog_cc_g=no
2530    CFLAGS="-g"
2531    cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537
2538 int
2539 main ()
2540 {
2541
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2548 case "(($ac_try" in
2549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550   *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553   (eval "$ac_compile") 2>conftest.er1
2554   ac_status=$?
2555   grep -v '^ *+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } &&
2560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561   { (case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_try") 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (case "(($ac_try" in
2572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573   *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576   (eval "$ac_try") 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); }; }; then
2580   ac_cv_prog_cc_g=yes
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585         CFLAGS=""
2586       cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2603 case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_compile") 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_try") 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   :
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640         ac_c_werror_flag=$ac_save_c_werror_flag
2641          CFLAGS="-g"
2642          cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672   { (case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_try") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687   (eval "$ac_try") 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }; }; then
2691   ac_cv_prog_cc_g=yes
2692 else
2693   echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696
2697 fi
2698
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706    ac_c_werror_flag=$ac_save_c_werror_flag
2707 fi
2708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2710 if test "$ac_test_CFLAGS" = set; then
2711   CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713   if test "$GCC" = yes; then
2714     CFLAGS="-g -O2"
2715   else
2716     CFLAGS="-g"
2717   fi
2718 else
2719   if test "$GCC" = yes; then
2720     CFLAGS="-O2"
2721   else
2722     CFLAGS=
2723   fi
2724 fi
2725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cc_c89+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730   ac_cv_prog_cc_c89=no
2731 ac_save_CC=$CC
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 #include <stdarg.h>
2739 #include <stdio.h>
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2746      char **p;
2747      int i;
2748 {
2749   return p[i];
2750 }
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2752 {
2753   char *s;
2754   va_list v;
2755   va_start (v,p);
2756   s = g (p, va_arg (v,int));
2757   va_end (v);
2758   return s;
2759 }
2760
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2762    function prototypes and stuff, but not '\xHH' hex character constants.
2763    These don't provoke an error unfortunately, instead are silently treated
2764    as 'x'.  The following induces an error, until -std is added to get
2765    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2766    array size at least.  It's necessary to write '\x00'==0 to get something
2767    that's true only with -std.  */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2769
2770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2771    inside strings and character constants.  */
2772 #define FOO(x) 'x'
2773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2774
2775 int test (int i, double x);
2776 struct s1 {int (*f) (int a);};
2777 struct s2 {int (*f) (double a);};
2778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2779 int argc;
2780 char **argv;
2781 int
2782 main ()
2783 {
2784 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2790         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2791 do
2792   CC="$ac_save_CC $ac_arg"
2793   rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2795 case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_compile") 2>conftest.er1
2801   ac_status=$?
2802   grep -v '^ *+' conftest.er1 >conftest.err
2803   rm -f conftest.er1
2804   cat conftest.err >&5
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } &&
2807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808   { (case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813   (eval "$ac_try") 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; } &&
2817          { ac_try='test -s conftest.$ac_objext'
2818   { (case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_try") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; }; then
2827   ac_cv_prog_cc_c89=$ac_arg
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832
2833 fi
2834
2835 rm -f core conftest.err conftest.$ac_objext
2836   test "x$ac_cv_prog_cc_c89" != "xno" && break
2837 done
2838 rm -f conftest.$ac_ext
2839 CC=$ac_save_CC
2840
2841 fi
2842 # AC_CACHE_VAL
2843 case "x$ac_cv_prog_cc_c89" in
2844   x)
2845     { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2847   xno)
2848     { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2850   *)
2851     CC="$CC $ac_cv_prog_cc_c89"
2852     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2854 esac
2855
2856
2857 ac_ext=c
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862
2863 ac_ext=cpp
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869   if test -n "$CCC"; then
2870     CXX=$CCC
2871   else
2872     if test -n "$ac_tool_prefix"; then
2873   for ac_prog in clang++ g++
2874   do
2875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$CXX"; then
2883   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CXX=$ac_cv_prog_CXX
2903 if test -n "$CXX"; then
2904   { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2906 else
2907   { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2909 fi
2910
2911
2912     test -n "$CXX" && break
2913   done
2914 fi
2915 if test -z "$CXX"; then
2916   ac_ct_CXX=$CXX
2917   for ac_prog in clang++ g++
2918 do
2919   # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   if test -n "$ac_ct_CXX"; then
2927   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932   IFS=$as_save_IFS
2933   test -z "$as_dir" && as_dir=.
2934   for ac_exec_ext in '' $ac_executable_extensions; do
2935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2936     ac_cv_prog_ac_ct_CXX="$ac_prog"
2937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938     break 2
2939   fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2950 else
2951   { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2953 fi
2954
2955
2956   test -n "$ac_ct_CXX" && break
2957 done
2958
2959   if test "x$ac_ct_CXX" = x; then
2960     CXX="g++"
2961   else
2962     case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet.  If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet.  If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972     CXX=$ac_ct_CXX
2973   fi
2974 fi
2975
2976   fi
2977 fi
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2982 case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_compiler --version >&5") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_compiler -v >&5") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compiler -V >&5") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }
3011
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023
3024 int
3025 main ()
3026 {
3027 #ifndef __GNUC__
3028        choke me
3029 #endif
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069   ac_compiler_gnu=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         ac_compiler_gnu=no
3075 fi
3076
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3079
3080 fi
3081 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3083 GXX=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CXXFLAGS=${CXXFLAGS+set}
3085 ac_save_CXXFLAGS=$CXXFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3092    ac_cxx_werror_flag=yes
3093    ac_cv_prog_cxx_g=no
3094    CXXFLAGS="-g"
3095    cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h.  */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h.  */
3101
3102 int
3103 main ()
3104 {
3105
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_compile") 2>conftest.er1
3118   ac_status=$?
3119   grep -v '^ *+' conftest.er1 >conftest.err
3120   rm -f conftest.er1
3121   cat conftest.err >&5
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } &&
3124          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3125   { (case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_try") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; } &&
3134          { ac_try='test -s conftest.$ac_objext'
3135   { (case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_try") 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; }; then
3144   ac_cv_prog_cxx_g=yes
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149         CXXFLAGS=""
3150       cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } &&
3179          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; } &&
3189          { ac_try='test -s conftest.$ac_objext'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   :
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205          CXXFLAGS="-g"
3206          cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_compile") 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } &&
3235          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3236   { (case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_try") 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; } &&
3245          { ac_try='test -s conftest.$ac_objext'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_cv_prog_cxx_g=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260
3261 fi
3262
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 fi
3265
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3271 fi
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275   CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277   if test "$GXX" = yes; then
3278     CXXFLAGS="-g -O2"
3279   else
3280     CXXFLAGS="-g"
3281   fi
3282 else
3283   if test "$GXX" = yes; then
3284     CXXFLAGS="-O2"
3285   else
3286     CXXFLAGS=
3287   fi
3288 fi
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3304   CPP=
3305 fi
3306 if test -z "$CPP"; then
3307   if test "${ac_cv_prog_CPP+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310       # Double quotes because CPP needs to be expanded
3311     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312     do
3313       ac_preproc_ok=false
3314 for ac_c_preproc_warn_flag in '' yes
3315 do
3316   # Use a header file that comes with gcc, so configuring glibc
3317   # with a fresh cross-compiler works.
3318   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319   # <limits.h> exists even on freestanding compilers.
3320   # On the NeXT, cc -E runs the code through the compiler's parser,
3321   # not just through cpp. "Syntax error" is here to catch this case.
3322   cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h.  */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h.  */
3328 #ifdef __STDC__
3329 # include <limits.h>
3330 #else
3331 # include <assert.h>
3332 #endif
3333                      Syntax error
3334 _ACEOF
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } >/dev/null; then
3348   if test -s conftest.err; then
3349     ac_cpp_err=$ac_c_preproc_warn_flag
3350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351   else
3352     ac_cpp_err=
3353   fi
3354 else
3355   ac_cpp_err=yes
3356 fi
3357 if test -z "$ac_cpp_err"; then
3358   :
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363   # Broken: fails on valid input.
3364 continue
3365 fi
3366
3367 rm -f conftest.err conftest.$ac_ext
3368
3369   # OK, works on sane cases.  Now check whether nonexistent headers
3370   # can be detected and how.
3371   cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h.  */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h.  */
3377 #include <ac_nonexistent.h>
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null; then
3392   if test -s conftest.err; then
3393     ac_cpp_err=$ac_c_preproc_warn_flag
3394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3395   else
3396     ac_cpp_err=
3397   fi
3398 else
3399   ac_cpp_err=yes
3400 fi
3401 if test -z "$ac_cpp_err"; then
3402   # Broken: success on invalid input.
3403 continue
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408   # Passes both tests.
3409 ac_preproc_ok=:
3410 break
3411 fi
3412
3413 rm -f conftest.err conftest.$ac_ext
3414
3415 done
3416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417 rm -f conftest.err conftest.$ac_ext
3418 if $ac_preproc_ok; then
3419   break
3420 fi
3421
3422     done
3423     ac_cv_prog_CPP=$CPP
3424
3425 fi
3426   CPP=$ac_cv_prog_CPP
3427 else
3428   ac_cv_prog_CPP=$CPP
3429 fi
3430 { echo "$as_me:$LINENO: result: $CPP" >&5
3431 echo "${ECHO_T}$CPP" >&6; }
3432 ac_preproc_ok=false
3433 for ac_c_preproc_warn_flag in '' yes
3434 do
3435   # Use a header file that comes with gcc, so configuring glibc
3436   # with a fresh cross-compiler works.
3437   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438   # <limits.h> exists even on freestanding compilers.
3439   # On the NeXT, cc -E runs the code through the compiler's parser,
3440   # not just through cpp. "Syntax error" is here to catch this case.
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #ifdef __STDC__
3448 # include <limits.h>
3449 #else
3450 # include <assert.h>
3451 #endif
3452                      Syntax error
3453 _ACEOF
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } >/dev/null; then
3467   if test -s conftest.err; then
3468     ac_cpp_err=$ac_c_preproc_warn_flag
3469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470   else
3471     ac_cpp_err=
3472   fi
3473 else
3474   ac_cpp_err=yes
3475 fi
3476 if test -z "$ac_cpp_err"; then
3477   :
3478 else
3479   echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482   # Broken: fails on valid input.
3483 continue
3484 fi
3485
3486 rm -f conftest.err conftest.$ac_ext
3487
3488   # OK, works on sane cases.  Now check whether nonexistent headers
3489   # can be detected and how.
3490   cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h.  */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h.  */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } >/dev/null; then
3511   if test -s conftest.err; then
3512     ac_cpp_err=$ac_c_preproc_warn_flag
3513     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3514   else
3515     ac_cpp_err=
3516   fi
3517 else
3518   ac_cpp_err=yes
3519 fi
3520 if test -z "$ac_cpp_err"; then
3521   # Broken: success on invalid input.
3522 continue
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527   # Passes both tests.
3528 ac_preproc_ok=:
3529 break
3530 fi
3531
3532 rm -f conftest.err conftest.$ac_ext
3533
3534 done
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3538   :
3539 else
3540   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544    { (exit 1); exit 1; }; }
3545 fi
3546
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552
3553
3554 if test "$CXX" = "clang++" ; then
3555   { echo "$as_me:$LINENO: checking whether clang works" >&5
3556 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3557   ac_ext=cpp
3558 ac_cpp='$CXXCPP $CPPFLAGS'
3559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3562
3563
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570 #include <limits>
3571 #if __has_include (<cxxabi.h>)
3572 #include <cxxabi.h>
3573 #endif
3574 #if __has_include (<unwind.h>)
3575 #include <unwind.h>
3576 #endif
3577
3578 int
3579 main ()
3580 {
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 rm -f conftest.$ac_objext
3587 if { (ac_try="$ac_compile"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593   (eval "$ac_compile") 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3601   { (case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_try") 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; } &&
3610          { ac_try='test -s conftest.$ac_objext'
3611   { (case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616   (eval "$ac_try") 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620
3621   { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3623
3624 else
3625   echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628
3629   { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631   { { 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
3632 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;}
3633    { (exit 1); exit 1; }; }
3634
3635 fi
3636
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638   ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644 fi
3645
3646 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3647 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3648 ac_ext=cpp
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3653
3654 llvm_cv_cxx_compiler=unknown
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #if ! __clang__
3662                                     #error
3663                                     #endif
3664
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3668 case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_compile") 2>conftest.er1
3674   ac_status=$?
3675   grep -v '^ *+' conftest.er1 >conftest.err
3676   rm -f conftest.er1
3677   cat conftest.err >&5
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } &&
3680          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681   { (case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_try") 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); }; } &&
3690          { ac_try='test -s conftest.$ac_objext'
3691   { (case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696   (eval "$ac_try") 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700   llvm_cv_cxx_compiler=clang
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705         cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 #if ! __GNUC__
3712                                                        #error
3713                                                        #endif
3714
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723   (eval "$ac_compile") 2>conftest.er1
3724   ac_status=$?
3725   grep -v '^ *+' conftest.er1 >conftest.err
3726   rm -f conftest.er1
3727   cat conftest.err >&5
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } &&
3730          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3731   { (case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_try") 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; } &&
3740          { ac_try='test -s conftest.$ac_objext'
3741   { (case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746   (eval "$ac_try") 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; }; then
3750   llvm_cv_cxx_compiler=gcc
3751 else
3752   echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755
3756 fi
3757
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3769 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3770
3771
3772
3773 if test -d ${srcdir}/projects/test-suite ; then
3774   subdirs="$subdirs projects/test-suite"
3775
3776 fi
3777
3778 if test -d ${srcdir}/projects/llvm-test ; then
3779   subdirs="$subdirs projects/llvm-test"
3780
3781 fi
3782
3783 if test -d ${srcdir}/projects/poolalloc ; then
3784   subdirs="$subdirs projects/poolalloc"
3785
3786 fi
3787
3788 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3789   subdirs="$subdirs projects/llvm-poolalloc"
3790
3791 fi
3792
3793 for i in `ls ${srcdir}/projects`
3794 do
3795   if test -d ${srcdir}/projects/${i} ; then
3796     case ${i} in
3797       safecode)     subdirs="$subdirs projects/safecode"
3798  ;;
3799       compiler-rt)       ;;
3800       test-suite)     ;;
3801       llvm-test)      ;;
3802       poolalloc)      ;;
3803       llvm-poolalloc) ;;
3804       *)
3805         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3806 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3807         ;;
3808     esac
3809   fi
3810 done
3811
3812 # Check whether --enable-polly was given.
3813 if test "${enable_polly+set}" = set; then
3814   enableval=$enable_polly;
3815 else
3816   enableval=default
3817 fi
3818
3819 case "$enableval" in
3820   yes) ENABLE_POLLY=1
3821  ;;
3822   no)  ENABLE_POLLY=0
3823  ;;
3824   default) ENABLE_POLLY=1
3825  ;;
3826   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3827 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3828    { (exit 1); exit 1; }; } ;;
3829 esac
3830
3831
3832 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3833   LLVM_HAS_POLLY=1
3834
3835   subdirs="$subdirs tools/polly"
3836
3837 fi
3838
3839
3840 # Make sure we can run config.sub.
3841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3842   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3843 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3844    { (exit 1); exit 1; }; }
3845
3846 { echo "$as_me:$LINENO: checking build system type" >&5
3847 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3848 if test "${ac_cv_build+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   ac_build_alias=$build_alias
3852 test "x$ac_build_alias" = x &&
3853   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3854 test "x$ac_build_alias" = x &&
3855   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3857    { (exit 1); exit 1; }; }
3858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3859   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3861    { (exit 1); exit 1; }; }
3862
3863 fi
3864 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3865 echo "${ECHO_T}$ac_cv_build" >&6; }
3866 case $ac_cv_build in
3867 *-*-*) ;;
3868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3869 echo "$as_me: error: invalid value of canonical build" >&2;}
3870    { (exit 1); exit 1; }; };;
3871 esac
3872 build=$ac_cv_build
3873 ac_save_IFS=$IFS; IFS='-'
3874 set x $ac_cv_build
3875 shift
3876 build_cpu=$1
3877 build_vendor=$2
3878 shift; shift
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3881 build_os=$*
3882 IFS=$ac_save_IFS
3883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3884
3885
3886 { echo "$as_me:$LINENO: checking host system type" >&5
3887 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3888 if test "${ac_cv_host+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   if test "x$host_alias" = x; then
3892   ac_cv_host=$ac_cv_build
3893 else
3894   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3895     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3897    { (exit 1); exit 1; }; }
3898 fi
3899
3900 fi
3901 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3902 echo "${ECHO_T}$ac_cv_host" >&6; }
3903 case $ac_cv_host in
3904 *-*-*) ;;
3905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3906 echo "$as_me: error: invalid value of canonical host" >&2;}
3907    { (exit 1); exit 1; }; };;
3908 esac
3909 host=$ac_cv_host
3910 ac_save_IFS=$IFS; IFS='-'
3911 set x $ac_cv_host
3912 shift
3913 host_cpu=$1
3914 host_vendor=$2
3915 shift; shift
3916 # Remember, the first character of IFS is used to create $*,
3917 # except with old shells:
3918 host_os=$*
3919 IFS=$ac_save_IFS
3920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3921
3922
3923 { echo "$as_me:$LINENO: checking target system type" >&5
3924 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3925 if test "${ac_cv_target+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   if test "x$target_alias" = x; then
3929   ac_cv_target=$ac_cv_host
3930 else
3931   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3932     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3934    { (exit 1); exit 1; }; }
3935 fi
3936
3937 fi
3938 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3939 echo "${ECHO_T}$ac_cv_target" >&6; }
3940 case $ac_cv_target in
3941 *-*-*) ;;
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3943 echo "$as_me: error: invalid value of canonical target" >&2;}
3944    { (exit 1); exit 1; }; };;
3945 esac
3946 target=$ac_cv_target
3947 ac_save_IFS=$IFS; IFS='-'
3948 set x $ac_cv_target
3949 shift
3950 target_cpu=$1
3951 target_vendor=$2
3952 shift; shift
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3955 target_os=$*
3956 IFS=$ac_save_IFS
3957 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3958
3959
3960 # The aliases save the names the user supplied, while $host etc.
3961 # will get canonicalized.
3962 test -n "$target_alias" &&
3963   test "$program_prefix$program_suffix$program_transform_name" = \
3964     NONENONEs,x,x, &&
3965   program_prefix=${target_alias}-
3966
3967 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3968 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3969 if test "${llvm_cv_os_type+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   case $host in
3973   *-*-aix*)
3974     llvm_cv_link_all_option="-Wl,--whole-archive"
3975     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976     llvm_cv_os_type="AIX"
3977     llvm_cv_platform_type="Unix" ;;
3978   *-*-irix*)
3979     llvm_cv_link_all_option="-Wl,--whole-archive"
3980     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981     llvm_cv_os_type="IRIX"
3982     llvm_cv_platform_type="Unix" ;;
3983   *-*-cygwin*)
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="Cygwin"
3987     llvm_cv_platform_type="Unix" ;;
3988   *-*-darwin*)
3989     llvm_cv_link_all_option="-Wl,-all_load"
3990     llvm_cv_no_link_all_option="-Wl,-noall_load"
3991     llvm_cv_os_type="Darwin"
3992     llvm_cv_platform_type="Unix" ;;
3993   *-*-minix*)
3994     llvm_cv_link_all_option="-Wl,-all_load"
3995     llvm_cv_no_link_all_option="-Wl,-noall_load"
3996     llvm_cv_os_type="Minix"
3997     llvm_cv_platform_type="Unix" ;;
3998   *-*-freebsd*)
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="FreeBSD"
4002     llvm_cv_platform_type="Unix" ;;
4003   *-*-kfreebsd-gnu)
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="GNU/kFreeBSD"
4007     llvm_cv_platform_type="Unix" ;;
4008   *-*-openbsd*)
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="OpenBSD"
4012     llvm_cv_platform_type="Unix" ;;
4013   *-*-netbsd*)
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="NetBSD"
4017     llvm_cv_platform_type="Unix" ;;
4018   *-*-dragonfly*)
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="DragonFly"
4022     llvm_cv_platform_type="Unix" ;;
4023   *-*-bitrig*)
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="Bitrig"
4027     llvm_cv_platform_type="Unix" ;;
4028   *-*-hpux*)
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="HP-UX"
4032     llvm_cv_platform_type="Unix" ;;
4033   *-*-interix*)
4034     llvm_cv_link_all_option="-Wl,--whole-archive"
4035     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4036     llvm_cv_os_type="Interix"
4037     llvm_cv_platform_type="Unix" ;;
4038   *-*-linux*)
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="Linux"
4042     llvm_cv_platform_type="Unix" ;;
4043   *-*-gnu*)
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="GNU"
4047     llvm_cv_platform_type="Unix" ;;
4048   *-*-solaris*)
4049     llvm_cv_link_all_option="-Wl,-z,allextract"
4050     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4051     llvm_cv_os_type="SunOS"
4052     llvm_cv_platform_type="Unix" ;;
4053   *-*-win32*)
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="Win32"
4057     llvm_cv_platform_type="Win32" ;;
4058   *-*-mingw*)
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="MingW"
4062     llvm_cv_platform_type="Win32" ;;
4063   *-*-haiku*)
4064     llvm_cv_link_all_option="-Wl,--whole-archive"
4065     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066     llvm_cv_os_type="Haiku"
4067     llvm_cv_platform_type="Unix" ;;
4068   *-unknown-eabi*)
4069     llvm_cv_link_all_option="-Wl,--whole-archive"
4070     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071     llvm_cv_os_type="Freestanding"
4072     llvm_cv_platform_type="Unix" ;;
4073   *-unknown-elf*)
4074     llvm_cv_link_all_option="-Wl,--whole-archive"
4075     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076     llvm_cv_os_type="Freestanding"
4077     llvm_cv_platform_type="Unix" ;;
4078   *)
4079     llvm_cv_link_all_option=""
4080     llvm_cv_no_link_all_option=""
4081     llvm_cv_os_type="Unknown"
4082     llvm_cv_platform_type="Unknown" ;;
4083 esac
4084 fi
4085 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4086 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4087
4088 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4089 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4090 if test "${llvm_cv_target_os_type+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   case $target in
4094   *-*-aix*)
4095     llvm_cv_target_os_type="AIX" ;;
4096   *-*-irix*)
4097     llvm_cv_target_os_type="IRIX" ;;
4098   *-*-cygwin*)
4099     llvm_cv_target_os_type="Cygwin" ;;
4100   *-*-darwin*)
4101     llvm_cv_target_os_type="Darwin" ;;
4102   *-*-minix*)
4103     llvm_cv_target_os_type="Minix" ;;
4104   *-*-freebsd*)
4105     llvm_cv_target_os_type="FreeBSD" ;;
4106   *-*-kfreebsd-gnu)
4107     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4108   *-*-openbsd*)
4109     llvm_cv_target_os_type="OpenBSD" ;;
4110   *-*-netbsd*)
4111     llvm_cv_target_os_type="NetBSD" ;;
4112   *-*-dragonfly*)
4113     llvm_cv_target_os_type="DragonFly" ;;
4114   *-*-bitrig*)
4115     llvm_cv_target_os_type="Bitrig" ;;
4116   *-*-hpux*)
4117     llvm_cv_target_os_type="HP-UX" ;;
4118   *-*-interix*)
4119     llvm_cv_target_os_type="Interix" ;;
4120   *-*-linux*)
4121     llvm_cv_target_os_type="Linux" ;;
4122   *-*-gnu*)
4123     llvm_cv_target_os_type="GNU" ;;
4124   *-*-solaris*)
4125     llvm_cv_target_os_type="SunOS" ;;
4126   *-*-win32*)
4127     llvm_cv_target_os_type="Win32" ;;
4128   *-*-mingw*)
4129     llvm_cv_target_os_type="MingW" ;;
4130   *-*-haiku*)
4131     llvm_cv_target_os_type="Haiku" ;;
4132   *-*-rtems*)
4133     llvm_cv_target_os_type="RTEMS" ;;
4134   *-*-nacl*)
4135     llvm_cv_target_os_type="NativeClient" ;;
4136   *-unknown-eabi*)
4137     llvm_cv_target_os_type="Freestanding" ;;
4138   *-*-ps4)
4139     llvm_cv_target_os_type="PS4" ;;
4140   *)
4141     llvm_cv_target_os_type="Unknown" ;;
4142 esac
4143 fi
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4145 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4146
4147 if test "$llvm_cv_os_type" = "Unknown" ; then
4148   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4149 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4150    { (exit 1); exit 1; }; }
4151 fi
4152
4153 OS=$llvm_cv_os_type
4154
4155 HOST_OS=$llvm_cv_os_type
4156
4157 TARGET_OS=$llvm_cv_target_os_type
4158
4159
4160 LINKALL=$llvm_cv_link_all_option
4161
4162 NOLINKALL=$llvm_cv_no_link_all_option
4163
4164
4165 case $llvm_cv_platform_type in
4166   Unix)
4167
4168 cat >>confdefs.h <<\_ACEOF
4169 #define LLVM_ON_UNIX 1
4170 _ACEOF
4171
4172     LLVM_ON_UNIX=1
4173
4174     LLVM_ON_WIN32=0
4175
4176     ;;
4177   Win32)
4178
4179 cat >>confdefs.h <<\_ACEOF
4180 #define LLVM_ON_WIN32 1
4181 _ACEOF
4182
4183     LLVM_ON_UNIX=0
4184
4185     LLVM_ON_WIN32=1
4186
4187     ;;
4188 esac
4189
4190 { echo "$as_me:$LINENO: checking target architecture" >&5
4191 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4192 if test "${llvm_cv_target_arch+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   case $target in
4196   i?86-*)                 llvm_cv_target_arch="x86" ;;
4197   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4198   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4199   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4200   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4201   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4202   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4203   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4204   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4205   xcore-*)                llvm_cv_target_arch="XCore" ;;
4206   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4207   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4208   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4209   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4210   wasm*-*)                llvm_cv_target_arch="WebAssembly" ;;
4211   *)                      llvm_cv_target_arch="Unknown" ;;
4212 esac
4213 fi
4214 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4215 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4216
4217 if test "$llvm_cv_target_arch" = "Unknown" ; then
4218   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4219 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4220 fi
4221
4222 case "$llvm_cv_target_arch" in
4223     x86)     LLVM_NATIVE_ARCH="X86" ;;
4224     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4225     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4226 esac
4227
4228 ARCH=$llvm_cv_target_arch
4229
4230 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4231
4232
4233 case $host in
4234   i?86-*)                 host_arch="x86" ;;
4235   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4236   sparc*-*)               host_arch="Sparc" ;;
4237   powerpc*-*)             host_arch="PowerPC" ;;
4238   arm64*-*)               host_arch="AArch64" ;;
4239   arm*-*)                 host_arch="ARM" ;;
4240   aarch64*-*)             host_arch="AArch64" ;;
4241   mips-* | mips64-*)      host_arch="Mips" ;;
4242   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4243   xcore-*)                host_arch="XCore" ;;
4244   msp430-*)               host_arch="MSP430" ;;
4245   hexagon-*)              host_arch="Hexagon" ;;
4246   s390x-*)                host_arch="SystemZ" ;;
4247   wasm*-*)                host_arch="WebAssembly" ;;
4248   *)                      host_arch="Unknown" ;;
4249 esac
4250
4251 if test "$host_arch" = "Unknown" ; then
4252   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4253 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4254 fi
4255
4256 HOST_ARCH=$host_arch
4257
4258
4259 if test "$cross_compiling" = yes; then
4260   LLVM_CROSS_COMPILING=1
4261
4262
4263 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4264 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4265 if test "${ac_cv_build_exeext+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4269   ac_cv_build_exeext=.exe
4270 else
4271   ac_build_prefix=${build_alias}-
4272
4273   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4274 set dummy ${ac_build_prefix}gcc; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   if test -n "$BUILD_CC"; then
4281   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288   for ac_exec_ext in '' $ac_executable_extensions; do
4289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4290     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295 done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 BUILD_CC=$ac_cv_prog_BUILD_CC
4301 if test -n "$BUILD_CC"; then
4302   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4303 echo "${ECHO_T}$BUILD_CC" >&6; }
4304 else
4305   { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4307 fi
4308
4309
4310   if test -z "$BUILD_CC"; then
4311      # Extract the first word of "gcc", so it can be a program name with args.
4312 set dummy gcc; ac_word=$2
4313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4315 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   if test -n "$BUILD_CC"; then
4319   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4328     ac_cv_prog_BUILD_CC="gcc"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334 IFS=$as_save_IFS
4335
4336 fi
4337 fi
4338 BUILD_CC=$ac_cv_prog_BUILD_CC
4339 if test -n "$BUILD_CC"; then
4340   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4341 echo "${ECHO_T}$BUILD_CC" >&6; }
4342 else
4343   { echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6; }
4345 fi
4346
4347
4348      if test -z "$BUILD_CC"; then
4349        # Extract the first word of "cc", so it can be a program name with args.
4350 set dummy cc; ac_word=$2
4351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4353 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4354   echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356   if test -n "$BUILD_CC"; then
4357   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4358 else
4359   ac_prog_rejected=no
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365   for ac_exec_ext in '' $ac_executable_extensions; do
4366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4367     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4368        ac_prog_rejected=yes
4369        continue
4370      fi
4371     ac_cv_prog_BUILD_CC="cc"
4372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 if test $ac_prog_rejected = yes; then
4380   # We found a bogon in the path, so make sure we never use it.
4381   set dummy $ac_cv_prog_BUILD_CC
4382   shift
4383   if test $# != 0; then
4384     # We chose a different compiler from the bogus one.
4385     # However, it has the same basename, so the bogon will be chosen
4386     # first if we set BUILD_CC to just the basename; use the full file name.
4387     shift
4388     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4389   fi
4390 fi
4391 fi
4392 fi
4393 BUILD_CC=$ac_cv_prog_BUILD_CC
4394 if test -n "$BUILD_CC"; then
4395   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4396 echo "${ECHO_T}$BUILD_CC" >&6; }
4397 else
4398   { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4400 fi
4401
4402
4403      fi
4404   fi
4405   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4406 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4407    { (exit 1); exit 1; }; }
4408   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4409   rm -f conftest*
4410   echo 'int main () { return 0; }' > conftest.$ac_ext
4411   ac_cv_build_exeext=
4412   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4413   (eval $ac_build_link) 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; then
4417     for file in conftest.*; do
4418       case $file in
4419       *.c | *.o | *.obj | *.dSYM) ;;
4420       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4421       esac
4422     done
4423   else
4424     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4425 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4426    { (exit 1); exit 1; }; }
4427   fi
4428   rm -f conftest*
4429   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4430 fi
4431 fi
4432
4433 BUILD_EXEEXT=""
4434 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4435 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4436 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4437 ac_build_exeext=$BUILD_EXEEXT
4438
4439   ac_build_prefix=${build_alias}-
4440   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4441 set dummy ${ac_build_prefix}g++; ac_word=$2
4442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4444 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   if test -n "$BUILD_CXX"; then
4448   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453   IFS=$as_save_IFS
4454   test -z "$as_dir" && as_dir=.
4455   for ac_exec_ext in '' $ac_executable_extensions; do
4456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4457     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459     break 2
4460   fi
4461 done
4462 done
4463 IFS=$as_save_IFS
4464
4465 fi
4466 fi
4467 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4468 if test -n "$BUILD_CXX"; then
4469   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4470 echo "${ECHO_T}$BUILD_CXX" >&6; }
4471 else
4472   { echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6; }
4474 fi
4475
4476
4477   if test -z "$BUILD_CXX"; then
4478      # Extract the first word of "g++", so it can be a program name with args.
4479 set dummy g++; ac_word=$2
4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   if test -n "$BUILD_CXX"; then
4486   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_exec_ext in '' $ac_executable_extensions; do
4494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4495     ac_cv_prog_BUILD_CXX="g++"
4496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497     break 2
4498   fi
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503 fi
4504 fi
4505 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4506 if test -n "$BUILD_CXX"; then
4507   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4508 echo "${ECHO_T}$BUILD_CXX" >&6; }
4509 else
4510   { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4512 fi
4513
4514
4515      if test -z "$BUILD_CXX"; then
4516        # Extract the first word of "c++", so it can be a program name with args.
4517 set dummy c++; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   if test -n "$BUILD_CXX"; then
4524   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4525 else
4526   ac_prog_rejected=no
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530   IFS=$as_save_IFS
4531   test -z "$as_dir" && as_dir=.
4532   for ac_exec_ext in '' $ac_executable_extensions; do
4533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4534     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4535        ac_prog_rejected=yes
4536        continue
4537      fi
4538     ac_cv_prog_BUILD_CXX="c++"
4539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540     break 2
4541   fi
4542 done
4543 done
4544 IFS=$as_save_IFS
4545
4546 if test $ac_prog_rejected = yes; then
4547   # We found a bogon in the path, so make sure we never use it.
4548   set dummy $ac_cv_prog_BUILD_CXX
4549   shift
4550   if test $# != 0; then
4551     # We chose a different compiler from the bogus one.
4552     # However, it has the same basename, so the bogon will be chosen
4553     # first if we set BUILD_CXX to just the basename; use the full file name.
4554     shift
4555     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4556   fi
4557 fi
4558 fi
4559 fi
4560 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4561 if test -n "$BUILD_CXX"; then
4562   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4563 echo "${ECHO_T}$BUILD_CXX" >&6; }
4564 else
4565   { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4567 fi
4568
4569
4570      fi
4571   fi
4572 else
4573   LLVM_CROSS_COMPILING=0
4574
4575 fi
4576
4577 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4578   cvsbuild="yes"
4579   optimize="no"
4580   CVSBUILD=CVSBUILD=1
4581
4582 else
4583   cvsbuild="no"
4584   optimize="yes"
4585 fi
4586
4587
4588 # Check whether --enable-libcpp was given.
4589 if test "${enable_libcpp+set}" = set; then
4590   enableval=$enable_libcpp;
4591 else
4592   enableval=default
4593 fi
4594
4595 case "$enableval" in
4596   yes) ENABLE_LIBCPP=1
4597  ;;
4598   no)  ENABLE_LIBCPP=0
4599  ;;
4600   default) ENABLE_LIBCPP=0
4601 ;;
4602   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4603 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4604    { (exit 1); exit 1; }; } ;;
4605 esac
4606
4607 # Check whether --enable-compiler-version-checks was given.
4608 if test "${enable_compiler_version_checks+set}" = set; then
4609   enableval=$enable_compiler_version_checks;
4610 else
4611   enableval=default
4612 fi
4613
4614 case "$enableval" in
4615   no)
4616     ;;
4617   yes|default)
4618     ac_ext=cpp
4619 ac_cpp='$CXXCPP $CPPFLAGS'
4620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4623
4624     case "$llvm_cv_cxx_compiler" in
4625     clang)
4626       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4627 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4628       cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634
4635 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4636 #error This version of Clang is too old to build LLVM
4637 #endif
4638
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644   *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647   (eval "$ac_compile") 2>conftest.er1
4648   ac_status=$?
4649   grep -v '^ *+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } &&
4654          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4655   { (case "(($ac_try" in
4656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657   *) ac_try_echo=$ac_try;;
4658 esac
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660   (eval "$ac_try") 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; } &&
4664          { ac_try='test -s conftest.$ac_objext'
4665   { (case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_try") 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   { echo "$as_me:$LINENO: result: yes" >&5
4675 echo "${ECHO_T}yes" >&6; }
4676 else
4677   echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4679
4680         { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4682            { { echo "$as_me:$LINENO: error:
4683 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4684 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4685 bypass these sanity checks." >&5
4686 echo "$as_me: error:
4687 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4688 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4689 bypass these sanity checks." >&2;}
4690    { (exit 1); exit 1; }; }
4691 fi
4692
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694
4695                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4696         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4697 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4698         llvm_cv_old_cxxflags="$CXXFLAGS"
4699         CXXFLAGS="$CXXFLAGS -std=c++0x"
4700         cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706
4707 #include <atomic>
4708 std::atomic<float> x(0.0f);
4709 int main() { return (float)x; }
4710
4711 _ACEOF
4712 rm -f conftest.$ac_objext conftest$ac_exeext
4713 if { (ac_try="$ac_link"
4714 case "(($ac_try" in
4715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716   *) ac_try_echo=$ac_try;;
4717 esac
4718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719   (eval "$ac_link") 2>conftest.er1
4720   ac_status=$?
4721   grep -v '^ *+' conftest.er1 >conftest.err
4722   rm -f conftest.er1
4723   cat conftest.err >&5
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } &&
4726          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4727   { (case "(($ac_try" in
4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729   *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732   (eval "$ac_try") 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); }; } &&
4736          { ac_try='test -s conftest$ac_exeext'
4737   { (case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742   (eval "$ac_try") 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; }; then
4746   { echo "$as_me:$LINENO: result: yes" >&5
4747 echo "${ECHO_T}yes" >&6; }
4748 else
4749   echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752         { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754              { { echo "$as_me:$LINENO: error:
4755 We detected a missing feature in the standard C++ library that was known to be
4756 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4757 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4758 than 4.7. You will need to update your system and ensure Clang uses the newer
4759 standard library.
4760
4761 If this error is incorrect or you need to force things to work, you may pass
4762 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4763 echo "$as_me: error:
4764 We detected a missing feature in the standard C++ library that was known to be
4765 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4766 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4767 than 4.7. You will need to update your system and ensure Clang uses the newer
4768 standard library.
4769
4770 If this error is incorrect or you need to force things to work, you may pass
4771 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4772    { (exit 1); exit 1; }; }
4773 fi
4774
4775 rm -f core conftest.err conftest.$ac_objext \
4776       conftest$ac_exeext conftest.$ac_ext
4777         CXXFLAGS="$llvm_cv_old_cxxflags"
4778       fi
4779       ;;
4780     gcc)
4781       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4782 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4783       cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h.  */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h.  */
4789
4790 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4791 #error This version of GCC is too old to build LLVM
4792 #endif
4793
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (ac_try="$ac_compile"
4797 case "(($ac_try" in
4798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799   *) ac_try_echo=$ac_try;;
4800 esac
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802   (eval "$ac_compile") 2>conftest.er1
4803   ac_status=$?
4804   grep -v '^ *+' conftest.er1 >conftest.err
4805   rm -f conftest.er1
4806   cat conftest.err >&5
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } &&
4809          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4810   { (case "(($ac_try" in
4811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812   *) ac_try_echo=$ac_try;;
4813 esac
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815   (eval "$ac_try") 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); }; } &&
4819          { ac_try='test -s conftest.$ac_objext'
4820   { (case "(($ac_try" in
4821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822   *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825   (eval "$ac_try") 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; }; then
4829   { echo "$as_me:$LINENO: result: yes" >&5
4830 echo "${ECHO_T}yes" >&6; }
4831 else
4832   echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835         { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4837            { { echo "$as_me:$LINENO: error:
4838 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4839 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4840 bypass these sanity checks." >&5
4841 echo "$as_me: error:
4842 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4843 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4844 bypass these sanity checks." >&2;}
4845    { (exit 1); exit 1; }; }
4846 fi
4847
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849       ;;
4850     unknown)
4851       ;;
4852     esac
4853     ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859     ;;
4860   *)
4861     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4862 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4863    { (exit 1); exit 1; }; }
4864     ;;
4865 esac
4866
4867 # Check whether --enable-cxx1y was given.
4868 if test "${enable_cxx1y+set}" = set; then
4869   enableval=$enable_cxx1y;
4870 else
4871   enableval=default
4872 fi
4873
4874 case "$enableval" in
4875   yes) ENABLE_CXX1Y=1
4876  ;;
4877   no)  ENABLE_CXX1Y=0
4878  ;;
4879   default) ENABLE_CXX1Y=0
4880 ;;
4881   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4882 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4883    { (exit 1); exit 1; }; } ;;
4884 esac
4885
4886 # Check whether --enable-split-dwarf was given.
4887 if test "${enable_split_dwarf+set}" = set; then
4888   enableval=$enable_split_dwarf;
4889 else
4890   enableval=default
4891 fi
4892
4893 case "$enableval" in
4894   yes) ENABLE_SPLIT_DWARF=1
4895  ;;
4896   no)  ENABLE_SPLIT_DWARF=0
4897  ;;
4898   default) ENABLE_SPLIT_DWARF=0
4899 ;;
4900   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4901 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4902    { (exit 1); exit 1; }; } ;;
4903 esac
4904
4905 clang_arcmt="yes"
4906 # Check whether --enable-clang-arcmt was given.
4907 if test "${enable_clang_arcmt+set}" = set; then
4908   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4909 else
4910   enableval="yes"
4911 fi
4912
4913 case "$enableval" in
4914   yes) ENABLE_CLANG_ARCMT=1
4915  ;;
4916   no)  ENABLE_CLANG_ARCMT=0
4917  ;;
4918   default) ENABLE_CLANG_ARCMT=1
4919 ;;
4920   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4922    { (exit 1); exit 1; }; } ;;
4923 esac
4924
4925 clang_plugin_support="yes"
4926 # Check whether --enable-clang-plugin-support was given.
4927 if test "${enable_clang_plugin_support+set}" = set; then
4928   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4929 else
4930   enableval="yes"
4931 fi
4932
4933 case "$enableval" in
4934   yes) CLANG_PLUGIN_SUPPORT=1
4935  ;;
4936   no)  CLANG_PLUGIN_SUPPORT=0
4937  ;;
4938   default) CLANG_PLUGIN_SUPPORT=1
4939 ;;
4940   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4941 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4942    { (exit 1); exit 1; }; } ;;
4943 esac
4944
4945 clang_static_analyzer="yes"
4946 # Check whether --enable-clang-static-analyzer was given.
4947 if test "${enable_clang_static_analyzer+set}" = set; then
4948   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4949 else
4950   enableval="yes"
4951 fi
4952
4953 case "$enableval" in
4954   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4955  ;;
4956   no)
4957     if test ${clang_arcmt} != "no" ; then
4958       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4959 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4960    { (exit 1); exit 1; }; }
4961     fi
4962     ENABLE_CLANG_STATIC_ANALYZER=0
4963
4964     ;;
4965   default) ENABLE_CLANG_STATIC_ANALYZER=1
4966 ;;
4967   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4968 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4969    { (exit 1); exit 1; }; } ;;
4970 esac
4971
4972 # Check whether --enable-optimized was given.
4973 if test "${enable_optimized+set}" = set; then
4974   enableval=$enable_optimized;
4975 else
4976   enableval=$optimize
4977 fi
4978
4979 if test ${enableval} = "no" ; then
4980   ENABLE_OPTIMIZED=
4981
4982 else
4983   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4984
4985 fi
4986
4987 # Check whether --enable-profiling was given.
4988 if test "${enable_profiling+set}" = set; then
4989   enableval=$enable_profiling;
4990 else
4991   enableval="no"
4992 fi
4993
4994 if test ${enableval} = "no" ; then
4995   ENABLE_PROFILING=
4996
4997 else
4998   ENABLE_PROFILING=ENABLE_PROFILING=1
4999
5000 fi
5001
5002 # Check whether --enable-assertions was given.
5003 if test "${enable_assertions+set}" = set; then
5004   enableval=$enable_assertions;
5005 else
5006   enableval="yes"
5007 fi
5008
5009 if test ${enableval} = "yes" ; then
5010   DISABLE_ASSERTIONS=
5011
5012   assertions_enabled="yes"
5013 else
5014   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5015
5016   assertions_enabled="no"
5017 fi
5018
5019 # Check whether --enable-werror was given.
5020 if test "${enable_werror+set}" = set; then
5021   enableval=$enable_werror;
5022 else
5023   enableval="no"
5024 fi
5025
5026 case "$enableval" in
5027   yes) ENABLE_WERROR=1
5028  ;;
5029   no)  ENABLE_WERROR=0
5030  ;;
5031   default) ENABLE_WERROR=0
5032 ;;
5033   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5034 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5035    { (exit 1); exit 1; }; } ;;
5036 esac
5037
5038 # Check whether --enable-expensive-checks was given.
5039 if test "${enable_expensive_checks+set}" = set; then
5040   enableval=$enable_expensive_checks;
5041 else
5042   enableval="no"
5043 fi
5044
5045 if test ${enableval} = "yes" ; then
5046   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5047
5048   EXPENSIVE_CHECKS=yes
5049
5050 else
5051   ENABLE_EXPENSIVE_CHECKS=
5052
5053   EXPENSIVE_CHECKS=no
5054
5055 fi
5056
5057 # Check whether --enable-abi-breaking-checks was given.
5058 if test "${enable_abi_breaking_checks+set}" = set; then
5059   enableval=$enable_abi_breaking_checks;
5060 else
5061   enableval="with-asserts"
5062 fi
5063
5064 case "$enableval" in
5065   with-asserts)  if test ${assertions_enabled} = "yes" ; then
5066
5067 cat >>confdefs.h <<\_ACEOF
5068 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5069 _ACEOF
5070
5071                    ENABLE_ABI_BREAKING_CHECKS=1
5072
5073                  else
5074                    ENABLE_ABI_BREAKING_CHECKS=0
5075
5076                  fi ;;
5077   yes)
5078
5079 cat >>confdefs.h <<\_ACEOF
5080 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5081 _ACEOF
5082
5083                  ENABLE_ABI_BREAKING_CHECKS=1
5084
5085                  ;;
5086   no)
5087                  ENABLE_ABI_BREAKING_CHECKS=0
5088
5089                  ;;
5090   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5091 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5092    { (exit 1); exit 1; }; }
5093 esac
5094
5095 # Check whether --enable-debug-runtime was given.
5096 if test "${enable_debug_runtime+set}" = set; then
5097   enableval=$enable_debug_runtime;
5098 else
5099   enableval=no
5100 fi
5101
5102 if test ${enableval} = "no" ; then
5103   DEBUG_RUNTIME=
5104
5105 else
5106   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5107
5108 fi
5109
5110 # Check whether --enable-debug-symbols was given.
5111 if test "${enable_debug_symbols+set}" = set; then
5112   enableval=$enable_debug_symbols;
5113 else
5114   enableval=no
5115 fi
5116
5117 if test ${enableval} = "no" ; then
5118   DEBUG_SYMBOLS=
5119
5120 else
5121   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5122
5123 fi
5124
5125 # Check whether --enable-keep-symbols was given.
5126 if test "${enable_keep_symbols+set}" = set; then
5127   enableval=$enable_keep_symbols;
5128 else
5129   enableval=no
5130 fi
5131
5132 if test ${enableval} = "no" ; then
5133   KEEP_SYMBOLS=
5134
5135 else
5136   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5137
5138 fi
5139
5140 # Check whether --enable-jit was given.
5141 if test "${enable_jit+set}" = set; then
5142   enableval=$enable_jit;
5143 else
5144   enableval=default
5145 fi
5146
5147 if test ${enableval} = "no"
5148 then
5149   JIT=
5150
5151 else
5152   case "$llvm_cv_target_arch" in
5153     x86)         TARGET_HAS_JIT=1
5154  ;;
5155     Sparc)       TARGET_HAS_JIT=0
5156  ;;
5157     PowerPC)     TARGET_HAS_JIT=1
5158  ;;
5159     x86_64)      TARGET_HAS_JIT=1
5160  ;;
5161     ARM)         TARGET_HAS_JIT=1
5162  ;;
5163     Mips)        TARGET_HAS_JIT=1
5164  ;;
5165     XCore)       TARGET_HAS_JIT=0
5166  ;;
5167     MSP430)      TARGET_HAS_JIT=0
5168  ;;
5169     Hexagon)     TARGET_HAS_JIT=0
5170  ;;
5171     NVPTX)       TARGET_HAS_JIT=0
5172  ;;
5173     SystemZ)     TARGET_HAS_JIT=1
5174  ;;
5175     WebAssembly) TARGET_HAS_JIT=0
5176  ;;
5177     *)           TARGET_HAS_JIT=0
5178  ;;
5179   esac
5180 fi
5181
5182 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5183 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5184
5185
5186 # Check whether --enable-docs was given.
5187 if test "${enable_docs+set}" = set; then
5188   enableval=$enable_docs;
5189 else
5190   enableval=default
5191 fi
5192
5193 case "$enableval" in
5194   yes) ENABLE_DOCS=1
5195  ;;
5196   no)  ENABLE_DOCS=0
5197  ;;
5198   default) ENABLE_DOCS=1
5199  ;;
5200   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5202    { (exit 1); exit 1; }; } ;;
5203 esac
5204
5205 # Check whether --enable-doxygen was given.
5206 if test "${enable_doxygen+set}" = set; then
5207   enableval=$enable_doxygen;
5208 else
5209   enableval=default
5210 fi
5211
5212 case "$enableval" in
5213   yes) ENABLE_DOXYGEN=1
5214  ;;
5215   no|default) ENABLE_DOXYGEN=0
5216  ;;
5217   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5219    { (exit 1); exit 1; }; } ;;
5220 esac
5221
5222 # Check whether --enable-doxygen-search was given.
5223 if test "${enable_doxygen_search+set}" = set; then
5224   enableval=$enable_doxygen_search;
5225 else
5226   enableval=default
5227 fi
5228
5229 ENABLE_DOXYGEN_SEARCH="$enableval"
5230
5231 case "$enableval" in
5232   yes|no|default) ;;
5233   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5234 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5235    { (exit 1); exit 1; }; } ;;
5236 esac
5237
5238 # Check whether --enable-doxygen-external-search was given.
5239 if test "${enable_doxygen_external_search+set}" = set; then
5240   enableval=$enable_doxygen_external_search;
5241 else
5242   enableval=default
5243 fi
5244
5245 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5246
5247 case "$enableval" in
5248   yes)
5249             case "$ENABLE_DOXYGEN_SEARCH" in
5250       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5251       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5252 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5253    { (exit 1); exit 1; }; } ;;
5254     esac
5255     ;;
5256   no|default) ;;
5257   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5258 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5259    { (exit 1); exit 1; }; } ;;
5260 esac
5261
5262
5263 # Check whether --with-doxygen-search-engine-url was given.
5264 if test "${with_doxygen_search_engine_url+set}" = set; then
5265   withval=$with_doxygen_search_engine_url;
5266 fi
5267
5268 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5269
5270
5271 # Check whether --with-doxygen-search-mappings was given.
5272 if test "${with_doxygen_search_mappings+set}" = set; then
5273   withval=$with_doxygen_search_mappings;
5274 fi
5275
5276 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5277
5278 case "$ENABLE_DOXYGEN_SEARCH" in
5279   yes)
5280     if test "$ENABLE_DOXYGEN" = "0" ; then
5281       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5282 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5283    { (exit 1); exit 1; }; }
5284     fi
5285
5286     enable_searchengine=YES
5287
5288
5289     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5290       yes)
5291         enable_external_search=YES
5292
5293         enable_server_based_search=YES
5294
5295         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5296
5297         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5298
5299         ;;
5300
5301       no|default)
5302         enable_external_search=NO
5303
5304         enable_server_based_search=NO
5305
5306
5307
5308         ;;
5309     esac
5310     ;;
5311
5312   no|default)
5313     enable_searchengine=NO
5314
5315
5316     enable_server_based_search=NO
5317
5318     enable_external_search=NO
5319
5320
5321     ;;
5322
5323   *)
5324     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5325 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5326    { (exit 1); exit 1; }; }
5327     ;;
5328 esac
5329
5330 # Check whether --enable-doxygen-qt-help was given.
5331 if test "${enable_doxygen_qt_help+set}" = set; then
5332   enableval=$enable_doxygen_qt_help;
5333 else
5334   enableval=default
5335 fi
5336
5337 case "$enableval" in
5338   yes)
5339     if test "$ENABLE_DOXYGEN" = "0" ; then
5340       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5341 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5342    { (exit 1); exit 1; }; }
5343     fi
5344
5345     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5346 set dummy qhelpgenerator; ac_word=$2
5347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   case $QHELPGENERATOR in
5353   [\\/]* | ?:[\\/]*)
5354   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5355   ;;
5356   *)
5357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362   for ac_exec_ext in '' $ac_executable_extensions; do
5363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5364     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366     break 2
5367   fi
5368 done
5369 done
5370 IFS=$as_save_IFS
5371
5372   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5373   ;;
5374 esac
5375 fi
5376 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5377 if test -n "$QHELPGENERATOR"; then
5378   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5379 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5380 else
5381   { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5383 fi
5384
5385
5386
5387         llvm_doxygen_generate_qhp=YES
5388
5389     llvm_doxygen_qch_filename=org.llvm.qch
5390
5391     llvm_doxygen_qhp_namespace=org.llvm
5392
5393     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5394
5395     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5396
5397     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5398
5399
5400         clang_doxygen_generate_qhp=YES
5401
5402     clang_doxygen_qch_filename=org.llvm.clang.qch
5403
5404     clang_doxygen_qhp_namespace=org.llvm.clang
5405
5406     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5407
5408     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5409
5410     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5411
5412     ;;
5413
5414   no|default)
5415     llvm_doxygen_generate_qhp=NO
5416
5417
5418
5419
5420
5421
5422
5423     clang_doxygen_generate_qhp=NO
5424
5425
5426
5427
5428     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5429
5430     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5431
5432     ;;
5433
5434   *)
5435     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5436 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5437    { (exit 1); exit 1; }; } ;;
5438 esac
5439
5440 # Check whether --enable-threads was given.
5441 if test "${enable_threads+set}" = set; then
5442   enableval=$enable_threads;
5443 else
5444   enableval=default
5445 fi
5446
5447 case "$enableval" in
5448   yes) LLVM_ENABLE_THREADS=1
5449  ;;
5450   no)  LLVM_ENABLE_THREADS=0
5451  ;;
5452   default) LLVM_ENABLE_THREADS=1
5453  ;;
5454   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5455 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5456    { (exit 1); exit 1; }; } ;;
5457 esac
5458
5459 cat >>confdefs.h <<_ACEOF
5460 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5461 _ACEOF
5462
5463
5464 # Check whether --enable-pthreads was given.
5465 if test "${enable_pthreads+set}" = set; then
5466   enableval=$enable_pthreads;
5467 else
5468   enableval=default
5469 fi
5470
5471 case "$enableval" in
5472   yes) ENABLE_PTHREADS=1
5473  ;;
5474   no)  ENABLE_PTHREADS=0
5475  ;;
5476   default) ENABLE_PTHREADS=1
5477  ;;
5478   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5479 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5480    { (exit 1); exit 1; }; } ;;
5481 esac
5482
5483 # Check whether --enable-zlib was given.
5484 if test "${enable_zlib+set}" = set; then
5485   enableval=$enable_zlib;
5486 else
5487   enableval=default
5488 fi
5489
5490 case "$enableval" in
5491   yes) LLVM_ENABLE_ZLIB=1
5492  ;;
5493   no)  LLVM_ENABLE_ZLIB=0
5494  ;;
5495   default) LLVM_ENABLE_ZLIB=1
5496  ;;
5497   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5498 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5499    { (exit 1); exit 1; }; } ;;
5500 esac
5501
5502 cat >>confdefs.h <<_ACEOF
5503 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5504 _ACEOF
5505
5506
5507 # Check whether --enable-pic was given.
5508 if test "${enable_pic+set}" = set; then
5509   enableval=$enable_pic;
5510 else
5511   enableval=default
5512 fi
5513
5514 case "$enableval" in
5515   yes) ENABLE_PIC=1
5516  ;;
5517   no)  ENABLE_PIC=0
5518  ;;
5519   default) ENABLE_PIC=1
5520  ;;
5521   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5522 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5523    { (exit 1); exit 1; }; } ;;
5524 esac
5525
5526 cat >>confdefs.h <<_ACEOF
5527 #define ENABLE_PIC $ENABLE_PIC
5528 _ACEOF
5529
5530
5531 # Check whether --enable-shared was given.
5532 if test "${enable_shared+set}" = set; then
5533   enableval=$enable_shared;
5534 else
5535   enableval=default
5536 fi
5537
5538 case "$enableval" in
5539   yes) ENABLE_SHARED=1
5540  ;;
5541   no)  ENABLE_SHARED=0
5542  ;;
5543   default) ENABLE_SHARED=0
5544  ;;
5545   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5546 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5547    { (exit 1); exit 1; }; } ;;
5548 esac
5549
5550 # Check whether --enable-embed-stdcxx was given.
5551 if test "${enable_embed_stdcxx+set}" = set; then
5552   enableval=$enable_embed_stdcxx;
5553 else
5554   enableval=default
5555 fi
5556
5557 case "$enableval" in
5558   yes) ENABLE_EMBED_STDCXX=1
5559  ;;
5560   no)  ENABLE_EMBED_STDCXX=0
5561  ;;
5562   default) ENABLE_EMBED_STDCXX=0
5563  ;;
5564   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5565 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5566    { (exit 1); exit 1; }; } ;;
5567 esac
5568
5569 # Check whether --enable-timestamps was given.
5570 if test "${enable_timestamps+set}" = set; then
5571   enableval=$enable_timestamps;
5572 else
5573   enableval=default
5574 fi
5575
5576 case "$enableval" in
5577   yes) ENABLE_TIMESTAMPS=1
5578  ;;
5579   no)  ENABLE_TIMESTAMPS=0
5580  ;;
5581   default) ENABLE_TIMESTAMPS=1
5582  ;;
5583   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5584 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5585    { (exit 1); exit 1; }; } ;;
5586 esac
5587
5588 cat >>confdefs.h <<_ACEOF
5589 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5590 _ACEOF
5591
5592
5593 # Check whether --enable-backtraces was given.
5594 if test "${enable_backtraces+set}" = set; then
5595   enableval=$enable_backtraces; case "$enableval" in
5596     yes) llvm_cv_enable_backtraces="yes" ;;
5597     no)  llvm_cv_enable_backtraces="no"  ;;
5598     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5599 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5600    { (exit 1); exit 1; }; } ;;
5601   esac
5602 else
5603   llvm_cv_enable_backtraces="yes"
5604 fi
5605
5606 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5607
5608 cat >>confdefs.h <<\_ACEOF
5609 #define ENABLE_BACKTRACES 1
5610 _ACEOF
5611
5612 fi
5613
5614 # Check whether --enable-crash-overrides was given.
5615 if test "${enable_crash_overrides+set}" = set; then
5616   enableval=$enable_crash_overrides; case "$enableval" in
5617     yes) llvm_cv_enable_crash_overrides="yes" ;;
5618     no)  llvm_cv_enable_crash_overrides="no"  ;;
5619     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5620 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5621    { (exit 1); exit 1; }; } ;;
5622   esac
5623 else
5624   llvm_cv_enable_crash_overrides="yes"
5625 fi
5626
5627 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5628
5629 cat >>confdefs.h <<\_ACEOF
5630 #define ENABLE_CRASH_OVERRIDES 1
5631 _ACEOF
5632
5633 fi
5634
5635 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5636 ALL_TARGETS=$ALL_TARGETS
5637
5638
5639 TARGETS_TO_BUILD=""
5640 # Check whether --enable-targets was given.
5641 if test "${enable_targets+set}" = set; then
5642   enableval=$enable_targets;
5643 else
5644   enableval=all
5645 fi
5646
5647 if test "$enableval" = host-only ; then
5648   enableval=host
5649 fi
5650 case "$enableval" in
5651   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5652   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5653       case "$a_target" in
5654         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5655         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5656         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5657         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5658         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5659         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5660         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5661         bpf)      TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5662         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5663         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5664         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5665         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5666         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5667         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5668         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5669         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5670         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5671         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5672         amdgpu)   TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5673         r600)     TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5674         wasm)     TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5675         host) case "$llvm_cv_target_arch" in
5676             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5677             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5678             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5679             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5680             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5681             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5682             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5683             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5684             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5685             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5686             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5687             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5688             WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5689             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5690 echo "$as_me: error: Can not set target to build" >&2;}
5691    { (exit 1); exit 1; }; } ;;
5692           esac ;;
5693         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5694 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5695    { (exit 1); exit 1; }; } ;;
5696       esac
5697   done
5698   ;;
5699 esac
5700
5701 # Check whether --enable-experimental-targets was given.
5702 if test "${enable_experimental_targets+set}" = set; then
5703   enableval=$enable_experimental_targets;
5704 else
5705   enableval=disable
5706 fi
5707
5708
5709 if test ${enableval} != "disable"
5710 then
5711   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5712 fi
5713
5714 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5715
5716
5717 for a_target in $TARGETS_TO_BUILD; do
5718   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5722 _ACEOF
5723
5724     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5725     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5726     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5727     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5728     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5729       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5730     fi
5731     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5732       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5733     fi
5734
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5737 _ACEOF
5738
5739
5740 cat >>confdefs.h <<_ACEOF
5741 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5742 _ACEOF
5743
5744
5745 cat >>confdefs.h <<_ACEOF
5746 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5747 _ACEOF
5748
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5752 _ACEOF
5753
5754     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5755
5756 cat >>confdefs.h <<_ACEOF
5757 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5758 _ACEOF
5759
5760     fi
5761     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5762
5763 cat >>confdefs.h <<_ACEOF
5764 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5765 _ACEOF
5766
5767     fi
5768   fi
5769 done
5770
5771 LLVM_ENUM_TARGETS=""
5772 LLVM_ENUM_ASM_PRINTERS=""
5773 LLVM_ENUM_ASM_PARSERS=""
5774 LLVM_ENUM_DISASSEMBLERS=""
5775 for target_to_build in $TARGETS_TO_BUILD; do
5776   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5777   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5778     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5779   fi
5780   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5781     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5782   fi
5783   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5784     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5785   fi
5786 done
5787
5788
5789
5790
5791
5792
5793 # Check whether --with-optimize-option was given.
5794 if test "${with_optimize_option+set}" = set; then
5795   withval=$with_optimize_option;
5796 else
5797   withval=default
5798 fi
5799
5800 { echo "$as_me:$LINENO: checking optimization flags" >&5
5801 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5802 case "$withval" in
5803   default)
5804     case "$llvm_cv_os_type" in
5805     FreeBSD) optimize_option=-O2 ;;
5806     MingW) optimize_option=-O2 ;;
5807     *)     optimize_option=-O3 ;;
5808     esac ;;
5809   *) optimize_option="$withval" ;;
5810 esac
5811 OPTIMIZE_OPTION=$optimize_option
5812
5813 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5814 echo "${ECHO_T}$optimize_option" >&6; }
5815
5816
5817 # Check whether --with-extra-options was given.
5818 if test "${with_extra_options+set}" = set; then
5819   withval=$with_extra_options;
5820 else
5821   withval=default
5822 fi
5823
5824 case "$withval" in
5825   default) EXTRA_OPTIONS= ;;
5826   *) EXTRA_OPTIONS=$withval ;;
5827 esac
5828 EXTRA_OPTIONS=$EXTRA_OPTIONS
5829
5830
5831
5832 # Check whether --with-extra-ld-options was given.
5833 if test "${with_extra_ld_options+set}" = set; then
5834   withval=$with_extra_ld_options;
5835 else
5836   withval=default
5837 fi
5838
5839 case "$withval" in
5840   default) EXTRA_LD_OPTIONS= ;;
5841   *) EXTRA_LD_OPTIONS=$withval ;;
5842 esac
5843 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5844
5845
5846 # Check whether --enable-bindings was given.
5847 if test "${enable_bindings+set}" = set; then
5848   enableval=$enable_bindings;
5849 else
5850   enableval=default
5851 fi
5852
5853 BINDINGS_TO_BUILD=""
5854 case "$enableval" in
5855   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5856   all ) BINDINGS_TO_BUILD="ocaml" ;;
5857   none | no) BINDINGS_TO_BUILD="" ;;
5858   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5859       case "$a_binding" in
5860         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5861         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5862 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5863    { (exit 1); exit 1; }; } ;;
5864       esac
5865   done
5866   ;;
5867 esac
5868
5869
5870 # Check whether --with-ocaml-libdir was given.
5871 if test "${with_ocaml_libdir+set}" = set; then
5872   withval=$with_ocaml_libdir;
5873 else
5874   withval=auto
5875 fi
5876
5877 case "$withval" in
5878   auto) with_ocaml_libdir="$withval" ;;
5879   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5880   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5881 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5882    { (exit 1); exit 1; }; } ;;
5883 esac
5884
5885
5886 # Check whether --with-clang-srcdir was given.
5887 if test "${with_clang_srcdir+set}" = set; then
5888   withval=$with_clang_srcdir;
5889 else
5890   withval="-"
5891 fi
5892
5893 case "$withval" in
5894   -) clang_src_root="" ;;
5895   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5896   *) clang_src_root="$ac_pwd/$withval" ;;
5897 esac
5898 CLANG_SRC_ROOT=$clang_src_root
5899
5900
5901
5902 # Check whether --with-clang-resource-dir was given.
5903 if test "${with_clang_resource_dir+set}" = set; then
5904   withval=$with_clang_resource_dir;
5905 else
5906   withval=""
5907 fi
5908
5909
5910 cat >>confdefs.h <<_ACEOF
5911 #define CLANG_RESOURCE_DIR "$withval"
5912 _ACEOF
5913
5914
5915
5916 # Check whether --with-c-include-dirs was given.
5917 if test "${with_c_include_dirs+set}" = set; then
5918   withval=$with_c_include_dirs;
5919 else
5920   withval=""
5921 fi
5922
5923
5924 cat >>confdefs.h <<_ACEOF
5925 #define C_INCLUDE_DIRS "$withval"
5926 _ACEOF
5927
5928
5929 # Clang normally uses the system c++ headers and libraries. With this option,
5930 # clang will use the ones provided by a gcc installation instead. This option should
5931 # be passed the same value that was used with --prefix when configuring gcc.
5932
5933 # Check whether --with-gcc-toolchain was given.
5934 if test "${with_gcc_toolchain+set}" = set; then
5935   withval=$with_gcc_toolchain;
5936 else
5937   withval=""
5938 fi
5939
5940
5941 cat >>confdefs.h <<_ACEOF
5942 #define GCC_INSTALL_PREFIX "$withval"
5943 _ACEOF
5944
5945
5946
5947 # Check whether --with-default-sysroot was given.
5948 if test "${with_default_sysroot+set}" = set; then
5949   withval=$with_default_sysroot;
5950 else
5951   withval=""
5952 fi
5953
5954
5955 cat >>confdefs.h <<_ACEOF
5956 #define DEFAULT_SYSROOT "$withval"
5957 _ACEOF
5958
5959
5960
5961 # Check whether --with-clang-default-openmp-runtime was given.
5962 if test "${with_clang_default_openmp_runtime+set}" = set; then
5963   withval=$with_clang_default_openmp_runtime;
5964 else
5965   withval="libgomp"
5966 fi
5967
5968
5969 cat >>confdefs.h <<_ACEOF
5970 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5971 _ACEOF
5972
5973
5974
5975 # Check whether --with-binutils-include was given.
5976 if test "${with_binutils_include+set}" = set; then
5977   withval=$with_binutils_include;
5978 else
5979   withval=default
5980 fi
5981
5982 case "$withval" in
5983   default) WITH_BINUTILS_INCDIR=default ;;
5984   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5985   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5986 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5987    { (exit 1); exit 1; }; } ;;
5988 esac
5989 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5990   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5991
5992   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5993      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5994      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5995 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5996    { (exit 1); exit 1; }; };
5997   fi
5998 fi
5999
6000
6001 # Check whether --with-bug-report-url was given.
6002 if test "${with_bug_report_url+set}" = set; then
6003   withval=$with_bug_report_url;
6004 else
6005   withval="http://llvm.org/bugs/"
6006 fi
6007
6008
6009 cat >>confdefs.h <<_ACEOF
6010 #define BUG_REPORT_URL "$withval"
6011 _ACEOF
6012
6013
6014 # Check whether --enable-terminfo was given.
6015 if test "${enable_terminfo+set}" = set; then
6016   enableval=$enable_terminfo; case "$enableval" in
6017     yes) llvm_cv_enable_terminfo="yes" ;;
6018     no)  llvm_cv_enable_terminfo="no"  ;;
6019     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6020 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6021    { (exit 1); exit 1; }; } ;;
6022   esac
6023 else
6024   llvm_cv_enable_terminfo="yes"
6025 fi
6026
6027 case "$llvm_cv_enable_terminfo" in
6028   yes) ENABLE_TERMINFO=1
6029  ;;
6030   no)  ENABLE_TERMINFO=0
6031  ;;
6032 esac
6033
6034 # Check whether --enable-libedit was given.
6035 if test "${enable_libedit+set}" = set; then
6036   enableval=$enable_libedit; case "$enableval" in
6037     yes) llvm_cv_enable_libedit="yes" ;;
6038     no)  llvm_cv_enable_libedit="no"  ;;
6039     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6040 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6041    { (exit 1); exit 1; }; } ;;
6042   esac
6043 else
6044   llvm_cv_enable_libedit="yes"
6045 fi
6046
6047
6048 # Check whether --enable-libffi was given.
6049 if test "${enable_libffi+set}" = set; then
6050   enableval=$enable_libffi; case "$enableval" in
6051     yes) llvm_cv_enable_libffi="yes" ;;
6052     no)  llvm_cv_enable_libffi="no"  ;;
6053     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6054 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6055    { (exit 1); exit 1; }; } ;;
6056   esac
6057 else
6058   llvm_cv_enable_libffi=no
6059 fi
6060
6061
6062
6063 # Check whether --with-internal-prefix was given.
6064 if test "${with_internal_prefix+set}" = set; then
6065   withval=$with_internal_prefix;
6066 else
6067   withval=""
6068 fi
6069
6070 INTERNAL_PREFIX=$withval
6071
6072
6073
6074 { echo "$as_me:$LINENO: checking for GNU make" >&5
6075 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6076 if test "${llvm_cv_gnu_make_command+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   llvm_cv_gnu_make_command=''
6080  for a in "$MAKE" make gmake gnumake ; do
6081   if test -z "$a" ; then continue ; fi ;
6082   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6083   then
6084    llvm_cv_gnu_make_command=$a ;
6085    break;
6086   fi
6087  done
6088 fi
6089 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6090 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6091  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6092    ifGNUmake='' ;
6093  else
6094    ifGNUmake='#' ;
6095    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6096 echo "${ECHO_T}\"Not found\"" >&6; };
6097  fi
6098
6099
6100 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6101 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6102 LN_S=$as_ln_s
6103 if test "$LN_S" = "ln -s"; then
6104   { echo "$as_me:$LINENO: result: yes" >&5
6105 echo "${ECHO_T}yes" >&6; }
6106 else
6107   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6108 echo "${ECHO_T}no, using $LN_S" >&6; }
6109 fi
6110
6111 # Extract the first word of "nm", so it can be a program name with args.
6112 set dummy nm; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_NM+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   case $NM in
6119   [\\/]* | ?:[\\/]*)
6120   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6121   ;;
6122   *)
6123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128   for ac_exec_ext in '' $ac_executable_extensions; do
6129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6130     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6139   ;;
6140 esac
6141 fi
6142 NM=$ac_cv_path_NM
6143 if test -n "$NM"; then
6144   { echo "$as_me:$LINENO: result: $NM" >&5
6145 echo "${ECHO_T}$NM" >&6; }
6146 else
6147   { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6149 fi
6150
6151
6152 # Extract the first word of "cmp", so it can be a program name with args.
6153 set dummy cmp; ac_word=$2
6154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6156 if test "${ac_cv_path_CMP+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   case $CMP in
6160   [\\/]* | ?:[\\/]*)
6161   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6162   ;;
6163   *)
6164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167   IFS=$as_save_IFS
6168   test -z "$as_dir" && as_dir=.
6169   for ac_exec_ext in '' $ac_executable_extensions; do
6170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6171     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173     break 2
6174   fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6180   ;;
6181 esac
6182 fi
6183 CMP=$ac_cv_path_CMP
6184 if test -n "$CMP"; then
6185   { echo "$as_me:$LINENO: result: $CMP" >&5
6186 echo "${ECHO_T}$CMP" >&6; }
6187 else
6188   { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6190 fi
6191
6192
6193 # Extract the first word of "cp", so it can be a program name with args.
6194 set dummy cp; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_path_CP+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   case $CP in
6201   [\\/]* | ?:[\\/]*)
6202   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6203   ;;
6204   *)
6205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210   for ac_exec_ext in '' $ac_executable_extensions; do
6211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6212     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214     break 2
6215   fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6221   ;;
6222 esac
6223 fi
6224 CP=$ac_cv_path_CP
6225 if test -n "$CP"; then
6226   { echo "$as_me:$LINENO: result: $CP" >&5
6227 echo "${ECHO_T}$CP" >&6; }
6228 else
6229   { echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6; }
6231 fi
6232
6233
6234 # Extract the first word of "date", so it can be a program name with args.
6235 set dummy date; ac_word=$2
6236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6238 if test "${ac_cv_path_DATE+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   case $DATE in
6242   [\\/]* | ?:[\\/]*)
6243   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6244   ;;
6245   *)
6246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6253     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6262   ;;
6263 esac
6264 fi
6265 DATE=$ac_cv_path_DATE
6266 if test -n "$DATE"; then
6267   { echo "$as_me:$LINENO: result: $DATE" >&5
6268 echo "${ECHO_T}$DATE" >&6; }
6269 else
6270   { echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6; }
6272 fi
6273
6274
6275 # Extract the first word of "find", so it can be a program name with args.
6276 set dummy find; ac_word=$2
6277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6279 if test "${ac_cv_path_FIND+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   case $FIND in
6283   [\\/]* | ?:[\\/]*)
6284   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6285   ;;
6286   *)
6287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292   for ac_exec_ext in '' $ac_executable_extensions; do
6293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6294     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6303   ;;
6304 esac
6305 fi
6306 FIND=$ac_cv_path_FIND
6307 if test -n "$FIND"; then
6308   { echo "$as_me:$LINENO: result: $FIND" >&5
6309 echo "${ECHO_T}$FIND" >&6; }
6310 else
6311   { echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6; }
6313 fi
6314
6315
6316 # Extract the first word of "grep", so it can be a program name with args.
6317 set dummy grep; ac_word=$2
6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320 if test "${ac_cv_path_GREP+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   case $GREP in
6324   [\\/]* | ?:[\\/]*)
6325   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6326   ;;
6327   *)
6328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331   IFS=$as_save_IFS
6332   test -z "$as_dir" && as_dir=.
6333   for ac_exec_ext in '' $ac_executable_extensions; do
6334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6335     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337     break 2
6338   fi
6339 done
6340 done
6341 IFS=$as_save_IFS
6342
6343   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6344   ;;
6345 esac
6346 fi
6347 GREP=$ac_cv_path_GREP
6348 if test -n "$GREP"; then
6349   { echo "$as_me:$LINENO: result: $GREP" >&5
6350 echo "${ECHO_T}$GREP" >&6; }
6351 else
6352   { echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6; }
6354 fi
6355
6356
6357 # Extract the first word of "mkdir", so it can be a program name with args.
6358 set dummy mkdir; ac_word=$2
6359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6361 if test "${ac_cv_path_MKDIR+set}" = set; then
6362   echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364   case $MKDIR in
6365   [\\/]* | ?:[\\/]*)
6366   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6367   ;;
6368   *)
6369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372   IFS=$as_save_IFS
6373   test -z "$as_dir" && as_dir=.
6374   for ac_exec_ext in '' $ac_executable_extensions; do
6375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6376     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378     break 2
6379   fi
6380 done
6381 done
6382 IFS=$as_save_IFS
6383
6384   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6385   ;;
6386 esac
6387 fi
6388 MKDIR=$ac_cv_path_MKDIR
6389 if test -n "$MKDIR"; then
6390   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6391 echo "${ECHO_T}$MKDIR" >&6; }
6392 else
6393   { echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6; }
6395 fi
6396
6397
6398 # Extract the first word of "mv", so it can be a program name with args.
6399 set dummy mv; ac_word=$2
6400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6402 if test "${ac_cv_path_MV+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   case $MV in
6406   [\\/]* | ?:[\\/]*)
6407   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6408   ;;
6409   *)
6410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415   for ac_exec_ext in '' $ac_executable_extensions; do
6416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6417     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6426   ;;
6427 esac
6428 fi
6429 MV=$ac_cv_path_MV
6430 if test -n "$MV"; then
6431   { echo "$as_me:$LINENO: result: $MV" >&5
6432 echo "${ECHO_T}$MV" >&6; }
6433 else
6434   { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6436 fi
6437
6438
6439 if test -n "$ac_tool_prefix"; then
6440   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_prog_RANLIB+set}" = set; then
6445   echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447   if test -n "$RANLIB"; then
6448   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455   for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 RANLIB=$ac_cv_prog_RANLIB
6468 if test -n "$RANLIB"; then
6469   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6470 echo "${ECHO_T}$RANLIB" >&6; }
6471 else
6472   { echo "$as_me:$LINENO: result: no" >&5
6473 echo "${ECHO_T}no" >&6; }
6474 fi
6475
6476
6477 fi
6478 if test -z "$ac_cv_prog_RANLIB"; then
6479   ac_ct_RANLIB=$RANLIB
6480   # Extract the first word of "ranlib", so it can be a program name with args.
6481 set dummy ranlib; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   if test -n "$ac_ct_RANLIB"; then
6488   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495   for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_prog_ac_ct_RANLIB="ranlib"
6498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6508 if test -n "$ac_ct_RANLIB"; then
6509   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6510 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6511 else
6512   { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6514 fi
6515
6516   if test "x$ac_ct_RANLIB" = x; then
6517     RANLIB=":"
6518   else
6519     case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6522 whose name does not start with the host triplet.  If you think this
6523 configuration is useful to you, please write to autoconf@gnu.org." >&5
6524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6525 whose name does not start with the host triplet.  If you think this
6526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529     RANLIB=$ac_ct_RANLIB
6530   fi
6531 else
6532   RANLIB="$ac_cv_prog_RANLIB"
6533 fi
6534
6535 if test -n "$ac_tool_prefix"; then
6536   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6537 set dummy ${ac_tool_prefix}ar; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_prog_AR+set}" = set; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543   if test -n "$AR"; then
6544   ac_cv_prog_AR="$AR" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549   IFS=$as_save_IFS
6550   test -z "$as_dir" && as_dir=.
6551   for ac_exec_ext in '' $ac_executable_extensions; do
6552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6553     ac_cv_prog_AR="${ac_tool_prefix}ar"
6554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555     break 2
6556   fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561 fi
6562 fi
6563 AR=$ac_cv_prog_AR
6564 if test -n "$AR"; then
6565   { echo "$as_me:$LINENO: result: $AR" >&5
6566 echo "${ECHO_T}$AR" >&6; }
6567 else
6568   { echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6; }
6570 fi
6571
6572
6573 fi
6574 if test -z "$ac_cv_prog_AR"; then
6575   ac_ct_AR=$AR
6576   # Extract the first word of "ar", so it can be a program name with args.
6577 set dummy ar; ac_word=$2
6578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6580 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6581   echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583   if test -n "$ac_ct_AR"; then
6584   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589   IFS=$as_save_IFS
6590   test -z "$as_dir" && as_dir=.
6591   for ac_exec_ext in '' $ac_executable_extensions; do
6592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6593     ac_cv_prog_ac_ct_AR="ar"
6594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595     break 2
6596   fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6604 if test -n "$ac_ct_AR"; then
6605   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6606 echo "${ECHO_T}$ac_ct_AR" >&6; }
6607 else
6608   { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6610 fi
6611
6612   if test "x$ac_ct_AR" = x; then
6613     AR="false"
6614   else
6615     case $cross_compiling:$ac_tool_warned in
6616 yes:)
6617 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6618 whose name does not start with the host triplet.  If you think this
6619 configuration is useful to you, please write to autoconf@gnu.org." >&5
6620 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6621 whose name does not start with the host triplet.  If you think this
6622 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6623 ac_tool_warned=yes ;;
6624 esac
6625     AR=$ac_ct_AR
6626   fi
6627 else
6628   AR="$ac_cv_prog_AR"
6629 fi
6630
6631 # Extract the first word of "rm", so it can be a program name with args.
6632 set dummy rm; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_path_RM+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   case $RM in
6639   [\\/]* | ?:[\\/]*)
6640   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6641   ;;
6642   *)
6643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648   for ac_exec_ext in '' $ac_executable_extensions; do
6649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6650     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6659   ;;
6660 esac
6661 fi
6662 RM=$ac_cv_path_RM
6663 if test -n "$RM"; then
6664   { echo "$as_me:$LINENO: result: $RM" >&5
6665 echo "${ECHO_T}$RM" >&6; }
6666 else
6667   { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6669 fi
6670
6671
6672 # Extract the first word of "sed", so it can be a program name with args.
6673 set dummy sed; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_SED+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   case $SED in
6680   [\\/]* | ?:[\\/]*)
6681   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6682   ;;
6683   *)
6684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689   for ac_exec_ext in '' $ac_executable_extensions; do
6690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6700   ;;
6701 esac
6702 fi
6703 SED=$ac_cv_path_SED
6704 if test -n "$SED"; then
6705   { echo "$as_me:$LINENO: result: $SED" >&5
6706 echo "${ECHO_T}$SED" >&6; }
6707 else
6708   { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6710 fi
6711
6712
6713 # Extract the first word of "tar", so it can be a program name with args.
6714 set dummy tar; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_path_TAR+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   case $TAR in
6721   [\\/]* | ?:[\\/]*)
6722   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6723   ;;
6724   *)
6725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730   for ac_exec_ext in '' $ac_executable_extensions; do
6731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6732     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6741   ;;
6742 esac
6743 fi
6744 TAR=$ac_cv_path_TAR
6745 if test -n "$TAR"; then
6746   { echo "$as_me:$LINENO: result: $TAR" >&5
6747 echo "${ECHO_T}$TAR" >&6; }
6748 else
6749   { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6751 fi
6752
6753
6754 # Extract the first word of "pwd", so it can be a program name with args.
6755 set dummy pwd; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_BINPWD+set}" = set; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   case $BINPWD in
6762   [\\/]* | ?:[\\/]*)
6763   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6764   ;;
6765   *)
6766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6782   ;;
6783 esac
6784 fi
6785 BINPWD=$ac_cv_path_BINPWD
6786 if test -n "$BINPWD"; then
6787   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6788 echo "${ECHO_T}$BINPWD" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794
6795
6796 # Extract the first word of "dot", so it can be a program name with args.
6797 set dummy dot; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_DOT+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   case $DOT in
6804   [\\/]* | ?:[\\/]*)
6805   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6806   ;;
6807   *)
6808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813   for ac_exec_ext in '' $ac_executable_extensions; do
6814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6815     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6824   ;;
6825 esac
6826 fi
6827 DOT=$ac_cv_path_DOT
6828 if test -n "$DOT"; then
6829   { echo "$as_me:$LINENO: result: $DOT" >&5
6830 echo "${ECHO_T}$DOT" >&6; }
6831 else
6832   { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6834 fi
6835
6836
6837 if test "$DOT" != "echo dot" ; then
6838
6839 cat >>confdefs.h <<\_ACEOF
6840 #define HAVE_DOT 1
6841 _ACEOF
6842
6843     if test "$llvm_cv_os_type" = "MingW" ; then
6844     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6845   fi
6846
6847 cat >>confdefs.h <<_ACEOF
6848 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6849 _ACEOF
6850
6851 fi
6852
6853 # Find a good install program.  We prefer a C program (faster),
6854 # so one script is as good as another.  But avoid the broken or
6855 # incompatible versions:
6856 # SysV /etc/install, /usr/sbin/install
6857 # SunOS /usr/etc/install
6858 # IRIX /sbin/install
6859 # AIX /bin/install
6860 # AmigaOS /C/install, which installs bootblocks on floppy discs
6861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6864 # OS/2's system install, which has a completely different semantic
6865 # ./install, which can be erroneously created by make from ./install.sh.
6866 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6867 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6868 if test -z "$INSTALL"; then
6869 if test "${ac_cv_path_install+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877   # Account for people who put trailing slashes in PATH elements.
6878 case $as_dir/ in
6879   ./ | .// | /cC/* | \
6880   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6881   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6882   /usr/ucb/* ) ;;
6883   *)
6884     # OSF1 and SCO ODT 3.0 have their own names for install.
6885     # Don't use installbsd from OSF since it installs stuff as root
6886     # by default.
6887     for ac_prog in ginstall scoinst install; do
6888       for ac_exec_ext in '' $ac_executable_extensions; do
6889         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6890           if test $ac_prog = install &&
6891             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6892             # AIX install.  It has an incompatible calling convention.
6893             :
6894           elif test $ac_prog = install &&
6895             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6896             # program-specific install script used by HP pwplus--don't use.
6897             :
6898           else
6899             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6900             break 3
6901           fi
6902         fi
6903       done
6904     done
6905     ;;
6906 esac
6907 done
6908 IFS=$as_save_IFS
6909
6910
6911 fi
6912   if test "${ac_cv_path_install+set}" = set; then
6913     INSTALL=$ac_cv_path_install
6914   else
6915     # As a last resort, use the slow shell script.  Don't cache a
6916     # value for INSTALL within a source directory, because that will
6917     # break other packages using the cache if that directory is
6918     # removed, or if the value is a relative name.
6919     INSTALL=$ac_install_sh
6920   fi
6921 fi
6922 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6923 echo "${ECHO_T}$INSTALL" >&6; }
6924
6925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6926 # It thinks the first close brace ends the variable substitution.
6927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6928
6929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6930
6931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6932
6933 case "$INSTALL" in
6934  [\\/$]* | ?:[\\/]* ) ;;
6935  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6936 esac
6937
6938 # Extract the first word of "bzip2", so it can be a program name with args.
6939 set dummy bzip2; ac_word=$2
6940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942 if test "${ac_cv_path_BZIP2+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   case $BZIP2 in
6946   [\\/]* | ?:[\\/]*)
6947   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6948   ;;
6949   *)
6950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955   for ac_exec_ext in '' $ac_executable_extensions; do
6956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6957     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959     break 2
6960   fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965   ;;
6966 esac
6967 fi
6968 BZIP2=$ac_cv_path_BZIP2
6969 if test -n "$BZIP2"; then
6970   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6971 echo "${ECHO_T}$BZIP2" >&6; }
6972 else
6973   { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6975 fi
6976
6977
6978 # Extract the first word of "cat", so it can be a program name with args.
6979 set dummy cat; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_CAT+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   case $CAT in
6986   [\\/]* | ?:[\\/]*)
6987   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6988   ;;
6989   *)
6990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995   for ac_exec_ext in '' $ac_executable_extensions; do
6996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005   ;;
7006 esac
7007 fi
7008 CAT=$ac_cv_path_CAT
7009 if test -n "$CAT"; then
7010   { echo "$as_me:$LINENO: result: $CAT" >&5
7011 echo "${ECHO_T}$CAT" >&6; }
7012 else
7013   { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7015 fi
7016
7017
7018 # Extract the first word of "doxygen", so it can be a program name with args.
7019 set dummy doxygen; ac_word=$2
7020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7022 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   case $DOXYGEN in
7026   [\\/]* | ?:[\\/]*)
7027   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7028   ;;
7029   *)
7030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035   for ac_exec_ext in '' $ac_executable_extensions; do
7036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7037     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039     break 2
7040   fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045   ;;
7046 esac
7047 fi
7048 DOXYGEN=$ac_cv_path_DOXYGEN
7049 if test -n "$DOXYGEN"; then
7050   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7051 echo "${ECHO_T}$DOXYGEN" >&6; }
7052 else
7053   { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7056
7057
7058 # Extract the first word of "groff", so it can be a program name with args.
7059 set dummy groff; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_path_GROFF+set}" = set; then
7063   echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065   case $GROFF in
7066   [\\/]* | ?:[\\/]*)
7067   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7068   ;;
7069   *)
7070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075   for ac_exec_ext in '' $ac_executable_extensions; do
7076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7077     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082 done
7083 IFS=$as_save_IFS
7084
7085   ;;
7086 esac
7087 fi
7088 GROFF=$ac_cv_path_GROFF
7089 if test -n "$GROFF"; then
7090   { echo "$as_me:$LINENO: result: $GROFF" >&5
7091 echo "${ECHO_T}$GROFF" >&6; }
7092 else
7093   { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7095 fi
7096
7097
7098 # Extract the first word of "gzip", so it can be a program name with args.
7099 set dummy gzip; ac_word=$2
7100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   case $GZIPBIN in
7106   [\\/]* | ?:[\\/]*)
7107   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7108   ;;
7109   *)
7110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115   for ac_exec_ext in '' $ac_executable_extensions; do
7116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7117     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122 done
7123 IFS=$as_save_IFS
7124
7125   ;;
7126 esac
7127 fi
7128 GZIPBIN=$ac_cv_path_GZIPBIN
7129 if test -n "$GZIPBIN"; then
7130   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7131 echo "${ECHO_T}$GZIPBIN" >&6; }
7132 else
7133   { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7135 fi
7136
7137
7138 # Extract the first word of "pdfroff", so it can be a program name with args.
7139 set dummy pdfroff; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_path_PDFROFF+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   case $PDFROFF in
7146   [\\/]* | ?:[\\/]*)
7147   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7148   ;;
7149   *)
7150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153   IFS=$as_save_IFS
7154   test -z "$as_dir" && as_dir=.
7155   for ac_exec_ext in '' $ac_executable_extensions; do
7156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7157     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159     break 2
7160   fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165   ;;
7166 esac
7167 fi
7168 PDFROFF=$ac_cv_path_PDFROFF
7169 if test -n "$PDFROFF"; then
7170   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7171 echo "${ECHO_T}$PDFROFF" >&6; }
7172 else
7173   { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7175 fi
7176
7177
7178 # Extract the first word of "zip", so it can be a program name with args.
7179 set dummy zip; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_path_ZIP+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   case $ZIP in
7186   [\\/]* | ?:[\\/]*)
7187   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7188   ;;
7189   *)
7190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195   for ac_exec_ext in '' $ac_executable_extensions; do
7196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7197     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205   ;;
7206 esac
7207 fi
7208 ZIP=$ac_cv_path_ZIP
7209 if test -n "$ZIP"; then
7210   { echo "$as_me:$LINENO: result: $ZIP" >&5
7211 echo "${ECHO_T}$ZIP" >&6; }
7212 else
7213   { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7215 fi
7216
7217
7218 # Extract the first word of "go", so it can be a program name with args.
7219 set dummy go; ac_word=$2
7220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222 if test "${ac_cv_path_GO+set}" = set; then
7223   echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225   case $GO in
7226   [\\/]* | ?:[\\/]*)
7227   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7228   ;;
7229   *)
7230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235   for ac_exec_ext in '' $ac_executable_extensions; do
7236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7237     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242 done
7243 IFS=$as_save_IFS
7244
7245   ;;
7246 esac
7247 fi
7248 GO=$ac_cv_path_GO
7249 if test -n "$GO"; then
7250   { echo "$as_me:$LINENO: result: $GO" >&5
7251 echo "${ECHO_T}$GO" >&6; }
7252 else
7253   { echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6; }
7255 fi
7256
7257
7258 for ac_prog in ocamlfind
7259 do
7260   # Extract the first word of "$ac_prog", so it can be a program name with args.
7261 set dummy $ac_prog; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   case $OCAMLFIND in
7268   [\\/]* | ?:[\\/]*)
7269   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7270   ;;
7271   *)
7272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287   ;;
7288 esac
7289 fi
7290 OCAMLFIND=$ac_cv_path_OCAMLFIND
7291 if test -n "$OCAMLFIND"; then
7292   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7293 echo "${ECHO_T}$OCAMLFIND" >&6; }
7294 else
7295   { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7297 fi
7298
7299
7300   test -n "$OCAMLFIND" && break
7301 done
7302
7303 for ac_prog in gas as
7304 do
7305   # Extract the first word of "$ac_prog", so it can be a program name with args.
7306 set dummy $ac_prog; ac_word=$2
7307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7309 if test "${ac_cv_path_GAS+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   case $GAS in
7313   [\\/]* | ?:[\\/]*)
7314   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7315   ;;
7316   *)
7317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322   for ac_exec_ext in '' $ac_executable_extensions; do
7323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329 done
7330 IFS=$as_save_IFS
7331
7332   ;;
7333 esac
7334 fi
7335 GAS=$ac_cv_path_GAS
7336 if test -n "$GAS"; then
7337   { echo "$as_me:$LINENO: result: $GAS" >&5
7338 echo "${ECHO_T}$GAS" >&6; }
7339 else
7340   { echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6; }
7342 fi
7343
7344
7345   test -n "$GAS" && break
7346 done
7347
7348
7349 { echo "$as_me:$LINENO: checking for linker version" >&5
7350 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7351 if test "${llvm_cv_link_version+set}" = set; then
7352   echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354
7355    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7356
7357    # Check for ld64.
7358    if (echo "$version_string" | grep -q "ld64"); then
7359      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7360    else
7361      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7362    fi
7363
7364 fi
7365 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7366 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7367
7368 cat >>confdefs.h <<_ACEOF
7369 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7370 _ACEOF
7371
7372
7373
7374
7375 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7376 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7377 if test "${llvm_cv_link_use_r+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380    ac_ext=c
7381 ac_cpp='$CPP $CPPFLAGS'
7382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7385
7386   oldcflags="$CFLAGS"
7387   CFLAGS="$CFLAGS -Wl,-R."
7388   cat >conftest.$ac_ext <<_ACEOF
7389 /* confdefs.h.  */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h.  */
7394
7395 int
7396 main ()
7397 {
7398
7399   ;
7400   return 0;
7401 }
7402 _ACEOF
7403 rm -f conftest.$ac_objext conftest$ac_exeext
7404 if { (ac_try="$ac_link"
7405 case "(($ac_try" in
7406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407   *) ac_try_echo=$ac_try;;
7408 esac
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410   (eval "$ac_link") 2>conftest.er1
7411   ac_status=$?
7412   grep -v '^ *+' conftest.er1 >conftest.err
7413   rm -f conftest.er1
7414   cat conftest.err >&5
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } &&
7417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7418   { (case "(($ac_try" in
7419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420   *) ac_try_echo=$ac_try;;
7421 esac
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423   (eval "$ac_try") 2>&5
7424   ac_status=$?
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); }; } &&
7427          { ac_try='test -s conftest$ac_exeext'
7428   { (case "(($ac_try" in
7429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430   *) ac_try_echo=$ac_try;;
7431 esac
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433   (eval "$ac_try") 2>&5
7434   ac_status=$?
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); }; }; then
7437   llvm_cv_link_use_r=yes
7438 else
7439   echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442         llvm_cv_link_use_r=no
7443 fi
7444
7445 rm -f core conftest.err conftest.$ac_objext \
7446       conftest$ac_exeext conftest.$ac_ext
7447   CFLAGS="$oldcflags"
7448   ac_ext=c
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7453
7454
7455 fi
7456 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7457 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7458 if test "$llvm_cv_link_use_r" = yes ; then
7459
7460 cat >>confdefs.h <<\_ACEOF
7461 #define HAVE_LINK_R 1
7462 _ACEOF
7463
7464   fi
7465
7466
7467 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7468 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7469 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472    ac_ext=c
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478   oldcflags="$CFLAGS"
7479   CFLAGS="$CFLAGS -rdynamic"
7480   cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h.  */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h.  */
7486
7487 int
7488 main ()
7489 {
7490
7491   ;
7492   return 0;
7493 }
7494 _ACEOF
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (ac_try="$ac_link"
7497 case "(($ac_try" in
7498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499   *) ac_try_echo=$ac_try;;
7500 esac
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502   (eval "$ac_link") 2>conftest.er1
7503   ac_status=$?
7504   grep -v '^ *+' conftest.er1 >conftest.err
7505   rm -f conftest.er1
7506   cat conftest.err >&5
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } &&
7509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7510   { (case "(($ac_try" in
7511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512   *) ac_try_echo=$ac_try;;
7513 esac
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515   (eval "$ac_try") 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; } &&
7519          { ac_try='test -s conftest$ac_exeext'
7520   { (case "(($ac_try" in
7521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522   *) ac_try_echo=$ac_try;;
7523 esac
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525   (eval "$ac_try") 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; }; then
7529   llvm_cv_link_use_export_dynamic=yes
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534         llvm_cv_link_use_export_dynamic=no
7535 fi
7536
7537 rm -f core conftest.err conftest.$ac_objext \
7538       conftest$ac_exeext conftest.$ac_ext
7539   CFLAGS="$oldcflags"
7540   ac_ext=c
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545
7546
7547 fi
7548 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7549 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7550 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7551
7552 cat >>confdefs.h <<\_ACEOF
7553 #define HAVE_LINK_EXPORT_DYNAMIC 1
7554 _ACEOF
7555
7556   fi
7557
7558
7559 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7560 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7561 if test "${llvm_cv_link_use_version_script+set}" = set; then
7562   echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564    ac_ext=c
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569
7570   oldcflags="$CFLAGS"
7571
7572   # The following code is from the autoconf manual,
7573   # "11.13: Limitations of Usual Tools".
7574   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7575   # Use mktemp if possible; otherwise fall back on mkdir,
7576   # with $RANDOM to make collisions less likely.
7577   : ${TMPDIR=/tmp}
7578   {
7579     tmp=`
7580       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7581     ` &&
7582     test -n "$tmp" && test -d "$tmp"
7583   } || {
7584     tmp=$TMPDIR/foo$$-$RANDOM
7585     (umask 077 && mkdir "$tmp")
7586   } || exit $?
7587
7588   echo "{" > "$tmp/export.map"
7589   echo "  global: main;" >> "$tmp/export.map"
7590   echo "  local: *;" >> "$tmp/export.map"
7591   echo "};" >> "$tmp/export.map"
7592
7593   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7594   cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h.  */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h.  */
7600
7601 int
7602 main ()
7603 {
7604
7605   ;
7606   return 0;
7607 }
7608 _ACEOF
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (ac_try="$ac_link"
7611 case "(($ac_try" in
7612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613   *) ac_try_echo=$ac_try;;
7614 esac
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616   (eval "$ac_link") 2>conftest.er1
7617   ac_status=$?
7618   grep -v '^ *+' conftest.er1 >conftest.err
7619   rm -f conftest.er1
7620   cat conftest.err >&5
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); } &&
7623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7624   { (case "(($ac_try" in
7625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626   *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629   (eval "$ac_try") 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; } &&
7633          { ac_try='test -s conftest$ac_exeext'
7634   { (case "(($ac_try" in
7635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636   *) ac_try_echo=$ac_try;;
7637 esac
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639   (eval "$ac_try") 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }; }; then
7643   llvm_cv_link_use_version_script=yes
7644 else
7645   echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648         llvm_cv_link_use_version_script=no
7649 fi
7650
7651 rm -f core conftest.err conftest.$ac_objext \
7652       conftest$ac_exeext conftest.$ac_ext
7653   rm "$tmp/export.map"
7654   rmdir "$tmp"
7655   CFLAGS="$oldcflags"
7656   ac_ext=c
7657 ac_cpp='$CPP $CPPFLAGS'
7658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661
7662
7663 fi
7664 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7665 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7666 if test "$llvm_cv_link_use_version_script" = yes ; then
7667   HAVE_LINK_VERSION_SCRIPT=1
7668
7669   fi
7670
7671
7672
7673 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7674 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_GREP+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   # Extract the first word of "grep ggrep" to use in msg output
7679 if test -z "$GREP"; then
7680 set dummy grep ggrep; ac_prog_name=$2
7681 if test "${ac_cv_path_GREP+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   ac_path_GREP_found=false
7685 # Loop through the user's path and test for each of PROGNAME-LIST
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7688 do
7689   IFS=$as_save_IFS
7690   test -z "$as_dir" && as_dir=.
7691   for ac_prog in grep ggrep; do
7692   for ac_exec_ext in '' $ac_executable_extensions; do
7693     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7694     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7695     # Check for GNU ac_path_GREP and select it if it is found.
7696   # Check for GNU $ac_path_GREP
7697 case `"$ac_path_GREP" --version 2>&1` in
7698 *GNU*)
7699   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7700 *)
7701   ac_count=0
7702   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7703   while :
7704   do
7705     cat "conftest.in" "conftest.in" >"conftest.tmp"
7706     mv "conftest.tmp" "conftest.in"
7707     cp "conftest.in" "conftest.nl"
7708     echo 'GREP' >> "conftest.nl"
7709     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7710     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7711     ac_count=`expr $ac_count + 1`
7712     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7713       # Best one so far, save it but keep looking for a better one
7714       ac_cv_path_GREP="$ac_path_GREP"
7715       ac_path_GREP_max=$ac_count
7716     fi
7717     # 10*(2^10) chars as input seems more than enough
7718     test $ac_count -gt 10 && break
7719   done
7720   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7721 esac
7722
7723
7724     $ac_path_GREP_found && break 3
7725   done
7726 done
7727
7728 done
7729 IFS=$as_save_IFS
7730
7731
7732 fi
7733
7734 GREP="$ac_cv_path_GREP"
7735 if test -z "$GREP"; then
7736   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7737 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7738    { (exit 1); exit 1; }; }
7739 fi
7740
7741 else
7742   ac_cv_path_GREP=$GREP
7743 fi
7744
7745
7746 fi
7747 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7748 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7749  GREP="$ac_cv_path_GREP"
7750
7751
7752 { echo "$as_me:$LINENO: checking for egrep" >&5
7753 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7754 if test "${ac_cv_path_EGREP+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7758    then ac_cv_path_EGREP="$GREP -E"
7759    else
7760      # Extract the first word of "egrep" to use in msg output
7761 if test -z "$EGREP"; then
7762 set dummy egrep; ac_prog_name=$2
7763 if test "${ac_cv_path_EGREP+set}" = set; then
7764   echo $ECHO_N "(cached) $ECHO_C" >&6
7765 else
7766   ac_path_EGREP_found=false
7767 # Loop through the user's path and test for each of PROGNAME-LIST
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7770 do
7771   IFS=$as_save_IFS
7772   test -z "$as_dir" && as_dir=.
7773   for ac_prog in egrep; do
7774   for ac_exec_ext in '' $ac_executable_extensions; do
7775     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7776     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7777     # Check for GNU ac_path_EGREP and select it if it is found.
7778   # Check for GNU $ac_path_EGREP
7779 case `"$ac_path_EGREP" --version 2>&1` in
7780 *GNU*)
7781   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7782 *)
7783   ac_count=0
7784   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7785   while :
7786   do
7787     cat "conftest.in" "conftest.in" >"conftest.tmp"
7788     mv "conftest.tmp" "conftest.in"
7789     cp "conftest.in" "conftest.nl"
7790     echo 'EGREP' >> "conftest.nl"
7791     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7792     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7793     ac_count=`expr $ac_count + 1`
7794     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7795       # Best one so far, save it but keep looking for a better one
7796       ac_cv_path_EGREP="$ac_path_EGREP"
7797       ac_path_EGREP_max=$ac_count
7798     fi
7799     # 10*(2^10) chars as input seems more than enough
7800     test $ac_count -gt 10 && break
7801   done
7802   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7803 esac
7804
7805
7806     $ac_path_EGREP_found && break 3
7807   done
7808 done
7809
7810 done
7811 IFS=$as_save_IFS
7812
7813
7814 fi
7815
7816 EGREP="$ac_cv_path_EGREP"
7817 if test -z "$EGREP"; then
7818   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7819 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7820    { (exit 1); exit 1; }; }
7821 fi
7822
7823 else
7824   ac_cv_path_EGREP=$EGREP
7825 fi
7826
7827
7828    fi
7829 fi
7830 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7831 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7832  EGREP="$ac_cv_path_EGREP"
7833
7834
7835 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7837 if test "${ac_cv_header_stdc+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840   cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h.  */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h.  */
7846 #include <stdlib.h>
7847 #include <stdarg.h>
7848 #include <string.h>
7849 #include <float.h>
7850
7851 int
7852 main ()
7853 {
7854
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7861 case "(($ac_try" in
7862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863   *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866   (eval "$ac_compile") 2>conftest.er1
7867   ac_status=$?
7868   grep -v '^ *+' conftest.er1 >conftest.err
7869   rm -f conftest.er1
7870   cat conftest.err >&5
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); } &&
7873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874   { (case "(($ac_try" in
7875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876   *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879   (eval "$ac_try") 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); }; } &&
7883          { ac_try='test -s conftest.$ac_objext'
7884   { (case "(($ac_try" in
7885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886   *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889   (eval "$ac_try") 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; }; then
7893   ac_cv_header_stdc=yes
7894 else
7895   echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898         ac_cv_header_stdc=no
7899 fi
7900
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902
7903 if test $ac_cv_header_stdc = yes; then
7904   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7905   cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h.  */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h.  */
7911 #include <string.h>
7912
7913 _ACEOF
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915   $EGREP "memchr" >/dev/null 2>&1; then
7916   :
7917 else
7918   ac_cv_header_stdc=no
7919 fi
7920 rm -f conftest*
7921
7922 fi
7923
7924 if test $ac_cv_header_stdc = yes; then
7925   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7926   cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h.  */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h.  */
7932 #include <stdlib.h>
7933
7934 _ACEOF
7935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7936   $EGREP "free" >/dev/null 2>&1; then
7937   :
7938 else
7939   ac_cv_header_stdc=no
7940 fi
7941 rm -f conftest*
7942
7943 fi
7944
7945 if test $ac_cv_header_stdc = yes; then
7946   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7947   if test "$cross_compiling" = yes; then
7948   :
7949 else
7950   cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h.  */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h.  */
7956 #include <ctype.h>
7957 #include <stdlib.h>
7958 #if ((' ' & 0x0FF) == 0x020)
7959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7961 #else
7962 # define ISLOWER(c) \
7963                    (('a' <= (c) && (c) <= 'i') \
7964                      || ('j' <= (c) && (c) <= 'r') \
7965                      || ('s' <= (c) && (c) <= 'z'))
7966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7967 #endif
7968
7969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7970 int
7971 main ()
7972 {
7973   int i;
7974   for (i = 0; i < 256; i++)
7975     if (XOR (islower (i), ISLOWER (i))
7976         || toupper (i) != TOUPPER (i))
7977       return 2;
7978   return 0;
7979 }
7980 _ACEOF
7981 rm -f conftest$ac_exeext
7982 if { (ac_try="$ac_link"
7983 case "(($ac_try" in
7984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7985   *) ac_try_echo=$ac_try;;
7986 esac
7987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7988   (eval "$ac_link") 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7992   { (case "(($ac_try" in
7993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994   *) ac_try_echo=$ac_try;;
7995 esac
7996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997   (eval "$ac_try") 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; }; then
8001   :
8002 else
8003   echo "$as_me: program exited with status $ac_status" >&5
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007 ( exit $ac_status )
8008 ac_cv_header_stdc=no
8009 fi
8010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8011 fi
8012
8013
8014 fi
8015 fi
8016 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8017 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8018 if test $ac_cv_header_stdc = yes; then
8019
8020 cat >>confdefs.h <<\_ACEOF
8021 #define STDC_HEADERS 1
8022 _ACEOF
8023
8024 fi
8025
8026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8037                   inttypes.h stdint.h unistd.h
8038 do
8039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8043   echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045   cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h.  */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h.  */
8051 $ac_includes_default
8052
8053 #include <$ac_header>
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (ac_try="$ac_compile"
8057 case "(($ac_try" in
8058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059   *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062   (eval "$ac_compile") 2>conftest.er1
8063   ac_status=$?
8064   grep -v '^ *+' conftest.er1 >conftest.err
8065   rm -f conftest.er1
8066   cat conftest.err >&5
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); } &&
8069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8070   { (case "(($ac_try" in
8071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072   *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075   (eval "$ac_try") 2>&5
8076   ac_status=$?
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); }; } &&
8079          { ac_try='test -s conftest.$ac_objext'
8080   { (case "(($ac_try" in
8081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082   *) ac_try_echo=$ac_try;;
8083 esac
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085   (eval "$ac_try") 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   eval "$as_ac_Header=yes"
8090 else
8091   echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094         eval "$as_ac_Header=no"
8095 fi
8096
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 fi
8099 ac_res=`eval echo '${'$as_ac_Header'}'`
8100                { echo "$as_me:$LINENO: result: $ac_res" >&5
8101 echo "${ECHO_T}$ac_res" >&6; }
8102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8103   cat >>confdefs.h <<_ACEOF
8104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8105 _ACEOF
8106
8107 fi
8108
8109 done
8110
8111
8112
8113 for ac_header in errno.h
8114 do
8115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8117   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8120   echo $ECHO_N "(cached) $ECHO_C" >&6
8121 fi
8122 ac_res=`eval echo '${'$as_ac_Header'}'`
8123                { echo "$as_me:$LINENO: result: $ac_res" >&5
8124 echo "${ECHO_T}$ac_res" >&6; }
8125 else
8126   # Is the header compilable?
8127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h.  */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h.  */
8135 $ac_includes_default
8136 #include <$ac_header>
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8140 case "(($ac_try" in
8141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142   *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145   (eval "$ac_compile") 2>conftest.er1
8146   ac_status=$?
8147   grep -v '^ *+' conftest.er1 >conftest.err
8148   rm -f conftest.er1
8149   cat conftest.err >&5
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); } &&
8152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8153   { (case "(($ac_try" in
8154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155   *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158   (eval "$ac_try") 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; } &&
8162          { ac_try='test -s conftest.$ac_objext'
8163   { (case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_try") 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   ac_header_compiler=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177         ac_header_compiler=no
8178 fi
8179
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8182 echo "${ECHO_T}$ac_header_compiler" >&6; }
8183
8184 # Is the header present?
8185 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h.  */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h.  */
8193 #include <$ac_header>
8194 _ACEOF
8195 if { (ac_try="$ac_cpp conftest.$ac_ext"
8196 case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } >/dev/null; then
8208   if test -s conftest.err; then
8209     ac_cpp_err=$ac_c_preproc_warn_flag
8210     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8211   else
8212     ac_cpp_err=
8213   fi
8214 else
8215   ac_cpp_err=yes
8216 fi
8217 if test -z "$ac_cpp_err"; then
8218   ac_header_preproc=yes
8219 else
8220   echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8222
8223   ac_header_preproc=no
8224 fi
8225
8226 rm -f conftest.err conftest.$ac_ext
8227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8228 echo "${ECHO_T}$ac_header_preproc" >&6; }
8229
8230 # So?  What about this header?
8231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8232   yes:no: )
8233     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8237     ac_header_preproc=yes
8238     ;;
8239   no:yes:* )
8240     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8242     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8243 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8244     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8246     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8247 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8250     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8252     ( cat <<\_ASBOX
8253 ## ------------------------------------ ##
8254 ## Report this to http://llvm.org/bugs/ ##
8255 ## ------------------------------------ ##
8256 _ASBOX
8257      ) | sed "s/^/$as_me: WARNING:     /" >&2
8258     ;;
8259 esac
8260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   eval "$as_ac_Header=\$ac_header_preproc"
8266 fi
8267 ac_res=`eval echo '${'$as_ac_Header'}'`
8268                { echo "$as_me:$LINENO: result: $ac_res" >&5
8269 echo "${ECHO_T}$ac_res" >&6; }
8270
8271 fi
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273   cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 _ACEOF
8276
8277 fi
8278
8279 done
8280
8281
8282 case "$llvm_cv_os_type" in
8283   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8284   Darwin) llvm_shlib_ext=.dylib ;;
8285   *) llvm_shlib_ext=.so ;;
8286 esac
8287
8288
8289 cat >>confdefs.h <<_ACEOF
8290 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8291 _ACEOF
8292
8293
8294 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8295 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8296
8297 ICC=no
8298 IXX=no
8299 case $CC in
8300   icc*|icpc*)
8301     ICC=yes
8302     IXX=yes
8303     ;;
8304    *)
8305     ;;
8306 esac
8307
8308 if test "$GCC" != "yes" && test "$ICC" != "yes"
8309 then
8310   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8311 echo "$as_me: error: gcc|icc required but not found" >&2;}
8312    { (exit 1); exit 1; }; }
8313 fi
8314
8315 if test "$GXX" != "yes" && test "$IXX" != "yes"
8316 then
8317   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8318 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8319    { (exit 1); exit 1; }; }
8320 fi
8321
8322 if test "$GCC" = "yes"
8323 then
8324   cat >conftest.$ac_ext <<_ACEOF
8325
8326   /* confdefs.h.  */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h.  */
8331
8332     #if !defined(__GNUC__) || __GNUC__ < 3
8333     #error Unsupported GCC version
8334     #endif
8335
8336
8337 _ACEOF
8338 rm -f conftest.$ac_objext
8339 if { (ac_try="$ac_compile"
8340 case "(($ac_try" in
8341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342   *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345   (eval "$ac_compile") 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353   { (case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_try") 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; } &&
8362          { ac_try='test -s conftest.$ac_objext'
8363   { (case "(($ac_try" in
8364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365   *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368   (eval "$ac_try") 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   :
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8376
8377         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8378 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8379    { (exit 1); exit 1; }; }
8380 fi
8381
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 fi
8384
8385 if test -z "$llvm_cv_gnu_make_command"
8386 then
8387   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8388 echo "$as_me: error: GNU Make required but not found" >&2;}
8389    { (exit 1); exit 1; }; }
8390 fi
8391
8392 { echo "$as_me:$LINENO: result: ok" >&5
8393 echo "${ECHO_T}ok" >&6; }
8394
8395 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8396 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8397 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8398
8399 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8400
8401 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8402
8403
8404 NO_UNINITIALIZED=
8405 NO_MAYBE_UNINITIALIZED=
8406 if test "$GXX" = "yes"
8407 then
8408   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8409
8410         if test -z "$NO_MAYBE_UNINITIALIZED"
8411   then
8412     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8413
8414   fi
8415 fi
8416
8417 no_comment=
8418 llvm_cv_old_cxxflags="$CXXFLAGS"
8419 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8420 cat >conftest.$ac_ext <<_ACEOF
8421
8422   /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427 // Comment \o\
8428 // Another comment
8429 int main() { return 0; }
8430
8431
8432 _ACEOF
8433 rm -f conftest.$ac_objext
8434 if { (ac_try="$ac_compile"
8435 case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440   (eval "$ac_compile") 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448   { (case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_try") 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; } &&
8457          { ac_try='test -s conftest.$ac_objext'
8458   { (case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_try") 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467
8468   no_comment=-Wno-comment
8469
8470 else
8471   echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474
8475 fi
8476
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 NO_COMMENT=$no_comment
8479
8480 CXXFLAGS="$llvm_cv_old_cxxflags"
8481
8482 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8483 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8484
8485
8486 # Check whether --with-python was given.
8487 if test "${with_python+set}" = set; then
8488   withval=$with_python; PYTHON="$withval"
8489 fi
8490
8491
8492 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8493   { echo "$as_me:$LINENO: checking for python" >&5
8494 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8495   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8496 echo "${ECHO_T}user defined: $with_python" >&6; }
8497 else
8498   if test -n "$PYTHON" ; then
8499     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8500 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8501   fi
8502
8503   # Extract the first word of "python python2 python27", so it can be a program name with args.
8504 set dummy python python2 python27; ac_word=$2
8505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8507 if test "${ac_cv_path_PYTHON+set}" = set; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   case $PYTHON in
8511   [\\/]* | ?:[\\/]*)
8512   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8513   ;;
8514   *)
8515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 for as_dir in $PATH
8517 do
8518   IFS=$as_save_IFS
8519   test -z "$as_dir" && as_dir=.
8520   for ac_exec_ext in '' $ac_executable_extensions; do
8521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8522     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8524     break 2
8525   fi
8526 done
8527 done
8528 IFS=$as_save_IFS
8529
8530   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8531 echo "${ECHO_T}not found" >&6; }
8532                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8533 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8534    { (exit 1); exit 1; }; }"
8535   ;;
8536 esac
8537 fi
8538 PYTHON=$ac_cv_path_PYTHON
8539 if test -n "$PYTHON"; then
8540   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8541 echo "${ECHO_T}$PYTHON" >&6; }
8542 else
8543   { echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6; }
8545 fi
8546
8547
8548 fi
8549
8550 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8551 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8552 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8553 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8554 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8555 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8556 if test "$ac_python_version_major" -gt "2" || \
8557    (test "$ac_python_version_major" -eq "2" && \
8558     test "$ac_python_version_minor" -ge "7") ; then
8559   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8560 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8561 else
8562   { echo "$as_me:$LINENO: result: not found" >&5
8563 echo "${ECHO_T}not found" >&6; }
8564   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8565 See \`config.log' for more details." >&5
8566 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8567 See \`config.log' for more details." >&2;}
8568    { (exit 1); exit 1; }; }
8569 fi
8570
8571
8572
8573 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8574 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8575 if test "${ac_cv_lib_m_sin+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   ac_check_lib_save_LIBS=$LIBS
8579 LIBS="-lm  $LIBS"
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h.  */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h.  */
8586
8587 /* Override any GCC internal prototype to avoid an error.
8588    Use char because int might match the return type of a GCC
8589    builtin and then its argument prototype would still apply.  */
8590 #ifdef __cplusplus
8591 extern "C"
8592 #endif
8593 char sin ();
8594 int
8595 main ()
8596 {
8597 return sin ();
8598   ;
8599   return 0;
8600 }
8601 _ACEOF
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (ac_try="$ac_link"
8604 case "(($ac_try" in
8605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606   *) ac_try_echo=$ac_try;;
8607 esac
8608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609   (eval "$ac_link") 2>conftest.er1
8610   ac_status=$?
8611   grep -v '^ *+' conftest.er1 >conftest.err
8612   rm -f conftest.er1
8613   cat conftest.err >&5
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); } &&
8616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617   { (case "(($ac_try" in
8618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619   *) ac_try_echo=$ac_try;;
8620 esac
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622   (eval "$ac_try") 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; } &&
8626          { ac_try='test -s conftest$ac_exeext'
8627   { (case "(($ac_try" in
8628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629   *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632   (eval "$ac_try") 2>&5
8633   ac_status=$?
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); }; }; then
8636   ac_cv_lib_m_sin=yes
8637 else
8638   echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641         ac_cv_lib_m_sin=no
8642 fi
8643
8644 rm -f core conftest.err conftest.$ac_objext \
8645       conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8647 fi
8648 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8649 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8650 if test $ac_cv_lib_m_sin = yes; then
8651   cat >>confdefs.h <<_ACEOF
8652 #define HAVE_LIBM 1
8653 _ACEOF
8654
8655   LIBS="-lm $LIBS"
8656
8657 fi
8658
8659 if test "$llvm_cv_os_type" = "MingW" ; then
8660
8661 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8662 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8663 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8664   echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666   ac_check_lib_save_LIBS=$LIBS
8667 LIBS="-limagehlp  $LIBS"
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h.  */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h.  */
8674
8675
8676 int
8677 main ()
8678 {
8679 return main ();
8680   ;
8681   return 0;
8682 }
8683 _ACEOF
8684 rm -f conftest.$ac_objext conftest$ac_exeext
8685 if { (ac_try="$ac_link"
8686 case "(($ac_try" in
8687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688   *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691   (eval "$ac_link") 2>conftest.er1
8692   ac_status=$?
8693   grep -v '^ *+' conftest.er1 >conftest.err
8694   rm -f conftest.er1
8695   cat conftest.err >&5
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } &&
8698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8699   { (case "(($ac_try" in
8700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701   *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704   (eval "$ac_try") 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); }; } &&
8708          { ac_try='test -s conftest$ac_exeext'
8709   { (case "(($ac_try" in
8710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711   *) ac_try_echo=$ac_try;;
8712 esac
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714   (eval "$ac_try") 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); }; }; then
8718   ac_cv_lib_imagehlp_main=yes
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723         ac_cv_lib_imagehlp_main=no
8724 fi
8725
8726 rm -f core conftest.err conftest.$ac_objext \
8727       conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8729 fi
8730 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8731 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8732 if test $ac_cv_lib_imagehlp_main = yes; then
8733   cat >>confdefs.h <<_ACEOF
8734 #define HAVE_LIBIMAGEHLP 1
8735 _ACEOF
8736
8737   LIBS="-limagehlp $LIBS"
8738
8739 fi
8740
8741
8742 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8743 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8744 if test "${ac_cv_lib_ole32_main+set}" = set; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747   ac_check_lib_save_LIBS=$LIBS
8748 LIBS="-lole32  $LIBS"
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755
8756
8757 int
8758 main ()
8759 {
8760 return main ();
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (ac_try="$ac_link"
8767 case "(($ac_try" in
8768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769   *) ac_try_echo=$ac_try;;
8770 esac
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772   (eval "$ac_link") 2>conftest.er1
8773   ac_status=$?
8774   grep -v '^ *+' conftest.er1 >conftest.err
8775   rm -f conftest.er1
8776   cat conftest.err >&5
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); } &&
8779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8780   { (case "(($ac_try" in
8781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782   *) ac_try_echo=$ac_try;;
8783 esac
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785   (eval "$ac_try") 2>&5
8786   ac_status=$?
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); }; } &&
8789          { ac_try='test -s conftest$ac_exeext'
8790   { (case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_try") 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; }; then
8799   ac_cv_lib_ole32_main=yes
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804         ac_cv_lib_ole32_main=no
8805 fi
8806
8807 rm -f core conftest.err conftest.$ac_objext \
8808       conftest$ac_exeext conftest.$ac_ext
8809 LIBS=$ac_check_lib_save_LIBS
8810 fi
8811 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5
8812 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8813 if test $ac_cv_lib_ole32_main = yes; then
8814   cat >>confdefs.h <<_ACEOF
8815 #define HAVE_LIBOLE32 1
8816 _ACEOF
8817
8818   LIBS="-lole32 $LIBS"
8819
8820 fi
8821
8822
8823 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8824 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8825 if test "${ac_cv_lib_psapi_main+set}" = set; then
8826   echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828   ac_check_lib_save_LIBS=$LIBS
8829 LIBS="-lpsapi  $LIBS"
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h.  */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h.  */
8836
8837
8838 int
8839 main ()
8840 {
8841 return main ();
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8848 case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853   (eval "$ac_link") 2>conftest.er1
8854   ac_status=$?
8855   grep -v '^ *+' conftest.er1 >conftest.err
8856   rm -f conftest.er1
8857   cat conftest.err >&5
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } &&
8860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861   { (case "(($ac_try" in
8862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863   *) ac_try_echo=$ac_try;;
8864 esac
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866   (eval "$ac_try") 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); }; } &&
8870          { ac_try='test -s conftest$ac_exeext'
8871   { (case "(($ac_try" in
8872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873   *) ac_try_echo=$ac_try;;
8874 esac
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876   (eval "$ac_try") 2>&5
8877   ac_status=$?
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); }; }; then
8880   ac_cv_lib_psapi_main=yes
8881 else
8882   echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8884
8885         ac_cv_lib_psapi_main=no
8886 fi
8887
8888 rm -f core conftest.err conftest.$ac_objext \
8889       conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
8891 fi
8892 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8893 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8894 if test $ac_cv_lib_psapi_main = yes; then
8895   cat >>confdefs.h <<_ACEOF
8896 #define HAVE_LIBPSAPI 1
8897 _ACEOF
8898
8899   LIBS="-lpsapi $LIBS"
8900
8901 fi
8902
8903
8904 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8905 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8906 if test "${ac_cv_lib_shell32_main+set}" = set; then
8907   echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909   ac_check_lib_save_LIBS=$LIBS
8910 LIBS="-lshell32  $LIBS"
8911 cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h.  */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h.  */
8917
8918
8919 int
8920 main ()
8921 {
8922 return main ();
8923   ;
8924   return 0;
8925 }
8926 _ACEOF
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (ac_try="$ac_link"
8929 case "(($ac_try" in
8930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931   *) ac_try_echo=$ac_try;;
8932 esac
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934   (eval "$ac_link") 2>conftest.er1
8935   ac_status=$?
8936   grep -v '^ *+' conftest.er1 >conftest.err
8937   rm -f conftest.er1
8938   cat conftest.err >&5
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); } &&
8941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8942   { (case "(($ac_try" in
8943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944   *) ac_try_echo=$ac_try;;
8945 esac
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947   (eval "$ac_try") 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; } &&
8951          { ac_try='test -s conftest$ac_exeext'
8952   { (case "(($ac_try" in
8953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954   *) ac_try_echo=$ac_try;;
8955 esac
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957   (eval "$ac_try") 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; }; then
8961   ac_cv_lib_shell32_main=yes
8962 else
8963   echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8965
8966         ac_cv_lib_shell32_main=no
8967 fi
8968
8969 rm -f core conftest.err conftest.$ac_objext \
8970       conftest$ac_exeext conftest.$ac_ext
8971 LIBS=$ac_check_lib_save_LIBS
8972 fi
8973 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8974 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8975 if test $ac_cv_lib_shell32_main = yes; then
8976   cat >>confdefs.h <<_ACEOF
8977 #define HAVE_LIBSHELL32 1
8978 _ACEOF
8979
8980   LIBS="-lshell32 $LIBS"
8981
8982 fi
8983
8984 fi
8985
8986 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8987 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8988 if test "${ac_cv_search_dlopen+set}" = set; then
8989   echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991   ac_func_search_save_LIBS=$LIBS
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h.  */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h.  */
8998
8999 /* Override any GCC internal prototype to avoid an error.
9000    Use char because int might match the return type of a GCC
9001    builtin and then its argument prototype would still apply.  */
9002 #ifdef __cplusplus
9003 extern "C"
9004 #endif
9005 char dlopen ();
9006 int
9007 main ()
9008 {
9009 return dlopen ();
9010   ;
9011   return 0;
9012 }
9013 _ACEOF
9014 for ac_lib in '' dl; do
9015   if test -z "$ac_lib"; then
9016     ac_res="none required"
9017   else
9018     ac_res=-l$ac_lib
9019     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9020   fi
9021   rm -f conftest.$ac_objext conftest$ac_exeext
9022 if { (ac_try="$ac_link"
9023 case "(($ac_try" in
9024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025   *) ac_try_echo=$ac_try;;
9026 esac
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028   (eval "$ac_link") 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } &&
9035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9036   { (case "(($ac_try" in
9037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038   *) ac_try_echo=$ac_try;;
9039 esac
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041   (eval "$ac_try") 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; } &&
9045          { ac_try='test -s conftest$ac_exeext'
9046   { (case "(($ac_try" in
9047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048   *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051   (eval "$ac_try") 2>&5
9052   ac_status=$?
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); }; }; then
9055   ac_cv_search_dlopen=$ac_res
9056 else
9057   echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060
9061 fi
9062
9063 rm -f core conftest.err conftest.$ac_objext \
9064       conftest$ac_exeext
9065   if test "${ac_cv_search_dlopen+set}" = set; then
9066   break
9067 fi
9068 done
9069 if test "${ac_cv_search_dlopen+set}" = set; then
9070   :
9071 else
9072   ac_cv_search_dlopen=no
9073 fi
9074 rm conftest.$ac_ext
9075 LIBS=$ac_func_search_save_LIBS
9076 fi
9077 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9078 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9079 ac_res=$ac_cv_search_dlopen
9080 if test "$ac_res" != no; then
9081   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9082
9083
9084 cat >>confdefs.h <<\_ACEOF
9085 #define HAVE_DLOPEN 1
9086 _ACEOF
9087
9088 HAVE_DLOPEN='1'
9089
9090
9091 else
9092   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9093 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9094 fi
9095
9096
9097 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9098 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9099 if test "${ac_cv_search_clock_gettime+set}" = set; then
9100   echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102   ac_func_search_save_LIBS=$LIBS
9103 cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109
9110 /* Override any GCC internal prototype to avoid an error.
9111    Use char because int might match the return type of a GCC
9112    builtin and then its argument prototype would still apply.  */
9113 #ifdef __cplusplus
9114 extern "C"
9115 #endif
9116 char clock_gettime ();
9117 int
9118 main ()
9119 {
9120 return clock_gettime ();
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 for ac_lib in '' rt; do
9126   if test -z "$ac_lib"; then
9127     ac_res="none required"
9128   else
9129     ac_res=-l$ac_lib
9130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9131   fi
9132   rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (ac_try="$ac_link"
9134 case "(($ac_try" in
9135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136   *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139   (eval "$ac_link") 2>conftest.er1
9140   ac_status=$?
9141   grep -v '^ *+' conftest.er1 >conftest.err
9142   rm -f conftest.er1
9143   cat conftest.err >&5
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); } &&
9146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147   { (case "(($ac_try" in
9148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149   *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152   (eval "$ac_try") 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; } &&
9156          { ac_try='test -s conftest$ac_exeext'
9157   { (case "(($ac_try" in
9158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159   *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162   (eval "$ac_try") 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   ac_cv_search_clock_gettime=$ac_res
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171
9172 fi
9173
9174 rm -f core conftest.err conftest.$ac_objext \
9175       conftest$ac_exeext
9176   if test "${ac_cv_search_clock_gettime+set}" = set; then
9177   break
9178 fi
9179 done
9180 if test "${ac_cv_search_clock_gettime+set}" = set; then
9181   :
9182 else
9183   ac_cv_search_clock_gettime=no
9184 fi
9185 rm conftest.$ac_ext
9186 LIBS=$ac_func_search_save_LIBS
9187 fi
9188 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9189 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9190 ac_res=$ac_cv_search_clock_gettime
9191 if test "$ac_res" != no; then
9192   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9193
9194 fi
9195
9196
9197 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9198     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9199 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9200 if test "${ac_cv_search_setupterm+set}" = set; then
9201   echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203   ac_func_search_save_LIBS=$LIBS
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h.  */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h.  */
9210
9211 /* Override any GCC internal prototype to avoid an error.
9212    Use char because int might match the return type of a GCC
9213    builtin and then its argument prototype would still apply.  */
9214 #ifdef __cplusplus
9215 extern "C"
9216 #endif
9217 char setupterm ();
9218 int
9219 main ()
9220 {
9221 return setupterm ();
9222   ;
9223   return 0;
9224 }
9225 _ACEOF
9226 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9227   if test -z "$ac_lib"; then
9228     ac_res="none required"
9229   else
9230     ac_res=-l$ac_lib
9231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9232   fi
9233   rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (ac_try="$ac_link"
9235 case "(($ac_try" in
9236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237   *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240   (eval "$ac_link") 2>conftest.er1
9241   ac_status=$?
9242   grep -v '^ *+' conftest.er1 >conftest.err
9243   rm -f conftest.er1
9244   cat conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } &&
9247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9248   { (case "(($ac_try" in
9249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250   *) ac_try_echo=$ac_try;;
9251 esac
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253   (eval "$ac_try") 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); }; } &&
9257          { ac_try='test -s conftest$ac_exeext'
9258   { (case "(($ac_try" in
9259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260   *) ac_try_echo=$ac_try;;
9261 esac
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263   (eval "$ac_try") 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); }; }; then
9267   ac_cv_search_setupterm=$ac_res
9268 else
9269   echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272
9273 fi
9274
9275 rm -f core conftest.err conftest.$ac_objext \
9276       conftest$ac_exeext
9277   if test "${ac_cv_search_setupterm+set}" = set; then
9278   break
9279 fi
9280 done
9281 if test "${ac_cv_search_setupterm+set}" = set; then
9282   :
9283 else
9284   ac_cv_search_setupterm=no
9285 fi
9286 rm conftest.$ac_ext
9287 LIBS=$ac_func_search_save_LIBS
9288 fi
9289 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9290 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9291 ac_res=$ac_cv_search_setupterm
9292 if test "$ac_res" != no; then
9293   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9294
9295
9296 cat >>confdefs.h <<\_ACEOF
9297 #define HAVE_TERMINFO 1
9298 _ACEOF
9299
9300 HAVE_TERMINFO='1'
9301
9302
9303 fi
9304
9305 fi
9306
9307 if test "$llvm_cv_enable_libedit" = "yes" ; then
9308   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9309 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9310 if test "${ac_cv_search_el_init+set}" = set; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313   ac_func_search_save_LIBS=$LIBS
9314 cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320
9321 /* Override any GCC internal prototype to avoid an error.
9322    Use char because int might match the return type of a GCC
9323    builtin and then its argument prototype would still apply.  */
9324 #ifdef __cplusplus
9325 extern "C"
9326 #endif
9327 char el_init ();
9328 int
9329 main ()
9330 {
9331 return el_init ();
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 for ac_lib in '' edit; do
9337   if test -z "$ac_lib"; then
9338     ac_res="none required"
9339   else
9340     ac_res=-l$ac_lib
9341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9342   fi
9343   rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9345 case "(($ac_try" in
9346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347   *) ac_try_echo=$ac_try;;
9348 esac
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350   (eval "$ac_link") 2>conftest.er1
9351   ac_status=$?
9352   grep -v '^ *+' conftest.er1 >conftest.err
9353   rm -f conftest.er1
9354   cat conftest.err >&5
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } &&
9357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9358   { (case "(($ac_try" in
9359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360   *) ac_try_echo=$ac_try;;
9361 esac
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363   (eval "$ac_try") 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; } &&
9367          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9377   ac_cv_search_el_init=$ac_res
9378 else
9379   echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382
9383 fi
9384
9385 rm -f core conftest.err conftest.$ac_objext \
9386       conftest$ac_exeext
9387   if test "${ac_cv_search_el_init+set}" = set; then
9388   break
9389 fi
9390 done
9391 if test "${ac_cv_search_el_init+set}" = set; then
9392   :
9393 else
9394   ac_cv_search_el_init=no
9395 fi
9396 rm conftest.$ac_ext
9397 LIBS=$ac_func_search_save_LIBS
9398 fi
9399 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9400 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9401 ac_res=$ac_cv_search_el_init
9402 if test "$ac_res" != no; then
9403   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9404
9405 cat >>confdefs.h <<\_ACEOF
9406 #define HAVE_LIBEDIT 1
9407 _ACEOF
9408
9409 fi
9410
9411 fi
9412
9413 if test "$llvm_cv_enable_libffi" = "yes" ; then
9414   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9415 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9416 if test "${ac_cv_search_ffi_call+set}" = set; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   ac_func_search_save_LIBS=$LIBS
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h.  */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h.  */
9426
9427 /* Override any GCC internal prototype to avoid an error.
9428    Use char because int might match the return type of a GCC
9429    builtin and then its argument prototype would still apply.  */
9430 #ifdef __cplusplus
9431 extern "C"
9432 #endif
9433 char ffi_call ();
9434 int
9435 main ()
9436 {
9437 return ffi_call ();
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 for ac_lib in '' ffi; do
9443   if test -z "$ac_lib"; then
9444     ac_res="none required"
9445   else
9446     ac_res=-l$ac_lib
9447     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9448   fi
9449   rm -f conftest.$ac_objext conftest$ac_exeext
9450 if { (ac_try="$ac_link"
9451 case "(($ac_try" in
9452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453   *) ac_try_echo=$ac_try;;
9454 esac
9455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456   (eval "$ac_link") 2>conftest.er1
9457   ac_status=$?
9458   grep -v '^ *+' conftest.er1 >conftest.err
9459   rm -f conftest.er1
9460   cat conftest.err >&5
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } &&
9463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9470   ac_status=$?
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); }; } &&
9473          { ac_try='test -s conftest$ac_exeext'
9474   { (case "(($ac_try" in
9475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476   *) ac_try_echo=$ac_try;;
9477 esac
9478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479   (eval "$ac_try") 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); }; }; then
9483   ac_cv_search_ffi_call=$ac_res
9484 else
9485   echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9487
9488
9489 fi
9490
9491 rm -f core conftest.err conftest.$ac_objext \
9492       conftest$ac_exeext
9493   if test "${ac_cv_search_ffi_call+set}" = set; then
9494   break
9495 fi
9496 done
9497 if test "${ac_cv_search_ffi_call+set}" = set; then
9498   :
9499 else
9500   ac_cv_search_ffi_call=no
9501 fi
9502 rm conftest.$ac_ext
9503 LIBS=$ac_func_search_save_LIBS
9504 fi
9505 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9506 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9507 ac_res=$ac_cv_search_ffi_call
9508 if test "$ac_res" != no; then
9509   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9510
9511 cat >>confdefs.h <<\_ACEOF
9512 #define HAVE_FFI_CALL 1
9513 _ACEOF
9514
9515 else
9516   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9517 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9518    { (exit 1); exit 1; }; }
9519 fi
9520
9521 fi
9522
9523 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9524 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9525 if test "${ac_cv_search_mallinfo+set}" = set; then
9526   echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528   ac_func_search_save_LIBS=$LIBS
9529 cat >conftest.$ac_ext <<_ACEOF
9530 /* confdefs.h.  */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h.  */
9535
9536 /* Override any GCC internal prototype to avoid an error.
9537    Use char because int might match the return type of a GCC
9538    builtin and then its argument prototype would still apply.  */
9539 #ifdef __cplusplus
9540 extern "C"
9541 #endif
9542 char mallinfo ();
9543 int
9544 main ()
9545 {
9546 return mallinfo ();
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 for ac_lib in '' malloc; do
9552   if test -z "$ac_lib"; then
9553     ac_res="none required"
9554   else
9555     ac_res=-l$ac_lib
9556     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9557   fi
9558   rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (ac_try="$ac_link"
9560 case "(($ac_try" in
9561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562   *) ac_try_echo=$ac_try;;
9563 esac
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565   (eval "$ac_link") 2>conftest.er1
9566   ac_status=$?
9567   grep -v '^ *+' conftest.er1 >conftest.err
9568   rm -f conftest.er1
9569   cat conftest.err >&5
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } &&
9572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573   { (case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578   (eval "$ac_try") 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; } &&
9582          { ac_try='test -s conftest$ac_exeext'
9583   { (case "(($ac_try" in
9584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585   *) ac_try_echo=$ac_try;;
9586 esac
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588   (eval "$ac_try") 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; }; then
9592   ac_cv_search_mallinfo=$ac_res
9593 else
9594   echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597
9598 fi
9599
9600 rm -f core conftest.err conftest.$ac_objext \
9601       conftest$ac_exeext
9602   if test "${ac_cv_search_mallinfo+set}" = set; then
9603   break
9604 fi
9605 done
9606 if test "${ac_cv_search_mallinfo+set}" = set; then
9607   :
9608 else
9609   ac_cv_search_mallinfo=no
9610 fi
9611 rm conftest.$ac_ext
9612 LIBS=$ac_func_search_save_LIBS
9613 fi
9614 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9615 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9616 ac_res=$ac_cv_search_mallinfo
9617 if test "$ac_res" != no; then
9618   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9619
9620 cat >>confdefs.h <<\_ACEOF
9621 #define HAVE_MALLINFO 1
9622 _ACEOF
9623
9624 fi
9625
9626
9627 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9628
9629 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9630 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9632   echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634   ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-lpthread  $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h.  */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h.  */
9642
9643 /* Override any GCC internal prototype to avoid an error.
9644    Use char because int might match the return type of a GCC
9645    builtin and then its argument prototype would still apply.  */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char pthread_mutex_init ();
9650 int
9651 main ()
9652 {
9653 return pthread_mutex_init ();
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_link") 2>conftest.er1
9666   ac_status=$?
9667   grep -v '^ *+' conftest.er1 >conftest.err
9668   rm -f conftest.er1
9669   cat conftest.err >&5
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } &&
9672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673   { (case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678   (eval "$ac_try") 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; } &&
9682          { ac_try='test -s conftest$ac_exeext'
9683   { (case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688   (eval "$ac_try") 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; }; then
9692   ac_cv_lib_pthread_pthread_mutex_init=yes
9693 else
9694   echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697         ac_cv_lib_pthread_pthread_mutex_init=no
9698 fi
9699
9700 rm -f core conftest.err conftest.$ac_objext \
9701       conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9703 fi
9704 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9705 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9706 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9707   cat >>confdefs.h <<_ACEOF
9708 #define HAVE_LIBPTHREAD 1
9709 _ACEOF
9710
9711   LIBS="-lpthread $LIBS"
9712
9713 fi
9714
9715   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9716 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9717 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9718   echo $ECHO_N "(cached) $ECHO_C" >&6
9719 else
9720   ac_func_search_save_LIBS=$LIBS
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727
9728 /* Override any GCC internal prototype to avoid an error.
9729    Use char because int might match the return type of a GCC
9730    builtin and then its argument prototype would still apply.  */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 char pthread_mutex_lock ();
9735 int
9736 main ()
9737 {
9738 return pthread_mutex_lock ();
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 for ac_lib in '' pthread; do
9744   if test -z "$ac_lib"; then
9745     ac_res="none required"
9746   else
9747     ac_res=-l$ac_lib
9748     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9749   fi
9750   rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (ac_try="$ac_link"
9752 case "(($ac_try" in
9753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754   *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757   (eval "$ac_link") 2>conftest.er1
9758   ac_status=$?
9759   grep -v '^ *+' conftest.er1 >conftest.err
9760   rm -f conftest.er1
9761   cat conftest.err >&5
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); } &&
9764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9765   { (case "(($ac_try" in
9766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767   *) ac_try_echo=$ac_try;;
9768 esac
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770   (eval "$ac_try") 2>&5
9771   ac_status=$?
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); }; } &&
9774          { ac_try='test -s conftest$ac_exeext'
9775   { (case "(($ac_try" in
9776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777   *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780   (eval "$ac_try") 2>&5
9781   ac_status=$?
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); }; }; then
9784   ac_cv_search_pthread_mutex_lock=$ac_res
9785 else
9786   echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789
9790 fi
9791
9792 rm -f core conftest.err conftest.$ac_objext \
9793       conftest$ac_exeext
9794   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9795   break
9796 fi
9797 done
9798 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9799   :
9800 else
9801   ac_cv_search_pthread_mutex_lock=no
9802 fi
9803 rm conftest.$ac_ext
9804 LIBS=$ac_func_search_save_LIBS
9805 fi
9806 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9807 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9808 ac_res=$ac_cv_search_pthread_mutex_lock
9809 if test "$ac_res" != no; then
9810   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9811
9812 cat >>confdefs.h <<\_ACEOF
9813 #define HAVE_PTHREAD_MUTEX_LOCK 1
9814 _ACEOF
9815
9816 fi
9817
9818   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9819 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9820 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   ac_func_search_save_LIBS=$LIBS
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h.  */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h.  */
9830
9831 /* Override any GCC internal prototype to avoid an error.
9832    Use char because int might match the return type of a GCC
9833    builtin and then its argument prototype would still apply.  */
9834 #ifdef __cplusplus
9835 extern "C"
9836 #endif
9837 char pthread_rwlock_init ();
9838 int
9839 main ()
9840 {
9841 return pthread_rwlock_init ();
9842   ;
9843   return 0;
9844 }
9845 _ACEOF
9846 for ac_lib in '' pthread; do
9847   if test -z "$ac_lib"; then
9848     ac_res="none required"
9849   else
9850     ac_res=-l$ac_lib
9851     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9852   fi
9853   rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_link") 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868   { (case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_try") 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; } &&
9877          { ac_try='test -s conftest$ac_exeext'
9878   { (case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_try") 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; }; then
9887   ac_cv_search_pthread_rwlock_init=$ac_res
9888 else
9889   echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892
9893 fi
9894
9895 rm -f core conftest.err conftest.$ac_objext \
9896       conftest$ac_exeext
9897   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9898   break
9899 fi
9900 done
9901 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9902   :
9903 else
9904   ac_cv_search_pthread_rwlock_init=no
9905 fi
9906 rm conftest.$ac_ext
9907 LIBS=$ac_func_search_save_LIBS
9908 fi
9909 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9910 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9911 ac_res=$ac_cv_search_pthread_rwlock_init
9912 if test "$ac_res" != no; then
9913   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9914
9915 cat >>confdefs.h <<\_ACEOF
9916 #define HAVE_PTHREAD_RWLOCK_INIT 1
9917 _ACEOF
9918
9919 fi
9920
9921   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9922 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9923 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   ac_func_search_save_LIBS=$LIBS
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933
9934 /* Override any GCC internal prototype to avoid an error.
9935    Use char because int might match the return type of a GCC
9936    builtin and then its argument prototype would still apply.  */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char pthread_getspecific ();
9941 int
9942 main ()
9943 {
9944 return pthread_getspecific ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 for ac_lib in '' pthread; do
9950   if test -z "$ac_lib"; then
9951     ac_res="none required"
9952   else
9953     ac_res=-l$ac_lib
9954     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9955   fi
9956   rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (ac_try="$ac_link"
9958 case "(($ac_try" in
9959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960   *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963   (eval "$ac_link") 2>conftest.er1
9964   ac_status=$?
9965   grep -v '^ *+' conftest.er1 >conftest.err
9966   rm -f conftest.er1
9967   cat conftest.err >&5
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } &&
9970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9971   { (case "(($ac_try" in
9972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973   *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976   (eval "$ac_try") 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; } &&
9980          { ac_try='test -s conftest$ac_exeext'
9981   { (case "(($ac_try" in
9982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983   *) ac_try_echo=$ac_try;;
9984 esac
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986   (eval "$ac_try") 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; }; then
9990   ac_cv_search_pthread_getspecific=$ac_res
9991 else
9992   echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995
9996 fi
9997
9998 rm -f core conftest.err conftest.$ac_objext \
9999       conftest$ac_exeext
10000   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10001   break
10002 fi
10003 done
10004 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10005   :
10006 else
10007   ac_cv_search_pthread_getspecific=no
10008 fi
10009 rm conftest.$ac_ext
10010 LIBS=$ac_func_search_save_LIBS
10011 fi
10012 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10013 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10014 ac_res=$ac_cv_search_pthread_getspecific
10015 if test "$ac_res" != no; then
10016   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10017
10018 cat >>confdefs.h <<\_ACEOF
10019 #define HAVE_PTHREAD_GETSPECIFIC 1
10020 _ACEOF
10021
10022 fi
10023
10024 fi
10025
10026 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10027
10028 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10029 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10030 if test "${ac_cv_lib_z_compress2+set}" = set; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033   ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-lz  $LIBS"
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041
10042 /* Override any GCC internal prototype to avoid an error.
10043    Use char because int might match the return type of a GCC
10044    builtin and then its argument prototype would still apply.  */
10045 #ifdef __cplusplus
10046 extern "C"
10047 #endif
10048 char compress2 ();
10049 int
10050 main ()
10051 {
10052 return compress2 ();
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_link") 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } &&
10071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10072   { (case "(($ac_try" in
10073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074   *) ac_try_echo=$ac_try;;
10075 esac
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077   (eval "$ac_try") 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; } &&
10081          { ac_try='test -s conftest$ac_exeext'
10082   { (case "(($ac_try" in
10083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084   *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087   (eval "$ac_try") 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; }; then
10091   ac_cv_lib_z_compress2=yes
10092 else
10093   echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10095
10096         ac_cv_lib_z_compress2=no
10097 fi
10098
10099 rm -f core conftest.err conftest.$ac_objext \
10100       conftest$ac_exeext conftest.$ac_ext
10101 LIBS=$ac_check_lib_save_LIBS
10102 fi
10103 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10104 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10105 if test $ac_cv_lib_z_compress2 = yes; then
10106   cat >>confdefs.h <<_ACEOF
10107 #define HAVE_LIBZ 1
10108 _ACEOF
10109
10110   LIBS="-lz $LIBS"
10111
10112 fi
10113
10114 fi
10115
10116
10117 # Check whether --with-oprofile was given.
10118 if test "${with_oprofile+set}" = set; then
10119   withval=$with_oprofile;
10120       USE_OPROFILE=1
10121
10122       case "$withval" in
10123         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10124         no) llvm_cv_oppath=
10125             USE_OPROFILE=0
10126  ;;
10127         *) llvm_cv_oppath="${withval}/lib/oprofile"
10128            CPPFLAGS="-I${withval}/include";;
10129       esac
10130       case $llvm_cv_os_type in
10131         Linux)
10132           if test -n "$llvm_cv_oppath" ; then
10133             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10134                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10135 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10136 if test "${ac_cv_search_bfd_init+set}" = set; then
10137   echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139   ac_func_search_save_LIBS=$LIBS
10140 cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h.  */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h.  */
10146
10147 /* Override any GCC internal prototype to avoid an error.
10148    Use char because int might match the return type of a GCC
10149    builtin and then its argument prototype would still apply.  */
10150 #ifdef __cplusplus
10151 extern "C"
10152 #endif
10153 char bfd_init ();
10154 int
10155 main ()
10156 {
10157 return bfd_init ();
10158   ;
10159   return 0;
10160 }
10161 _ACEOF
10162 for ac_lib in '' bfd; do
10163   if test -z "$ac_lib"; then
10164     ac_res="none required"
10165   else
10166     ac_res=-l$ac_lib
10167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10168   fi
10169   rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (ac_try="$ac_link"
10171 case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176   (eval "$ac_link") 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } &&
10183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10184   { (case "(($ac_try" in
10185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186   *) ac_try_echo=$ac_try;;
10187 esac
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189   (eval "$ac_try") 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); }; } &&
10193          { ac_try='test -s conftest$ac_exeext'
10194   { (case "(($ac_try" in
10195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196   *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199   (eval "$ac_try") 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; }; then
10203   ac_cv_search_bfd_init=$ac_res
10204 else
10205   echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208
10209 fi
10210
10211 rm -f core conftest.err conftest.$ac_objext \
10212       conftest$ac_exeext
10213   if test "${ac_cv_search_bfd_init+set}" = set; then
10214   break
10215 fi
10216 done
10217 if test "${ac_cv_search_bfd_init+set}" = set; then
10218   :
10219 else
10220   ac_cv_search_bfd_init=no
10221 fi
10222 rm conftest.$ac_ext
10223 LIBS=$ac_func_search_save_LIBS
10224 fi
10225 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10226 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10227 ac_res=$ac_cv_search_bfd_init
10228 if test "$ac_res" != no; then
10229   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10230
10231 fi
10232
10233             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10234 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10235 if test "${ac_cv_search_op_open_agent+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   ac_func_search_save_LIBS=$LIBS
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h.  */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h.  */
10245
10246 /* Override any GCC internal prototype to avoid an error.
10247    Use char because int might match the return type of a GCC
10248    builtin and then its argument prototype would still apply.  */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char op_open_agent ();
10253 int
10254 main ()
10255 {
10256 return op_open_agent ();
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 for ac_lib in '' opagent; do
10262   if test -z "$ac_lib"; then
10263     ac_res="none required"
10264   else
10265     ac_res=-l$ac_lib
10266     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10267   fi
10268   rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275   (eval "$ac_link") 2>conftest.er1
10276   ac_status=$?
10277   grep -v '^ *+' conftest.er1 >conftest.err
10278   rm -f conftest.er1
10279   cat conftest.err >&5
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } &&
10282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; } &&
10292          { ac_try='test -s conftest$ac_exeext'
10293   { (case "(($ac_try" in
10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295   *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298   (eval "$ac_try") 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; }; then
10302   ac_cv_search_op_open_agent=$ac_res
10303 else
10304   echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10306
10307
10308 fi
10309
10310 rm -f core conftest.err conftest.$ac_objext \
10311       conftest$ac_exeext
10312   if test "${ac_cv_search_op_open_agent+set}" = set; then
10313   break
10314 fi
10315 done
10316 if test "${ac_cv_search_op_open_agent+set}" = set; then
10317   :
10318 else
10319   ac_cv_search_op_open_agent=no
10320 fi
10321 rm conftest.$ac_ext
10322 LIBS=$ac_func_search_save_LIBS
10323 fi
10324 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10325 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10326 ac_res=$ac_cv_search_op_open_agent
10327 if test "$ac_res" != no; then
10328   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10329
10330 else
10331
10332               echo "Error! You need to have libopagent around."
10333               exit 1
10334
10335 fi
10336
10337             if test "${ac_cv_header_opagent_h+set}" = set; then
10338   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10339 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10340 if test "${ac_cv_header_opagent_h+set}" = set; then
10341   echo $ECHO_N "(cached) $ECHO_C" >&6
10342 fi
10343 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10344 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10345 else
10346   # Is the header compilable?
10347 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10348 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h.  */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h.  */
10355 $ac_includes_default
10356 #include <opagent.h>
10357 _ACEOF
10358 rm -f conftest.$ac_objext
10359 if { (ac_try="$ac_compile"
10360 case "(($ac_try" in
10361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362   *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365   (eval "$ac_compile") 2>conftest.er1
10366   ac_status=$?
10367   grep -v '^ *+' conftest.er1 >conftest.err
10368   rm -f conftest.er1
10369   cat conftest.err >&5
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); } &&
10372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10373   { (case "(($ac_try" in
10374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375   *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378   (eval "$ac_try") 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); }; } &&
10382          { ac_try='test -s conftest.$ac_objext'
10383   { (case "(($ac_try" in
10384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385   *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388   (eval "$ac_try") 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; }; then
10392   ac_header_compiler=yes
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397         ac_header_compiler=no
10398 fi
10399
10400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10402 echo "${ECHO_T}$ac_header_compiler" >&6; }
10403
10404 # Is the header present?
10405 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10406 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10407 cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 #include <opagent.h>
10414 _ACEOF
10415 if { (ac_try="$ac_cpp conftest.$ac_ext"
10416 case "(($ac_try" in
10417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418   *) ac_try_echo=$ac_try;;
10419 esac
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10422   ac_status=$?
10423   grep -v '^ *+' conftest.er1 >conftest.err
10424   rm -f conftest.er1
10425   cat conftest.err >&5
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); } >/dev/null; then
10428   if test -s conftest.err; then
10429     ac_cpp_err=$ac_c_preproc_warn_flag
10430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10431   else
10432     ac_cpp_err=
10433   fi
10434 else
10435   ac_cpp_err=yes
10436 fi
10437 if test -z "$ac_cpp_err"; then
10438   ac_header_preproc=yes
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443   ac_header_preproc=no
10444 fi
10445
10446 rm -f conftest.err conftest.$ac_ext
10447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10448 echo "${ECHO_T}$ac_header_preproc" >&6; }
10449
10450 # So?  What about this header?
10451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10452   yes:no: )
10453     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10454 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10455     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10456 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10457     ac_header_preproc=yes
10458     ;;
10459   no:yes:* )
10460     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10461 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10462     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10463 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10464     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10465 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10466     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10467 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10468     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10469 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10470     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10471 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10472     ( cat <<\_ASBOX
10473 ## ------------------------------------ ##
10474 ## Report this to http://llvm.org/bugs/ ##
10475 ## ------------------------------------ ##
10476 _ASBOX
10477      ) | sed "s/^/$as_me: WARNING:     /" >&2
10478     ;;
10479 esac
10480 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10481 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10482 if test "${ac_cv_header_opagent_h+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485   ac_cv_header_opagent_h=$ac_header_preproc
10486 fi
10487 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10488 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10489
10490 fi
10491 if test $ac_cv_header_opagent_h = yes; then
10492   :
10493 else
10494
10495               echo "Error! You need to have opagent.h around."
10496               exit 1
10497
10498 fi
10499
10500
10501           fi ;;
10502         *)
10503           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10504 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10505    { (exit 1); exit 1; }; } ;;
10506       esac
10507
10508 else
10509
10510       USE_OPROFILE=0
10511
10512
10513 fi
10514
10515
10516 cat >>confdefs.h <<_ACEOF
10517 #define LLVM_USE_OPROFILE $USE_OPROFILE
10518 _ACEOF
10519
10520
10521
10522 # Check whether --with-intel-jitevents was given.
10523 if test "${with_intel_jitevents+set}" = set; then
10524   withval=$with_intel_jitevents;
10525        case "$withval" in
10526           yes) USE_INTEL_JITEVENTS=1
10527 ;;
10528           no)  USE_INTEL_JITEVENTS=0
10529 ;;
10530           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10531 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10532    { (exit 1); exit 1; }; };;
10533        esac
10534
10535       case $llvm_cv_os_type in
10536         Linux|Win32|Cygwin|MingW) ;;
10537         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10538 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10539    { (exit 1); exit 1; }; };;
10540       esac
10541
10542       case "$llvm_cv_target_arch" in
10543         x86|x86_64) ;;
10544         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10545 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10546    { (exit 1); exit 1; }; };;
10547       esac
10548
10549 else
10550
10551       USE_INTEL_JITEVENTS=0
10552
10553
10554 fi
10555
10556
10557 cat >>confdefs.h <<_ACEOF
10558 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10559 _ACEOF
10560
10561
10562 for ac_prog in xml2-config
10563 do
10564   # Extract the first word of "$ac_prog", so it can be a program name with args.
10565 set dummy $ac_prog; ac_word=$2
10566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10568 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10569   echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571   if test -n "$XML2CONFIG"; then
10572   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10573 else
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10576 do
10577   IFS=$as_save_IFS
10578   test -z "$as_dir" && as_dir=.
10579   for ac_exec_ext in '' $ac_executable_extensions; do
10580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10581     ac_cv_prog_XML2CONFIG="$ac_prog"
10582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583     break 2
10584   fi
10585 done
10586 done
10587 IFS=$as_save_IFS
10588
10589 fi
10590 fi
10591 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10592 if test -n "$XML2CONFIG"; then
10593   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10594 echo "${ECHO_T}$XML2CONFIG" >&6; }
10595 else
10596   { echo "$as_me:$LINENO: result: no" >&5
10597 echo "${ECHO_T}no" >&6; }
10598 fi
10599
10600
10601   test -n "$XML2CONFIG" && break
10602 done
10603
10604
10605 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10606 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10607 if test "x$XML2CONFIG" = "x"; then
10608  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10609 echo "${ECHO_T}xml2-config not found" >&6; }
10610 else
10611  LIBXML2_INC=`$XML2CONFIG --cflags`
10612  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10613 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10614  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10615 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10616 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10617   echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619   ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-lxml2  $LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h.  */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h.  */
10627
10628 /* Override any GCC internal prototype to avoid an error.
10629    Use char because int might match the return type of a GCC
10630    builtin and then its argument prototype would still apply.  */
10631 #ifdef __cplusplus
10632 extern "C"
10633 #endif
10634 char xmlReadFile ();
10635 int
10636 main ()
10637 {
10638 return xmlReadFile ();
10639   ;
10640   return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647   *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650   (eval "$ac_link") 2>conftest.er1
10651   ac_status=$?
10652   grep -v '^ *+' conftest.er1 >conftest.err
10653   rm -f conftest.er1
10654   cat conftest.err >&5
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); } &&
10657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10658   { (case "(($ac_try" in
10659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660   *) ac_try_echo=$ac_try;;
10661 esac
10662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663   (eval "$ac_try") 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); }; } &&
10667          { ac_try='test -s conftest$ac_exeext'
10668   { (case "(($ac_try" in
10669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670   *) ac_try_echo=$ac_try;;
10671 esac
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673   (eval "$ac_try") 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   ac_cv_lib_xml2_xmlReadFile=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682         ac_cv_lib_xml2_xmlReadFile=no
10683 fi
10684
10685 rm -f core conftest.err conftest.$ac_objext \
10686       conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10688 fi
10689 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10690 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10691 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10692
10693 cat >>confdefs.h <<\_ACEOF
10694 #define CLANG_HAVE_LIBXML 1
10695 _ACEOF
10696
10697                                 LIBXML2_LIBS="-lxml2"
10698 fi
10699
10700 fi
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710 ac_header_dirent=no
10711 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10712   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10713 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10714 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10716   echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718   cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h.  */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h.  */
10724 #include <sys/types.h>
10725 #include <$ac_hdr>
10726
10727 int
10728 main ()
10729 {
10730 if ((DIR *) 0)
10731 return 0;
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (ac_try="$ac_compile"
10738 case "(($ac_try" in
10739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740   *) ac_try_echo=$ac_try;;
10741 esac
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743   (eval "$ac_compile") 2>conftest.er1
10744   ac_status=$?
10745   grep -v '^ *+' conftest.er1 >conftest.err
10746   rm -f conftest.er1
10747   cat conftest.err >&5
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } &&
10750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751   { (case "(($ac_try" in
10752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753   *) ac_try_echo=$ac_try;;
10754 esac
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756   (eval "$ac_try") 2>&5
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); }; } &&
10760          { ac_try='test -s conftest.$ac_objext'
10761   { (case "(($ac_try" in
10762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763   *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766   (eval "$ac_try") 2>&5
10767   ac_status=$?
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); }; }; then
10770   eval "$as_ac_Header=yes"
10771 else
10772   echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775         eval "$as_ac_Header=no"
10776 fi
10777
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 fi
10780 ac_res=`eval echo '${'$as_ac_Header'}'`
10781                { echo "$as_me:$LINENO: result: $ac_res" >&5
10782 echo "${ECHO_T}$ac_res" >&6; }
10783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10784   cat >>confdefs.h <<_ACEOF
10785 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10786 _ACEOF
10787
10788 ac_header_dirent=$ac_hdr; break
10789 fi
10790
10791 done
10792 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10793 if test $ac_header_dirent = dirent.h; then
10794   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10795 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10796 if test "${ac_cv_search_opendir+set}" = set; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799   ac_func_search_save_LIBS=$LIBS
10800 cat >conftest.$ac_ext <<_ACEOF
10801 /* confdefs.h.  */
10802 _ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h.  */
10806
10807 /* Override any GCC internal prototype to avoid an error.
10808    Use char because int might match the return type of a GCC
10809    builtin and then its argument prototype would still apply.  */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 char opendir ();
10814 int
10815 main ()
10816 {
10817 return opendir ();
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 for ac_lib in '' dir; do
10823   if test -z "$ac_lib"; then
10824     ac_res="none required"
10825   else
10826     ac_res=-l$ac_lib
10827     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10828   fi
10829   rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (ac_try="$ac_link"
10831 case "(($ac_try" in
10832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833   *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836   (eval "$ac_link") 2>conftest.er1
10837   ac_status=$?
10838   grep -v '^ *+' conftest.er1 >conftest.err
10839   rm -f conftest.er1
10840   cat conftest.err >&5
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); } &&
10843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10844   { (case "(($ac_try" in
10845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846   *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849   (eval "$ac_try") 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }; } &&
10853          { ac_try='test -s conftest$ac_exeext'
10854   { (case "(($ac_try" in
10855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856   *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859   (eval "$ac_try") 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); }; }; then
10863   ac_cv_search_opendir=$ac_res
10864 else
10865   echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868
10869 fi
10870
10871 rm -f core conftest.err conftest.$ac_objext \
10872       conftest$ac_exeext
10873   if test "${ac_cv_search_opendir+set}" = set; then
10874   break
10875 fi
10876 done
10877 if test "${ac_cv_search_opendir+set}" = set; then
10878   :
10879 else
10880   ac_cv_search_opendir=no
10881 fi
10882 rm conftest.$ac_ext
10883 LIBS=$ac_func_search_save_LIBS
10884 fi
10885 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10886 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10887 ac_res=$ac_cv_search_opendir
10888 if test "$ac_res" != no; then
10889   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10890
10891 fi
10892
10893 else
10894   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10895 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10896 if test "${ac_cv_search_opendir+set}" = set; then
10897   echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899   ac_func_search_save_LIBS=$LIBS
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906
10907 /* Override any GCC internal prototype to avoid an error.
10908    Use char because int might match the return type of a GCC
10909    builtin and then its argument prototype would still apply.  */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char opendir ();
10914 int
10915 main ()
10916 {
10917 return opendir ();
10918   ;
10919   return 0;
10920 }
10921 _ACEOF
10922 for ac_lib in '' x; do
10923   if test -z "$ac_lib"; then
10924     ac_res="none required"
10925   else
10926     ac_res=-l$ac_lib
10927     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10928   fi
10929   rm -f conftest.$ac_objext conftest$ac_exeext
10930 if { (ac_try="$ac_link"
10931 case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_link") 2>conftest.er1
10937   ac_status=$?
10938   grep -v '^ *+' conftest.er1 >conftest.err
10939   rm -f conftest.er1
10940   cat conftest.err >&5
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); } &&
10943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10944   { (case "(($ac_try" in
10945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946   *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949   (eval "$ac_try") 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); }; } &&
10953          { ac_try='test -s conftest$ac_exeext'
10954   { (case "(($ac_try" in
10955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956   *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959   (eval "$ac_try") 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); }; }; then
10963   ac_cv_search_opendir=$ac_res
10964 else
10965   echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10967
10968
10969 fi
10970
10971 rm -f core conftest.err conftest.$ac_objext \
10972       conftest$ac_exeext
10973   if test "${ac_cv_search_opendir+set}" = set; then
10974   break
10975 fi
10976 done
10977 if test "${ac_cv_search_opendir+set}" = set; then
10978   :
10979 else
10980   ac_cv_search_opendir=no
10981 fi
10982 rm conftest.$ac_ext
10983 LIBS=$ac_func_search_save_LIBS
10984 fi
10985 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10986 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10987 ac_res=$ac_cv_search_opendir
10988 if test "$ac_res" != no; then
10989   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10990
10991 fi
10992
10993 fi
10994
10995 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10996 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10997 if test "${ac_cv_header_mmap_anon+set}" = set; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000    ac_ext=c
11001 ac_cpp='$CPP $CPPFLAGS'
11002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11005
11006   cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012 #include <sys/mman.h>
11013 #include <unistd.h>
11014 #include <fcntl.h>
11015 int
11016 main ()
11017 {
11018 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_compile") 2>conftest.er1
11031   ac_status=$?
11032   grep -v '^ *+' conftest.er1 >conftest.err
11033   rm -f conftest.er1
11034   cat conftest.err >&5
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } &&
11037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038   { (case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043   (eval "$ac_try") 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }; } &&
11047          { ac_try='test -s conftest.$ac_objext'
11048   { (case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053   (eval "$ac_try") 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; }; then
11057   ac_cv_header_mmap_anon=yes
11058 else
11059   echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062         ac_cv_header_mmap_anon=no
11063 fi
11064
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066   ac_ext=c
11067 ac_cpp='$CPP $CPPFLAGS'
11068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11071
11072
11073 fi
11074 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11075 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11076 if test "$ac_cv_header_mmap_anon" = yes; then
11077
11078 cat >>confdefs.h <<\_ACEOF
11079 #define HAVE_MMAP_ANONYMOUS 1
11080 _ACEOF
11081
11082 fi
11083
11084 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11085 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11086 if test "${ac_cv_header_stat_broken+set}" = set; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089   cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h.  */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h.  */
11095 #include <sys/types.h>
11096 #include <sys/stat.h>
11097
11098 #if defined S_ISBLK && defined S_IFDIR
11099 # if S_ISBLK (S_IFDIR)
11100 You lose.
11101 # endif
11102 #endif
11103
11104 #if defined S_ISBLK && defined S_IFCHR
11105 # if S_ISBLK (S_IFCHR)
11106 You lose.
11107 # endif
11108 #endif
11109
11110 #if defined S_ISLNK && defined S_IFREG
11111 # if S_ISLNK (S_IFREG)
11112 You lose.
11113 # endif
11114 #endif
11115
11116 #if defined S_ISSOCK && defined S_IFREG
11117 # if S_ISSOCK (S_IFREG)
11118 You lose.
11119 # endif
11120 #endif
11121
11122 _ACEOF
11123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11124   $EGREP "You lose" >/dev/null 2>&1; then
11125   ac_cv_header_stat_broken=yes
11126 else
11127   ac_cv_header_stat_broken=no
11128 fi
11129 rm -f conftest*
11130
11131 fi
11132 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11133 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11134 if test $ac_cv_header_stat_broken = yes; then
11135
11136 cat >>confdefs.h <<\_ACEOF
11137 #define STAT_MACROS_BROKEN 1
11138 _ACEOF
11139
11140 fi
11141
11142 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11143 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11144 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11145   echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147   cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h.  */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h.  */
11153 #include <sys/types.h>
11154 #include <sys/wait.h>
11155 #ifndef WEXITSTATUS
11156 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11157 #endif
11158 #ifndef WIFEXITED
11159 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11160 #endif
11161
11162 int
11163 main ()
11164 {
11165   int s;
11166   wait (&s);
11167   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11168   ;
11169   return 0;
11170 }
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_compile") 2>conftest.er1
11180   ac_status=$?
11181   grep -v '^ *+' conftest.er1 >conftest.err
11182   rm -f conftest.er1
11183   cat conftest.err >&5
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } &&
11186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11187   { (case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192   (eval "$ac_try") 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; } &&
11196          { ac_try='test -s conftest.$ac_objext'
11197   { (case "(($ac_try" in
11198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199   *) ac_try_echo=$ac_try;;
11200 esac
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202   (eval "$ac_try") 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; }; then
11206   ac_cv_header_sys_wait_h=yes
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211         ac_cv_header_sys_wait_h=no
11212 fi
11213
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 fi
11216 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11217 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11218 if test $ac_cv_header_sys_wait_h = yes; then
11219
11220 cat >>confdefs.h <<\_ACEOF
11221 #define HAVE_SYS_WAIT_H 1
11222 _ACEOF
11223
11224 fi
11225
11226 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11227 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11228 if test "${ac_cv_header_time+set}" = set; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 #include <sys/types.h>
11238 #include <sys/time.h>
11239 #include <time.h>
11240
11241 int
11242 main ()
11243 {
11244 if ((struct tm *) 0)
11245 return 0;
11246   ;
11247   return 0;
11248 }
11249 _ACEOF
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254   *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257   (eval "$ac_compile") 2>conftest.er1
11258   ac_status=$?
11259   grep -v '^ *+' conftest.er1 >conftest.err
11260   rm -f conftest.er1
11261   cat conftest.err >&5
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); } &&
11264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265   { (case "(($ac_try" in
11266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267   *) ac_try_echo=$ac_try;;
11268 esac
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270   (eval "$ac_try") 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); }; } &&
11274          { ac_try='test -s conftest.$ac_objext'
11275   { (case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_try") 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; }; then
11284   ac_cv_header_time=yes
11285 else
11286   echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11288
11289         ac_cv_header_time=no
11290 fi
11291
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 fi
11294 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11295 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11296 if test $ac_cv_header_time = yes; then
11297
11298 cat >>confdefs.h <<\_ACEOF
11299 #define TIME_WITH_SYS_TIME 1
11300 _ACEOF
11301
11302 fi
11303
11304
11305 ac_ext=cpp
11306 ac_cpp='$CXXCPP $CPPFLAGS'
11307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11310
11311
11312 for ac_header in cxxabi.h
11313 do
11314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h.  */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h.  */
11326 #include <stddef.h>
11327
11328
11329 #include <$ac_header>
11330 _ACEOF
11331 rm -f conftest.$ac_objext
11332 if { (ac_try="$ac_compile"
11333 case "(($ac_try" in
11334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335   *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338   (eval "$ac_compile") 2>conftest.er1
11339   ac_status=$?
11340   grep -v '^ *+' conftest.er1 >conftest.err
11341   rm -f conftest.er1
11342   cat conftest.err >&5
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); } &&
11345          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11346   { (case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_try") 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; } &&
11355          { ac_try='test -s conftest.$ac_objext'
11356   { (case "(($ac_try" in
11357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358   *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361   (eval "$ac_try") 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); }; }; then
11365   eval "$as_ac_Header=yes"
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370         eval "$as_ac_Header=no"
11371 fi
11372
11373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 fi
11375 ac_res=`eval echo '${'$as_ac_Header'}'`
11376                { echo "$as_me:$LINENO: result: $ac_res" >&5
11377 echo "${ECHO_T}$ac_res" >&6; }
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 ac_ext=c
11388 ac_cpp='$CPP $CPPFLAGS'
11389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11392
11393
11394
11395
11396
11397
11398
11399 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11400 do
11401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 fi
11408 ac_res=`eval echo '${'$as_ac_Header'}'`
11409                { echo "$as_me:$LINENO: result: $ac_res" >&5
11410 echo "${ECHO_T}$ac_res" >&6; }
11411 else
11412   # Is the header compilable?
11413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 $ac_includes_default
11422 #include <$ac_header>
11423 _ACEOF
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_compile") 2>conftest.er1
11432   ac_status=$?
11433   grep -v '^ *+' conftest.er1 >conftest.err
11434   rm -f conftest.er1
11435   cat conftest.err >&5
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } &&
11438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439   { (case "(($ac_try" in
11440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441   *) ac_try_echo=$ac_try;;
11442 esac
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444   (eval "$ac_try") 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; } &&
11448          { ac_try='test -s conftest.$ac_objext'
11449   { (case "(($ac_try" in
11450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451   *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454   (eval "$ac_try") 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458   ac_header_compiler=yes
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463         ac_header_compiler=no
11464 fi
11465
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11468 echo "${ECHO_T}$ac_header_compiler" >&6; }
11469
11470 # Is the header present?
11471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h.  */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h.  */
11479 #include <$ac_header>
11480 _ACEOF
11481 if { (ac_try="$ac_cpp conftest.$ac_ext"
11482 case "(($ac_try" in
11483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484   *) ac_try_echo=$ac_try;;
11485 esac
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11488   ac_status=$?
11489   grep -v '^ *+' conftest.er1 >conftest.err
11490   rm -f conftest.er1
11491   cat conftest.err >&5
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); } >/dev/null; then
11494   if test -s conftest.err; then
11495     ac_cpp_err=$ac_c_preproc_warn_flag
11496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11497   else
11498     ac_cpp_err=
11499   fi
11500 else
11501   ac_cpp_err=yes
11502 fi
11503 if test -z "$ac_cpp_err"; then
11504   ac_header_preproc=yes
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509   ac_header_preproc=no
11510 fi
11511
11512 rm -f conftest.err conftest.$ac_ext
11513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514 echo "${ECHO_T}$ac_header_preproc" >&6; }
11515
11516 # So?  What about this header?
11517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11518   yes:no: )
11519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523     ac_header_preproc=yes
11524     ;;
11525   no:yes:* )
11526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11538     ( cat <<\_ASBOX
11539 ## ------------------------------------ ##
11540 ## Report this to http://llvm.org/bugs/ ##
11541 ## ------------------------------------ ##
11542 _ASBOX
11543      ) | sed "s/^/$as_me: WARNING:     /" >&2
11544     ;;
11545 esac
11546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549   echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551   eval "$as_ac_Header=\$ac_header_preproc"
11552 fi
11553 ac_res=`eval echo '${'$as_ac_Header'}'`
11554                { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11556
11557 fi
11558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11559   cat >>confdefs.h <<_ACEOF
11560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11561 _ACEOF
11562
11563 fi
11564
11565 done
11566
11567
11568
11569
11570
11571
11572
11573 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11574 do
11575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11580   echo $ECHO_N "(cached) $ECHO_C" >&6
11581 fi
11582 ac_res=`eval echo '${'$as_ac_Header'}'`
11583                { echo "$as_me:$LINENO: result: $ac_res" >&5
11584 echo "${ECHO_T}$ac_res" >&6; }
11585 else
11586   # Is the header compilable?
11587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11589 cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h.  */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h.  */
11595 $ac_includes_default
11596 #include <$ac_header>
11597 _ACEOF
11598 rm -f conftest.$ac_objext
11599 if { (ac_try="$ac_compile"
11600 case "(($ac_try" in
11601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602   *) ac_try_echo=$ac_try;;
11603 esac
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605   (eval "$ac_compile") 2>conftest.er1
11606   ac_status=$?
11607   grep -v '^ *+' conftest.er1 >conftest.err
11608   rm -f conftest.er1
11609   cat conftest.err >&5
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } &&
11612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613   { (case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618   (eval "$ac_try") 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; } &&
11622          { ac_try='test -s conftest.$ac_objext'
11623   { (case "(($ac_try" in
11624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625   *) ac_try_echo=$ac_try;;
11626 esac
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628   (eval "$ac_try") 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); }; }; then
11632   ac_header_compiler=yes
11633 else
11634   echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11636
11637         ac_header_compiler=no
11638 fi
11639
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11643
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h.  */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h.  */
11653 #include <$ac_header>
11654 _ACEOF
11655 if { (ac_try="$ac_cpp conftest.$ac_ext"
11656 case "(($ac_try" in
11657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658   *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11662   ac_status=$?
11663   grep -v '^ *+' conftest.er1 >conftest.err
11664   rm -f conftest.er1
11665   cat conftest.err >&5
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); } >/dev/null; then
11668   if test -s conftest.err; then
11669     ac_cpp_err=$ac_c_preproc_warn_flag
11670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11671   else
11672     ac_cpp_err=
11673   fi
11674 else
11675   ac_cpp_err=yes
11676 fi
11677 if test -z "$ac_cpp_err"; then
11678   ac_header_preproc=yes
11679 else
11680   echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683   ac_header_preproc=no
11684 fi
11685
11686 rm -f conftest.err conftest.$ac_ext
11687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11688 echo "${ECHO_T}$ac_header_preproc" >&6; }
11689
11690 # So?  What about this header?
11691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11692   yes:no: )
11693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11697     ac_header_preproc=yes
11698     ;;
11699   no:yes:* )
11700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11712     ( cat <<\_ASBOX
11713 ## ------------------------------------ ##
11714 ## Report this to http://llvm.org/bugs/ ##
11715 ## ------------------------------------ ##
11716 _ASBOX
11717      ) | sed "s/^/$as_me: WARNING:     /" >&2
11718     ;;
11719 esac
11720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725   eval "$as_ac_Header=\$ac_header_preproc"
11726 fi
11727 ac_res=`eval echo '${'$as_ac_Header'}'`
11728                { echo "$as_me:$LINENO: result: $ac_res" >&5
11729 echo "${ECHO_T}$ac_res" >&6; }
11730
11731 fi
11732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11733   cat >>confdefs.h <<_ACEOF
11734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11735 _ACEOF
11736
11737 fi
11738
11739 done
11740
11741
11742 for ac_header in utime.h
11743 do
11744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11746   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 fi
11751 ac_res=`eval echo '${'$as_ac_Header'}'`
11752                { echo "$as_me:$LINENO: result: $ac_res" >&5
11753 echo "${ECHO_T}$ac_res" >&6; }
11754 else
11755   # Is the header compilable?
11756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h.  */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h.  */
11764 $ac_includes_default
11765 #include <$ac_header>
11766 _ACEOF
11767 rm -f conftest.$ac_objext
11768 if { (ac_try="$ac_compile"
11769 case "(($ac_try" in
11770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771   *) ac_try_echo=$ac_try;;
11772 esac
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774   (eval "$ac_compile") 2>conftest.er1
11775   ac_status=$?
11776   grep -v '^ *+' conftest.er1 >conftest.err
11777   rm -f conftest.er1
11778   cat conftest.err >&5
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } &&
11781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11782   { (case "(($ac_try" in
11783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784   *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787   (eval "$ac_try") 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; } &&
11791          { ac_try='test -s conftest.$ac_objext'
11792   { (case "(($ac_try" in
11793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794   *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797   (eval "$ac_try") 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); }; }; then
11801   ac_header_compiler=yes
11802 else
11803   echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806         ac_header_compiler=no
11807 fi
11808
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 echo "${ECHO_T}$ac_header_compiler" >&6; }
11812
11813 # Is the header present?
11814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h.  */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h.  */
11822 #include <$ac_header>
11823 _ACEOF
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11831   ac_status=$?
11832   grep -v '^ *+' conftest.er1 >conftest.err
11833   rm -f conftest.er1
11834   cat conftest.err >&5
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } >/dev/null; then
11837   if test -s conftest.err; then
11838     ac_cpp_err=$ac_c_preproc_warn_flag
11839     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11840   else
11841     ac_cpp_err=
11842   fi
11843 else
11844   ac_cpp_err=yes
11845 fi
11846 if test -z "$ac_cpp_err"; then
11847   ac_header_preproc=yes
11848 else
11849   echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11851
11852   ac_header_preproc=no
11853 fi
11854
11855 rm -f conftest.err conftest.$ac_ext
11856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857 echo "${ECHO_T}$ac_header_preproc" >&6; }
11858
11859 # So?  What about this header?
11860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11861   yes:no: )
11862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11866     ac_header_preproc=yes
11867     ;;
11868   no:yes:* )
11869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11881     ( cat <<\_ASBOX
11882 ## ------------------------------------ ##
11883 ## Report this to http://llvm.org/bugs/ ##
11884 ## ------------------------------------ ##
11885 _ASBOX
11886      ) | sed "s/^/$as_me: WARNING:     /" >&2
11887     ;;
11888 esac
11889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   eval "$as_ac_Header=\$ac_header_preproc"
11895 fi
11896 ac_res=`eval echo '${'$as_ac_Header'}'`
11897                { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11899
11900 fi
11901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11902   cat >>confdefs.h <<_ACEOF
11903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11904 _ACEOF
11905
11906 fi
11907
11908 done
11909
11910
11911
11912
11913
11914
11915 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11916 do
11917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11919   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 fi
11924 ac_res=`eval echo '${'$as_ac_Header'}'`
11925                { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11927 else
11928   # Is the header compilable?
11929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11931 cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h.  */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h.  */
11937 $ac_includes_default
11938 #include <$ac_header>
11939 _ACEOF
11940 rm -f conftest.$ac_objext
11941 if { (ac_try="$ac_compile"
11942 case "(($ac_try" in
11943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944   *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947   (eval "$ac_compile") 2>conftest.er1
11948   ac_status=$?
11949   grep -v '^ *+' conftest.er1 >conftest.err
11950   rm -f conftest.er1
11951   cat conftest.err >&5
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); } &&
11954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11955   { (case "(($ac_try" in
11956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957   *) ac_try_echo=$ac_try;;
11958 esac
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960   (eval "$ac_try") 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; } &&
11964          { ac_try='test -s conftest.$ac_objext'
11965   { (case "(($ac_try" in
11966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967   *) ac_try_echo=$ac_try;;
11968 esac
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970   (eval "$ac_try") 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); }; }; then
11974   ac_header_compiler=yes
11975 else
11976   echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979         ac_header_compiler=no
11980 fi
11981
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11984 echo "${ECHO_T}$ac_header_compiler" >&6; }
11985
11986 # Is the header present?
11987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h.  */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h.  */
11995 #include <$ac_header>
11996 _ACEOF
11997 if { (ac_try="$ac_cpp conftest.$ac_ext"
11998 case "(($ac_try" in
11999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000   *) ac_try_echo=$ac_try;;
12001 esac
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12004   ac_status=$?
12005   grep -v '^ *+' conftest.er1 >conftest.err
12006   rm -f conftest.er1
12007   cat conftest.err >&5
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); } >/dev/null; then
12010   if test -s conftest.err; then
12011     ac_cpp_err=$ac_c_preproc_warn_flag
12012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12013   else
12014     ac_cpp_err=
12015   fi
12016 else
12017   ac_cpp_err=yes
12018 fi
12019 if test -z "$ac_cpp_err"; then
12020   ac_header_preproc=yes
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025   ac_header_preproc=no
12026 fi
12027
12028 rm -f conftest.err conftest.$ac_ext
12029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12030 echo "${ECHO_T}$ac_header_preproc" >&6; }
12031
12032 # So?  What about this header?
12033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12034   yes:no: )
12035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12039     ac_header_preproc=yes
12040     ;;
12041   no:yes:* )
12042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12054     ( cat <<\_ASBOX
12055 ## ------------------------------------ ##
12056 ## Report this to http://llvm.org/bugs/ ##
12057 ## ------------------------------------ ##
12058 _ASBOX
12059      ) | sed "s/^/$as_me: WARNING:     /" >&2
12060     ;;
12061 esac
12062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   eval "$as_ac_Header=\$ac_header_preproc"
12068 fi
12069 ac_res=`eval echo '${'$as_ac_Header'}'`
12070                { echo "$as_me:$LINENO: result: $ac_res" >&5
12071 echo "${ECHO_T}$ac_res" >&6; }
12072
12073 fi
12074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12075   cat >>confdefs.h <<_ACEOF
12076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12077 _ACEOF
12078
12079 fi
12080
12081 done
12082
12083
12084
12085
12086 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12087 do
12088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12090   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 fi
12095 ac_res=`eval echo '${'$as_ac_Header'}'`
12096                { echo "$as_me:$LINENO: result: $ac_res" >&5
12097 echo "${ECHO_T}$ac_res" >&6; }
12098 else
12099   # Is the header compilable?
12100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h.  */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h.  */
12108 $ac_includes_default
12109 #include <$ac_header>
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 if { (ac_try="$ac_compile"
12113 case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118   (eval "$ac_compile") 2>conftest.er1
12119   ac_status=$?
12120   grep -v '^ *+' conftest.er1 >conftest.err
12121   rm -f conftest.er1
12122   cat conftest.err >&5
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } &&
12125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126   { (case "(($ac_try" in
12127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128   *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131   (eval "$ac_try") 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; } &&
12135          { ac_try='test -s conftest.$ac_objext'
12136   { (case "(($ac_try" in
12137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138   *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141   (eval "$ac_try") 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   ac_header_compiler=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150         ac_header_compiler=no
12151 fi
12152
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12155 echo "${ECHO_T}$ac_header_compiler" >&6; }
12156
12157 # Is the header present?
12158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h.  */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h.  */
12166 #include <$ac_header>
12167 _ACEOF
12168 if { (ac_try="$ac_cpp conftest.$ac_ext"
12169 case "(($ac_try" in
12170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171   *) ac_try_echo=$ac_try;;
12172 esac
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12175   ac_status=$?
12176   grep -v '^ *+' conftest.er1 >conftest.err
12177   rm -f conftest.er1
12178   cat conftest.err >&5
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); } >/dev/null; then
12181   if test -s conftest.err; then
12182     ac_cpp_err=$ac_c_preproc_warn_flag
12183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12184   else
12185     ac_cpp_err=
12186   fi
12187 else
12188   ac_cpp_err=yes
12189 fi
12190 if test -z "$ac_cpp_err"; then
12191   ac_header_preproc=yes
12192 else
12193   echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12195
12196   ac_header_preproc=no
12197 fi
12198
12199 rm -f conftest.err conftest.$ac_ext
12200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12201 echo "${ECHO_T}$ac_header_preproc" >&6; }
12202
12203 # So?  What about this header?
12204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12205   yes:no: )
12206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12210     ac_header_preproc=yes
12211     ;;
12212   no:yes:* )
12213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12225     ( cat <<\_ASBOX
12226 ## ------------------------------------ ##
12227 ## Report this to http://llvm.org/bugs/ ##
12228 ## ------------------------------------ ##
12229 _ASBOX
12230      ) | sed "s/^/$as_me: WARNING:     /" >&2
12231     ;;
12232 esac
12233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12236   echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238   eval "$as_ac_Header=\$ac_header_preproc"
12239 fi
12240 ac_res=`eval echo '${'$as_ac_Header'}'`
12241                { echo "$as_me:$LINENO: result: $ac_res" >&5
12242 echo "${ECHO_T}$ac_res" >&6; }
12243
12244 fi
12245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12246   cat >>confdefs.h <<_ACEOF
12247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12248 _ACEOF
12249
12250 fi
12251
12252 done
12253
12254
12255 for ac_header in valgrind/valgrind.h
12256 do
12257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12259   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12262   echo $ECHO_N "(cached) $ECHO_C" >&6
12263 fi
12264 ac_res=`eval echo '${'$as_ac_Header'}'`
12265                { echo "$as_me:$LINENO: result: $ac_res" >&5
12266 echo "${ECHO_T}$ac_res" >&6; }
12267 else
12268   # Is the header compilable?
12269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h.  */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h.  */
12277 $ac_includes_default
12278 #include <$ac_header>
12279 _ACEOF
12280 rm -f conftest.$ac_objext
12281 if { (ac_try="$ac_compile"
12282 case "(($ac_try" in
12283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284   *) ac_try_echo=$ac_try;;
12285 esac
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287   (eval "$ac_compile") 2>conftest.er1
12288   ac_status=$?
12289   grep -v '^ *+' conftest.er1 >conftest.err
12290   rm -f conftest.er1
12291   cat conftest.err >&5
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); } &&
12294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295   { (case "(($ac_try" in
12296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297   *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300   (eval "$ac_try") 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; } &&
12304          { ac_try='test -s conftest.$ac_objext'
12305   { (case "(($ac_try" in
12306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307   *) ac_try_echo=$ac_try;;
12308 esac
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310   (eval "$ac_try") 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }; }; then
12314   ac_header_compiler=yes
12315 else
12316   echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319         ac_header_compiler=no
12320 fi
12321
12322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12324 echo "${ECHO_T}$ac_header_compiler" >&6; }
12325
12326 # Is the header present?
12327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h.  */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h.  */
12335 #include <$ac_header>
12336 _ACEOF
12337 if { (ac_try="$ac_cpp conftest.$ac_ext"
12338 case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } >/dev/null; then
12350   if test -s conftest.err; then
12351     ac_cpp_err=$ac_c_preproc_warn_flag
12352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12353   else
12354     ac_cpp_err=
12355   fi
12356 else
12357   ac_cpp_err=yes
12358 fi
12359 if test -z "$ac_cpp_err"; then
12360   ac_header_preproc=yes
12361 else
12362   echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365   ac_header_preproc=no
12366 fi
12367
12368 rm -f conftest.err conftest.$ac_ext
12369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12370 echo "${ECHO_T}$ac_header_preproc" >&6; }
12371
12372 # So?  What about this header?
12373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12374   yes:no: )
12375     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12379     ac_header_preproc=yes
12380     ;;
12381   no:yes:* )
12382     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12384     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12385 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12386     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12388     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12389 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12392     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12394     ( cat <<\_ASBOX
12395 ## ------------------------------------ ##
12396 ## Report this to http://llvm.org/bugs/ ##
12397 ## ------------------------------------ ##
12398 _ASBOX
12399      ) | sed "s/^/$as_me: WARNING:     /" >&2
12400     ;;
12401 esac
12402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12405   echo $ECHO_N "(cached) $ECHO_C" >&6
12406 else
12407   eval "$as_ac_Header=\$ac_header_preproc"
12408 fi
12409 ac_res=`eval echo '${'$as_ac_Header'}'`
12410                { echo "$as_me:$LINENO: result: $ac_res" >&5
12411 echo "${ECHO_T}$ac_res" >&6; }
12412
12413 fi
12414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12415   cat >>confdefs.h <<_ACEOF
12416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12417 _ACEOF
12418
12419 fi
12420
12421 done
12422
12423
12424 for ac_header in fenv.h
12425 do
12426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12428   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431   echo $ECHO_N "(cached) $ECHO_C" >&6
12432 fi
12433 ac_res=`eval echo '${'$as_ac_Header'}'`
12434                { echo "$as_me:$LINENO: result: $ac_res" >&5
12435 echo "${ECHO_T}$ac_res" >&6; }
12436 else
12437   # Is the header compilable?
12438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h.  */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h.  */
12446 $ac_includes_default
12447 #include <$ac_header>
12448 _ACEOF
12449 rm -f conftest.$ac_objext
12450 if { (ac_try="$ac_compile"
12451 case "(($ac_try" in
12452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453   *) ac_try_echo=$ac_try;;
12454 esac
12455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456   (eval "$ac_compile") 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } &&
12463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12464   { (case "(($ac_try" in
12465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466   *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469   (eval "$ac_try") 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; } &&
12473          { ac_try='test -s conftest.$ac_objext'
12474   { (case "(($ac_try" in
12475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476   *) ac_try_echo=$ac_try;;
12477 esac
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479   (eval "$ac_try") 2>&5
12480   ac_status=$?
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); }; }; then
12483   ac_header_compiler=yes
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488         ac_header_compiler=no
12489 fi
12490
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12493 echo "${ECHO_T}$ac_header_compiler" >&6; }
12494
12495 # Is the header present?
12496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12498 cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h.  */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h.  */
12504 #include <$ac_header>
12505 _ACEOF
12506 if { (ac_try="$ac_cpp conftest.$ac_ext"
12507 case "(($ac_try" in
12508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509   *) ac_try_echo=$ac_try;;
12510 esac
12511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12513   ac_status=$?
12514   grep -v '^ *+' conftest.er1 >conftest.err
12515   rm -f conftest.er1
12516   cat conftest.err >&5
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); } >/dev/null; then
12519   if test -s conftest.err; then
12520     ac_cpp_err=$ac_c_preproc_warn_flag
12521     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12522   else
12523     ac_cpp_err=
12524   fi
12525 else
12526   ac_cpp_err=yes
12527 fi
12528 if test -z "$ac_cpp_err"; then
12529   ac_header_preproc=yes
12530 else
12531   echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534   ac_header_preproc=no
12535 fi
12536
12537 rm -f conftest.err conftest.$ac_ext
12538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12539 echo "${ECHO_T}$ac_header_preproc" >&6; }
12540
12541 # So?  What about this header?
12542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12543   yes:no: )
12544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12548     ac_header_preproc=yes
12549     ;;
12550   no:yes:* )
12551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12563     ( cat <<\_ASBOX
12564 ## ------------------------------------ ##
12565 ## Report this to http://llvm.org/bugs/ ##
12566 ## ------------------------------------ ##
12567 _ASBOX
12568      ) | sed "s/^/$as_me: WARNING:     /" >&2
12569     ;;
12570 esac
12571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12574   echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576   eval "$as_ac_Header=\$ac_header_preproc"
12577 fi
12578 ac_res=`eval echo '${'$as_ac_Header'}'`
12579                { echo "$as_me:$LINENO: result: $ac_res" >&5
12580 echo "${ECHO_T}$ac_res" >&6; }
12581
12582 fi
12583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12584   cat >>confdefs.h <<_ACEOF
12585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12586 _ACEOF
12587
12588 fi
12589
12590 done
12591
12592 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12593 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12594 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12595   echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597   cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h.  */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h.  */
12603 #include <fenv.h>
12604
12605 int
12606 main ()
12607 {
12608 #ifndef FE_ALL_EXCEPT
12609   char *p = (char *) FE_ALL_EXCEPT;
12610   return !p;
12611 #endif
12612
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 rm -f conftest.$ac_objext
12618 if { (ac_try="$ac_compile"
12619 case "(($ac_try" in
12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621   *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624   (eval "$ac_compile") 2>conftest.er1
12625   ac_status=$?
12626   grep -v '^ *+' conftest.er1 >conftest.err
12627   rm -f conftest.er1
12628   cat conftest.err >&5
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); } &&
12631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12632   { (case "(($ac_try" in
12633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634   *) ac_try_echo=$ac_try;;
12635 esac
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637   (eval "$ac_try") 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; } &&
12641          { ac_try='test -s conftest.$ac_objext'
12642   { (case "(($ac_try" in
12643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644   *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647   (eval "$ac_try") 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; }; then
12651   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12652 else
12653   echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656         ac_cv_have_decl_FE_ALL_EXCEPT=no
12657 fi
12658
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 fi
12661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12662 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12663 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12664
12665 cat >>confdefs.h <<_ACEOF
12666 #define HAVE_DECL_FE_ALL_EXCEPT 1
12667 _ACEOF
12668
12669
12670 else
12671   cat >>confdefs.h <<_ACEOF
12672 #define HAVE_DECL_FE_ALL_EXCEPT 0
12673 _ACEOF
12674
12675
12676 fi
12677 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12678 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12679 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12688 #include <fenv.h>
12689
12690 int
12691 main ()
12692 {
12693 #ifndef FE_INEXACT
12694   char *p = (char *) FE_INEXACT;
12695   return !p;
12696 #endif
12697
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706   *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709   (eval "$ac_compile") 2>conftest.er1
12710   ac_status=$?
12711   grep -v '^ *+' conftest.er1 >conftest.err
12712   rm -f conftest.er1
12713   cat conftest.err >&5
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); } &&
12716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12717   { (case "(($ac_try" in
12718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719   *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722   (eval "$ac_try") 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; } &&
12726          { ac_try='test -s conftest.$ac_objext'
12727   { (case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_try") 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); }; }; then
12736   ac_cv_have_decl_FE_INEXACT=yes
12737 else
12738   echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741         ac_cv_have_decl_FE_INEXACT=no
12742 fi
12743
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 fi
12746 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12747 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12748 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12749
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_DECL_FE_INEXACT 1
12752 _ACEOF
12753
12754
12755 else
12756   cat >>confdefs.h <<_ACEOF
12757 #define HAVE_DECL_FE_INEXACT 0
12758 _ACEOF
12759
12760
12761 fi
12762
12763
12764 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12765
12766 for ac_header in pthread.h
12767 do
12768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12770   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 fi
12775 ac_res=`eval echo '${'$as_ac_Header'}'`
12776                { echo "$as_me:$LINENO: result: $ac_res" >&5
12777 echo "${ECHO_T}$ac_res" >&6; }
12778 else
12779   # Is the header compilable?
12780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h.  */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h.  */
12788 $ac_includes_default
12789 #include <$ac_header>
12790 _ACEOF
12791 rm -f conftest.$ac_objext
12792 if { (ac_try="$ac_compile"
12793 case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_compile") 2>conftest.er1
12799   ac_status=$?
12800   grep -v '^ *+' conftest.er1 >conftest.err
12801   rm -f conftest.er1
12802   cat conftest.err >&5
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); } &&
12805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12806   { (case "(($ac_try" in
12807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808   *) ac_try_echo=$ac_try;;
12809 esac
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811   (eval "$ac_try") 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; } &&
12815          { ac_try='test -s conftest.$ac_objext'
12816   { (case "(($ac_try" in
12817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818   *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821   (eval "$ac_try") 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; }; then
12825   ac_header_compiler=yes
12826 else
12827   echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830         ac_header_compiler=no
12831 fi
12832
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12835 echo "${ECHO_T}$ac_header_compiler" >&6; }
12836
12837 # Is the header present?
12838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12840 cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 #include <$ac_header>
12847 _ACEOF
12848 if { (ac_try="$ac_cpp conftest.$ac_ext"
12849 case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12855   ac_status=$?
12856   grep -v '^ *+' conftest.er1 >conftest.err
12857   rm -f conftest.er1
12858   cat conftest.err >&5
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); } >/dev/null; then
12861   if test -s conftest.err; then
12862     ac_cpp_err=$ac_c_preproc_warn_flag
12863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12864   else
12865     ac_cpp_err=
12866   fi
12867 else
12868   ac_cpp_err=yes
12869 fi
12870 if test -z "$ac_cpp_err"; then
12871   ac_header_preproc=yes
12872 else
12873   echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876   ac_header_preproc=no
12877 fi
12878
12879 rm -f conftest.err conftest.$ac_ext
12880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881 echo "${ECHO_T}$ac_header_preproc" >&6; }
12882
12883 # So?  What about this header?
12884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12885   yes:no: )
12886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12890     ac_header_preproc=yes
12891     ;;
12892   no:yes:* )
12893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12905     ( cat <<\_ASBOX
12906 ## ------------------------------------ ##
12907 ## Report this to http://llvm.org/bugs/ ##
12908 ## ------------------------------------ ##
12909 _ASBOX
12910      ) | sed "s/^/$as_me: WARNING:     /" >&2
12911     ;;
12912 esac
12913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12916   echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918   eval "$as_ac_Header=\$ac_header_preproc"
12919 fi
12920 ac_res=`eval echo '${'$as_ac_Header'}'`
12921                { echo "$as_me:$LINENO: result: $ac_res" >&5
12922 echo "${ECHO_T}$ac_res" >&6; }
12923
12924 fi
12925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12926   cat >>confdefs.h <<_ACEOF
12927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928 _ACEOF
12929  HAVE_PTHREAD=1
12930
12931 else
12932   HAVE_PTHREAD=0
12933
12934 fi
12935
12936 done
12937
12938 else
12939   HAVE_PTHREAD=0
12940
12941 fi
12942 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12943
12944 for ac_header in zlib.h
12945 do
12946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12948   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 fi
12953 ac_res=`eval echo '${'$as_ac_Header'}'`
12954                { echo "$as_me:$LINENO: result: $ac_res" >&5
12955 echo "${ECHO_T}$ac_res" >&6; }
12956 else
12957   # Is the header compilable?
12958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12960 cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h.  */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h.  */
12966 $ac_includes_default
12967 #include <$ac_header>
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (ac_try="$ac_compile"
12971 case "(($ac_try" in
12972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973   *) ac_try_echo=$ac_try;;
12974 esac
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976   (eval "$ac_compile") 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } &&
12983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12984   { (case "(($ac_try" in
12985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986   *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989   (eval "$ac_try") 2>&5
12990   ac_status=$?
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); }; } &&
12993          { ac_try='test -s conftest.$ac_objext'
12994   { (case "(($ac_try" in
12995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996   *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999   (eval "$ac_try") 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); }; }; then
13003   ac_header_compiler=yes
13004 else
13005   echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008         ac_header_compiler=no
13009 fi
13010
13011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13013 echo "${ECHO_T}$ac_header_compiler" >&6; }
13014
13015 # Is the header present?
13016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13018 cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024 #include <$ac_header>
13025 _ACEOF
13026 if { (ac_try="$ac_cpp conftest.$ac_ext"
13027 case "(($ac_try" in
13028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029   *) ac_try_echo=$ac_try;;
13030 esac
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13033   ac_status=$?
13034   grep -v '^ *+' conftest.er1 >conftest.err
13035   rm -f conftest.er1
13036   cat conftest.err >&5
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } >/dev/null; then
13039   if test -s conftest.err; then
13040     ac_cpp_err=$ac_c_preproc_warn_flag
13041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13042   else
13043     ac_cpp_err=
13044   fi
13045 else
13046   ac_cpp_err=yes
13047 fi
13048 if test -z "$ac_cpp_err"; then
13049   ac_header_preproc=yes
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054   ac_header_preproc=no
13055 fi
13056
13057 rm -f conftest.err conftest.$ac_ext
13058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13059 echo "${ECHO_T}$ac_header_preproc" >&6; }
13060
13061 # So?  What about this header?
13062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13063   yes:no: )
13064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13068     ac_header_preproc=yes
13069     ;;
13070   no:yes:* )
13071     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13073     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13074 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13075     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13077     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13078 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13081     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13083     ( cat <<\_ASBOX
13084 ## ------------------------------------ ##
13085 ## Report this to http://llvm.org/bugs/ ##
13086 ## ------------------------------------ ##
13087 _ASBOX
13088      ) | sed "s/^/$as_me: WARNING:     /" >&2
13089     ;;
13090 esac
13091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13094   echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096   eval "$as_ac_Header=\$ac_header_preproc"
13097 fi
13098 ac_res=`eval echo '${'$as_ac_Header'}'`
13099                { echo "$as_me:$LINENO: result: $ac_res" >&5
13100 echo "${ECHO_T}$ac_res" >&6; }
13101
13102 fi
13103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13104   cat >>confdefs.h <<_ACEOF
13105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13106 _ACEOF
13107  HAVE_LIBZ=1
13108
13109 else
13110   HAVE_LIBZ=0
13111
13112 fi
13113
13114 done
13115
13116 else
13117   HAVE_LIBZ=0
13118
13119 fi
13120
13121 if test "$llvm_cv_enable_libffi" = "yes" ; then
13122
13123
13124 for ac_header in ffi.h ffi/ffi.h
13125 do
13126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13131   echo $ECHO_N "(cached) $ECHO_C" >&6
13132 fi
13133 ac_res=`eval echo '${'$as_ac_Header'}'`
13134                { echo "$as_me:$LINENO: result: $ac_res" >&5
13135 echo "${ECHO_T}$ac_res" >&6; }
13136 else
13137   # Is the header compilable?
13138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h.  */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h.  */
13146 $ac_includes_default
13147 #include <$ac_header>
13148 _ACEOF
13149 rm -f conftest.$ac_objext
13150 if { (ac_try="$ac_compile"
13151 case "(($ac_try" in
13152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153   *) ac_try_echo=$ac_try;;
13154 esac
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156   (eval "$ac_compile") 2>conftest.er1
13157   ac_status=$?
13158   grep -v '^ *+' conftest.er1 >conftest.err
13159   rm -f conftest.er1
13160   cat conftest.err >&5
13161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162   (exit $ac_status); } &&
13163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13164   { (case "(($ac_try" in
13165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166   *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169   (eval "$ac_try") 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); }; } &&
13173          { ac_try='test -s conftest.$ac_objext'
13174   { (case "(($ac_try" in
13175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176   *) ac_try_echo=$ac_try;;
13177 esac
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179   (eval "$ac_try") 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; }; then
13183   ac_header_compiler=yes
13184 else
13185   echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188         ac_header_compiler=no
13189 fi
13190
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13193 echo "${ECHO_T}$ac_header_compiler" >&6; }
13194
13195 # Is the header present?
13196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h.  */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h.  */
13204 #include <$ac_header>
13205 _ACEOF
13206 if { (ac_try="$ac_cpp conftest.$ac_ext"
13207 case "(($ac_try" in
13208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209   *) ac_try_echo=$ac_try;;
13210 esac
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13213   ac_status=$?
13214   grep -v '^ *+' conftest.er1 >conftest.err
13215   rm -f conftest.er1
13216   cat conftest.err >&5
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); } >/dev/null; then
13219   if test -s conftest.err; then
13220     ac_cpp_err=$ac_c_preproc_warn_flag
13221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13222   else
13223     ac_cpp_err=
13224   fi
13225 else
13226   ac_cpp_err=yes
13227 fi
13228 if test -z "$ac_cpp_err"; then
13229   ac_header_preproc=yes
13230 else
13231   echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234   ac_header_preproc=no
13235 fi
13236
13237 rm -f conftest.err conftest.$ac_ext
13238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13239 echo "${ECHO_T}$ac_header_preproc" >&6; }
13240
13241 # So?  What about this header?
13242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13243   yes:no: )
13244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13248     ac_header_preproc=yes
13249     ;;
13250   no:yes:* )
13251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13263     ( cat <<\_ASBOX
13264 ## ------------------------------------ ##
13265 ## Report this to http://llvm.org/bugs/ ##
13266 ## ------------------------------------ ##
13267 _ASBOX
13268      ) | sed "s/^/$as_me: WARNING:     /" >&2
13269     ;;
13270 esac
13271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13274   echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276   eval "$as_ac_Header=\$ac_header_preproc"
13277 fi
13278 ac_res=`eval echo '${'$as_ac_Header'}'`
13279                { echo "$as_me:$LINENO: result: $ac_res" >&5
13280 echo "${ECHO_T}$ac_res" >&6; }
13281
13282 fi
13283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13284   cat >>confdefs.h <<_ACEOF
13285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13286 _ACEOF
13287
13288 fi
13289
13290 done
13291
13292 fi
13293
13294
13295 for ac_header in CrashReporterClient.h
13296 do
13297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13299   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13302   echo $ECHO_N "(cached) $ECHO_C" >&6
13303 fi
13304 ac_res=`eval echo '${'$as_ac_Header'}'`
13305                { echo "$as_me:$LINENO: result: $ac_res" >&5
13306 echo "${ECHO_T}$ac_res" >&6; }
13307 else
13308   # Is the header compilable?
13309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h.  */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h.  */
13317 $ac_includes_default
13318 #include <$ac_header>
13319 _ACEOF
13320 rm -f conftest.$ac_objext
13321 if { (ac_try="$ac_compile"
13322 case "(($ac_try" in
13323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324   *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327   (eval "$ac_compile") 2>conftest.er1
13328   ac_status=$?
13329   grep -v '^ *+' conftest.er1 >conftest.err
13330   rm -f conftest.er1
13331   cat conftest.err >&5
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); } &&
13334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335   { (case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340   (eval "$ac_try") 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; } &&
13344          { ac_try='test -s conftest.$ac_objext'
13345   { (case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_try") 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; }; then
13354   ac_header_compiler=yes
13355 else
13356   echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359         ac_header_compiler=no
13360 fi
13361
13362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13364 echo "${ECHO_T}$ac_header_compiler" >&6; }
13365
13366 # Is the header present?
13367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13369 cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h.  */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h.  */
13375 #include <$ac_header>
13376 _ACEOF
13377 if { (ac_try="$ac_cpp conftest.$ac_ext"
13378 case "(($ac_try" in
13379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380   *) ac_try_echo=$ac_try;;
13381 esac
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13384   ac_status=$?
13385   grep -v '^ *+' conftest.er1 >conftest.err
13386   rm -f conftest.er1
13387   cat conftest.err >&5
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); } >/dev/null; then
13390   if test -s conftest.err; then
13391     ac_cpp_err=$ac_c_preproc_warn_flag
13392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13393   else
13394     ac_cpp_err=
13395   fi
13396 else
13397   ac_cpp_err=yes
13398 fi
13399 if test -z "$ac_cpp_err"; then
13400   ac_header_preproc=yes
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405   ac_header_preproc=no
13406 fi
13407
13408 rm -f conftest.err conftest.$ac_ext
13409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13410 echo "${ECHO_T}$ac_header_preproc" >&6; }
13411
13412 # So?  What about this header?
13413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13414   yes:no: )
13415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13419     ac_header_preproc=yes
13420     ;;
13421   no:yes:* )
13422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13424     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13425 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13426     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13428     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13429 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13432     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13434     ( cat <<\_ASBOX
13435 ## ------------------------------------ ##
13436 ## Report this to http://llvm.org/bugs/ ##
13437 ## ------------------------------------ ##
13438 _ASBOX
13439      ) | sed "s/^/$as_me: WARNING:     /" >&2
13440     ;;
13441 esac
13442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13445   echo $ECHO_N "(cached) $ECHO_C" >&6
13446 else
13447   eval "$as_ac_Header=\$ac_header_preproc"
13448 fi
13449 ac_res=`eval echo '${'$as_ac_Header'}'`
13450                { echo "$as_me:$LINENO: result: $ac_res" >&5
13451 echo "${ECHO_T}$ac_res" >&6; }
13452
13453 fi
13454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13455   cat >>confdefs.h <<_ACEOF
13456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13457 _ACEOF
13458
13459 fi
13460
13461 done
13462
13463
13464 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13465 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13467
13468   /* confdefs.h.  */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h.  */
13473
13474     extern const char *__crashreporter_info__;
13475     int main() {
13476       __crashreporter_info__ = "test";
13477       return 0;
13478     }
13479
13480
13481 _ACEOF
13482 rm -f conftest.$ac_objext conftest$ac_exeext
13483 if { (ac_try="$ac_link"
13484 case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489   (eval "$ac_link") 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13497   { (case "(($ac_try" in
13498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499   *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502   (eval "$ac_try") 2>&5
13503   ac_status=$?
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); }; } &&
13506          { ac_try='test -s conftest$ac_exeext'
13507   { (case "(($ac_try" in
13508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509   *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512   (eval "$ac_try") 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; }; then
13516
13517   { echo "$as_me:$LINENO: result: yes" >&5
13518 echo "${ECHO_T}yes" >&6; }
13519
13520 cat >>confdefs.h <<\_ACEOF
13521 #define HAVE_CRASHREPORTER_INFO 1
13522 _ACEOF
13523
13524
13525 else
13526   echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13528
13529
13530   { echo "$as_me:$LINENO: result: no" >&5
13531 echo "${ECHO_T}no" >&6; }
13532
13533 cat >>confdefs.h <<\_ACEOF
13534 #define HAVE_CRASHREPORTER_INFO 0
13535 _ACEOF
13536
13537
13538 fi
13539
13540 rm -f core conftest.err conftest.$ac_objext \
13541       conftest$ac_exeext conftest.$ac_ext
13542
13543
13544
13545   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13546 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13547 if test "${ac_cv_huge_val_sanity+set}" = set; then
13548   echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550
13551     ac_ext=cpp
13552 ac_cpp='$CXXCPP $CPPFLAGS'
13553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13556
13557     ac_save_CXXFLAGS=$CXXFLAGS
13558     CXXFLAGS="$CXXFLAGS -pedantic"
13559     if test "$cross_compiling" = yes; then
13560   ac_cv_huge_val_sanity=yes
13561 else
13562   cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568 #include <math.h>
13569 int
13570 main ()
13571 {
13572 double x = HUGE_VAL; return x != x;
13573   ;
13574   return 0;
13575 }
13576 _ACEOF
13577 rm -f conftest$ac_exeext
13578 if { (ac_try="$ac_link"
13579 case "(($ac_try" in
13580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581   *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584   (eval "$ac_link") 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13588   { (case "(($ac_try" in
13589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590   *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593   (eval "$ac_try") 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); }; }; then
13597   ac_cv_huge_val_sanity=yes
13598 else
13599   echo "$as_me: program exited with status $ac_status" >&5
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603 ( exit $ac_status )
13604 ac_cv_huge_val_sanity=no
13605 fi
13606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13607 fi
13608
13609
13610     CXXFLAGS=$ac_save_CXXFLAGS
13611     ac_ext=c
13612 ac_cpp='$CPP $CPPFLAGS'
13613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13616
13617
13618 fi
13619 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13620 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13621   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13622
13623
13624 { echo "$as_me:$LINENO: checking for pid_t" >&5
13625 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13626 if test "${ac_cv_type_pid_t+set}" = set; then
13627   echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629   cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635 $ac_includes_default
13636 typedef pid_t ac__type_new_;
13637 int
13638 main ()
13639 {
13640 if ((ac__type_new_ *) 0)
13641   return 0;
13642 if (sizeof (ac__type_new_))
13643   return 0;
13644   ;
13645   return 0;
13646 }
13647 _ACEOF
13648 rm -f conftest.$ac_objext
13649 if { (ac_try="$ac_compile"
13650 case "(($ac_try" in
13651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652   *) ac_try_echo=$ac_try;;
13653 esac
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655   (eval "$ac_compile") 2>conftest.er1
13656   ac_status=$?
13657   grep -v '^ *+' conftest.er1 >conftest.err
13658   rm -f conftest.er1
13659   cat conftest.err >&5
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); } &&
13662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13663   { (case "(($ac_try" in
13664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665   *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668   (eval "$ac_try") 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; } &&
13672          { ac_try='test -s conftest.$ac_objext'
13673   { (case "(($ac_try" in
13674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675   *) ac_try_echo=$ac_try;;
13676 esac
13677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678   (eval "$ac_try") 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); }; }; then
13682   ac_cv_type_pid_t=yes
13683 else
13684   echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13686
13687         ac_cv_type_pid_t=no
13688 fi
13689
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 fi
13692 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13693 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13694 if test $ac_cv_type_pid_t = yes; then
13695   :
13696 else
13697
13698 cat >>confdefs.h <<_ACEOF
13699 #define pid_t int
13700 _ACEOF
13701
13702 fi
13703
13704 { echo "$as_me:$LINENO: checking for size_t" >&5
13705 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13706 if test "${ac_cv_type_size_t+set}" = set; then
13707   echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709   cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h.  */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h.  */
13715 $ac_includes_default
13716 typedef size_t ac__type_new_;
13717 int
13718 main ()
13719 {
13720 if ((ac__type_new_ *) 0)
13721   return 0;
13722 if (sizeof (ac__type_new_))
13723   return 0;
13724   ;
13725   return 0;
13726 }
13727 _ACEOF
13728 rm -f conftest.$ac_objext
13729 if { (ac_try="$ac_compile"
13730 case "(($ac_try" in
13731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732   *) ac_try_echo=$ac_try;;
13733 esac
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735   (eval "$ac_compile") 2>conftest.er1
13736   ac_status=$?
13737   grep -v '^ *+' conftest.er1 >conftest.err
13738   rm -f conftest.er1
13739   cat conftest.err >&5
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } &&
13742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13743   { (case "(($ac_try" in
13744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745   *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748   (eval "$ac_try") 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; } &&
13752          { ac_try='test -s conftest.$ac_objext'
13753   { (case "(($ac_try" in
13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755   *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758   (eval "$ac_try") 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; }; then
13762   ac_cv_type_size_t=yes
13763 else
13764   echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767         ac_cv_type_size_t=no
13768 fi
13769
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 fi
13772 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13773 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13774 if test $ac_cv_type_size_t = yes; then
13775   :
13776 else
13777
13778 cat >>confdefs.h <<_ACEOF
13779 #define size_t unsigned int
13780 _ACEOF
13781
13782 fi
13783
13784
13785 cat >>confdefs.h <<_ACEOF
13786 #define RETSIGTYPE void
13787 _ACEOF
13788
13789 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13790 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13791 if test "${ac_cv_struct_tm+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794   cat >conftest.$ac_ext <<_ACEOF
13795 /* confdefs.h.  */
13796 _ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h.  */
13800 #include <sys/types.h>
13801 #include <time.h>
13802
13803 int
13804 main ()
13805 {
13806 struct tm *tp; tp->tm_sec;
13807   ;
13808   return 0;
13809 }
13810 _ACEOF
13811 rm -f conftest.$ac_objext
13812 if { (ac_try="$ac_compile"
13813 case "(($ac_try" in
13814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815   *) ac_try_echo=$ac_try;;
13816 esac
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818   (eval "$ac_compile") 2>conftest.er1
13819   ac_status=$?
13820   grep -v '^ *+' conftest.er1 >conftest.err
13821   rm -f conftest.er1
13822   cat conftest.err >&5
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); } &&
13825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13826   { (case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831   (eval "$ac_try") 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; } &&
13835          { ac_try='test -s conftest.$ac_objext'
13836   { (case "(($ac_try" in
13837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838   *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841   (eval "$ac_try") 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; }; then
13845   ac_cv_struct_tm=time.h
13846 else
13847   echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850         ac_cv_struct_tm=sys/time.h
13851 fi
13852
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 fi
13855 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13856 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13857 if test $ac_cv_struct_tm = sys/time.h; then
13858
13859 cat >>confdefs.h <<\_ACEOF
13860 #define TM_IN_SYS_TIME 1
13861 _ACEOF
13862
13863 fi
13864
13865 { echo "$as_me:$LINENO: checking for int64_t" >&5
13866 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13867 if test "${ac_cv_type_int64_t+set}" = set; then
13868   echo $ECHO_N "(cached) $ECHO_C" >&6
13869 else
13870   cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h.  */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h.  */
13876 $ac_includes_default
13877 typedef int64_t ac__type_new_;
13878 int
13879 main ()
13880 {
13881 if ((ac__type_new_ *) 0)
13882   return 0;
13883 if (sizeof (ac__type_new_))
13884   return 0;
13885   ;
13886   return 0;
13887 }
13888 _ACEOF
13889 rm -f conftest.$ac_objext
13890 if { (ac_try="$ac_compile"
13891 case "(($ac_try" in
13892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893   *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896   (eval "$ac_compile") 2>conftest.er1
13897   ac_status=$?
13898   grep -v '^ *+' conftest.er1 >conftest.err
13899   rm -f conftest.er1
13900   cat conftest.err >&5
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); } &&
13903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13904   { (case "(($ac_try" in
13905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906   *) ac_try_echo=$ac_try;;
13907 esac
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909   (eval "$ac_try") 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; } &&
13913          { ac_try='test -s conftest.$ac_objext'
13914   { (case "(($ac_try" in
13915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916   *) ac_try_echo=$ac_try;;
13917 esac
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919   (eval "$ac_try") 2>&5
13920   ac_status=$?
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); }; }; then
13923   ac_cv_type_int64_t=yes
13924 else
13925   echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13927
13928         ac_cv_type_int64_t=no
13929 fi
13930
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932 fi
13933 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13934 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13935 if test $ac_cv_type_int64_t = yes; then
13936
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_INT64_T 1
13939 _ACEOF
13940
13941
13942 else
13943   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13944 echo "$as_me: error: Type int64_t required but not found" >&2;}
13945    { (exit 1); exit 1; }; }
13946 fi
13947
13948 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13949 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13950 if test "${ac_cv_type_uint64_t+set}" = set; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959 $ac_includes_default
13960 typedef uint64_t ac__type_new_;
13961 int
13962 main ()
13963 {
13964 if ((ac__type_new_ *) 0)
13965   return 0;
13966 if (sizeof (ac__type_new_))
13967   return 0;
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 rm -f conftest.$ac_objext
13973 if { (ac_try="$ac_compile"
13974 case "(($ac_try" in
13975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976   *) ac_try_echo=$ac_try;;
13977 esac
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979   (eval "$ac_compile") 2>conftest.er1
13980   ac_status=$?
13981   grep -v '^ *+' conftest.er1 >conftest.err
13982   rm -f conftest.er1
13983   cat conftest.err >&5
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); } &&
13986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13987   { (case "(($ac_try" in
13988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989   *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992   (eval "$ac_try") 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; } &&
13996          { ac_try='test -s conftest.$ac_objext'
13997   { (case "(($ac_try" in
13998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999   *) ac_try_echo=$ac_try;;
14000 esac
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002   (eval "$ac_try") 2>&5
14003   ac_status=$?
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); }; }; then
14006   ac_cv_type_uint64_t=yes
14007 else
14008   echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011         ac_cv_type_uint64_t=no
14012 fi
14013
14014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14015 fi
14016 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14017 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14018 if test $ac_cv_type_uint64_t = yes; then
14019
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_UINT64_T 1
14022 _ACEOF
14023
14024
14025 else
14026   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14027 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14028 if test "${ac_cv_type_u_int64_t+set}" = set; then
14029   echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031   cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h.  */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h.  */
14037 $ac_includes_default
14038 typedef u_int64_t ac__type_new_;
14039 int
14040 main ()
14041 {
14042 if ((ac__type_new_ *) 0)
14043   return 0;
14044 if (sizeof (ac__type_new_))
14045   return 0;
14046   ;
14047   return 0;
14048 }
14049 _ACEOF
14050 rm -f conftest.$ac_objext
14051 if { (ac_try="$ac_compile"
14052 case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_compile") 2>conftest.er1
14058   ac_status=$?
14059   grep -v '^ *+' conftest.er1 >conftest.err
14060   rm -f conftest.er1
14061   cat conftest.err >&5
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } &&
14064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14065   { (case "(($ac_try" in
14066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067   *) ac_try_echo=$ac_try;;
14068 esac
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070   (eval "$ac_try") 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); }; } &&
14074          { ac_try='test -s conftest.$ac_objext'
14075   { (case "(($ac_try" in
14076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077   *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080   (eval "$ac_try") 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); }; }; then
14084   ac_cv_type_u_int64_t=yes
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089         ac_cv_type_u_int64_t=no
14090 fi
14091
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14093 fi
14094 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14095 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14096 if test $ac_cv_type_u_int64_t = yes; then
14097
14098 cat >>confdefs.h <<_ACEOF
14099 #define HAVE_U_INT64_T 1
14100 _ACEOF
14101
14102
14103 else
14104   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14105 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14106    { (exit 1); exit 1; }; }
14107 fi
14108
14109 fi
14110
14111
14112
14113
14114
14115 for ac_func in backtrace getcwd
14116 do
14117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14121   echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123   cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14131 #define $ac_func innocuous_$ac_func
14132
14133 /* System header to define __stub macros and hopefully few prototypes,
14134     which can conflict with char $ac_func (); below.
14135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14136     <limits.h> exists even on freestanding compilers.  */
14137
14138 #ifdef __STDC__
14139 # include <limits.h>
14140 #else
14141 # include <assert.h>
14142 #endif
14143
14144 #undef $ac_func
14145
14146 /* Override any GCC internal prototype to avoid an error.
14147    Use char because int might match the return type of a GCC
14148    builtin and then its argument prototype would still apply.  */
14149 #ifdef __cplusplus
14150 extern "C"
14151 #endif
14152 char $ac_func ();
14153 /* The GNU C library defines this for functions which it implements
14154     to always fail with ENOSYS.  Some functions are actually named
14155     something starting with __ and the normal name is an alias.  */
14156 #if defined __stub_$ac_func || defined __stub___$ac_func
14157 choke me
14158 #endif
14159
14160 int
14161 main ()
14162 {
14163 return $ac_func ();
14164   ;
14165   return 0;
14166 }
14167 _ACEOF
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (ac_try="$ac_link"
14170 case "(($ac_try" in
14171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172   *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175   (eval "$ac_link") 2>conftest.er1
14176   ac_status=$?
14177   grep -v '^ *+' conftest.er1 >conftest.err
14178   rm -f conftest.er1
14179   cat conftest.err >&5
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } &&
14182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14183   { (case "(($ac_try" in
14184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185   *) ac_try_echo=$ac_try;;
14186 esac
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188   (eval "$ac_try") 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; } &&
14192          { ac_try='test -s conftest$ac_exeext'
14193   { (case "(($ac_try" in
14194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195   *) ac_try_echo=$ac_try;;
14196 esac
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198   (eval "$ac_try") 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; }; then
14202   eval "$as_ac_var=yes"
14203 else
14204   echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14206
14207         eval "$as_ac_var=no"
14208 fi
14209
14210 rm -f core conftest.err conftest.$ac_objext \
14211       conftest$ac_exeext conftest.$ac_ext
14212 fi
14213 ac_res=`eval echo '${'$as_ac_var'}'`
14214                { echo "$as_me:$LINENO: result: $ac_res" >&5
14215 echo "${ECHO_T}$ac_res" >&6; }
14216 if test `eval echo '${'$as_ac_var'}'` = yes; then
14217   cat >>confdefs.h <<_ACEOF
14218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14219 _ACEOF
14220
14221 fi
14222 done
14223
14224
14225
14226
14227
14228
14229 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14230 do
14231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14235   echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237   cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h.  */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h.  */
14243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14245 #define $ac_func innocuous_$ac_func
14246
14247 /* System header to define __stub macros and hopefully few prototypes,
14248     which can conflict with char $ac_func (); below.
14249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14250     <limits.h> exists even on freestanding compilers.  */
14251
14252 #ifdef __STDC__
14253 # include <limits.h>
14254 #else
14255 # include <assert.h>
14256 #endif
14257
14258 #undef $ac_func
14259
14260 /* Override any GCC internal prototype to avoid an error.
14261    Use char because int might match the return type of a GCC
14262    builtin and then its argument prototype would still apply.  */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 char $ac_func ();
14267 /* The GNU C library defines this for functions which it implements
14268     to always fail with ENOSYS.  Some functions are actually named
14269     something starting with __ and the normal name is an alias.  */
14270 #if defined __stub_$ac_func || defined __stub___$ac_func
14271 choke me
14272 #endif
14273
14274 int
14275 main ()
14276 {
14277 return $ac_func ();
14278   ;
14279   return 0;
14280 }
14281 _ACEOF
14282 rm -f conftest.$ac_objext conftest$ac_exeext
14283 if { (ac_try="$ac_link"
14284 case "(($ac_try" in
14285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286   *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289   (eval "$ac_link") 2>conftest.er1
14290   ac_status=$?
14291   grep -v '^ *+' conftest.er1 >conftest.err
14292   rm -f conftest.er1
14293   cat conftest.err >&5
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); } &&
14296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14306          { ac_try='test -s conftest$ac_exeext'
14307   { (case "(($ac_try" in
14308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309   *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312   (eval "$ac_try") 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); }; }; then
14316   eval "$as_ac_var=yes"
14317 else
14318   echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14320
14321         eval "$as_ac_var=no"
14322 fi
14323
14324 rm -f core conftest.err conftest.$ac_objext \
14325       conftest$ac_exeext conftest.$ac_ext
14326 fi
14327 ac_res=`eval echo '${'$as_ac_var'}'`
14328                { echo "$as_me:$LINENO: result: $ac_res" >&5
14329 echo "${ECHO_T}$ac_res" >&6; }
14330 if test `eval echo '${'$as_ac_var'}'` = yes; then
14331   cat >>confdefs.h <<_ACEOF
14332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14333 _ACEOF
14334
14335 fi
14336 done
14337
14338
14339
14340
14341 for ac_func in isatty mkdtemp mkstemp
14342 do
14343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14357 #define $ac_func innocuous_$ac_func
14358
14359 /* System header to define __stub macros and hopefully few prototypes,
14360     which can conflict with char $ac_func (); below.
14361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362     <limits.h> exists even on freestanding compilers.  */
14363
14364 #ifdef __STDC__
14365 # include <limits.h>
14366 #else
14367 # include <assert.h>
14368 #endif
14369
14370 #undef $ac_func
14371
14372 /* Override any GCC internal prototype to avoid an error.
14373    Use char because int might match the return type of a GCC
14374    builtin and then its argument prototype would still apply.  */
14375 #ifdef __cplusplus
14376 extern "C"
14377 #endif
14378 char $ac_func ();
14379 /* The GNU C library defines this for functions which it implements
14380     to always fail with ENOSYS.  Some functions are actually named
14381     something starting with __ and the normal name is an alias.  */
14382 #if defined __stub_$ac_func || defined __stub___$ac_func
14383 choke me
14384 #endif
14385
14386 int
14387 main ()
14388 {
14389 return $ac_func ();
14390   ;
14391   return 0;
14392 }
14393 _ACEOF
14394 rm -f conftest.$ac_objext conftest$ac_exeext
14395 if { (ac_try="$ac_link"
14396 case "(($ac_try" in
14397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398   *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401   (eval "$ac_link") 2>conftest.er1
14402   ac_status=$?
14403   grep -v '^ *+' conftest.er1 >conftest.err
14404   rm -f conftest.er1
14405   cat conftest.err >&5
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); } &&
14408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14409   { (case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_try") 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; } &&
14418          { ac_try='test -s conftest$ac_exeext'
14419   { (case "(($ac_try" in
14420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421   *) ac_try_echo=$ac_try;;
14422 esac
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424   (eval "$ac_try") 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; }; then
14428   eval "$as_ac_var=yes"
14429 else
14430   echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14432
14433         eval "$as_ac_var=no"
14434 fi
14435
14436 rm -f core conftest.err conftest.$ac_objext \
14437       conftest$ac_exeext conftest.$ac_ext
14438 fi
14439 ac_res=`eval echo '${'$as_ac_var'}'`
14440                { echo "$as_me:$LINENO: result: $ac_res" >&5
14441 echo "${ECHO_T}$ac_res" >&6; }
14442 if test `eval echo '${'$as_ac_var'}'` = yes; then
14443   cat >>confdefs.h <<_ACEOF
14444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14445 _ACEOF
14446
14447 fi
14448 done
14449
14450
14451
14452
14453
14454
14455
14456 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14457 do
14458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h.  */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h.  */
14470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14472 #define $ac_func innocuous_$ac_func
14473
14474 /* System header to define __stub macros and hopefully few prototypes,
14475     which can conflict with char $ac_func (); below.
14476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14477     <limits.h> exists even on freestanding compilers.  */
14478
14479 #ifdef __STDC__
14480 # include <limits.h>
14481 #else
14482 # include <assert.h>
14483 #endif
14484
14485 #undef $ac_func
14486
14487 /* Override any GCC internal prototype to avoid an error.
14488    Use char because int might match the return type of a GCC
14489    builtin and then its argument prototype would still apply.  */
14490 #ifdef __cplusplus
14491 extern "C"
14492 #endif
14493 char $ac_func ();
14494 /* The GNU C library defines this for functions which it implements
14495     to always fail with ENOSYS.  Some functions are actually named
14496     something starting with __ and the normal name is an alias.  */
14497 #if defined __stub_$ac_func || defined __stub___$ac_func
14498 choke me
14499 #endif
14500
14501 int
14502 main ()
14503 {
14504 return $ac_func ();
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest.$ac_objext conftest$ac_exeext
14510 if { (ac_try="$ac_link"
14511 case "(($ac_try" in
14512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513   *) ac_try_echo=$ac_try;;
14514 esac
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516   (eval "$ac_link") 2>conftest.er1
14517   ac_status=$?
14518   grep -v '^ *+' conftest.er1 >conftest.err
14519   rm -f conftest.er1
14520   cat conftest.err >&5
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } &&
14523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14524   { (case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529   (eval "$ac_try") 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; } &&
14533          { ac_try='test -s conftest$ac_exeext'
14534   { (case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_try") 2>&5
14540   ac_status=$?
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); }; }; then
14543   eval "$as_ac_var=yes"
14544 else
14545   echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548         eval "$as_ac_var=no"
14549 fi
14550
14551 rm -f core conftest.err conftest.$ac_objext \
14552       conftest$ac_exeext conftest.$ac_ext
14553 fi
14554 ac_res=`eval echo '${'$as_ac_var'}'`
14555                { echo "$as_me:$LINENO: result: $ac_res" >&5
14556 echo "${ECHO_T}$ac_res" >&6; }
14557 if test `eval echo '${'$as_ac_var'}'` = yes; then
14558   cat >>confdefs.h <<_ACEOF
14559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14560 _ACEOF
14561
14562 fi
14563 done
14564
14565
14566
14567
14568 for ac_func in strerror strerror_r setenv
14569 do
14570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14574   echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576   cat >conftest.$ac_ext <<_ACEOF
14577 /* confdefs.h.  */
14578 _ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h.  */
14582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14584 #define $ac_func innocuous_$ac_func
14585
14586 /* System header to define __stub macros and hopefully few prototypes,
14587     which can conflict with char $ac_func (); below.
14588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14589     <limits.h> exists even on freestanding compilers.  */
14590
14591 #ifdef __STDC__
14592 # include <limits.h>
14593 #else
14594 # include <assert.h>
14595 #endif
14596
14597 #undef $ac_func
14598
14599 /* Override any GCC internal prototype to avoid an error.
14600    Use char because int might match the return type of a GCC
14601    builtin and then its argument prototype would still apply.  */
14602 #ifdef __cplusplus
14603 extern "C"
14604 #endif
14605 char $ac_func ();
14606 /* The GNU C library defines this for functions which it implements
14607     to always fail with ENOSYS.  Some functions are actually named
14608     something starting with __ and the normal name is an alias.  */
14609 #if defined __stub_$ac_func || defined __stub___$ac_func
14610 choke me
14611 #endif
14612
14613 int
14614 main ()
14615 {
14616 return $ac_func ();
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext conftest$ac_exeext
14622 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14629   ac_status=$?
14630   grep -v '^ *+' conftest.er1 >conftest.err
14631   rm -f conftest.er1
14632   cat conftest.err >&5
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); } &&
14635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636   { (case "(($ac_try" in
14637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638   *) ac_try_echo=$ac_try;;
14639 esac
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641   (eval "$ac_try") 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; } &&
14645          { ac_try='test -s conftest$ac_exeext'
14646   { (case "(($ac_try" in
14647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648   *) ac_try_echo=$ac_try;;
14649 esac
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651   (eval "$ac_try") 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); }; }; then
14655   eval "$as_ac_var=yes"
14656 else
14657   echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14659
14660         eval "$as_ac_var=no"
14661 fi
14662
14663 rm -f core conftest.err conftest.$ac_objext \
14664       conftest$ac_exeext conftest.$ac_ext
14665 fi
14666 ac_res=`eval echo '${'$as_ac_var'}'`
14667                { echo "$as_me:$LINENO: result: $ac_res" >&5
14668 echo "${ECHO_T}$ac_res" >&6; }
14669 if test `eval echo '${'$as_ac_var'}'` = yes; then
14670   cat >>confdefs.h <<_ACEOF
14671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14672 _ACEOF
14673
14674 fi
14675 done
14676
14677
14678
14679
14680
14681 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14682 do
14683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14687   echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689   cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14697 #define $ac_func innocuous_$ac_func
14698
14699 /* System header to define __stub macros and hopefully few prototypes,
14700     which can conflict with char $ac_func (); below.
14701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14702     <limits.h> exists even on freestanding compilers.  */
14703
14704 #ifdef __STDC__
14705 # include <limits.h>
14706 #else
14707 # include <assert.h>
14708 #endif
14709
14710 #undef $ac_func
14711
14712 /* Override any GCC internal prototype to avoid an error.
14713    Use char because int might match the return type of a GCC
14714    builtin and then its argument prototype would still apply.  */
14715 #ifdef __cplusplus
14716 extern "C"
14717 #endif
14718 char $ac_func ();
14719 /* The GNU C library defines this for functions which it implements
14720     to always fail with ENOSYS.  Some functions are actually named
14721     something starting with __ and the normal name is an alias.  */
14722 #if defined __stub_$ac_func || defined __stub___$ac_func
14723 choke me
14724 #endif
14725
14726 int
14727 main ()
14728 {
14729 return $ac_func ();
14730   ;
14731   return 0;
14732 }
14733 _ACEOF
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (ac_try="$ac_link"
14736 case "(($ac_try" in
14737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738   *) ac_try_echo=$ac_try;;
14739 esac
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741   (eval "$ac_link") 2>conftest.er1
14742   ac_status=$?
14743   grep -v '^ *+' conftest.er1 >conftest.err
14744   rm -f conftest.er1
14745   cat conftest.err >&5
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); } &&
14748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14749   { (case "(($ac_try" in
14750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751   *) ac_try_echo=$ac_try;;
14752 esac
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754   (eval "$ac_try") 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; } &&
14758          { ac_try='test -s conftest$ac_exeext'
14759   { (case "(($ac_try" in
14760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761   *) ac_try_echo=$ac_try;;
14762 esac
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764   (eval "$ac_try") 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; }; then
14768   eval "$as_ac_var=yes"
14769 else
14770   echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773         eval "$as_ac_var=no"
14774 fi
14775
14776 rm -f core conftest.err conftest.$ac_objext \
14777       conftest$ac_exeext conftest.$ac_ext
14778 fi
14779 ac_res=`eval echo '${'$as_ac_var'}'`
14780                { echo "$as_me:$LINENO: result: $ac_res" >&5
14781 echo "${ECHO_T}$ac_res" >&6; }
14782 if test `eval echo '${'$as_ac_var'}'` = yes; then
14783   cat >>confdefs.h <<_ACEOF
14784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14785 _ACEOF
14786
14787 fi
14788 done
14789
14790
14791
14792
14793
14794
14795 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14796 do
14797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14801   echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803   cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h.  */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h.  */
14809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14811 #define $ac_func innocuous_$ac_func
14812
14813 /* System header to define __stub macros and hopefully few prototypes,
14814     which can conflict with char $ac_func (); below.
14815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14816     <limits.h> exists even on freestanding compilers.  */
14817
14818 #ifdef __STDC__
14819 # include <limits.h>
14820 #else
14821 # include <assert.h>
14822 #endif
14823
14824 #undef $ac_func
14825
14826 /* Override any GCC internal prototype to avoid an error.
14827    Use char because int might match the return type of a GCC
14828    builtin and then its argument prototype would still apply.  */
14829 #ifdef __cplusplus
14830 extern "C"
14831 #endif
14832 char $ac_func ();
14833 /* The GNU C library defines this for functions which it implements
14834     to always fail with ENOSYS.  Some functions are actually named
14835     something starting with __ and the normal name is an alias.  */
14836 #if defined __stub_$ac_func || defined __stub___$ac_func
14837 choke me
14838 #endif
14839
14840 int
14841 main ()
14842 {
14843 return $ac_func ();
14844   ;
14845   return 0;
14846 }
14847 _ACEOF
14848 rm -f conftest.$ac_objext conftest$ac_exeext
14849 if { (ac_try="$ac_link"
14850 case "(($ac_try" in
14851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852   *) ac_try_echo=$ac_try;;
14853 esac
14854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14855   (eval "$ac_link") 2>conftest.er1
14856   ac_status=$?
14857   grep -v '^ *+' conftest.er1 >conftest.err
14858   rm -f conftest.er1
14859   cat conftest.err >&5
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); } &&
14862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14863   { (case "(($ac_try" in
14864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14865   *) ac_try_echo=$ac_try;;
14866 esac
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868   (eval "$ac_try") 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; } &&
14872          { ac_try='test -s conftest$ac_exeext'
14873   { (case "(($ac_try" in
14874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875   *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878   (eval "$ac_try") 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); }; }; then
14882   eval "$as_ac_var=yes"
14883 else
14884   echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887         eval "$as_ac_var=no"
14888 fi
14889
14890 rm -f core conftest.err conftest.$ac_objext \
14891       conftest$ac_exeext conftest.$ac_ext
14892 fi
14893 ac_res=`eval echo '${'$as_ac_var'}'`
14894                { echo "$as_me:$LINENO: result: $ac_res" >&5
14895 echo "${ECHO_T}$ac_res" >&6; }
14896 if test `eval echo '${'$as_ac_var'}'` = yes; then
14897   cat >>confdefs.h <<_ACEOF
14898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14899 _ACEOF
14900
14901 fi
14902 done
14903
14904
14905
14906 for ac_func in futimes futimens
14907 do
14908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14912   echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914   cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h.  */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h.  */
14920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14922 #define $ac_func innocuous_$ac_func
14923
14924 /* System header to define __stub macros and hopefully few prototypes,
14925     which can conflict with char $ac_func (); below.
14926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14927     <limits.h> exists even on freestanding compilers.  */
14928
14929 #ifdef __STDC__
14930 # include <limits.h>
14931 #else
14932 # include <assert.h>
14933 #endif
14934
14935 #undef $ac_func
14936
14937 /* Override any GCC internal prototype to avoid an error.
14938    Use char because int might match the return type of a GCC
14939    builtin and then its argument prototype would still apply.  */
14940 #ifdef __cplusplus
14941 extern "C"
14942 #endif
14943 char $ac_func ();
14944 /* The GNU C library defines this for functions which it implements
14945     to always fail with ENOSYS.  Some functions are actually named
14946     something starting with __ and the normal name is an alias.  */
14947 #if defined __stub_$ac_func || defined __stub___$ac_func
14948 choke me
14949 #endif
14950
14951 int
14952 main ()
14953 {
14954 return $ac_func ();
14955   ;
14956   return 0;
14957 }
14958 _ACEOF
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (ac_try="$ac_link"
14961 case "(($ac_try" in
14962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963   *) ac_try_echo=$ac_try;;
14964 esac
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966   (eval "$ac_link") 2>conftest.er1
14967   ac_status=$?
14968   grep -v '^ *+' conftest.er1 >conftest.err
14969   rm -f conftest.er1
14970   cat conftest.err >&5
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); } &&
14973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14974   { (case "(($ac_try" in
14975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976   *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979   (eval "$ac_try") 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); }; } &&
14983          { ac_try='test -s conftest$ac_exeext'
14984   { (case "(($ac_try" in
14985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986   *) ac_try_echo=$ac_try;;
14987 esac
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989   (eval "$ac_try") 2>&5
14990   ac_status=$?
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); }; }; then
14993   eval "$as_ac_var=yes"
14994 else
14995   echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998         eval "$as_ac_var=no"
14999 fi
15000
15001 rm -f core conftest.err conftest.$ac_objext \
15002       conftest$ac_exeext conftest.$ac_ext
15003 fi
15004 ac_res=`eval echo '${'$as_ac_var'}'`
15005                { echo "$as_me:$LINENO: result: $ac_res" >&5
15006 echo "${ECHO_T}$ac_res" >&6; }
15007 if test `eval echo '${'$as_ac_var'}'` = yes; then
15008   cat >>confdefs.h <<_ACEOF
15009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15010 _ACEOF
15011
15012 fi
15013 done
15014
15015 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15016 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15017 if test "${llvm_cv_c_printf_a+set}" = set; then
15018   echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020   ac_ext=c
15021 ac_cpp='$CPP $CPPFLAGS'
15022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15025
15026  if test "$cross_compiling" = yes; then
15027   llvmac_cv_c_printf_a=no
15028 else
15029   cat >conftest.$ac_ext <<_ACEOF
15030
15031   /* confdefs.h.  */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h.  */
15036
15037 #include <stdio.h>
15038 #include <stdlib.h>
15039
15040 int
15041 main ()
15042 {
15043
15044 volatile double A, B;
15045 char Buffer[100];
15046 A = 1;
15047 A /= 10.0;
15048 sprintf(Buffer, "%a", A);
15049 B = atof(Buffer);
15050 if (A != B)
15051   return (1);
15052 if (A != 0x1.999999999999ap-4)
15053   return (1);
15054 return (0);
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 rm -f conftest$ac_exeext
15060 if { (ac_try="$ac_link"
15061 case "(($ac_try" in
15062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063   *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066   (eval "$ac_link") 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15070   { (case "(($ac_try" in
15071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072   *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075   (eval "$ac_try") 2>&5
15076   ac_status=$?
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); }; }; then
15079   llvm_cv_c_printf_a=yes
15080 else
15081   echo "$as_me: program exited with status $ac_status" >&5
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15084
15085 ( exit $ac_status )
15086 llvmac_cv_c_printf_a=no
15087 fi
15088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15089 fi
15090
15091
15092  ac_ext=c
15093 ac_cpp='$CPP $CPPFLAGS'
15094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15097
15098 fi
15099 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15100 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15101  if test "$llvm_cv_c_printf_a" = "yes"; then
15102
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_PRINTF_A 1
15105 _ACEOF
15106
15107  fi
15108
15109
15110
15111   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15112 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15113 if test "${ac_cv_func_rand48+set}" = set; then
15114   echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116
15117     ac_ext=cpp
15118 ac_cpp='$CXXCPP $CPPFLAGS'
15119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15122
15123     cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h.  */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h.  */
15129 #include <stdlib.h>
15130 int
15131 main ()
15132 {
15133 srand48(0);lrand48();drand48();
15134   ;
15135   return 0;
15136 }
15137 _ACEOF
15138 rm -f conftest.$ac_objext
15139 if { (ac_try="$ac_compile"
15140 case "(($ac_try" in
15141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142   *) ac_try_echo=$ac_try;;
15143 esac
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145   (eval "$ac_compile") 2>conftest.er1
15146   ac_status=$?
15147   grep -v '^ *+' conftest.er1 >conftest.err
15148   rm -f conftest.er1
15149   cat conftest.err >&5
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } &&
15152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15153   { (case "(($ac_try" in
15154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155   *) ac_try_echo=$ac_try;;
15156 esac
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158   (eval "$ac_try") 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); }; } &&
15162          { ac_try='test -s conftest.$ac_objext'
15163   { (case "(($ac_try" in
15164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165   *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168   (eval "$ac_try") 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; }; then
15172   ac_cv_func_rand48=yes
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177         ac_cv_func_rand48=no
15178 fi
15179
15180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15181     ac_ext=c
15182 ac_cpp='$CPP $CPPFLAGS'
15183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15186
15187
15188 fi
15189 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15190 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15191
15192 if test "$ac_cv_func_rand48" = "yes" ; then
15193
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_RAND48 1
15196 _ACEOF
15197
15198 fi
15199
15200
15201 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15202 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15203 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15204   echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206   cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h.  */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h.  */
15212 $ac_includes_default
15213 int
15214 main ()
15215 {
15216 #ifndef arc4random
15217   char *p = (char *) arc4random;
15218   return !p;
15219 #endif
15220
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229   *) ac_try_echo=$ac_try;;
15230 esac
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232   (eval "$ac_compile") 2>conftest.er1
15233   ac_status=$?
15234   grep -v '^ *+' conftest.er1 >conftest.err
15235   rm -f conftest.er1
15236   cat conftest.err >&5
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } &&
15239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240   { (case "(($ac_try" in
15241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242   *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245   (eval "$ac_try") 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; } &&
15249          { ac_try='test -s conftest.$ac_objext'
15250   { (case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_try") 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; }; then
15259   ac_cv_have_decl_arc4random=yes
15260 else
15261   echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264         ac_cv_have_decl_arc4random=no
15265 fi
15266
15267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15268 fi
15269 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15270 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15271 if test $ac_cv_have_decl_arc4random = yes; then
15272
15273 cat >>confdefs.h <<_ACEOF
15274 #define HAVE_DECL_ARC4RANDOM 1
15275 _ACEOF
15276
15277
15278 else
15279   cat >>confdefs.h <<_ACEOF
15280 #define HAVE_DECL_ARC4RANDOM 0
15281 _ACEOF
15282
15283
15284 fi
15285
15286
15287
15288 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15289 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15290 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15291   echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15293   cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299 $ac_includes_default
15300 int
15301 main ()
15302 {
15303 #ifndef strerror_s
15304   char *p = (char *) strerror_s;
15305   return !p;
15306 #endif
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (ac_try="$ac_compile"
15314 case "(($ac_try" in
15315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316   *) ac_try_echo=$ac_try;;
15317 esac
15318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319   (eval "$ac_compile") 2>conftest.er1
15320   ac_status=$?
15321   grep -v '^ *+' conftest.er1 >conftest.err
15322   rm -f conftest.er1
15323   cat conftest.err >&5
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); } &&
15326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15327   { (case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_try") 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; } &&
15336          { ac_try='test -s conftest.$ac_objext'
15337   { (case "(($ac_try" in
15338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339   *) ac_try_echo=$ac_try;;
15340 esac
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342   (eval "$ac_try") 2>&5
15343   ac_status=$?
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); }; }; then
15346   ac_cv_have_decl_strerror_s=yes
15347 else
15348   echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15350
15351         ac_cv_have_decl_strerror_s=no
15352 fi
15353
15354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 fi
15356 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15357 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15358 if test $ac_cv_have_decl_strerror_s = yes; then
15359
15360 cat >>confdefs.h <<_ACEOF
15361 #define HAVE_DECL_STRERROR_S 1
15362 _ACEOF
15363
15364
15365 else
15366   cat >>confdefs.h <<_ACEOF
15367 #define HAVE_DECL_STRERROR_S 0
15368 _ACEOF
15369
15370
15371 fi
15372
15373
15374
15375 if test "$llvm_cv_os_type" = "MingW" ; then
15376   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15377 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15378 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15379   echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381   ac_check_lib_save_LIBS=$LIBS
15382 LIBS="-lgcc  $LIBS"
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h.  */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h.  */
15389
15390 /* Override any GCC internal prototype to avoid an error.
15391    Use char because int might match the return type of a GCC
15392    builtin and then its argument prototype would still apply.  */
15393 #ifdef __cplusplus
15394 extern "C"
15395 #endif
15396 char _alloca ();
15397 int
15398 main ()
15399 {
15400 return _alloca ();
15401   ;
15402   return 0;
15403 }
15404 _ACEOF
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409   *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412   (eval "$ac_link") 2>conftest.er1
15413   ac_status=$?
15414   grep -v '^ *+' conftest.er1 >conftest.err
15415   rm -f conftest.er1
15416   cat conftest.err >&5
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); } &&
15419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15420   { (case "(($ac_try" in
15421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422   *) ac_try_echo=$ac_try;;
15423 esac
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425   (eval "$ac_try") 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }; } &&
15429          { ac_try='test -s conftest$ac_exeext'
15430   { (case "(($ac_try" in
15431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432   *) ac_try_echo=$ac_try;;
15433 esac
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435   (eval "$ac_try") 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; }; then
15439   ac_cv_lib_gcc__alloca=yes
15440 else
15441   echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15443
15444         ac_cv_lib_gcc__alloca=no
15445 fi
15446
15447 rm -f core conftest.err conftest.$ac_objext \
15448       conftest$ac_exeext conftest.$ac_ext
15449 LIBS=$ac_check_lib_save_LIBS
15450 fi
15451 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15452 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15453 if test $ac_cv_lib_gcc__alloca = yes; then
15454
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE__ALLOCA 1
15457 _ACEOF
15458
15459 fi
15460
15461   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15462 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15463 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15464   echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466   ac_check_lib_save_LIBS=$LIBS
15467 LIBS="-lgcc  $LIBS"
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h.  */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h.  */
15474
15475 /* Override any GCC internal prototype to avoid an error.
15476    Use char because int might match the return type of a GCC
15477    builtin and then its argument prototype would still apply.  */
15478 #ifdef __cplusplus
15479 extern "C"
15480 #endif
15481 char __alloca ();
15482 int
15483 main ()
15484 {
15485 return __alloca ();
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext conftest$ac_exeext
15491 if { (ac_try="$ac_link"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_link") 2>conftest.er1
15498   ac_status=$?
15499   grep -v '^ *+' conftest.er1 >conftest.err
15500   rm -f conftest.er1
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } &&
15504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15505   { (case "(($ac_try" in
15506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507   *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510   (eval "$ac_try") 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); }; } &&
15514          { ac_try='test -s conftest$ac_exeext'
15515   { (case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_try") 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); }; }; then
15524   ac_cv_lib_gcc___alloca=yes
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529         ac_cv_lib_gcc___alloca=no
15530 fi
15531
15532 rm -f core conftest.err conftest.$ac_objext \
15533       conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15535 fi
15536 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15537 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15538 if test $ac_cv_lib_gcc___alloca = yes; then
15539
15540 cat >>confdefs.h <<\_ACEOF
15541 #define HAVE___ALLOCA 1
15542 _ACEOF
15543
15544 fi
15545
15546   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15547 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15548 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   ac_check_lib_save_LIBS=$LIBS
15552 LIBS="-lgcc  $LIBS"
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559
15560 /* Override any GCC internal prototype to avoid an error.
15561    Use char because int might match the return type of a GCC
15562    builtin and then its argument prototype would still apply.  */
15563 #ifdef __cplusplus
15564 extern "C"
15565 #endif
15566 char __chkstk ();
15567 int
15568 main ()
15569 {
15570 return __chkstk ();
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext conftest$ac_exeext
15576 if { (ac_try="$ac_link"
15577 case "(($ac_try" in
15578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579   *) ac_try_echo=$ac_try;;
15580 esac
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582   (eval "$ac_link") 2>conftest.er1
15583   ac_status=$?
15584   grep -v '^ *+' conftest.er1 >conftest.err
15585   rm -f conftest.er1
15586   cat conftest.err >&5
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); } &&
15589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15590   { (case "(($ac_try" in
15591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592   *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595   (eval "$ac_try") 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; } &&
15599          { ac_try='test -s conftest$ac_exeext'
15600   { (case "(($ac_try" in
15601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602   *) ac_try_echo=$ac_try;;
15603 esac
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605   (eval "$ac_try") 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }; }; then
15609   ac_cv_lib_gcc___chkstk=yes
15610 else
15611   echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15613
15614         ac_cv_lib_gcc___chkstk=no
15615 fi
15616
15617 rm -f core conftest.err conftest.$ac_objext \
15618       conftest$ac_exeext conftest.$ac_ext
15619 LIBS=$ac_check_lib_save_LIBS
15620 fi
15621 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15622 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15623 if test $ac_cv_lib_gcc___chkstk = yes; then
15624
15625 cat >>confdefs.h <<\_ACEOF
15626 #define HAVE___CHKSTK 1
15627 _ACEOF
15628
15629 fi
15630
15631   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15632 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15633 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636   ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-lgcc  $LIBS"
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644
15645 /* Override any GCC internal prototype to avoid an error.
15646    Use char because int might match the return type of a GCC
15647    builtin and then its argument prototype would still apply.  */
15648 #ifdef __cplusplus
15649 extern "C"
15650 #endif
15651 char __chkstk_ms ();
15652 int
15653 main ()
15654 {
15655 return __chkstk_ms ();
15656   ;
15657   return 0;
15658 }
15659 _ACEOF
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (ac_try="$ac_link"
15662 case "(($ac_try" in
15663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664   *) ac_try_echo=$ac_try;;
15665 esac
15666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15667   (eval "$ac_link") 2>conftest.er1
15668   ac_status=$?
15669   grep -v '^ *+' conftest.er1 >conftest.err
15670   rm -f conftest.er1
15671   cat conftest.err >&5
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } &&
15674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15675   { (case "(($ac_try" in
15676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677   *) ac_try_echo=$ac_try;;
15678 esac
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680   (eval "$ac_try") 2>&5
15681   ac_status=$?
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); }; } &&
15684          { ac_try='test -s conftest$ac_exeext'
15685   { (case "(($ac_try" in
15686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687   *) ac_try_echo=$ac_try;;
15688 esac
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690   (eval "$ac_try") 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); }; }; then
15694   ac_cv_lib_gcc___chkstk_ms=yes
15695 else
15696   echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699         ac_cv_lib_gcc___chkstk_ms=no
15700 fi
15701
15702 rm -f core conftest.err conftest.$ac_objext \
15703       conftest$ac_exeext conftest.$ac_ext
15704 LIBS=$ac_check_lib_save_LIBS
15705 fi
15706 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15707 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15708 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15709
15710 cat >>confdefs.h <<\_ACEOF
15711 #define HAVE___CHKSTK_MS 1
15712 _ACEOF
15713
15714 fi
15715
15716   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15717 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15718 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15719   echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721   ac_check_lib_save_LIBS=$LIBS
15722 LIBS="-lgcc  $LIBS"
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h.  */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h.  */
15729
15730 /* Override any GCC internal prototype to avoid an error.
15731    Use char because int might match the return type of a GCC
15732    builtin and then its argument prototype would still apply.  */
15733 #ifdef __cplusplus
15734 extern "C"
15735 #endif
15736 char ___chkstk ();
15737 int
15738 main ()
15739 {
15740 return ___chkstk ();
15741   ;
15742   return 0;
15743 }
15744 _ACEOF
15745 rm -f conftest.$ac_objext conftest$ac_exeext
15746 if { (ac_try="$ac_link"
15747 case "(($ac_try" in
15748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749   *) ac_try_echo=$ac_try;;
15750 esac
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752   (eval "$ac_link") 2>conftest.er1
15753   ac_status=$?
15754   grep -v '^ *+' conftest.er1 >conftest.err
15755   rm -f conftest.er1
15756   cat conftest.err >&5
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); } &&
15759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15760   { (case "(($ac_try" in
15761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762   *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765   (eval "$ac_try") 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; } &&
15769          { ac_try='test -s conftest$ac_exeext'
15770   { (case "(($ac_try" in
15771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772   *) ac_try_echo=$ac_try;;
15773 esac
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775   (eval "$ac_try") 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   ac_cv_lib_gcc____chkstk=yes
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784         ac_cv_lib_gcc____chkstk=no
15785 fi
15786
15787 rm -f core conftest.err conftest.$ac_objext \
15788       conftest$ac_exeext conftest.$ac_ext
15789 LIBS=$ac_check_lib_save_LIBS
15790 fi
15791 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15792 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15793 if test $ac_cv_lib_gcc____chkstk = yes; then
15794
15795 cat >>confdefs.h <<\_ACEOF
15796 #define HAVE____CHKSTK 1
15797 _ACEOF
15798
15799 fi
15800
15801   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15802 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15803 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15804   echo $ECHO_N "(cached) $ECHO_C" >&6
15805 else
15806   ac_check_lib_save_LIBS=$LIBS
15807 LIBS="-lgcc  $LIBS"
15808 cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h.  */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h.  */
15814
15815 /* Override any GCC internal prototype to avoid an error.
15816    Use char because int might match the return type of a GCC
15817    builtin and then its argument prototype would still apply.  */
15818 #ifdef __cplusplus
15819 extern "C"
15820 #endif
15821 char ___chkstk_ms ();
15822 int
15823 main ()
15824 {
15825 return ___chkstk_ms ();
15826   ;
15827   return 0;
15828 }
15829 _ACEOF
15830 rm -f conftest.$ac_objext conftest$ac_exeext
15831 if { (ac_try="$ac_link"
15832 case "(($ac_try" in
15833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834   *) ac_try_echo=$ac_try;;
15835 esac
15836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837   (eval "$ac_link") 2>conftest.er1
15838   ac_status=$?
15839   grep -v '^ *+' conftest.er1 >conftest.err
15840   rm -f conftest.er1
15841   cat conftest.err >&5
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); } &&
15844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15845   { (case "(($ac_try" in
15846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847   *) ac_try_echo=$ac_try;;
15848 esac
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850   (eval "$ac_try") 2>&5
15851   ac_status=$?
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); }; } &&
15854          { ac_try='test -s conftest$ac_exeext'
15855   { (case "(($ac_try" in
15856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857   *) ac_try_echo=$ac_try;;
15858 esac
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860   (eval "$ac_try") 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; }; then
15864   ac_cv_lib_gcc____chkstk_ms=yes
15865 else
15866   echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15868
15869         ac_cv_lib_gcc____chkstk_ms=no
15870 fi
15871
15872 rm -f core conftest.err conftest.$ac_objext \
15873       conftest$ac_exeext conftest.$ac_ext
15874 LIBS=$ac_check_lib_save_LIBS
15875 fi
15876 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15877 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15878 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15879
15880 cat >>confdefs.h <<\_ACEOF
15881 #define HAVE____CHKSTK_MS 1
15882 _ACEOF
15883
15884 fi
15885
15886
15887   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15888 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15889 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892   ac_check_lib_save_LIBS=$LIBS
15893 LIBS="-lgcc  $LIBS"
15894 cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900
15901 /* Override any GCC internal prototype to avoid an error.
15902    Use char because int might match the return type of a GCC
15903    builtin and then its argument prototype would still apply.  */
15904 #ifdef __cplusplus
15905 extern "C"
15906 #endif
15907 char __ashldi3 ();
15908 int
15909 main ()
15910 {
15911 return __ashldi3 ();
15912   ;
15913   return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (ac_try="$ac_link"
15918 case "(($ac_try" in
15919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920   *) ac_try_echo=$ac_try;;
15921 esac
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923   (eval "$ac_link") 2>conftest.er1
15924   ac_status=$?
15925   grep -v '^ *+' conftest.er1 >conftest.err
15926   rm -f conftest.er1
15927   cat conftest.err >&5
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); } &&
15930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15931   { (case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_try") 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; } &&
15940          { ac_try='test -s conftest$ac_exeext'
15941   { (case "(($ac_try" in
15942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943   *) ac_try_echo=$ac_try;;
15944 esac
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946   (eval "$ac_try") 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; }; then
15950   ac_cv_lib_gcc___ashldi3=yes
15951 else
15952   echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15954
15955         ac_cv_lib_gcc___ashldi3=no
15956 fi
15957
15958 rm -f core conftest.err conftest.$ac_objext \
15959       conftest$ac_exeext conftest.$ac_ext
15960 LIBS=$ac_check_lib_save_LIBS
15961 fi
15962 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15963 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15964 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15965
15966 cat >>confdefs.h <<\_ACEOF
15967 #define HAVE___ASHLDI3 1
15968 _ACEOF
15969
15970 fi
15971
15972   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15973 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15974 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15975   echo $ECHO_N "(cached) $ECHO_C" >&6
15976 else
15977   ac_check_lib_save_LIBS=$LIBS
15978 LIBS="-lgcc  $LIBS"
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h.  */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h.  */
15985
15986 /* Override any GCC internal prototype to avoid an error.
15987    Use char because int might match the return type of a GCC
15988    builtin and then its argument prototype would still apply.  */
15989 #ifdef __cplusplus
15990 extern "C"
15991 #endif
15992 char __ashrdi3 ();
15993 int
15994 main ()
15995 {
15996 return __ashrdi3 ();
15997   ;
15998   return 0;
15999 }
16000 _ACEOF
16001 rm -f conftest.$ac_objext conftest$ac_exeext
16002 if { (ac_try="$ac_link"
16003 case "(($ac_try" in
16004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005   *) ac_try_echo=$ac_try;;
16006 esac
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008   (eval "$ac_link") 2>conftest.er1
16009   ac_status=$?
16010   grep -v '^ *+' conftest.er1 >conftest.err
16011   rm -f conftest.er1
16012   cat conftest.err >&5
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); } &&
16015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016   { (case "(($ac_try" in
16017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018   *) ac_try_echo=$ac_try;;
16019 esac
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021   (eval "$ac_try") 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; } &&
16025          { ac_try='test -s conftest$ac_exeext'
16026   { (case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031   (eval "$ac_try") 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; }; then
16035   ac_cv_lib_gcc___ashrdi3=yes
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040         ac_cv_lib_gcc___ashrdi3=no
16041 fi
16042
16043 rm -f core conftest.err conftest.$ac_objext \
16044       conftest$ac_exeext conftest.$ac_ext
16045 LIBS=$ac_check_lib_save_LIBS
16046 fi
16047 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16048 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16049 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16050
16051 cat >>confdefs.h <<\_ACEOF
16052 #define HAVE___ASHRDI3 1
16053 _ACEOF
16054
16055 fi
16056
16057   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16058 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16059 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16060   echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062   ac_check_lib_save_LIBS=$LIBS
16063 LIBS="-lgcc  $LIBS"
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070
16071 /* Override any GCC internal prototype to avoid an error.
16072    Use char because int might match the return type of a GCC
16073    builtin and then its argument prototype would still apply.  */
16074 #ifdef __cplusplus
16075 extern "C"
16076 #endif
16077 char __divdi3 ();
16078 int
16079 main ()
16080 {
16081 return __divdi3 ();
16082   ;
16083   return 0;
16084 }
16085 _ACEOF
16086 rm -f conftest.$ac_objext conftest$ac_exeext
16087 if { (ac_try="$ac_link"
16088 case "(($ac_try" in
16089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090   *) ac_try_echo=$ac_try;;
16091 esac
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093   (eval "$ac_link") 2>conftest.er1
16094   ac_status=$?
16095   grep -v '^ *+' conftest.er1 >conftest.err
16096   rm -f conftest.er1
16097   cat conftest.err >&5
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } &&
16100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101   { (case "(($ac_try" in
16102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103   *) ac_try_echo=$ac_try;;
16104 esac
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106   (eval "$ac_try") 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; } &&
16110          { ac_try='test -s conftest$ac_exeext'
16111   { (case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116   (eval "$ac_try") 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; }; then
16120   ac_cv_lib_gcc___divdi3=yes
16121 else
16122   echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125         ac_cv_lib_gcc___divdi3=no
16126 fi
16127
16128 rm -f core conftest.err conftest.$ac_objext \
16129       conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16131 fi
16132 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16133 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16134 if test $ac_cv_lib_gcc___divdi3 = yes; then
16135
16136 cat >>confdefs.h <<\_ACEOF
16137 #define HAVE___DIVDI3 1
16138 _ACEOF
16139
16140 fi
16141
16142   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16143 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16144 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147   ac_check_lib_save_LIBS=$LIBS
16148 LIBS="-lgcc  $LIBS"
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h.  */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h.  */
16155
16156 /* Override any GCC internal prototype to avoid an error.
16157    Use char because int might match the return type of a GCC
16158    builtin and then its argument prototype would still apply.  */
16159 #ifdef __cplusplus
16160 extern "C"
16161 #endif
16162 char __fixdfdi ();
16163 int
16164 main ()
16165 {
16166 return __fixdfdi ();
16167   ;
16168   return 0;
16169 }
16170 _ACEOF
16171 rm -f conftest.$ac_objext conftest$ac_exeext
16172 if { (ac_try="$ac_link"
16173 case "(($ac_try" in
16174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175   *) ac_try_echo=$ac_try;;
16176 esac
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178   (eval "$ac_link") 2>conftest.er1
16179   ac_status=$?
16180   grep -v '^ *+' conftest.er1 >conftest.err
16181   rm -f conftest.er1
16182   cat conftest.err >&5
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); } &&
16185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186   { (case "(($ac_try" in
16187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188   *) ac_try_echo=$ac_try;;
16189 esac
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191   (eval "$ac_try") 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); }; } &&
16195          { ac_try='test -s conftest$ac_exeext'
16196   { (case "(($ac_try" in
16197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198   *) ac_try_echo=$ac_try;;
16199 esac
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201   (eval "$ac_try") 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; }; then
16205   ac_cv_lib_gcc___fixdfdi=yes
16206 else
16207   echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16209
16210         ac_cv_lib_gcc___fixdfdi=no
16211 fi
16212
16213 rm -f core conftest.err conftest.$ac_objext \
16214       conftest$ac_exeext conftest.$ac_ext
16215 LIBS=$ac_check_lib_save_LIBS
16216 fi
16217 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16218 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16219 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16220
16221 cat >>confdefs.h <<\_ACEOF
16222 #define HAVE___FIXDFDI 1
16223 _ACEOF
16224
16225 fi
16226
16227   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16228 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16229 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16230   echo $ECHO_N "(cached) $ECHO_C" >&6
16231 else
16232   ac_check_lib_save_LIBS=$LIBS
16233 LIBS="-lgcc  $LIBS"
16234 cat >conftest.$ac_ext <<_ACEOF
16235 /* confdefs.h.  */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h.  */
16240
16241 /* Override any GCC internal prototype to avoid an error.
16242    Use char because int might match the return type of a GCC
16243    builtin and then its argument prototype would still apply.  */
16244 #ifdef __cplusplus
16245 extern "C"
16246 #endif
16247 char __fixsfdi ();
16248 int
16249 main ()
16250 {
16251 return __fixsfdi ();
16252   ;
16253   return 0;
16254 }
16255 _ACEOF
16256 rm -f conftest.$ac_objext conftest$ac_exeext
16257 if { (ac_try="$ac_link"
16258 case "(($ac_try" in
16259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260   *) ac_try_echo=$ac_try;;
16261 esac
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263   (eval "$ac_link") 2>conftest.er1
16264   ac_status=$?
16265   grep -v '^ *+' conftest.er1 >conftest.err
16266   rm -f conftest.er1
16267   cat conftest.err >&5
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); } &&
16270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271   { (case "(($ac_try" in
16272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273   *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276   (eval "$ac_try") 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); }; } &&
16280          { ac_try='test -s conftest$ac_exeext'
16281   { (case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_try") 2>&5
16287   ac_status=$?
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); }; }; then
16290   ac_cv_lib_gcc___fixsfdi=yes
16291 else
16292   echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295         ac_cv_lib_gcc___fixsfdi=no
16296 fi
16297
16298 rm -f core conftest.err conftest.$ac_objext \
16299       conftest$ac_exeext conftest.$ac_ext
16300 LIBS=$ac_check_lib_save_LIBS
16301 fi
16302 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16303 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16304 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16305
16306 cat >>confdefs.h <<\_ACEOF
16307 #define HAVE___FIXSFDI 1
16308 _ACEOF
16309
16310 fi
16311
16312   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16313 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16314 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16315   echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317   ac_check_lib_save_LIBS=$LIBS
16318 LIBS="-lgcc  $LIBS"
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325
16326 /* Override any GCC internal prototype to avoid an error.
16327    Use char because int might match the return type of a GCC
16328    builtin and then its argument prototype would still apply.  */
16329 #ifdef __cplusplus
16330 extern "C"
16331 #endif
16332 char __floatdidf ();
16333 int
16334 main ()
16335 {
16336 return __floatdidf ();
16337   ;
16338   return 0;
16339 }
16340 _ACEOF
16341 rm -f conftest.$ac_objext conftest$ac_exeext
16342 if { (ac_try="$ac_link"
16343 case "(($ac_try" in
16344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345   *) ac_try_echo=$ac_try;;
16346 esac
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348   (eval "$ac_link") 2>conftest.er1
16349   ac_status=$?
16350   grep -v '^ *+' conftest.er1 >conftest.err
16351   rm -f conftest.er1
16352   cat conftest.err >&5
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); } &&
16355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16356   { (case "(($ac_try" in
16357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358   *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361   (eval "$ac_try") 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; } &&
16365          { ac_try='test -s conftest$ac_exeext'
16366   { (case "(($ac_try" in
16367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368   *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371   (eval "$ac_try") 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); }; }; then
16375   ac_cv_lib_gcc___floatdidf=yes
16376 else
16377   echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380         ac_cv_lib_gcc___floatdidf=no
16381 fi
16382
16383 rm -f core conftest.err conftest.$ac_objext \
16384       conftest$ac_exeext conftest.$ac_ext
16385 LIBS=$ac_check_lib_save_LIBS
16386 fi
16387 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16388 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16389 if test $ac_cv_lib_gcc___floatdidf = yes; then
16390
16391 cat >>confdefs.h <<\_ACEOF
16392 #define HAVE___FLOATDIDF 1
16393 _ACEOF
16394
16395 fi
16396
16397   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16398 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16399 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16400   echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402   ac_check_lib_save_LIBS=$LIBS
16403 LIBS="-lgcc  $LIBS"
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h.  */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h.  */
16410
16411 /* Override any GCC internal prototype to avoid an error.
16412    Use char because int might match the return type of a GCC
16413    builtin and then its argument prototype would still apply.  */
16414 #ifdef __cplusplus
16415 extern "C"
16416 #endif
16417 char __lshrdi3 ();
16418 int
16419 main ()
16420 {
16421 return __lshrdi3 ();
16422   ;
16423   return 0;
16424 }
16425 _ACEOF
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (ac_try="$ac_link"
16428 case "(($ac_try" in
16429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430   *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433   (eval "$ac_link") 2>conftest.er1
16434   ac_status=$?
16435   grep -v '^ *+' conftest.er1 >conftest.err
16436   rm -f conftest.er1
16437   cat conftest.err >&5
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } &&
16440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16441   { (case "(($ac_try" in
16442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443   *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446   (eval "$ac_try") 2>&5
16447   ac_status=$?
16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); }; } &&
16450          { ac_try='test -s conftest$ac_exeext'
16451   { (case "(($ac_try" in
16452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453   *) ac_try_echo=$ac_try;;
16454 esac
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456   (eval "$ac_try") 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; }; then
16460   ac_cv_lib_gcc___lshrdi3=yes
16461 else
16462   echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16464
16465         ac_cv_lib_gcc___lshrdi3=no
16466 fi
16467
16468 rm -f core conftest.err conftest.$ac_objext \
16469       conftest$ac_exeext conftest.$ac_ext
16470 LIBS=$ac_check_lib_save_LIBS
16471 fi
16472 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16473 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16474 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16475
16476 cat >>confdefs.h <<\_ACEOF
16477 #define HAVE___LSHRDI3 1
16478 _ACEOF
16479
16480 fi
16481
16482   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16483 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16484 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16485   echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487   ac_check_lib_save_LIBS=$LIBS
16488 LIBS="-lgcc  $LIBS"
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495
16496 /* Override any GCC internal prototype to avoid an error.
16497    Use char because int might match the return type of a GCC
16498    builtin and then its argument prototype would still apply.  */
16499 #ifdef __cplusplus
16500 extern "C"
16501 #endif
16502 char __moddi3 ();
16503 int
16504 main ()
16505 {
16506 return __moddi3 ();
16507   ;
16508   return 0;
16509 }
16510 _ACEOF
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_link") 2>conftest.er1
16519   ac_status=$?
16520   grep -v '^ *+' conftest.er1 >conftest.err
16521   rm -f conftest.er1
16522   cat conftest.err >&5
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); } &&
16525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526   { (case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531   (eval "$ac_try") 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; } &&
16535          { ac_try='test -s conftest$ac_exeext'
16536   { (case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_try") 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; }; then
16545   ac_cv_lib_gcc___moddi3=yes
16546 else
16547   echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16549
16550         ac_cv_lib_gcc___moddi3=no
16551 fi
16552
16553 rm -f core conftest.err conftest.$ac_objext \
16554       conftest$ac_exeext conftest.$ac_ext
16555 LIBS=$ac_check_lib_save_LIBS
16556 fi
16557 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16558 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16559 if test $ac_cv_lib_gcc___moddi3 = yes; then
16560
16561 cat >>confdefs.h <<\_ACEOF
16562 #define HAVE___MODDI3 1
16563 _ACEOF
16564
16565 fi
16566
16567   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16568 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16569 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572   ac_check_lib_save_LIBS=$LIBS
16573 LIBS="-lgcc  $LIBS"
16574 cat >conftest.$ac_ext <<_ACEOF
16575 /* confdefs.h.  */
16576 _ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h.  */
16580
16581 /* Override any GCC internal prototype to avoid an error.
16582    Use char because int might match the return type of a GCC
16583    builtin and then its argument prototype would still apply.  */
16584 #ifdef __cplusplus
16585 extern "C"
16586 #endif
16587 char __udivdi3 ();
16588 int
16589 main ()
16590 {
16591 return __udivdi3 ();
16592   ;
16593   return 0;
16594 }
16595 _ACEOF
16596 rm -f conftest.$ac_objext conftest$ac_exeext
16597 if { (ac_try="$ac_link"
16598 case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_link") 2>conftest.er1
16604   ac_status=$?
16605   grep -v '^ *+' conftest.er1 >conftest.err
16606   rm -f conftest.er1
16607   cat conftest.err >&5
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } &&
16610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16611   { (case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_try") 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; } &&
16620          { ac_try='test -s conftest$ac_exeext'
16621   { (case "(($ac_try" in
16622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623   *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626   (eval "$ac_try") 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; }; then
16630   ac_cv_lib_gcc___udivdi3=yes
16631 else
16632   echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635         ac_cv_lib_gcc___udivdi3=no
16636 fi
16637
16638 rm -f core conftest.err conftest.$ac_objext \
16639       conftest$ac_exeext conftest.$ac_ext
16640 LIBS=$ac_check_lib_save_LIBS
16641 fi
16642 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16643 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16644 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16645
16646 cat >>confdefs.h <<\_ACEOF
16647 #define HAVE___UDIVDI3 1
16648 _ACEOF
16649
16650 fi
16651
16652   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16653 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16654 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16655   echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657   ac_check_lib_save_LIBS=$LIBS
16658 LIBS="-lgcc  $LIBS"
16659 cat >conftest.$ac_ext <<_ACEOF
16660 /* confdefs.h.  */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h.  */
16665
16666 /* Override any GCC internal prototype to avoid an error.
16667    Use char because int might match the return type of a GCC
16668    builtin and then its argument prototype would still apply.  */
16669 #ifdef __cplusplus
16670 extern "C"
16671 #endif
16672 char __umoddi3 ();
16673 int
16674 main ()
16675 {
16676 return __umoddi3 ();
16677   ;
16678   return 0;
16679 }
16680 _ACEOF
16681 rm -f conftest.$ac_objext conftest$ac_exeext
16682 if { (ac_try="$ac_link"
16683 case "(($ac_try" in
16684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685   *) ac_try_echo=$ac_try;;
16686 esac
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688   (eval "$ac_link") 2>conftest.er1
16689   ac_status=$?
16690   grep -v '^ *+' conftest.er1 >conftest.err
16691   rm -f conftest.er1
16692   cat conftest.err >&5
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); } &&
16695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16696   { (case "(($ac_try" in
16697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698   *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701   (eval "$ac_try") 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; } &&
16705          { ac_try='test -s conftest$ac_exeext'
16706   { (case "(($ac_try" in
16707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708   *) ac_try_echo=$ac_try;;
16709 esac
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711   (eval "$ac_try") 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; }; then
16715   ac_cv_lib_gcc___umoddi3=yes
16716 else
16717   echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16719
16720         ac_cv_lib_gcc___umoddi3=no
16721 fi
16722
16723 rm -f core conftest.err conftest.$ac_objext \
16724       conftest$ac_exeext conftest.$ac_ext
16725 LIBS=$ac_check_lib_save_LIBS
16726 fi
16727 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16728 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16729 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16730
16731 cat >>confdefs.h <<\_ACEOF
16732 #define HAVE___UMODDI3 1
16733 _ACEOF
16734
16735 fi
16736
16737
16738   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16739 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16740 if test "${ac_cv_lib_gcc___main+set}" = set; then
16741   echo $ECHO_N "(cached) $ECHO_C" >&6
16742 else
16743   ac_check_lib_save_LIBS=$LIBS
16744 LIBS="-lgcc  $LIBS"
16745 cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751
16752 /* Override any GCC internal prototype to avoid an error.
16753    Use char because int might match the return type of a GCC
16754    builtin and then its argument prototype would still apply.  */
16755 #ifdef __cplusplus
16756 extern "C"
16757 #endif
16758 char __main ();
16759 int
16760 main ()
16761 {
16762 return __main ();
16763   ;
16764   return 0;
16765 }
16766 _ACEOF
16767 rm -f conftest.$ac_objext conftest$ac_exeext
16768 if { (ac_try="$ac_link"
16769 case "(($ac_try" in
16770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771   *) ac_try_echo=$ac_try;;
16772 esac
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774   (eval "$ac_link") 2>conftest.er1
16775   ac_status=$?
16776   grep -v '^ *+' conftest.er1 >conftest.err
16777   rm -f conftest.er1
16778   cat conftest.err >&5
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } &&
16781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16782   { (case "(($ac_try" in
16783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784   *) ac_try_echo=$ac_try;;
16785 esac
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787   (eval "$ac_try") 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); }; } &&
16791          { ac_try='test -s conftest$ac_exeext'
16792   { (case "(($ac_try" in
16793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794   *) ac_try_echo=$ac_try;;
16795 esac
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797   (eval "$ac_try") 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); }; }; then
16801   ac_cv_lib_gcc___main=yes
16802 else
16803   echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806         ac_cv_lib_gcc___main=no
16807 fi
16808
16809 rm -f core conftest.err conftest.$ac_objext \
16810       conftest$ac_exeext conftest.$ac_ext
16811 LIBS=$ac_check_lib_save_LIBS
16812 fi
16813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16814 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16815 if test $ac_cv_lib_gcc___main = yes; then
16816
16817 cat >>confdefs.h <<\_ACEOF
16818 #define HAVE___MAIN 1
16819 _ACEOF
16820
16821 fi
16822
16823   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16824 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16825 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   ac_check_lib_save_LIBS=$LIBS
16829 LIBS="-lgcc  $LIBS"
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h.  */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h.  */
16836
16837 /* Override any GCC internal prototype to avoid an error.
16838    Use char because int might match the return type of a GCC
16839    builtin and then its argument prototype would still apply.  */
16840 #ifdef __cplusplus
16841 extern "C"
16842 #endif
16843 char __cmpdi2 ();
16844 int
16845 main ()
16846 {
16847 return __cmpdi2 ();
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (ac_try="$ac_link"
16854 case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859   (eval "$ac_link") 2>conftest.er1
16860   ac_status=$?
16861   grep -v '^ *+' conftest.er1 >conftest.err
16862   rm -f conftest.er1
16863   cat conftest.err >&5
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } &&
16866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867   { (case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_try") 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; } &&
16876          { ac_try='test -s conftest$ac_exeext'
16877   { (case "(($ac_try" in
16878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879   *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882   (eval "$ac_try") 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; }; then
16886   ac_cv_lib_gcc___cmpdi2=yes
16887 else
16888   echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16890
16891         ac_cv_lib_gcc___cmpdi2=no
16892 fi
16893
16894 rm -f core conftest.err conftest.$ac_objext \
16895       conftest$ac_exeext conftest.$ac_ext
16896 LIBS=$ac_check_lib_save_LIBS
16897 fi
16898 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16899 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16900 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16901
16902 cat >>confdefs.h <<\_ACEOF
16903 #define HAVE___CMPDI2 1
16904 _ACEOF
16905
16906 fi
16907
16908 fi
16909
16910 if test "$llvm_cv_os_type" = "MingW" ; then
16911   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16912 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16913   cat >conftest.$ac_ext <<_ACEOF
16914
16915   /* confdefs.h.  */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h.  */
16920
16921     #include <windows.h>
16922     #include <imagehlp.h>
16923     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16924     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16925
16926
16927 _ACEOF
16928 rm -f conftest.$ac_objext
16929 if { (ac_try="$ac_compile"
16930 case "(($ac_try" in
16931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932   *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935   (eval "$ac_compile") 2>conftest.er1
16936   ac_status=$?
16937   grep -v '^ *+' conftest.er1 >conftest.err
16938   rm -f conftest.er1
16939   cat conftest.err >&5
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); } &&
16942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16943   { (case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_try") 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; } &&
16952          { ac_try='test -s conftest.$ac_objext'
16953   { (case "(($ac_try" in
16954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955   *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958   (eval "$ac_try") 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }; }; then
16962
16963   { echo "$as_me:$LINENO: result: yes" >&5
16964 echo "${ECHO_T}yes" >&6; }
16965   llvm_cv_win32_elmcb_pcstr="PCSTR"
16966
16967 else
16968   echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16970
16971
16972   { echo "$as_me:$LINENO: result: no" >&5
16973 echo "${ECHO_T}no" >&6; }
16974   llvm_cv_win32_elmcb_pcstr="PSTR"
16975
16976 fi
16977
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979
16980 cat >>confdefs.h <<_ACEOF
16981 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16982 _ACEOF
16983
16984 fi
16985
16986 if test "$llvm_cv_platform_type" = "Unix" ; then
16987
16988
16989 for ac_header in stdlib.h unistd.h
16990 do
16991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16993   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16996   echo $ECHO_N "(cached) $ECHO_C" >&6
16997 fi
16998 ac_res=`eval echo '${'$as_ac_Header'}'`
16999                { echo "$as_me:$LINENO: result: $ac_res" >&5
17000 echo "${ECHO_T}$ac_res" >&6; }
17001 else
17002   # Is the header compilable?
17003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17005 cat >conftest.$ac_ext <<_ACEOF
17006 /* confdefs.h.  */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h.  */
17011 $ac_includes_default
17012 #include <$ac_header>
17013 _ACEOF
17014 rm -f conftest.$ac_objext
17015 if { (ac_try="$ac_compile"
17016 case "(($ac_try" in
17017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018   *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021   (eval "$ac_compile") 2>conftest.er1
17022   ac_status=$?
17023   grep -v '^ *+' conftest.er1 >conftest.err
17024   rm -f conftest.er1
17025   cat conftest.err >&5
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); } &&
17028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17029   { (case "(($ac_try" in
17030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031   *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034   (eval "$ac_try") 2>&5
17035   ac_status=$?
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); }; } &&
17038          { ac_try='test -s conftest.$ac_objext'
17039   { (case "(($ac_try" in
17040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041   *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044   (eval "$ac_try") 2>&5
17045   ac_status=$?
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); }; }; then
17048   ac_header_compiler=yes
17049 else
17050   echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17052
17053         ac_header_compiler=no
17054 fi
17055
17056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17058 echo "${ECHO_T}$ac_header_compiler" >&6; }
17059
17060 # Is the header present?
17061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17063 cat >conftest.$ac_ext <<_ACEOF
17064 /* confdefs.h.  */
17065 _ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h.  */
17069 #include <$ac_header>
17070 _ACEOF
17071 if { (ac_try="$ac_cpp conftest.$ac_ext"
17072 case "(($ac_try" in
17073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074   *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17078   ac_status=$?
17079   grep -v '^ *+' conftest.er1 >conftest.err
17080   rm -f conftest.er1
17081   cat conftest.err >&5
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); } >/dev/null; then
17084   if test -s conftest.err; then
17085     ac_cpp_err=$ac_c_preproc_warn_flag
17086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17087   else
17088     ac_cpp_err=
17089   fi
17090 else
17091   ac_cpp_err=yes
17092 fi
17093 if test -z "$ac_cpp_err"; then
17094   ac_header_preproc=yes
17095 else
17096   echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17098
17099   ac_header_preproc=no
17100 fi
17101
17102 rm -f conftest.err conftest.$ac_ext
17103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17104 echo "${ECHO_T}$ac_header_preproc" >&6; }
17105
17106 # So?  What about this header?
17107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17108   yes:no: )
17109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17113     ac_header_preproc=yes
17114     ;;
17115   no:yes:* )
17116     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17118     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17119 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17120     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17122     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17123 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17126     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17128     ( cat <<\_ASBOX
17129 ## ------------------------------------ ##
17130 ## Report this to http://llvm.org/bugs/ ##
17131 ## ------------------------------------ ##
17132 _ASBOX
17133      ) | sed "s/^/$as_me: WARNING:     /" >&2
17134     ;;
17135 esac
17136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141   eval "$as_ac_Header=\$ac_header_preproc"
17142 fi
17143 ac_res=`eval echo '${'$as_ac_Header'}'`
17144                { echo "$as_me:$LINENO: result: $ac_res" >&5
17145 echo "${ECHO_T}$ac_res" >&6; }
17146
17147 fi
17148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17149   cat >>confdefs.h <<_ACEOF
17150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17151 _ACEOF
17152
17153 fi
17154
17155 done
17156
17157
17158 for ac_func in getpagesize
17159 do
17160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17164   echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166   cat >conftest.$ac_ext <<_ACEOF
17167 /* confdefs.h.  */
17168 _ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h.  */
17172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17174 #define $ac_func innocuous_$ac_func
17175
17176 /* System header to define __stub macros and hopefully few prototypes,
17177     which can conflict with char $ac_func (); below.
17178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17179     <limits.h> exists even on freestanding compilers.  */
17180
17181 #ifdef __STDC__
17182 # include <limits.h>
17183 #else
17184 # include <assert.h>
17185 #endif
17186
17187 #undef $ac_func
17188
17189 /* Override any GCC internal prototype to avoid an error.
17190    Use char because int might match the return type of a GCC
17191    builtin and then its argument prototype would still apply.  */
17192 #ifdef __cplusplus
17193 extern "C"
17194 #endif
17195 char $ac_func ();
17196 /* The GNU C library defines this for functions which it implements
17197     to always fail with ENOSYS.  Some functions are actually named
17198     something starting with __ and the normal name is an alias.  */
17199 #if defined __stub_$ac_func || defined __stub___$ac_func
17200 choke me
17201 #endif
17202
17203 int
17204 main ()
17205 {
17206 return $ac_func ();
17207   ;
17208   return 0;
17209 }
17210 _ACEOF
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (ac_try="$ac_link"
17213 case "(($ac_try" in
17214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215   *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218   (eval "$ac_link") 2>conftest.er1
17219   ac_status=$?
17220   grep -v '^ *+' conftest.er1 >conftest.err
17221   rm -f conftest.er1
17222   cat conftest.err >&5
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); } &&
17225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226   { (case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_try") 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest$ac_exeext'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   eval "$as_ac_var=yes"
17246 else
17247   echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250         eval "$as_ac_var=no"
17251 fi
17252
17253 rm -f core conftest.err conftest.$ac_objext \
17254       conftest$ac_exeext conftest.$ac_ext
17255 fi
17256 ac_res=`eval echo '${'$as_ac_var'}'`
17257                { echo "$as_me:$LINENO: result: $ac_res" >&5
17258 echo "${ECHO_T}$ac_res" >&6; }
17259 if test `eval echo '${'$as_ac_var'}'` = yes; then
17260   cat >>confdefs.h <<_ACEOF
17261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17262 _ACEOF
17263
17264 fi
17265 done
17266
17267 { echo "$as_me:$LINENO: checking for working mmap" >&5
17268 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17269 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272   if test "$cross_compiling" = yes; then
17273   ac_cv_func_mmap_fixed_mapped=no
17274 else
17275   cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h.  */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h.  */
17281 $ac_includes_default
17282 /* malloc might have been renamed as rpl_malloc. */
17283 #undef malloc
17284
17285 /* Thanks to Mike Haertel and Jim Avera for this test.
17286    Here is a matrix of mmap possibilities:
17287         mmap private not fixed
17288         mmap private fixed at somewhere currently unmapped
17289         mmap private fixed at somewhere already mapped
17290         mmap shared not fixed
17291         mmap shared fixed at somewhere currently unmapped
17292         mmap shared fixed at somewhere already mapped
17293    For private mappings, we should verify that changes cannot be read()
17294    back from the file, nor mmap's back from the file at a different
17295    address.  (There have been systems where private was not correctly
17296    implemented like the infamous i386 svr4.0, and systems where the
17297    VM page cache was not coherent with the file system buffer cache
17298    like early versions of FreeBSD and possibly contemporary NetBSD.)
17299    For shared mappings, we should conversely verify that changes get
17300    propagated back to all the places they're supposed to be.
17301
17302    Grep wants private fixed already mapped.
17303    The main things grep needs to know about mmap are:
17304    * does it exist and is it safe to write into the mmap'd area
17305    * how to use it (BSD variants)  */
17306
17307 #include <fcntl.h>
17308 #include <sys/mman.h>
17309
17310 #if !STDC_HEADERS && !HAVE_STDLIB_H
17311 char *malloc ();
17312 #endif
17313
17314 /* This mess was copied from the GNU getpagesize.h.  */
17315 #if !HAVE_GETPAGESIZE
17316 /* Assume that all systems that can run configure have sys/param.h.  */
17317 # if !HAVE_SYS_PARAM_H
17318 #  define HAVE_SYS_PARAM_H 1
17319 # endif
17320
17321 # ifdef _SC_PAGESIZE
17322 #  define getpagesize() sysconf(_SC_PAGESIZE)
17323 # else /* no _SC_PAGESIZE */
17324 #  if HAVE_SYS_PARAM_H
17325 #   include <sys/param.h>
17326 #   ifdef EXEC_PAGESIZE
17327 #    define getpagesize() EXEC_PAGESIZE
17328 #   else /* no EXEC_PAGESIZE */
17329 #    ifdef NBPG
17330 #     define getpagesize() NBPG * CLSIZE
17331 #     ifndef CLSIZE
17332 #      define CLSIZE 1
17333 #     endif /* no CLSIZE */
17334 #    else /* no NBPG */
17335 #     ifdef NBPC
17336 #      define getpagesize() NBPC
17337 #     else /* no NBPC */
17338 #      ifdef PAGESIZE
17339 #       define getpagesize() PAGESIZE
17340 #      endif /* PAGESIZE */
17341 #     endif /* no NBPC */
17342 #    endif /* no NBPG */
17343 #   endif /* no EXEC_PAGESIZE */
17344 #  else /* no HAVE_SYS_PARAM_H */
17345 #   define getpagesize() 8192   /* punt totally */
17346 #  endif /* no HAVE_SYS_PARAM_H */
17347 # endif /* no _SC_PAGESIZE */
17348
17349 #endif /* no HAVE_GETPAGESIZE */
17350
17351 int
17352 main ()
17353 {
17354   char *data, *data2, *data3;
17355   int i, pagesize;
17356   int fd;
17357
17358   pagesize = getpagesize ();
17359
17360   /* First, make a file with some known garbage in it. */
17361   data = (char *) malloc (pagesize);
17362   if (!data)
17363     return 1;
17364   for (i = 0; i < pagesize; ++i)
17365     *(data + i) = rand ();
17366   umask (0);
17367   fd = creat ("conftest.mmap", 0600);
17368   if (fd < 0)
17369     return 1;
17370   if (write (fd, data, pagesize) != pagesize)
17371     return 1;
17372   close (fd);
17373
17374   /* Next, try to mmap the file at a fixed address which already has
17375      something else allocated at it.  If we can, also make sure that
17376      we see the same garbage.  */
17377   fd = open ("conftest.mmap", O_RDWR);
17378   if (fd < 0)
17379     return 1;
17380   data2 = (char *) malloc (2 * pagesize);
17381   if (!data2)
17382     return 1;
17383   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17384   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17385                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17386     return 1;
17387   for (i = 0; i < pagesize; ++i)
17388     if (*(data + i) != *(data2 + i))
17389       return 1;
17390
17391   /* Finally, make sure that changes to the mapped area do not
17392      percolate back to the file as seen by read().  (This is a bug on
17393      some variants of i386 svr4.0.)  */
17394   for (i = 0; i < pagesize; ++i)
17395     *(data2 + i) = *(data2 + i) + 1;
17396   data3 = (char *) malloc (pagesize);
17397   if (!data3)
17398     return 1;
17399   if (read (fd, data3, pagesize) != pagesize)
17400     return 1;
17401   for (i = 0; i < pagesize; ++i)
17402     if (*(data + i) != *(data3 + i))
17403       return 1;
17404   close (fd);
17405   return 0;
17406 }
17407 _ACEOF
17408 rm -f conftest$ac_exeext
17409 if { (ac_try="$ac_link"
17410 case "(($ac_try" in
17411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412   *) ac_try_echo=$ac_try;;
17413 esac
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415   (eval "$ac_link") 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17419   { (case "(($ac_try" in
17420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421   *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424   (eval "$ac_try") 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); }; }; then
17428   ac_cv_func_mmap_fixed_mapped=yes
17429 else
17430   echo "$as_me: program exited with status $ac_status" >&5
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17433
17434 ( exit $ac_status )
17435 ac_cv_func_mmap_fixed_mapped=no
17436 fi
17437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17438 fi
17439
17440
17441 fi
17442 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17443 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17444 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17445
17446 cat >>confdefs.h <<\_ACEOF
17447 #define HAVE_MMAP 1
17448 _ACEOF
17449
17450 fi
17451 rm -f conftest.mmap
17452
17453   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17454 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17455 if test "${ac_cv_func_mmap_file+set}" = set; then
17456   echo $ECHO_N "(cached) $ECHO_C" >&6
17457 else
17458    ac_ext=c
17459 ac_cpp='$CPP $CPPFLAGS'
17460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17463
17464   if test "$cross_compiling" = yes; then
17465   ac_cv_func_mmap_file=no
17466 else
17467   cat >conftest.$ac_ext <<_ACEOF
17468
17469     /* confdefs.h.  */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h.  */
17474
17475 #include <sys/types.h>
17476 #include <sys/mman.h>
17477 #include <fcntl.h>
17478
17479 int
17480 main ()
17481 {
17482
17483   int fd;
17484   fd = creat ("foo",0777);
17485   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17486   unlink ("foo");
17487   return (fd != (int) MAP_FAILED);
17488   ;
17489   return 0;
17490 }
17491 _ACEOF
17492 rm -f conftest$ac_exeext
17493 if { (ac_try="$ac_link"
17494 case "(($ac_try" in
17495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496   *) ac_try_echo=$ac_try;;
17497 esac
17498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499   (eval "$ac_link") 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17503   { (case "(($ac_try" in
17504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505   *) ac_try_echo=$ac_try;;
17506 esac
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508   (eval "$ac_try") 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; }; then
17512   ac_cv_func_mmap_file=yes
17513 else
17514   echo "$as_me: program exited with status $ac_status" >&5
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 ( exit $ac_status )
17519 ac_cv_func_mmap_file=no
17520 fi
17521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17522 fi
17523
17524
17525   ac_ext=c
17526 ac_cpp='$CPP $CPPFLAGS'
17527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17530
17531
17532 fi
17533 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17534 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17535 if test "$ac_cv_func_mmap_file" = yes; then
17536
17537 cat >>confdefs.h <<\_ACEOF
17538 #define HAVE_MMAP_FILE
17539 _ACEOF
17540
17541    MMAP_FILE=yes
17542
17543 fi
17544
17545   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17546 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17547 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17548   echo $ECHO_N "(cached) $ECHO_C" >&6
17549 else
17550   if test "$llvm_cv_os_type" = "Interix" ; then
17551    ac_cv_need_dev_zero_for_mmap=yes
17552  else
17553    ac_cv_need_dev_zero_for_mmap=no
17554  fi
17555
17556 fi
17557 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17558 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17559 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17560
17561 cat >>confdefs.h <<\_ACEOF
17562 #define NEED_DEV_ZERO_FOR_MMAP 1
17563 _ACEOF
17564
17565 fi
17566
17567   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17568   then
17569     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17570 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17571   fi
17572   if test "$ac_cv_func_mmap_file" = "no"
17573   then
17574     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17575 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17576   fi
17577 fi
17578
17579 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17580 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17581 ac_ext=cpp
17582 ac_cpp='$CXXCPP $CPPFLAGS'
17583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17586
17587 cat >conftest.$ac_ext <<_ACEOF
17588
17589   /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594
17595     int main() {
17596       volatile unsigned long val = 1;
17597       __sync_synchronize();
17598       __sync_val_compare_and_swap(&val, 1, 0);
17599       __sync_add_and_fetch(&val, 1);
17600       __sync_sub_and_fetch(&val, 1);
17601       return 0;
17602     }
17603
17604
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610   *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613   (eval "$ac_link") 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } &&
17620          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17621   { (case "(($ac_try" in
17622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623   *) ac_try_echo=$ac_try;;
17624 esac
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626   (eval "$ac_try") 2>&5
17627   ac_status=$?
17628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629   (exit $ac_status); }; } &&
17630          { ac_try='test -s conftest$ac_exeext'
17631   { (case "(($ac_try" in
17632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633   *) ac_try_echo=$ac_try;;
17634 esac
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636   (eval "$ac_try") 2>&5
17637   ac_status=$?
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); }; }; then
17640
17641   { echo "$as_me:$LINENO: result: yes" >&5
17642 echo "${ECHO_T}yes" >&6; }
17643
17644 cat >>confdefs.h <<\_ACEOF
17645 #define LLVM_HAS_ATOMICS 1
17646 _ACEOF
17647
17648
17649 else
17650   echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653
17654   { echo "$as_me:$LINENO: result: no" >&5
17655 echo "${ECHO_T}no" >&6; }
17656
17657 cat >>confdefs.h <<\_ACEOF
17658 #define LLVM_HAS_ATOMICS 0
17659 _ACEOF
17660
17661   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17662 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17663
17664 fi
17665
17666 rm -f core conftest.err conftest.$ac_objext \
17667       conftest$ac_exeext conftest.$ac_ext
17668 ac_ext=c
17669 ac_cpp='$CPP $CPPFLAGS'
17670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17673
17674
17675
17676 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17677   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17678 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17679 if test "${llvm_cv_linux_mixed+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682    ac_ext=c
17683 ac_cpp='$CPP $CPPFLAGS'
17684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17687
17688   cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h.  */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h.  */
17694 #ifndef __x86_64__
17695        error: Not x86-64 even if uname says so!
17696       #endif
17697
17698 int
17699 main ()
17700 {
17701
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext
17707 if { (ac_try="$ac_compile"
17708 case "(($ac_try" in
17709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710   *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713   (eval "$ac_compile") 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } &&
17720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17721   { (case "(($ac_try" in
17722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723   *) ac_try_echo=$ac_try;;
17724 esac
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726   (eval "$ac_try") 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; } &&
17730          { ac_try='test -s conftest.$ac_objext'
17731   { (case "(($ac_try" in
17732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733   *) ac_try_echo=$ac_try;;
17734 esac
17735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736   (eval "$ac_try") 2>&5
17737   ac_status=$?
17738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739   (exit $ac_status); }; }; then
17740   llvm_cv_linux_mixed=no
17741 else
17742   echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17744
17745         llvm_cv_linux_mixed=yes
17746 fi
17747
17748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749   ac_ext=c
17750 ac_cpp='$CPP $CPPFLAGS'
17751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17754
17755
17756 fi
17757 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17758 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17759
17760   if test "$llvm_cv_linux_mixed" = "yes"; then
17761     llvm_cv_target_arch="x86"
17762     ARCH="x86"
17763   fi
17764 fi
17765
17766
17767 for ac_func in __dso_handle
17768 do
17769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17773   echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775   cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h.  */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h.  */
17781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17783 #define $ac_func innocuous_$ac_func
17784
17785 /* System header to define __stub macros and hopefully few prototypes,
17786     which can conflict with char $ac_func (); below.
17787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17788     <limits.h> exists even on freestanding compilers.  */
17789
17790 #ifdef __STDC__
17791 # include <limits.h>
17792 #else
17793 # include <assert.h>
17794 #endif
17795
17796 #undef $ac_func
17797
17798 /* Override any GCC internal prototype to avoid an error.
17799    Use char because int might match the return type of a GCC
17800    builtin and then its argument prototype would still apply.  */
17801 #ifdef __cplusplus
17802 extern "C"
17803 #endif
17804 char $ac_func ();
17805 /* The GNU C library defines this for functions which it implements
17806     to always fail with ENOSYS.  Some functions are actually named
17807     something starting with __ and the normal name is an alias.  */
17808 #if defined __stub_$ac_func || defined __stub___$ac_func
17809 choke me
17810 #endif
17811
17812 int
17813 main ()
17814 {
17815 return $ac_func ();
17816   ;
17817   return 0;
17818 }
17819 _ACEOF
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (ac_try="$ac_link"
17822 case "(($ac_try" in
17823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824   *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827   (eval "$ac_link") 2>conftest.er1
17828   ac_status=$?
17829   grep -v '^ *+' conftest.er1 >conftest.err
17830   rm -f conftest.er1
17831   cat conftest.err >&5
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); } &&
17834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835   { (case "(($ac_try" in
17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837   *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840   (eval "$ac_try") 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; } &&
17844          { ac_try='test -s conftest$ac_exeext'
17845   { (case "(($ac_try" in
17846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847   *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850   (eval "$ac_try") 2>&5
17851   ac_status=$?
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); }; }; then
17854   eval "$as_ac_var=yes"
17855 else
17856   echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17858
17859         eval "$as_ac_var=no"
17860 fi
17861
17862 rm -f core conftest.err conftest.$ac_objext \
17863       conftest$ac_exeext conftest.$ac_ext
17864 fi
17865 ac_res=`eval echo '${'$as_ac_var'}'`
17866                { echo "$as_me:$LINENO: result: $ac_res" >&5
17867 echo "${ECHO_T}$ac_res" >&6; }
17868 if test `eval echo '${'$as_ac_var'}'` = yes; then
17869   cat >>confdefs.h <<_ACEOF
17870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17871 _ACEOF
17872
17873 fi
17874 done
17875
17876
17877 SHLIBEXT=$llvm_shlib_ext
17878
17879
17880 if test "${prefix}" = "NONE" ; then
17881   prefix="/usr/local"
17882 fi
17883 eval LLVM_PREFIX="${prefix}";
17884 eval LLVM_BINDIR="${prefix}/bin";
17885 eval LLVM_DATADIR="${prefix}/share/llvm";
17886 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17887 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17888 eval LLVM_INCLUDEDIR="${prefix}/include";
17889 eval LLVM_INFODIR="${prefix}/info";
17890 eval LLVM_MANDIR="${prefix}/man";
17891 LLVM_CONFIGTIME=`date`
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17903   LLVM_CONFIGTIME="(timestamp not enabled)"
17904 fi
17905
17906
17907 cat >>confdefs.h <<_ACEOF
17908 #define LLVM_PREFIX "$LLVM_PREFIX"
17909 _ACEOF
17910
17911
17912 cat >>confdefs.h <<_ACEOF
17913 #define LLVM_BINDIR "$LLVM_BINDIR"
17914 _ACEOF
17915
17916
17917 cat >>confdefs.h <<_ACEOF
17918 #define LLVM_DATADIR "$LLVM_DATADIR"
17919 _ACEOF
17920
17921
17922 cat >>confdefs.h <<_ACEOF
17923 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17924 _ACEOF
17925
17926
17927 cat >>confdefs.h <<_ACEOF
17928 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17929 _ACEOF
17930
17931
17932 cat >>confdefs.h <<_ACEOF
17933 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17934 _ACEOF
17935
17936
17937 cat >>confdefs.h <<_ACEOF
17938 #define LLVM_INFODIR "$LLVM_INFODIR"
17939 _ACEOF
17940
17941
17942 cat >>confdefs.h <<_ACEOF
17943 #define LLVM_MANDIR "$LLVM_MANDIR"
17944 _ACEOF
17945
17946
17947 cat >>confdefs.h <<_ACEOF
17948 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17949 _ACEOF
17950
17951
17952 cat >>confdefs.h <<_ACEOF
17953 #define LLVM_HOST_TRIPLE "$host"
17954 _ACEOF
17955
17956
17957 cat >>confdefs.h <<_ACEOF
17958 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17959 _ACEOF
17960
17961
17962 if test "$BINDINGS_TO_BUILD" = auto ; then
17963   BINDINGS_TO_BUILD=""
17964   if test "x$OCAMLFIND" != x ; then
17965     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17966   fi
17967   if test "x$GO" != x ; then
17968     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17969       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17970     fi
17971   fi
17972 fi
17973 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17974
17975
17976 binding_prereqs_failed=0
17977 for a_binding in $BINDINGS_TO_BUILD ; do
17978   case "$a_binding" in
17979   ocaml)
17980     if test "x$OCAMLFIND" = x ; then
17981       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17982 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17983       binding_prereqs_failed=1
17984     fi
17985
17986     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17987       HAVE_OCAMLOPT=1
17988     else
17989       HAVE_OCAMLOPT=0
17990     fi
17991
17992
17993     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17994       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17995 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17996       binding_prereqs_failed=1
17997     fi
17998
17999     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18000       HAVE_OCAML_OUNIT=1
18001     else
18002       HAVE_OCAML_OUNIT=0
18003       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18004 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18005           fi
18006
18007
18008     if test "x$with_ocaml_libdir" != xauto ; then
18009       OCAML_LIBDIR=$with_ocaml_libdir
18010
18011     else
18012       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18013       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18014       then
18015         # ocaml stdlib is beneath our prefix; use stdlib
18016         OCAML_LIBDIR=$ocaml_stdlib
18017
18018       else
18019         # ocaml stdlib is outside our prefix; use libdir/ocaml
18020         OCAML_LIBDIR=${prefix}/lib/ocaml
18021
18022       fi
18023     fi
18024     ;;
18025   go)
18026     if test "x$GO" = x ; then
18027       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18028 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18029       binding_prereqs_failed=1
18030     else
18031       if $GO run ${srcdir}/bindings/go/conftest.go ; then
18032         :
18033       else
18034         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18035 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18036         binding_prereqs_failed=1
18037       fi
18038     fi
18039     ;;
18040   esac
18041 done
18042 if test "$binding_prereqs_failed" = 1 ; then
18043   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18044 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18045    { (exit 1); exit 1; }; }
18046 fi
18047
18048 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18049 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18050 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18051   echo $ECHO_N "(cached) $ECHO_C" >&6
18052 else
18053    ac_ext=cpp
18054 ac_cpp='$CXXCPP $CPPFLAGS'
18055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18058
18059   oldcxxflags="$CXXFLAGS"
18060   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18061   cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h.  */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h.  */
18067 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18068 int
18069 main ()
18070 {
18071 X<int>().f();
18072   ;
18073   return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext
18077 if { (ac_try="$ac_compile"
18078 case "(($ac_try" in
18079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080   *) ac_try_echo=$ac_try;;
18081 esac
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083   (eval "$ac_compile") 2>conftest.er1
18084   ac_status=$?
18085   grep -v '^ *+' conftest.er1 >conftest.err
18086   rm -f conftest.er1
18087   cat conftest.err >&5
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); } &&
18090          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18091   { (case "(($ac_try" in
18092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093   *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096   (eval "$ac_try") 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; } &&
18100          { ac_try='test -s conftest.$ac_objext'
18101   { (case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_try") 2>&5
18107   ac_status=$?
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); }; }; then
18110   llvm_cv_cxx_visibility_inlines_hidden=yes
18111 else
18112   echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18114
18115         llvm_cv_cxx_visibility_inlines_hidden=no
18116 fi
18117
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119   CXXFLAGS="$oldcxxflags"
18120   ac_ext=c
18121 ac_cpp='$CPP $CPPFLAGS'
18122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18125
18126
18127 fi
18128 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18129 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18130 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18131   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18132
18133 else
18134   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18135
18136 fi
18137
18138
18139 if test "$llvm_cv_link_use_r" = "yes" ; then
18140   RPATH="-Wl,-R"
18141 else
18142   RPATH="-Wl,-rpath"
18143 fi
18144
18145
18146 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18147   RDYNAMIC="-rdynamic"
18148 else
18149   RDYNAMIC=""
18150 fi
18151
18152
18153
18154 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18155
18156
18157
18158
18159
18160
18161 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18162
18163 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18164
18165 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18166
18167 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18168
18169 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18170
18171
18172 ac_config_files="$ac_config_files Makefile.config"
18173
18174
18175 ac_config_files="$ac_config_files llvm.spec"
18176
18177
18178 ac_config_files="$ac_config_files docs/doxygen.cfg"
18179
18180
18181 if test "${clang_src_root}" = ""; then
18182   clang_src_root="$srcdir/tools/clang"
18183 fi
18184 if test -f ${clang_src_root}/README.txt; then
18185
18186 cat >>confdefs.h <<_ACEOF
18187 #define CLANG_LIBDIR_SUFFIX ""
18188 _ACEOF
18189
18190
18191     configh="include/clang/Config/config.h"
18192   doxy="docs/doxygen.cfg"
18193   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18194
18195   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18196
18197 fi
18198
18199 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18200
18201
18202 test "x$program_prefix" = "xNONE" && program_prefix=""
18203
18204
18205
18206 ac_config_commands="$ac_config_commands setup"
18207
18208 ac_config_commands="$ac_config_commands Makefile"
18209
18210
18211 ac_config_commands="$ac_config_commands Makefile.common"
18212
18213
18214 ac_config_commands="$ac_config_commands examples/Makefile"
18215
18216
18217 ac_config_commands="$ac_config_commands lib/Makefile"
18218
18219
18220 ac_config_commands="$ac_config_commands test/Makefile"
18221
18222
18223 ac_config_commands="$ac_config_commands test/Makefile.tests"
18224
18225
18226 ac_config_commands="$ac_config_commands unittests/Makefile"
18227
18228
18229 ac_config_commands="$ac_config_commands tools/Makefile"
18230
18231
18232 ac_config_commands="$ac_config_commands utils/Makefile"
18233
18234
18235 ac_config_commands="$ac_config_commands projects/Makefile"
18236
18237
18238 ac_config_commands="$ac_config_commands bindings/Makefile"
18239
18240
18241 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18242
18243
18244
18245 cat >confcache <<\_ACEOF
18246 # This file is a shell script that caches the results of configure
18247 # tests run on this system so they can be shared between configure
18248 # scripts and configure runs, see configure's option --config-cache.
18249 # It is not useful on other systems.  If it contains results you don't
18250 # want to keep, you may remove or edit it.
18251 #
18252 # config.status only pays attention to the cache file if you give it
18253 # the --recheck option to rerun configure.
18254 #
18255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18257 # following values.
18258
18259 _ACEOF
18260
18261 # The following way of writing the cache mishandles newlines in values,
18262 # but we know of no workaround that is simple, portable, and efficient.
18263 # So, we kill variables containing newlines.
18264 # Ultrix sh set writes to stderr and can't be redirected directly,
18265 # and sets the high bit in the cache file unless we assign to the vars.
18266 (
18267   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18268     eval ac_val=\$$ac_var
18269     case $ac_val in #(
18270     *${as_nl}*)
18271       case $ac_var in #(
18272       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18273 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18274       esac
18275       case $ac_var in #(
18276       _ | IFS | as_nl) ;; #(
18277       *) $as_unset $ac_var ;;
18278       esac ;;
18279     esac
18280   done
18281
18282   (set) 2>&1 |
18283     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18284     *${as_nl}ac_space=\ *)
18285       # `set' does not quote correctly, so add quotes (double-quote
18286       # substitution turns \\\\ into \\, and sed turns \\ into \).
18287       sed -n \
18288         "s/'/'\\\\''/g;
18289           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18290       ;; #(
18291     *)
18292       # `set' quotes correctly as required by POSIX, so do not add quotes.
18293       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18294       ;;
18295     esac |
18296     sort
18297 ) |
18298   sed '
18299      /^ac_cv_env_/b end
18300      t clear
18301      :clear
18302      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18303      t end
18304      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18305      :end' >>confcache
18306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18307   if test -w "$cache_file"; then
18308     test "x$cache_file" != "x/dev/null" &&
18309       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18310 echo "$as_me: updating cache $cache_file" >&6;}
18311     cat confcache >$cache_file
18312   else
18313     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18314 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18315   fi
18316 fi
18317 rm -f confcache
18318
18319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18320 # Let make expand exec_prefix.
18321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18322
18323 DEFS=-DHAVE_CONFIG_H
18324
18325 ac_libobjs=
18326 ac_ltlibobjs=
18327 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18328   # 1. Remove the extension, and $U if already installed.
18329   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18330   ac_i=`echo "$ac_i" | sed "$ac_script"`
18331   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18332   #    will be set to the directory where LIBOBJS objects are built.
18333   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18334   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18335 done
18336 LIBOBJS=$ac_libobjs
18337
18338 LTLIBOBJS=$ac_ltlibobjs
18339
18340
18341
18342 : ${CONFIG_STATUS=./config.status}
18343 ac_clean_files_save=$ac_clean_files
18344 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18345 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18346 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18347 cat >$CONFIG_STATUS <<_ACEOF
18348 #! $SHELL
18349 # Generated by $as_me.
18350 # Run this file to recreate the current configuration.
18351 # Compiler output produced by configure, useful for debugging
18352 # configure, is in config.log if it exists.
18353
18354 debug=false
18355 ac_cs_recheck=false
18356 ac_cs_silent=false
18357 SHELL=\${CONFIG_SHELL-$SHELL}
18358 _ACEOF
18359
18360 cat >>$CONFIG_STATUS <<\_ACEOF
18361 ## --------------------- ##
18362 ## M4sh Initialization.  ##
18363 ## --------------------- ##
18364
18365 # Be Bourne compatible
18366 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18367   emulate sh
18368   NULLCMD=:
18369   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18370   # is contrary to our usage.  Disable this feature.
18371   alias -g '${1+"$@"}'='"$@"'
18372   setopt NO_GLOB_SUBST
18373 else
18374   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18375 fi
18376 BIN_SH=xpg4; export BIN_SH # for Tru64
18377 DUALCASE=1; export DUALCASE # for MKS sh
18378
18379
18380 # PATH needs CR
18381 # Avoid depending upon Character Ranges.
18382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18385 as_cr_digits='0123456789'
18386 as_cr_alnum=$as_cr_Letters$as_cr_digits
18387
18388 # The user is always right.
18389 if test "${PATH_SEPARATOR+set}" != set; then
18390   echo "#! /bin/sh" >conf$$.sh
18391   echo  "exit 0"   >>conf$$.sh
18392   chmod +x conf$$.sh
18393   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18394     PATH_SEPARATOR=';'
18395   else
18396     PATH_SEPARATOR=:
18397   fi
18398   rm -f conf$$.sh
18399 fi
18400
18401 # Support unset when possible.
18402 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18403   as_unset=unset
18404 else
18405   as_unset=false
18406 fi
18407
18408
18409 # IFS
18410 # We need space, tab and new line, in precisely that order.  Quoting is
18411 # there to prevent editors from complaining about space-tab.
18412 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18413 # splitting by setting IFS to empty value.)
18414 as_nl='
18415 '
18416 IFS=" ""        $as_nl"
18417
18418 # Find who we are.  Look in the path if we contain no directory separator.
18419 case $0 in
18420   *[\\/]* ) as_myself=$0 ;;
18421   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18422 for as_dir in $PATH
18423 do
18424   IFS=$as_save_IFS
18425   test -z "$as_dir" && as_dir=.
18426   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18427 done
18428 IFS=$as_save_IFS
18429
18430      ;;
18431 esac
18432 # We did not find ourselves, most probably we were run as `sh COMMAND'
18433 # in which case we are not to be found in the path.
18434 if test "x$as_myself" = x; then
18435   as_myself=$0
18436 fi
18437 if test ! -f "$as_myself"; then
18438   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18439   { (exit 1); exit 1; }
18440 fi
18441
18442 # Work around bugs in pre-3.0 UWIN ksh.
18443 for as_var in ENV MAIL MAILPATH
18444 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18445 done
18446 PS1='$ '
18447 PS2='> '
18448 PS4='+ '
18449
18450 # NLS nuisances.
18451 for as_var in \
18452   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18453   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18454   LC_TELEPHONE LC_TIME
18455 do
18456   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18457     eval $as_var=C; export $as_var
18458   else
18459     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18460   fi
18461 done
18462
18463 # Required to use basename.
18464 if expr a : '\(a\)' >/dev/null 2>&1 &&
18465    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18466   as_expr=expr
18467 else
18468   as_expr=false
18469 fi
18470
18471 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18472   as_basename=basename
18473 else
18474   as_basename=false
18475 fi
18476
18477
18478 # Name of the executable.
18479 as_me=`$as_basename -- "$0" ||
18480 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18481          X"$0" : 'X\(//\)$' \| \
18482          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18483 echo X/"$0" |
18484     sed '/^.*\/\([^/][^/]*\)\/*$/{
18485             s//\1/
18486             q
18487           }
18488           /^X\/\(\/\/\)$/{
18489             s//\1/
18490             q
18491           }
18492           /^X\/\(\/\).*/{
18493             s//\1/
18494             q
18495           }
18496           s/.*/./; q'`
18497
18498 # CDPATH.
18499 $as_unset CDPATH
18500
18501
18502
18503   as_lineno_1=$LINENO
18504   as_lineno_2=$LINENO
18505   test "x$as_lineno_1" != "x$as_lineno_2" &&
18506   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18507
18508   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18509   # uniformly replaced by the line number.  The first 'sed' inserts a
18510   # line-number line after each line using $LINENO; the second 'sed'
18511   # does the real work.  The second script uses 'N' to pair each
18512   # line-number line with the line containing $LINENO, and appends
18513   # trailing '-' during substitution so that $LINENO is not a special
18514   # case at line end.
18515   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18516   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18517   # E. McMahon (1931-1989) for sed's syntax.  :-)
18518   sed -n '
18519     p
18520     /[$]LINENO/=
18521   ' <$as_myself |
18522     sed '
18523       s/[$]LINENO.*/&-/
18524       t lineno
18525       b
18526       :lineno
18527       N
18528       :loop
18529       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18530       t loop
18531       s/-\n.*//
18532     ' >$as_me.lineno &&
18533   chmod +x "$as_me.lineno" ||
18534     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18535    { (exit 1); exit 1; }; }
18536
18537   # Don't try to exec as it changes $[0], causing all sort of problems
18538   # (the dirname of $[0] is not the place where we might find the
18539   # original and so on.  Autoconf is especially sensitive to this).
18540   . "./$as_me.lineno"
18541   # Exit status is that of the last command.
18542   exit
18543 }
18544
18545
18546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18547   as_dirname=dirname
18548 else
18549   as_dirname=false
18550 fi
18551
18552 ECHO_C= ECHO_N= ECHO_T=
18553 case `echo -n x` in
18554 -n*)
18555   case `echo 'x\c'` in
18556   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18557   *)   ECHO_C='\c';;
18558   esac;;
18559 *)
18560   ECHO_N='-n';;
18561 esac
18562
18563 if expr a : '\(a\)' >/dev/null 2>&1 &&
18564    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18565   as_expr=expr
18566 else
18567   as_expr=false
18568 fi
18569
18570 rm -f conf$$ conf$$.exe conf$$.file
18571 if test -d conf$$.dir; then
18572   rm -f conf$$.dir/conf$$.file
18573 else
18574   rm -f conf$$.dir
18575   mkdir conf$$.dir
18576 fi
18577 echo >conf$$.file
18578 if ln -s conf$$.file conf$$ 2>/dev/null; then
18579   as_ln_s='ln -s'
18580   # ... but there are two gotchas:
18581   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18582   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18583   # In both cases, we have to default to `cp -p'.
18584   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18585     as_ln_s='cp -p'
18586 elif ln conf$$.file conf$$ 2>/dev/null; then
18587   as_ln_s=ln
18588 else
18589   as_ln_s='cp -p'
18590 fi
18591 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18592 rmdir conf$$.dir 2>/dev/null
18593
18594 if mkdir -p . 2>/dev/null; then
18595   as_mkdir_p=:
18596 else
18597   test -d ./-p && rmdir ./-p
18598   as_mkdir_p=false
18599 fi
18600
18601 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18602 # systems may use methods other than mode bits to determine executability.
18603 cat >conf$$.file <<_ASEOF
18604 #! /bin/sh
18605 exit 0
18606 _ASEOF
18607 chmod +x conf$$.file
18608 if test -x conf$$.file >/dev/null 2>&1; then
18609   as_executable_p="test -x"
18610 else
18611   as_executable_p=:
18612 fi
18613 rm -f conf$$.file
18614
18615 # Sed expression to map a string onto a valid CPP name.
18616 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18617
18618 # Sed expression to map a string onto a valid variable name.
18619 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18620
18621
18622 exec 6>&1
18623
18624 # Save the log message, to keep $[0] and so on meaningful, and to
18625 # report actual input values of CONFIG_FILES etc. instead of their
18626 # values after options handling.
18627 ac_log="
18628 This file was extended by LLVM $as_me 3.7.0svn, which was
18629 generated by GNU Autoconf 2.60.  Invocation command line was
18630
18631   CONFIG_FILES    = $CONFIG_FILES
18632   CONFIG_HEADERS  = $CONFIG_HEADERS
18633   CONFIG_LINKS    = $CONFIG_LINKS
18634   CONFIG_COMMANDS = $CONFIG_COMMANDS
18635   $ $0 $@
18636
18637 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18638 "
18639
18640 _ACEOF
18641
18642 cat >>$CONFIG_STATUS <<_ACEOF
18643 # Files that config.status was made for.
18644 config_files="$ac_config_files"
18645 config_headers="$ac_config_headers"
18646 config_commands="$ac_config_commands"
18647
18648 _ACEOF
18649
18650 cat >>$CONFIG_STATUS <<\_ACEOF
18651 ac_cs_usage="\
18652 \`$as_me' instantiates files from templates according to the
18653 current configuration.
18654
18655 Usage: $0 [OPTIONS] [FILE]...
18656
18657   -h, --help       print this help, then exit
18658   -V, --version    print version number, then exit
18659   -q, --quiet      do not print progress messages
18660   -d, --debug      don't remove temporary files
18661       --recheck    update $as_me by reconfiguring in the same conditions
18662   --file=FILE[:TEMPLATE]
18663                    instantiate the configuration file FILE
18664   --header=FILE[:TEMPLATE]
18665                    instantiate the configuration header FILE
18666
18667 Configuration files:
18668 $config_files
18669
18670 Configuration headers:
18671 $config_headers
18672
18673 Configuration commands:
18674 $config_commands
18675
18676 Report bugs to <bug-autoconf@gnu.org>."
18677
18678 _ACEOF
18679 cat >>$CONFIG_STATUS <<_ACEOF
18680 ac_cs_version="\\
18681 LLVM config.status 3.7.0svn
18682 configured by $0, generated by GNU Autoconf 2.60,
18683   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18684
18685 Copyright (C) 2006 Free Software Foundation, Inc.
18686 This config.status script is free software; the Free Software Foundation
18687 gives unlimited permission to copy, distribute and modify it."
18688
18689 ac_pwd='$ac_pwd'
18690 srcdir='$srcdir'
18691 INSTALL='$INSTALL'
18692 _ACEOF
18693
18694 cat >>$CONFIG_STATUS <<\_ACEOF
18695 # If no file are specified by the user, then we need to provide default
18696 # value.  By we need to know if files were specified by the user.
18697 ac_need_defaults=:
18698 while test $# != 0
18699 do
18700   case $1 in
18701   --*=*)
18702     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18703     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18704     ac_shift=:
18705     ;;
18706   *)
18707     ac_option=$1
18708     ac_optarg=$2
18709     ac_shift=shift
18710     ;;
18711   esac
18712
18713   case $ac_option in
18714   # Handling of the options.
18715   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18716     ac_cs_recheck=: ;;
18717   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18718     echo "$ac_cs_version"; exit ;;
18719   --debug | --debu | --deb | --de | --d | -d )
18720     debug=: ;;
18721   --file | --fil | --fi | --f )
18722     $ac_shift
18723     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18724     ac_need_defaults=false;;
18725   --header | --heade | --head | --hea )
18726     $ac_shift
18727     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18728     ac_need_defaults=false;;
18729   --he | --h)
18730     # Conflict between --help and --header
18731     { echo "$as_me: error: ambiguous option: $1
18732 Try \`$0 --help' for more information." >&2
18733    { (exit 1); exit 1; }; };;
18734   --help | --hel | -h )
18735     echo "$ac_cs_usage"; exit ;;
18736   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18737   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18738     ac_cs_silent=: ;;
18739
18740   # This is an error.
18741   -*) { echo "$as_me: error: unrecognized option: $1
18742 Try \`$0 --help' for more information." >&2
18743    { (exit 1); exit 1; }; } ;;
18744
18745   *) ac_config_targets="$ac_config_targets $1"
18746      ac_need_defaults=false ;;
18747
18748   esac
18749   shift
18750 done
18751
18752 ac_configure_extra_args=
18753
18754 if $ac_cs_silent; then
18755   exec 6>/dev/null
18756   ac_configure_extra_args="$ac_configure_extra_args --silent"
18757 fi
18758
18759 _ACEOF
18760 cat >>$CONFIG_STATUS <<_ACEOF
18761 if \$ac_cs_recheck; then
18762   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18763   CONFIG_SHELL=$SHELL
18764   export CONFIG_SHELL
18765   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18766 fi
18767
18768 _ACEOF
18769 cat >>$CONFIG_STATUS <<\_ACEOF
18770 exec 5>>config.log
18771 {
18772   echo
18773   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18774 ## Running $as_me. ##
18775 _ASBOX
18776   echo "$ac_log"
18777 } >&5
18778
18779 _ACEOF
18780 cat >>$CONFIG_STATUS <<_ACEOF
18781 #
18782 # INIT-COMMANDS
18783 #
18784 llvm_src="${srcdir}"
18785
18786 _ACEOF
18787
18788 cat >>$CONFIG_STATUS <<\_ACEOF
18789
18790 # Handling of arguments.
18791 for ac_config_target in $ac_config_targets
18792 do
18793   case $ac_config_target in
18794     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18795     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18796     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18797     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18798     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18799     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18800     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18801     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18802     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18803     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18804     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18805     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18806     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18807     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18808     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18809     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18810     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18811     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18812     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18813     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18814     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18815     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18816     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18817     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18818     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18819     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18820
18821   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18822 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18823    { (exit 1); exit 1; }; };;
18824   esac
18825 done
18826
18827
18828 # If the user did not use the arguments to specify the items to instantiate,
18829 # then the envvar interface is used.  Set only those that are not.
18830 # We use the long form for the default assignment because of an extremely
18831 # bizarre bug on SunOS 4.1.3.
18832 if $ac_need_defaults; then
18833   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18834   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18835   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18836 fi
18837
18838 # Have a temporary directory for convenience.  Make it in the build tree
18839 # simply because there is no reason against having it here, and in addition,
18840 # creating and moving files from /tmp can sometimes cause problems.
18841 # Hook for its removal unless debugging.
18842 # Note that there is a small window in which the directory will not be cleaned:
18843 # after its creation but before its name has been assigned to `$tmp'.
18844 $debug ||
18845 {
18846   tmp=
18847   trap 'exit_status=$?
18848   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18849 ' 0
18850   trap '{ (exit 1); exit 1; }' 1 2 13 15
18851 }
18852 # Create a (secure) tmp directory for tmp files.
18853
18854 {
18855   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18856   test -n "$tmp" && test -d "$tmp"
18857 }  ||
18858 {
18859   tmp=./conf$$-$RANDOM
18860   (umask 077 && mkdir "$tmp")
18861 } ||
18862 {
18863    echo "$me: cannot create a temporary directory in ." >&2
18864    { (exit 1); exit 1; }
18865 }
18866
18867 #
18868 # Set up the sed scripts for CONFIG_FILES section.
18869 #
18870
18871 # No need to generate the scripts if there are no CONFIG_FILES.
18872 # This happens for instance when ./config.status config.h
18873 if test -n "$CONFIG_FILES"; then
18874
18875 _ACEOF
18876
18877
18878
18879 ac_delim='%!_!# '
18880 for ac_last_try in false false false false false :; do
18881   cat >conf$$subs.sed <<_ACEOF
18882 SHELL!$SHELL$ac_delim
18883 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18884 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18885 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18886 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18887 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18888 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18889 exec_prefix!$exec_prefix$ac_delim
18890 prefix!$prefix$ac_delim
18891 program_transform_name!$program_transform_name$ac_delim
18892 bindir!$bindir$ac_delim
18893 sbindir!$sbindir$ac_delim
18894 libexecdir!$libexecdir$ac_delim
18895 datarootdir!$datarootdir$ac_delim
18896 datadir!$datadir$ac_delim
18897 sysconfdir!$sysconfdir$ac_delim
18898 sharedstatedir!$sharedstatedir$ac_delim
18899 localstatedir!$localstatedir$ac_delim
18900 includedir!$includedir$ac_delim
18901 oldincludedir!$oldincludedir$ac_delim
18902 docdir!$docdir$ac_delim
18903 infodir!$infodir$ac_delim
18904 htmldir!$htmldir$ac_delim
18905 dvidir!$dvidir$ac_delim
18906 pdfdir!$pdfdir$ac_delim
18907 psdir!$psdir$ac_delim
18908 libdir!$libdir$ac_delim
18909 localedir!$localedir$ac_delim
18910 mandir!$mandir$ac_delim
18911 DEFS!$DEFS$ac_delim
18912 ECHO_C!$ECHO_C$ac_delim
18913 ECHO_N!$ECHO_N$ac_delim
18914 ECHO_T!$ECHO_T$ac_delim
18915 LIBS!$LIBS$ac_delim
18916 build_alias!$build_alias$ac_delim
18917 host_alias!$host_alias$ac_delim
18918 target_alias!$target_alias$ac_delim
18919 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18920 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18921 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18922 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18923 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18924 CC!$CC$ac_delim
18925 CFLAGS!$CFLAGS$ac_delim
18926 LDFLAGS!$LDFLAGS$ac_delim
18927 CPPFLAGS!$CPPFLAGS$ac_delim
18928 ac_ct_CC!$ac_ct_CC$ac_delim
18929 EXEEXT!$EXEEXT$ac_delim
18930 OBJEXT!$OBJEXT$ac_delim
18931 CXX!$CXX$ac_delim
18932 CXXFLAGS!$CXXFLAGS$ac_delim
18933 ac_ct_CXX!$ac_ct_CXX$ac_delim
18934 CPP!$CPP$ac_delim
18935 subdirs!$subdirs$ac_delim
18936 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18937 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18938 build!$build$ac_delim
18939 build_cpu!$build_cpu$ac_delim
18940 build_vendor!$build_vendor$ac_delim
18941 build_os!$build_os$ac_delim
18942 host!$host$ac_delim
18943 host_cpu!$host_cpu$ac_delim
18944 host_vendor!$host_vendor$ac_delim
18945 host_os!$host_os$ac_delim
18946 target!$target$ac_delim
18947 target_cpu!$target_cpu$ac_delim
18948 target_vendor!$target_vendor$ac_delim
18949 target_os!$target_os$ac_delim
18950 OS!$OS$ac_delim
18951 HOST_OS!$HOST_OS$ac_delim
18952 TARGET_OS!$TARGET_OS$ac_delim
18953 LINKALL!$LINKALL$ac_delim
18954 NOLINKALL!$NOLINKALL$ac_delim
18955 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18956 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18957 ARCH!$ARCH$ac_delim
18958 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18959 HOST_ARCH!$HOST_ARCH$ac_delim
18960 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18961 BUILD_CC!$BUILD_CC$ac_delim
18962 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18963 BUILD_CXX!$BUILD_CXX$ac_delim
18964 CVSBUILD!$CVSBUILD$ac_delim
18965 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18966 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18967 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18968 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18969 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18970 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18971 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18972 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18973 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18974 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18975 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18976 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18977 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18978 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18979 _ACEOF
18980
18981   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18982     break
18983   elif $ac_last_try; then
18984     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18985 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18986    { (exit 1); exit 1; }; }
18987   else
18988     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18989   fi
18990 done
18991
18992 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18993 if test -n "$ac_eof"; then
18994   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18995   ac_eof=`expr $ac_eof + 1`
18996 fi
18997
18998 cat >>$CONFIG_STATUS <<_ACEOF
18999 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19001 _ACEOF
19002 sed '
19003 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19004 s/^/s,@/; s/!/@,|#_!!_#|/
19005 :n
19006 t n
19007 s/'"$ac_delim"'$/,g/; t
19008 s/$/\\/; p
19009 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19010 ' >>$CONFIG_STATUS <conf$$subs.sed
19011 rm -f conf$$subs.sed
19012 cat >>$CONFIG_STATUS <<_ACEOF
19013 CEOF$ac_eof
19014 _ACEOF
19015
19016
19017 ac_delim='%!_!# '
19018 for ac_last_try in false false false false false :; do
19019   cat >conf$$subs.sed <<_ACEOF
19020 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19021 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19022 JIT!$JIT$ac_delim
19023 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19024 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19025 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19026 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19027 enable_searchengine!$enable_searchengine$ac_delim
19028 enable_external_search!$enable_external_search$ac_delim
19029 enable_server_based_search!$enable_server_based_search$ac_delim
19030 searchengine_url!$searchengine_url$ac_delim
19031 extra_search_mappings!$extra_search_mappings$ac_delim
19032 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
19033 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
19034 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
19035 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
19036 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
19037 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
19038 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
19039 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
19040 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
19041 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
19042 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
19043 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
19044 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
19045 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19046 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19047 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19048 ENABLE_PIC!$ENABLE_PIC$ac_delim
19049 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19050 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19051 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19052 ALL_TARGETS!$ALL_TARGETS$ac_delim
19053 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19054 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19055 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19056 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19057 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19058 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19059 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19060 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19061 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19062 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19063 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19064 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19065 ifGNUmake!$ifGNUmake$ac_delim
19066 LN_S!$LN_S$ac_delim
19067 NM!$NM$ac_delim
19068 CMP!$CMP$ac_delim
19069 CP!$CP$ac_delim
19070 DATE!$DATE$ac_delim
19071 FIND!$FIND$ac_delim
19072 GREP!$GREP$ac_delim
19073 MKDIR!$MKDIR$ac_delim
19074 MV!$MV$ac_delim
19075 RANLIB!$RANLIB$ac_delim
19076 AR!$AR$ac_delim
19077 RM!$RM$ac_delim
19078 SED!$SED$ac_delim
19079 TAR!$TAR$ac_delim
19080 BINPWD!$BINPWD$ac_delim
19081 DOT!$DOT$ac_delim
19082 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19083 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19084 INSTALL_DATA!$INSTALL_DATA$ac_delim
19085 BZIP2!$BZIP2$ac_delim
19086 CAT!$CAT$ac_delim
19087 DOXYGEN!$DOXYGEN$ac_delim
19088 GROFF!$GROFF$ac_delim
19089 GZIPBIN!$GZIPBIN$ac_delim
19090 PDFROFF!$PDFROFF$ac_delim
19091 ZIP!$ZIP$ac_delim
19092 GO!$GO$ac_delim
19093 OCAMLFIND!$OCAMLFIND$ac_delim
19094 GAS!$GAS$ac_delim
19095 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19096 EGREP!$EGREP$ac_delim
19097 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19098 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19099 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19100 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19101 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19102 NO_COMMENT!$NO_COMMENT$ac_delim
19103 PYTHON!$PYTHON$ac_delim
19104 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19105 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19106 USE_OPROFILE!$USE_OPROFILE$ac_delim
19107 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19108 XML2CONFIG!$XML2CONFIG$ac_delim
19109 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19110 LIBXML2_INC!$LIBXML2_INC$ac_delim
19111 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19112 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19113 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19114 MMAP_FILE!$MMAP_FILE$ac_delim
19115 SHLIBEXT!$SHLIBEXT$ac_delim
19116 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19117 _ACEOF
19118
19119   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19120     break
19121   elif $ac_last_try; then
19122     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19123 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19124    { (exit 1); exit 1; }; }
19125   else
19126     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19127   fi
19128 done
19129
19130 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19131 if test -n "$ac_eof"; then
19132   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19133   ac_eof=`expr $ac_eof + 1`
19134 fi
19135
19136 cat >>$CONFIG_STATUS <<_ACEOF
19137 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19139 _ACEOF
19140 sed '
19141 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19142 s/^/s,@/; s/!/@,|#_!!_#|/
19143 :n
19144 t n
19145 s/'"$ac_delim"'$/,g/; t
19146 s/$/\\/; p
19147 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19148 ' >>$CONFIG_STATUS <conf$$subs.sed
19149 rm -f conf$$subs.sed
19150 cat >>$CONFIG_STATUS <<_ACEOF
19151 CEOF$ac_eof
19152 _ACEOF
19153
19154
19155 ac_delim='%!_!# '
19156 for ac_last_try in false false false false false :; do
19157   cat >conf$$subs.sed <<_ACEOF
19158 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19159 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19160 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19161 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19162 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19163 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19164 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19165 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19166 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19167 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19168 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19169 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19170 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19171 RPATH!$RPATH$ac_delim
19172 RDYNAMIC!$RDYNAMIC$ac_delim
19173 program_prefix!$program_prefix$ac_delim
19174 LIBOBJS!$LIBOBJS$ac_delim
19175 LTLIBOBJS!$LTLIBOBJS$ac_delim
19176 _ACEOF
19177
19178   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19179     break
19180   elif $ac_last_try; then
19181     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19183    { (exit 1); exit 1; }; }
19184   else
19185     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19186   fi
19187 done
19188
19189 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19190 if test -n "$ac_eof"; then
19191   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19192   ac_eof=`expr $ac_eof + 1`
19193 fi
19194
19195 cat >>$CONFIG_STATUS <<_ACEOF
19196 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19198 _ACEOF
19199 sed '
19200 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19201 s/^/s,@/; s/!/@,|#_!!_#|/
19202 :n
19203 t n
19204 s/'"$ac_delim"'$/,g/; t
19205 s/$/\\/; p
19206 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19207 ' >>$CONFIG_STATUS <conf$$subs.sed
19208 rm -f conf$$subs.sed
19209 cat >>$CONFIG_STATUS <<_ACEOF
19210 :end
19211 s/|#_!!_#|//g
19212 CEOF$ac_eof
19213 _ACEOF
19214
19215
19216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19218 # trailing colons and then remove the whole line if VPATH becomes empty
19219 # (actually we leave an empty line to preserve line numbers).
19220 if test "x$srcdir" = x.; then
19221   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19222 s/:*\$(srcdir):*/:/
19223 s/:*\${srcdir}:*/:/
19224 s/:*@srcdir@:*/:/
19225 s/^\([^=]*=[     ]*\):*/\1/
19226 s/:*$//
19227 s/^[^=]*=[       ]*$//
19228 }'
19229 fi
19230
19231 cat >>$CONFIG_STATUS <<\_ACEOF
19232 fi # test -n "$CONFIG_FILES"
19233
19234
19235 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19236 do
19237   case $ac_tag in
19238   :[FHLC]) ac_mode=$ac_tag; continue;;
19239   esac
19240   case $ac_mode$ac_tag in
19241   :[FHL]*:*);;
19242   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19243 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19244    { (exit 1); exit 1; }; };;
19245   :[FH]-) ac_tag=-:-;;
19246   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19247   esac
19248   ac_save_IFS=$IFS
19249   IFS=:
19250   set x $ac_tag
19251   IFS=$ac_save_IFS
19252   shift
19253   ac_file=$1
19254   shift
19255
19256   case $ac_mode in
19257   :L) ac_source=$1;;
19258   :[FH])
19259     ac_file_inputs=
19260     for ac_f
19261     do
19262       case $ac_f in
19263       -) ac_f="$tmp/stdin";;
19264       *) # Look for the file first in the build tree, then in the source tree
19265          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19266          # because $ac_f cannot contain `:'.
19267          test -f "$ac_f" ||
19268            case $ac_f in
19269            [\\/$]*) false;;
19270            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19271            esac ||
19272            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19273 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19274    { (exit 1); exit 1; }; };;
19275       esac
19276       ac_file_inputs="$ac_file_inputs $ac_f"
19277     done
19278
19279     # Let's still pretend it is `configure' which instantiates (i.e., don't
19280     # use $as_me), people would be surprised to read:
19281     #    /* config.h.  Generated by config.status.  */
19282     configure_input="Generated from "`IFS=:
19283           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19284     if test x"$ac_file" != x-; then
19285       configure_input="$ac_file.  $configure_input"
19286       { echo "$as_me:$LINENO: creating $ac_file" >&5
19287 echo "$as_me: creating $ac_file" >&6;}
19288     fi
19289
19290     case $ac_tag in
19291     *:-:* | *:-) cat >"$tmp/stdin";;
19292     esac
19293     ;;
19294   esac
19295
19296   ac_dir=`$as_dirname -- "$ac_file" ||
19297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19298          X"$ac_file" : 'X\(//\)[^/]' \| \
19299          X"$ac_file" : 'X\(//\)$' \| \
19300          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19301 echo X"$ac_file" |
19302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19303             s//\1/
19304             q
19305           }
19306           /^X\(\/\/\)[^/].*/{
19307             s//\1/
19308             q
19309           }
19310           /^X\(\/\/\)$/{
19311             s//\1/
19312             q
19313           }
19314           /^X\(\/\).*/{
19315             s//\1/
19316             q
19317           }
19318           s/.*/./; q'`
19319   { as_dir="$ac_dir"
19320   case $as_dir in #(
19321   -*) as_dir=./$as_dir;;
19322   esac
19323   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19324     as_dirs=
19325     while :; do
19326       case $as_dir in #(
19327       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19328       *) as_qdir=$as_dir;;
19329       esac
19330       as_dirs="'$as_qdir' $as_dirs"
19331       as_dir=`$as_dirname -- "$as_dir" ||
19332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19333          X"$as_dir" : 'X\(//\)[^/]' \| \
19334          X"$as_dir" : 'X\(//\)$' \| \
19335          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19336 echo X"$as_dir" |
19337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19338             s//\1/
19339             q
19340           }
19341           /^X\(\/\/\)[^/].*/{
19342             s//\1/
19343             q
19344           }
19345           /^X\(\/\/\)$/{
19346             s//\1/
19347             q
19348           }
19349           /^X\(\/\).*/{
19350             s//\1/
19351             q
19352           }
19353           s/.*/./; q'`
19354       test -d "$as_dir" && break
19355     done
19356     test -z "$as_dirs" || eval "mkdir $as_dirs"
19357   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19358 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19359    { (exit 1); exit 1; }; }; }
19360   ac_builddir=.
19361
19362 case "$ac_dir" in
19363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19364 *)
19365   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19366   # A ".." for each directory in $ac_dir_suffix.
19367   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19368   case $ac_top_builddir_sub in
19369   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19370   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19371   esac ;;
19372 esac
19373 ac_abs_top_builddir=$ac_pwd
19374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19375 # for backward compatibility:
19376 ac_top_builddir=$ac_top_build_prefix
19377
19378 case $srcdir in
19379   .)  # We are building in place.
19380     ac_srcdir=.
19381     ac_top_srcdir=$ac_top_builddir_sub
19382     ac_abs_top_srcdir=$ac_pwd ;;
19383   [\\/]* | ?:[\\/]* )  # Absolute name.
19384     ac_srcdir=$srcdir$ac_dir_suffix;
19385     ac_top_srcdir=$srcdir
19386     ac_abs_top_srcdir=$srcdir ;;
19387   *) # Relative name.
19388     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19389     ac_top_srcdir=$ac_top_build_prefix$srcdir
19390     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19391 esac
19392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19393
19394
19395   case $ac_mode in
19396   :F)
19397   #
19398   # CONFIG_FILE
19399   #
19400
19401   case $INSTALL in
19402   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19403   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19404   esac
19405 _ACEOF
19406
19407 cat >>$CONFIG_STATUS <<\_ACEOF
19408 # If the template does not know about datarootdir, expand it.
19409 # FIXME: This hack should be removed a few years after 2.60.
19410 ac_datarootdir_hack=; ac_datarootdir_seen=
19411
19412 case `sed -n '/datarootdir/ {
19413   p
19414   q
19415 }
19416 /@datadir@/p
19417 /@docdir@/p
19418 /@infodir@/p
19419 /@localedir@/p
19420 /@mandir@/p
19421 ' $ac_file_inputs` in
19422 *datarootdir*) ac_datarootdir_seen=yes;;
19423 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19424   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19425 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19426 _ACEOF
19427 cat >>$CONFIG_STATUS <<_ACEOF
19428   ac_datarootdir_hack='
19429   s&@datadir@&$datadir&g
19430   s&@docdir@&$docdir&g
19431   s&@infodir@&$infodir&g
19432   s&@localedir@&$localedir&g
19433   s&@mandir@&$mandir&g
19434     s&\\\${datarootdir}&$datarootdir&g' ;;
19435 esac
19436 _ACEOF
19437
19438 # Neutralize VPATH when `$srcdir' = `.'.
19439 # Shell code in configure.ac might set extrasub.
19440 # FIXME: do we really want to maintain this feature?
19441 cat >>$CONFIG_STATUS <<_ACEOF
19442   sed "$ac_vpsub
19443 $extrasub
19444 _ACEOF
19445 cat >>$CONFIG_STATUS <<\_ACEOF
19446 :t
19447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19448 s&@configure_input@&$configure_input&;t t
19449 s&@top_builddir@&$ac_top_builddir_sub&;t t
19450 s&@srcdir@&$ac_srcdir&;t t
19451 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19452 s&@top_srcdir@&$ac_top_srcdir&;t t
19453 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19454 s&@builddir@&$ac_builddir&;t t
19455 s&@abs_builddir@&$ac_abs_builddir&;t t
19456 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19457 s&@INSTALL@&$ac_INSTALL&;t t
19458 $ac_datarootdir_hack
19459 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19460
19461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19462   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19463   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19464   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19465 which seems to be undefined.  Please make sure it is defined." >&5
19466 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19467 which seems to be undefined.  Please make sure it is defined." >&2;}
19468
19469   rm -f "$tmp/stdin"
19470   case $ac_file in
19471   -) cat "$tmp/out"; rm -f "$tmp/out";;
19472   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19473   esac
19474  ;;
19475   :H)
19476   #
19477   # CONFIG_HEADER
19478   #
19479 _ACEOF
19480
19481 # Transform confdefs.h into a sed script `conftest.defines', that
19482 # substitutes the proper values into config.h.in to produce config.h.
19483 rm -f conftest.defines conftest.tail
19484 # First, append a space to every undef/define line, to ease matching.
19485 echo 's/$/ /' >conftest.defines
19486 # Then, protect against being on the right side of a sed subst, or in
19487 # an unquoted here document, in config.status.  If some macros were
19488 # called several times there might be several #defines for the same
19489 # symbol, which is useless.  But do not sort them, since the last
19490 # AC_DEFINE must be honored.
19491 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19492 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19493 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19494 # PARAMS is the parameter list in the macro definition--in most cases, it's
19495 # just an empty string.
19496 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19497 ac_dB='\\)[      (].*,\\1define\\2'
19498 ac_dC=' '
19499 ac_dD=' ,'
19500
19501 uniq confdefs.h |
19502   sed -n '
19503         t rset
19504         :rset
19505         s/^[     ]*#[    ]*define[       ][      ]*//
19506         t ok
19507         d
19508         :ok
19509         s/[\\&,]/\\&/g
19510         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19511         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19512   ' >>conftest.defines
19513
19514 # Remove the space that was appended to ease matching.
19515 # Then replace #undef with comments.  This is necessary, for
19516 # example, in the case of _POSIX_SOURCE, which is predefined and required
19517 # on some systems where configure will not decide to define it.
19518 # (The regexp can be short, since the line contains either #define or #undef.)
19519 echo 's/ $//
19520 s,^[     #]*u.*,/* & */,' >>conftest.defines
19521
19522 # Break up conftest.defines:
19523 ac_max_sed_lines=50
19524
19525 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19526 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19527 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19528 # et cetera.
19529 ac_in='$ac_file_inputs'
19530 ac_out='"$tmp/out1"'
19531 ac_nxt='"$tmp/out2"'
19532
19533 while :
19534 do
19535   # Write a here document:
19536     cat >>$CONFIG_STATUS <<_ACEOF
19537     # First, check the format of the line:
19538     cat >"\$tmp/defines.sed" <<\\CEOF
19539 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19540 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19541 b
19542 :def
19543 _ACEOF
19544   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19545   echo 'CEOF
19546     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19547   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19548   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19549   grep . conftest.tail >/dev/null || break
19550   rm -f conftest.defines
19551   mv conftest.tail conftest.defines
19552 done
19553 rm -f conftest.defines conftest.tail
19554
19555 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19556 cat >>$CONFIG_STATUS <<\_ACEOF
19557   if test x"$ac_file" != x-; then
19558     echo "/* $configure_input  */" >"$tmp/config.h"
19559     cat "$ac_result" >>"$tmp/config.h"
19560     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19561       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19562 echo "$as_me: $ac_file is unchanged" >&6;}
19563     else
19564       rm -f $ac_file
19565       mv "$tmp/config.h" $ac_file
19566     fi
19567   else
19568     echo "/* $configure_input  */"
19569     cat "$ac_result"
19570   fi
19571   rm -f "$tmp/out12"
19572  ;;
19573
19574   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19575 echo "$as_me: executing $ac_file commands" >&6;}
19576  ;;
19577   esac
19578
19579
19580   case $ac_file$ac_mode in
19581     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19582    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19583     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19584    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19585     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19586    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19587     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19588    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19589     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19590    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19591     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19592    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19593     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19594    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19595     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19596    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19597     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19598    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19599     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19600    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19601     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19602    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19603     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19604    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19605
19606   esac
19607 done # for ac_tag
19608
19609
19610 { (exit 0); exit 0; }
19611 _ACEOF
19612 chmod +x $CONFIG_STATUS
19613 ac_clean_files=$ac_clean_files_save
19614
19615
19616 # configure is writing to config.log, and then calls config.status.
19617 # config.status does its own redirection, appending to config.log.
19618 # Unfortunately, on DOS this fails, as config.log is still kept open
19619 # by configure, so config.status won't be able to write to it; its
19620 # output is simply discarded.  So we exec the FD to /dev/null,
19621 # effectively closing config.log, so it can be properly (re)opened and
19622 # appended to by config.status.  When coming back to configure, we
19623 # need to make the FD available again.
19624 if test "$no_create" != yes; then
19625   ac_cs_success=:
19626   ac_config_status_args=
19627   test "$silent" = yes &&
19628     ac_config_status_args="$ac_config_status_args --quiet"
19629   exec 5>/dev/null
19630   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19631   exec 5>>config.log
19632   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19633   # would make configure fail if this is the last instruction.
19634   $ac_cs_success || { (exit 1); exit 1; }
19635 fi
19636
19637 #
19638 # CONFIG_SUBDIRS section.
19639 #
19640 if test "$no_recursion" != yes; then
19641
19642   # Remove --cache-file and --srcdir arguments so they do not pile up.
19643   ac_sub_configure_args=
19644   ac_prev=
19645   eval "set x $ac_configure_args"
19646   shift
19647   for ac_arg
19648   do
19649     if test -n "$ac_prev"; then
19650       ac_prev=
19651       continue
19652     fi
19653     case $ac_arg in
19654     -cache-file | --cache-file | --cache-fil | --cache-fi \
19655     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19656       ac_prev=cache_file ;;
19657     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19658     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19659     | --c=*)
19660       ;;
19661     --config-cache | -C)
19662       ;;
19663     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19664       ac_prev=srcdir ;;
19665     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19666       ;;
19667     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19668       ac_prev=prefix ;;
19669     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19670       ;;
19671     *)
19672       case $ac_arg in
19673       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19674       esac
19675       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19676     esac
19677   done
19678
19679   # Always prepend --prefix to ensure using the same prefix
19680   # in subdir configurations.
19681   ac_arg="--prefix=$prefix"
19682   case $ac_arg in
19683   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19684   esac
19685   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19686
19687   ac_popdir=`pwd`
19688   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19689
19690     # Do not complain, so a configure script can configure whichever
19691     # parts of a large source tree are present.
19692     test -d "$srcdir/$ac_dir" || continue
19693
19694     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19695     echo "$as_me:$LINENO: $ac_msg" >&5
19696     echo "$ac_msg" >&6
19697     { as_dir="$ac_dir"
19698   case $as_dir in #(
19699   -*) as_dir=./$as_dir;;
19700   esac
19701   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19702     as_dirs=
19703     while :; do
19704       case $as_dir in #(
19705       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19706       *) as_qdir=$as_dir;;
19707       esac
19708       as_dirs="'$as_qdir' $as_dirs"
19709       as_dir=`$as_dirname -- "$as_dir" ||
19710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19711          X"$as_dir" : 'X\(//\)[^/]' \| \
19712          X"$as_dir" : 'X\(//\)$' \| \
19713          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19714 echo X"$as_dir" |
19715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19716             s//\1/
19717             q
19718           }
19719           /^X\(\/\/\)[^/].*/{
19720             s//\1/
19721             q
19722           }
19723           /^X\(\/\/\)$/{
19724             s//\1/
19725             q
19726           }
19727           /^X\(\/\).*/{
19728             s//\1/
19729             q
19730           }
19731           s/.*/./; q'`
19732       test -d "$as_dir" && break
19733     done
19734     test -z "$as_dirs" || eval "mkdir $as_dirs"
19735   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19736 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19737    { (exit 1); exit 1; }; }; }
19738     ac_builddir=.
19739
19740 case "$ac_dir" in
19741 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19742 *)
19743   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19744   # A ".." for each directory in $ac_dir_suffix.
19745   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19746   case $ac_top_builddir_sub in
19747   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19748   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19749   esac ;;
19750 esac
19751 ac_abs_top_builddir=$ac_pwd
19752 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19753 # for backward compatibility:
19754 ac_top_builddir=$ac_top_build_prefix
19755
19756 case $srcdir in
19757   .)  # We are building in place.
19758     ac_srcdir=.
19759     ac_top_srcdir=$ac_top_builddir_sub
19760     ac_abs_top_srcdir=$ac_pwd ;;
19761   [\\/]* | ?:[\\/]* )  # Absolute name.
19762     ac_srcdir=$srcdir$ac_dir_suffix;
19763     ac_top_srcdir=$srcdir
19764     ac_abs_top_srcdir=$srcdir ;;
19765   *) # Relative name.
19766     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19767     ac_top_srcdir=$ac_top_build_prefix$srcdir
19768     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19769 esac
19770 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19771
19772
19773     cd "$ac_dir"
19774
19775     # Check for guested configure; otherwise get Cygnus style configure.
19776     if test -f "$ac_srcdir/configure.gnu"; then
19777       ac_sub_configure=$ac_srcdir/configure.gnu
19778     elif test -f "$ac_srcdir/configure"; then
19779       ac_sub_configure=$ac_srcdir/configure
19780     elif test -f "$ac_srcdir/configure.in"; then
19781       # This should be Cygnus configure.
19782       ac_sub_configure=$ac_aux_dir/configure
19783     else
19784       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19785 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19786       ac_sub_configure=
19787     fi
19788
19789     # The recursion is here.
19790     if test -n "$ac_sub_configure"; then
19791       # Make the cache file name correct relative to the subdirectory.
19792       case $cache_file in
19793       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19794       *) # Relative name.
19795         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19796       esac
19797
19798       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19799 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19800       # The eval makes quoting arguments work.
19801       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19802            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19803         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19804 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19805    { (exit 1); exit 1; }; }
19806     fi
19807
19808     cd "$ac_popdir"
19809   done
19810 fi
19811