Modernize getELFDynamicSymbolIterators.
[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                           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   *)                      llvm_cv_target_arch="Unknown" ;;
4211 esac
4212 fi
4213 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4214 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4215
4216 if test "$llvm_cv_target_arch" = "Unknown" ; then
4217   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4218 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4219 fi
4220
4221 case "$llvm_cv_target_arch" in
4222     x86)     LLVM_NATIVE_ARCH="X86" ;;
4223     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4224     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4225 esac
4226
4227 ARCH=$llvm_cv_target_arch
4228
4229 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4230
4231
4232 case $host in
4233   i?86-*)                 host_arch="x86" ;;
4234   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4235   sparc*-*)               host_arch="Sparc" ;;
4236   powerpc*-*)             host_arch="PowerPC" ;;
4237   arm64*-*)               host_arch="AArch64" ;;
4238   arm*-*)                 host_arch="ARM" ;;
4239   aarch64*-*)             host_arch="AArch64" ;;
4240   mips-* | mips64-*)      host_arch="Mips" ;;
4241   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4242   xcore-*)                host_arch="XCore" ;;
4243   msp430-*)               host_arch="MSP430" ;;
4244   hexagon-*)              host_arch="Hexagon" ;;
4245   s390x-*)                host_arch="SystemZ" ;;
4246   *)                      host_arch="Unknown" ;;
4247 esac
4248
4249 if test "$host_arch" = "Unknown" ; then
4250   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4251 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4252 fi
4253
4254 HOST_ARCH=$host_arch
4255
4256
4257 if test "$cross_compiling" = yes; then
4258   LLVM_CROSS_COMPILING=1
4259
4260
4261 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4262 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4263 if test "${ac_cv_build_exeext+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4267   ac_cv_build_exeext=.exe
4268 else
4269   ac_build_prefix=${build_alias}-
4270
4271   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4272 set dummy ${ac_build_prefix}gcc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   if test -n "$BUILD_CC"; then
4279   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286   for ac_exec_ext in '' $ac_executable_extensions; do
4287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4288     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293 done
4294 IFS=$as_save_IFS
4295
4296 fi
4297 fi
4298 BUILD_CC=$ac_cv_prog_BUILD_CC
4299 if test -n "$BUILD_CC"; then
4300   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4301 echo "${ECHO_T}$BUILD_CC" >&6; }
4302 else
4303   { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4305 fi
4306
4307
4308   if test -z "$BUILD_CC"; then
4309      # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   if test -n "$BUILD_CC"; then
4317   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324   for ac_exec_ext in '' $ac_executable_extensions; do
4325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4326     ac_cv_prog_BUILD_CC="gcc"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4339 echo "${ECHO_T}$BUILD_CC" >&6; }
4340 else
4341   { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4343 fi
4344
4345
4346      if test -z "$BUILD_CC"; then
4347        # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   if test -n "$BUILD_CC"; then
4355   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4356 else
4357   ac_prog_rejected=no
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4366        ac_prog_rejected=yes
4367        continue
4368      fi
4369     ac_cv_prog_BUILD_CC="cc"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 if test $ac_prog_rejected = yes; then
4378   # We found a bogon in the path, so make sure we never use it.
4379   set dummy $ac_cv_prog_BUILD_CC
4380   shift
4381   if test $# != 0; then
4382     # We chose a different compiler from the bogus one.
4383     # However, it has the same basename, so the bogon will be chosen
4384     # first if we set BUILD_CC to just the basename; use the full file name.
4385     shift
4386     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4387   fi
4388 fi
4389 fi
4390 fi
4391 BUILD_CC=$ac_cv_prog_BUILD_CC
4392 if test -n "$BUILD_CC"; then
4393   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4394 echo "${ECHO_T}$BUILD_CC" >&6; }
4395 else
4396   { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4398 fi
4399
4400
4401      fi
4402   fi
4403   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4404 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4405    { (exit 1); exit 1; }; }
4406   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4407   rm -f conftest*
4408   echo 'int main () { return 0; }' > conftest.$ac_ext
4409   ac_cv_build_exeext=
4410   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4411   (eval $ac_build_link) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; then
4415     for file in conftest.*; do
4416       case $file in
4417       *.c | *.o | *.obj | *.dSYM) ;;
4418       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4419       esac
4420     done
4421   else
4422     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4423 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4424    { (exit 1); exit 1; }; }
4425   fi
4426   rm -f conftest*
4427   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4428 fi
4429 fi
4430
4431 BUILD_EXEEXT=""
4432 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4433 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4434 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4435 ac_build_exeext=$BUILD_EXEEXT
4436
4437   ac_build_prefix=${build_alias}-
4438   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4439 set dummy ${ac_build_prefix}g++; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   if test -n "$BUILD_CXX"; then
4446   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_exec_ext in '' $ac_executable_extensions; do
4454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4466 if test -n "$BUILD_CXX"; then
4467   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4468 echo "${ECHO_T}$BUILD_CXX" >&6; }
4469 else
4470   { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4472 fi
4473
4474
4475   if test -z "$BUILD_CXX"; then
4476      # Extract the first word of "g++", so it can be a program name with args.
4477 set dummy g++; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$BUILD_CXX"; then
4484   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4493     ac_cv_prog_BUILD_CXX="g++"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4504 if test -n "$BUILD_CXX"; then
4505   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4506 echo "${ECHO_T}$BUILD_CXX" >&6; }
4507 else
4508   { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4510 fi
4511
4512
4513      if test -z "$BUILD_CXX"; then
4514        # Extract the first word of "c++", so it can be a program name with args.
4515 set dummy c++; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   if test -n "$BUILD_CXX"; then
4522   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4523 else
4524   ac_prog_rejected=no
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4533        ac_prog_rejected=yes
4534        continue
4535      fi
4536     ac_cv_prog_BUILD_CXX="c++"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544 if test $ac_prog_rejected = yes; then
4545   # We found a bogon in the path, so make sure we never use it.
4546   set dummy $ac_cv_prog_BUILD_CXX
4547   shift
4548   if test $# != 0; then
4549     # We chose a different compiler from the bogus one.
4550     # However, it has the same basename, so the bogon will be chosen
4551     # first if we set BUILD_CXX to just the basename; use the full file name.
4552     shift
4553     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4554   fi
4555 fi
4556 fi
4557 fi
4558 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4559 if test -n "$BUILD_CXX"; then
4560   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4561 echo "${ECHO_T}$BUILD_CXX" >&6; }
4562 else
4563   { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4565 fi
4566
4567
4568      fi
4569   fi
4570 else
4571   LLVM_CROSS_COMPILING=0
4572
4573 fi
4574
4575 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4576   cvsbuild="yes"
4577   optimize="no"
4578   CVSBUILD=CVSBUILD=1
4579
4580 else
4581   cvsbuild="no"
4582   optimize="yes"
4583 fi
4584
4585
4586 # Check whether --enable-libcpp was given.
4587 if test "${enable_libcpp+set}" = set; then
4588   enableval=$enable_libcpp;
4589 else
4590   enableval=default
4591 fi
4592
4593 case "$enableval" in
4594   yes) ENABLE_LIBCPP=1
4595  ;;
4596   no)  ENABLE_LIBCPP=0
4597  ;;
4598   default) ENABLE_LIBCPP=0
4599 ;;
4600   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4601 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4602    { (exit 1); exit 1; }; } ;;
4603 esac
4604
4605 # Check whether --enable-compiler-version-checks was given.
4606 if test "${enable_compiler_version_checks+set}" = set; then
4607   enableval=$enable_compiler_version_checks;
4608 else
4609   enableval=default
4610 fi
4611
4612 case "$enableval" in
4613   no)
4614     ;;
4615   yes|default)
4616     ac_ext=cpp
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4621
4622     case "$llvm_cv_cxx_compiler" in
4623     clang)
4624       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4625 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4626       cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632
4633 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4634 #error This version of Clang is too old to build LLVM
4635 #endif
4636
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642   *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645   (eval "$ac_compile") 2>conftest.er1
4646   ac_status=$?
4647   grep -v '^ *+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } &&
4652          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4653   { (case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658   (eval "$ac_try") 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; } &&
4662          { ac_try='test -s conftest.$ac_objext'
4663   { (case "(($ac_try" in
4664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665   *) ac_try_echo=$ac_try;;
4666 esac
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668   (eval "$ac_try") 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; }; then
4672   { echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6; }
4674 else
4675   echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678         { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680            { { echo "$as_me:$LINENO: error:
4681 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4682 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4683 bypass these sanity checks." >&5
4684 echo "$as_me: error:
4685 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4686 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4687 bypass these sanity checks." >&2;}
4688    { (exit 1); exit 1; }; }
4689 fi
4690
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692
4693                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4694         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4695 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4696         llvm_cv_old_cxxflags="$CXXFLAGS"
4697         CXXFLAGS="$CXXFLAGS -std=c++0x"
4698         cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704
4705 #include <atomic>
4706 std::atomic<float> x(0.0f);
4707 int main() { return (float)x; }
4708
4709 _ACEOF
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_link") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4725   { (case "(($ac_try" in
4726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727   *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730   (eval "$ac_try") 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; } &&
4734          { ac_try='test -s conftest$ac_exeext'
4735   { (case "(($ac_try" in
4736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737   *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740   (eval "$ac_try") 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; }; then
4744   { echo "$as_me:$LINENO: result: yes" >&5
4745 echo "${ECHO_T}yes" >&6; }
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750         { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752              { { echo "$as_me:$LINENO: error:
4753 We detected a missing feature in the standard C++ library that was known to be
4754 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4755 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4756 than 4.7. You will need to update your system and ensure Clang uses the newer
4757 standard library.
4758
4759 If this error is incorrect or you need to force things to work, you may pass
4760 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4761 echo "$as_me: error:
4762 We detected a missing feature in the standard C++ library that was known to be
4763 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4764 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4765 than 4.7. You will need to update your system and ensure Clang uses the newer
4766 standard library.
4767
4768 If this error is incorrect or you need to force things to work, you may pass
4769 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4770    { (exit 1); exit 1; }; }
4771 fi
4772
4773 rm -f core conftest.err conftest.$ac_objext \
4774       conftest$ac_exeext conftest.$ac_ext
4775         CXXFLAGS="$llvm_cv_old_cxxflags"
4776       fi
4777       ;;
4778     gcc)
4779       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4780 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4781       cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787
4788 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4789 #error This version of GCC is too old to build LLVM
4790 #endif
4791
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800   (eval "$ac_compile") 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808   { (case "(($ac_try" in
4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810   *) ac_try_echo=$ac_try;;
4811 esac
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813   (eval "$ac_try") 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; } &&
4817          { ac_try='test -s conftest.$ac_objext'
4818   { (case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823   (eval "$ac_try") 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; }; then
4827   { echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6; }
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833         { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835            { { echo "$as_me:$LINENO: error:
4836 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4837 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4838 bypass these sanity checks." >&5
4839 echo "$as_me: error:
4840 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4841 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4842 bypass these sanity checks." >&2;}
4843    { (exit 1); exit 1; }; }
4844 fi
4845
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847       ;;
4848     unknown)
4849       ;;
4850     esac
4851     ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857     ;;
4858   *)
4859     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4861    { (exit 1); exit 1; }; }
4862     ;;
4863 esac
4864
4865 # Check whether --enable-cxx1y was given.
4866 if test "${enable_cxx1y+set}" = set; then
4867   enableval=$enable_cxx1y;
4868 else
4869   enableval=default
4870 fi
4871
4872 case "$enableval" in
4873   yes) ENABLE_CXX1Y=1
4874  ;;
4875   no)  ENABLE_CXX1Y=0
4876  ;;
4877   default) ENABLE_CXX1Y=0
4878 ;;
4879   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4881    { (exit 1); exit 1; }; } ;;
4882 esac
4883
4884 # Check whether --enable-split-dwarf was given.
4885 if test "${enable_split_dwarf+set}" = set; then
4886   enableval=$enable_split_dwarf;
4887 else
4888   enableval=default
4889 fi
4890
4891 case "$enableval" in
4892   yes) ENABLE_SPLIT_DWARF=1
4893  ;;
4894   no)  ENABLE_SPLIT_DWARF=0
4895  ;;
4896   default) ENABLE_SPLIT_DWARF=0
4897 ;;
4898   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4900    { (exit 1); exit 1; }; } ;;
4901 esac
4902
4903 clang_arcmt="yes"
4904 # Check whether --enable-clang-arcmt was given.
4905 if test "${enable_clang_arcmt+set}" = set; then
4906   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4907 else
4908   enableval="yes"
4909 fi
4910
4911 case "$enableval" in
4912   yes) ENABLE_CLANG_ARCMT=1
4913  ;;
4914   no)  ENABLE_CLANG_ARCMT=0
4915  ;;
4916   default) ENABLE_CLANG_ARCMT=1
4917 ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 clang_plugin_support="yes"
4924 # Check whether --enable-clang-plugin-support was given.
4925 if test "${enable_clang_plugin_support+set}" = set; then
4926   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4927 else
4928   enableval="yes"
4929 fi
4930
4931 case "$enableval" in
4932   yes) CLANG_PLUGIN_SUPPORT=1
4933  ;;
4934   no)  CLANG_PLUGIN_SUPPORT=0
4935  ;;
4936   default) CLANG_PLUGIN_SUPPORT=1
4937 ;;
4938   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4940    { (exit 1); exit 1; }; } ;;
4941 esac
4942
4943 clang_static_analyzer="yes"
4944 # Check whether --enable-clang-static-analyzer was given.
4945 if test "${enable_clang_static_analyzer+set}" = set; then
4946   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4947 else
4948   enableval="yes"
4949 fi
4950
4951 case "$enableval" in
4952   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4953  ;;
4954   no)
4955     if test ${clang_arcmt} != "no" ; then
4956       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4957 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4958    { (exit 1); exit 1; }; }
4959     fi
4960     ENABLE_CLANG_STATIC_ANALYZER=0
4961
4962     ;;
4963   default) ENABLE_CLANG_STATIC_ANALYZER=1
4964 ;;
4965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4967    { (exit 1); exit 1; }; } ;;
4968 esac
4969
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972   enableval=$enable_optimized;
4973 else
4974   enableval=$optimize
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   ENABLE_OPTIMIZED=
4979
4980 else
4981   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4982
4983 fi
4984
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987   enableval=$enable_profiling;
4988 else
4989   enableval="no"
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   ENABLE_PROFILING=
4994
4995 else
4996   ENABLE_PROFILING=ENABLE_PROFILING=1
4997
4998 fi
4999
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002   enableval=$enable_assertions;
5003 else
5004   enableval="yes"
5005 fi
5006
5007 if test ${enableval} = "yes" ; then
5008   DISABLE_ASSERTIONS=
5009
5010   assertions_enabled="yes"
5011 else
5012   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5013
5014   assertions_enabled="no"
5015 fi
5016
5017 # Check whether --enable-werror was given.
5018 if test "${enable_werror+set}" = set; then
5019   enableval=$enable_werror;
5020 else
5021   enableval="no"
5022 fi
5023
5024 case "$enableval" in
5025   yes) ENABLE_WERROR=1
5026  ;;
5027   no)  ENABLE_WERROR=0
5028  ;;
5029   default) ENABLE_WERROR=0
5030 ;;
5031   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5032 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5033    { (exit 1); exit 1; }; } ;;
5034 esac
5035
5036 # Check whether --enable-expensive-checks was given.
5037 if test "${enable_expensive_checks+set}" = set; then
5038   enableval=$enable_expensive_checks;
5039 else
5040   enableval="no"
5041 fi
5042
5043 if test ${enableval} = "yes" ; then
5044   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5045
5046   EXPENSIVE_CHECKS=yes
5047
5048 else
5049   ENABLE_EXPENSIVE_CHECKS=
5050
5051   EXPENSIVE_CHECKS=no
5052
5053 fi
5054
5055 # Check whether --enable-abi-breaking-checks was given.
5056 if test "${enable_abi_breaking_checks+set}" = set; then
5057   enableval=$enable_abi_breaking_checks;
5058 else
5059   enableval="with-asserts"
5060 fi
5061
5062 case "$enableval" in
5063   with-asserts)  if test ${assertions_enabled} = "yes" ; then
5064
5065 cat >>confdefs.h <<\_ACEOF
5066 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5067 _ACEOF
5068
5069                    ENABLE_ABI_BREAKING_CHECKS=1
5070
5071                  else
5072                    ENABLE_ABI_BREAKING_CHECKS=0
5073
5074                  fi ;;
5075   yes)
5076
5077 cat >>confdefs.h <<\_ACEOF
5078 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5079 _ACEOF
5080
5081                  ENABLE_ABI_BREAKING_CHECKS=1
5082
5083                  ;;
5084   no)
5085                  ENABLE_ABI_BREAKING_CHECKS=0
5086
5087                  ;;
5088   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5090    { (exit 1); exit 1; }; }
5091 esac
5092
5093 # Check whether --enable-debug-runtime was given.
5094 if test "${enable_debug_runtime+set}" = set; then
5095   enableval=$enable_debug_runtime;
5096 else
5097   enableval=no
5098 fi
5099
5100 if test ${enableval} = "no" ; then
5101   DEBUG_RUNTIME=
5102
5103 else
5104   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5105
5106 fi
5107
5108 # Check whether --enable-debug-symbols was given.
5109 if test "${enable_debug_symbols+set}" = set; then
5110   enableval=$enable_debug_symbols;
5111 else
5112   enableval=no
5113 fi
5114
5115 if test ${enableval} = "no" ; then
5116   DEBUG_SYMBOLS=
5117
5118 else
5119   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5120
5121 fi
5122
5123 # Check whether --enable-keep-symbols was given.
5124 if test "${enable_keep_symbols+set}" = set; then
5125   enableval=$enable_keep_symbols;
5126 else
5127   enableval=no
5128 fi
5129
5130 if test ${enableval} = "no" ; then
5131   KEEP_SYMBOLS=
5132
5133 else
5134   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5135
5136 fi
5137
5138 # Check whether --enable-jit was given.
5139 if test "${enable_jit+set}" = set; then
5140   enableval=$enable_jit;
5141 else
5142   enableval=default
5143 fi
5144
5145 if test ${enableval} = "no"
5146 then
5147   JIT=
5148
5149 else
5150   case "$llvm_cv_target_arch" in
5151     x86)         TARGET_HAS_JIT=1
5152  ;;
5153     Sparc)       TARGET_HAS_JIT=0
5154  ;;
5155     PowerPC)     TARGET_HAS_JIT=1
5156  ;;
5157     x86_64)      TARGET_HAS_JIT=1
5158  ;;
5159     ARM)         TARGET_HAS_JIT=1
5160  ;;
5161     Mips)        TARGET_HAS_JIT=1
5162  ;;
5163     XCore)       TARGET_HAS_JIT=0
5164  ;;
5165     MSP430)      TARGET_HAS_JIT=0
5166  ;;
5167     Hexagon)     TARGET_HAS_JIT=0
5168  ;;
5169     NVPTX)       TARGET_HAS_JIT=0
5170  ;;
5171     SystemZ)     TARGET_HAS_JIT=1
5172  ;;
5173     *)           TARGET_HAS_JIT=0
5174  ;;
5175   esac
5176 fi
5177
5178 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5179 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5180
5181
5182 # Check whether --enable-docs was given.
5183 if test "${enable_docs+set}" = set; then
5184   enableval=$enable_docs;
5185 else
5186   enableval=default
5187 fi
5188
5189 case "$enableval" in
5190   yes) ENABLE_DOCS=1
5191  ;;
5192   no)  ENABLE_DOCS=0
5193  ;;
5194   default) ENABLE_DOCS=1
5195  ;;
5196   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5198    { (exit 1); exit 1; }; } ;;
5199 esac
5200
5201 # Check whether --enable-doxygen was given.
5202 if test "${enable_doxygen+set}" = set; then
5203   enableval=$enable_doxygen;
5204 else
5205   enableval=default
5206 fi
5207
5208 case "$enableval" in
5209   yes) ENABLE_DOXYGEN=1
5210  ;;
5211   no|default) ENABLE_DOXYGEN=0
5212  ;;
5213   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218 # Check whether --enable-doxygen-search was given.
5219 if test "${enable_doxygen_search+set}" = set; then
5220   enableval=$enable_doxygen_search;
5221 else
5222   enableval=default
5223 fi
5224
5225 ENABLE_DOXYGEN_SEARCH="$enableval"
5226
5227 case "$enableval" in
5228   yes|no|default) ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 # Check whether --enable-doxygen-external-search was given.
5235 if test "${enable_doxygen_external_search+set}" = set; then
5236   enableval=$enable_doxygen_external_search;
5237 else
5238   enableval=default
5239 fi
5240
5241 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5242
5243 case "$enableval" in
5244   yes)
5245             case "$ENABLE_DOXYGEN_SEARCH" in
5246       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5247       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5248 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5249    { (exit 1); exit 1; }; } ;;
5250     esac
5251     ;;
5252   no|default) ;;
5253   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5255    { (exit 1); exit 1; }; } ;;
5256 esac
5257
5258
5259 # Check whether --with-doxygen-search-engine-url was given.
5260 if test "${with_doxygen_search_engine_url+set}" = set; then
5261   withval=$with_doxygen_search_engine_url;
5262 fi
5263
5264 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5265
5266
5267 # Check whether --with-doxygen-search-mappings was given.
5268 if test "${with_doxygen_search_mappings+set}" = set; then
5269   withval=$with_doxygen_search_mappings;
5270 fi
5271
5272 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5273
5274 case "$ENABLE_DOXYGEN_SEARCH" in
5275   yes)
5276     if test "$ENABLE_DOXYGEN" = "0" ; then
5277       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5278 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5279    { (exit 1); exit 1; }; }
5280     fi
5281
5282     enable_searchengine=YES
5283
5284
5285     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5286       yes)
5287         enable_external_search=YES
5288
5289         enable_server_based_search=YES
5290
5291         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5292
5293         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5294
5295         ;;
5296
5297       no|default)
5298         enable_external_search=NO
5299
5300         enable_server_based_search=NO
5301
5302
5303
5304         ;;
5305     esac
5306     ;;
5307
5308   no|default)
5309     enable_searchengine=NO
5310
5311
5312     enable_server_based_search=NO
5313
5314     enable_external_search=NO
5315
5316
5317     ;;
5318
5319   *)
5320     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5322    { (exit 1); exit 1; }; }
5323     ;;
5324 esac
5325
5326 # Check whether --enable-doxygen-qt-help was given.
5327 if test "${enable_doxygen_qt_help+set}" = set; then
5328   enableval=$enable_doxygen_qt_help;
5329 else
5330   enableval=default
5331 fi
5332
5333 case "$enableval" in
5334   yes)
5335     if test "$ENABLE_DOXYGEN" = "0" ; then
5336       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5337 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5338    { (exit 1); exit 1; }; }
5339     fi
5340
5341     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5342 set dummy qhelpgenerator; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   case $QHELPGENERATOR in
5349   [\\/]* | ?:[\\/]*)
5350   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5351   ;;
5352   *)
5353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5360     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5369   ;;
5370 esac
5371 fi
5372 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5373 if test -n "$QHELPGENERATOR"; then
5374   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5375 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5376 else
5377   { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5379 fi
5380
5381
5382
5383         llvm_doxygen_generate_qhp=YES
5384
5385     llvm_doxygen_qch_filename=org.llvm.qch
5386
5387     llvm_doxygen_qhp_namespace=org.llvm
5388
5389     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5390
5391     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5392
5393     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5394
5395
5396         clang_doxygen_generate_qhp=YES
5397
5398     clang_doxygen_qch_filename=org.llvm.clang.qch
5399
5400     clang_doxygen_qhp_namespace=org.llvm.clang
5401
5402     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5403
5404     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5405
5406     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5407
5408     ;;
5409
5410   no|default)
5411     llvm_doxygen_generate_qhp=NO
5412
5413
5414
5415
5416
5417
5418
5419     clang_doxygen_generate_qhp=NO
5420
5421
5422
5423
5424     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5425
5426     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5427
5428     ;;
5429
5430   *)
5431     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5433    { (exit 1); exit 1; }; } ;;
5434 esac
5435
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438   enableval=$enable_threads;
5439 else
5440   enableval=default
5441 fi
5442
5443 case "$enableval" in
5444   yes) LLVM_ENABLE_THREADS=1
5445  ;;
5446   no)  LLVM_ENABLE_THREADS=0
5447  ;;
5448   default) LLVM_ENABLE_THREADS=1
5449  ;;
5450   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452    { (exit 1); exit 1; }; } ;;
5453 esac
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5457 _ACEOF
5458
5459
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462   enableval=$enable_pthreads;
5463 else
5464   enableval=default
5465 fi
5466
5467 case "$enableval" in
5468   yes) ENABLE_PTHREADS=1
5469  ;;
5470   no)  ENABLE_PTHREADS=0
5471  ;;
5472   default) ENABLE_PTHREADS=1
5473  ;;
5474   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476    { (exit 1); exit 1; }; } ;;
5477 esac
5478
5479 # Check whether --enable-zlib was given.
5480 if test "${enable_zlib+set}" = set; then
5481   enableval=$enable_zlib;
5482 else
5483   enableval=default
5484 fi
5485
5486 case "$enableval" in
5487   yes) LLVM_ENABLE_ZLIB=1
5488  ;;
5489   no)  LLVM_ENABLE_ZLIB=0
5490  ;;
5491   default) LLVM_ENABLE_ZLIB=1
5492  ;;
5493   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5495    { (exit 1); exit 1; }; } ;;
5496 esac
5497
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5500 _ACEOF
5501
5502
5503 # Check whether --enable-pic was given.
5504 if test "${enable_pic+set}" = set; then
5505   enableval=$enable_pic;
5506 else
5507   enableval=default
5508 fi
5509
5510 case "$enableval" in
5511   yes) ENABLE_PIC=1
5512  ;;
5513   no)  ENABLE_PIC=0
5514  ;;
5515   default) ENABLE_PIC=1
5516  ;;
5517   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5519    { (exit 1); exit 1; }; } ;;
5520 esac
5521
5522 cat >>confdefs.h <<_ACEOF
5523 #define ENABLE_PIC $ENABLE_PIC
5524 _ACEOF
5525
5526
5527 # Check whether --enable-shared was given.
5528 if test "${enable_shared+set}" = set; then
5529   enableval=$enable_shared;
5530 else
5531   enableval=default
5532 fi
5533
5534 case "$enableval" in
5535   yes) ENABLE_SHARED=1
5536  ;;
5537   no)  ENABLE_SHARED=0
5538  ;;
5539   default) ENABLE_SHARED=0
5540  ;;
5541   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5542 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5543    { (exit 1); exit 1; }; } ;;
5544 esac
5545
5546 # Check whether --enable-embed-stdcxx was given.
5547 if test "${enable_embed_stdcxx+set}" = set; then
5548   enableval=$enable_embed_stdcxx;
5549 else
5550   enableval=default
5551 fi
5552
5553 case "$enableval" in
5554   yes) ENABLE_EMBED_STDCXX=1
5555  ;;
5556   no)  ENABLE_EMBED_STDCXX=0
5557  ;;
5558   default) ENABLE_EMBED_STDCXX=0
5559  ;;
5560   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5561 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5562    { (exit 1); exit 1; }; } ;;
5563 esac
5564
5565 # Check whether --enable-timestamps was given.
5566 if test "${enable_timestamps+set}" = set; then
5567   enableval=$enable_timestamps;
5568 else
5569   enableval=default
5570 fi
5571
5572 case "$enableval" in
5573   yes) ENABLE_TIMESTAMPS=1
5574  ;;
5575   no)  ENABLE_TIMESTAMPS=0
5576  ;;
5577   default) ENABLE_TIMESTAMPS=1
5578  ;;
5579   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5581    { (exit 1); exit 1; }; } ;;
5582 esac
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5586 _ACEOF
5587
5588
5589 # Check whether --enable-backtraces was given.
5590 if test "${enable_backtraces+set}" = set; then
5591   enableval=$enable_backtraces; case "$enableval" in
5592     yes) llvm_cv_enable_backtraces="yes" ;;
5593     no)  llvm_cv_enable_backtraces="no"  ;;
5594     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5596    { (exit 1); exit 1; }; } ;;
5597   esac
5598 else
5599   llvm_cv_enable_backtraces="yes"
5600 fi
5601
5602 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5603
5604 cat >>confdefs.h <<\_ACEOF
5605 #define ENABLE_BACKTRACES 1
5606 _ACEOF
5607
5608 fi
5609
5610 # Check whether --enable-crash-overrides was given.
5611 if test "${enable_crash_overrides+set}" = set; then
5612   enableval=$enable_crash_overrides; case "$enableval" in
5613     yes) llvm_cv_enable_crash_overrides="yes" ;;
5614     no)  llvm_cv_enable_crash_overrides="no"  ;;
5615     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5616 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5617    { (exit 1); exit 1; }; } ;;
5618   esac
5619 else
5620   llvm_cv_enable_crash_overrides="yes"
5621 fi
5622
5623 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5624
5625 cat >>confdefs.h <<\_ACEOF
5626 #define ENABLE_CRASH_OVERRIDES 1
5627 _ACEOF
5628
5629 fi
5630
5631 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5632 ALL_TARGETS=$ALL_TARGETS
5633
5634
5635 TARGETS_TO_BUILD=""
5636 # Check whether --enable-targets was given.
5637 if test "${enable_targets+set}" = set; then
5638   enableval=$enable_targets;
5639 else
5640   enableval=all
5641 fi
5642
5643 if test "$enableval" = host-only ; then
5644   enableval=host
5645 fi
5646 case "$enableval" in
5647   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5648   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5649       case "$a_target" in
5650         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5651         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5652         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5653         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5654         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5655         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5656         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5657         bpf)      TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5658         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5660         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5661         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5662         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5663         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5664         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5665         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5666         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5667         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5668         amdgpu)   TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5669         r600)     TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5670         host) case "$llvm_cv_target_arch" in
5671             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5673             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5674             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5675             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5676             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5677             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5679             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5680             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5681             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5682             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5683             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5684 echo "$as_me: error: Can not set target to build" >&2;}
5685    { (exit 1); exit 1; }; } ;;
5686           esac ;;
5687         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5688 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5689    { (exit 1); exit 1; }; } ;;
5690       esac
5691   done
5692   ;;
5693 esac
5694
5695 # Check whether --enable-experimental-targets was given.
5696 if test "${enable_experimental_targets+set}" = set; then
5697   enableval=$enable_experimental_targets;
5698 else
5699   enableval=disable
5700 fi
5701
5702
5703 if test ${enableval} != "disable"
5704 then
5705   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5706 fi
5707
5708 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5709
5710
5711 for a_target in $TARGETS_TO_BUILD; do
5712   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5713
5714 cat >>confdefs.h <<_ACEOF
5715 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5716 _ACEOF
5717
5718     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5719     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5720     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5721     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5722     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5723       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5724     fi
5725     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5726       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5727     fi
5728
5729 cat >>confdefs.h <<_ACEOF
5730 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5731 _ACEOF
5732
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5736 _ACEOF
5737
5738
5739 cat >>confdefs.h <<_ACEOF
5740 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5741 _ACEOF
5742
5743
5744 cat >>confdefs.h <<_ACEOF
5745 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5746 _ACEOF
5747
5748     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5752 _ACEOF
5753
5754     fi
5755     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5756
5757 cat >>confdefs.h <<_ACEOF
5758 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5759 _ACEOF
5760
5761     fi
5762   fi
5763 done
5764
5765 LLVM_ENUM_TARGETS=""
5766 LLVM_ENUM_ASM_PRINTERS=""
5767 LLVM_ENUM_ASM_PARSERS=""
5768 LLVM_ENUM_DISASSEMBLERS=""
5769 for target_to_build in $TARGETS_TO_BUILD; do
5770   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5771   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5772     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5773   fi
5774   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5775     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5776   fi
5777   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5778     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5779   fi
5780 done
5781
5782
5783
5784
5785
5786
5787 # Check whether --with-optimize-option was given.
5788 if test "${with_optimize_option+set}" = set; then
5789   withval=$with_optimize_option;
5790 else
5791   withval=default
5792 fi
5793
5794 { echo "$as_me:$LINENO: checking optimization flags" >&5
5795 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5796 case "$withval" in
5797   default)
5798     case "$llvm_cv_os_type" in
5799     FreeBSD) optimize_option=-O2 ;;
5800     MingW) optimize_option=-O2 ;;
5801     *)     optimize_option=-O3 ;;
5802     esac ;;
5803   *) optimize_option="$withval" ;;
5804 esac
5805 OPTIMIZE_OPTION=$optimize_option
5806
5807 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5808 echo "${ECHO_T}$optimize_option" >&6; }
5809
5810
5811 # Check whether --with-extra-options was given.
5812 if test "${with_extra_options+set}" = set; then
5813   withval=$with_extra_options;
5814 else
5815   withval=default
5816 fi
5817
5818 case "$withval" in
5819   default) EXTRA_OPTIONS= ;;
5820   *) EXTRA_OPTIONS=$withval ;;
5821 esac
5822 EXTRA_OPTIONS=$EXTRA_OPTIONS
5823
5824
5825
5826 # Check whether --with-extra-ld-options was given.
5827 if test "${with_extra_ld_options+set}" = set; then
5828   withval=$with_extra_ld_options;
5829 else
5830   withval=default
5831 fi
5832
5833 case "$withval" in
5834   default) EXTRA_LD_OPTIONS= ;;
5835   *) EXTRA_LD_OPTIONS=$withval ;;
5836 esac
5837 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5838
5839
5840 # Check whether --enable-bindings was given.
5841 if test "${enable_bindings+set}" = set; then
5842   enableval=$enable_bindings;
5843 else
5844   enableval=default
5845 fi
5846
5847 BINDINGS_TO_BUILD=""
5848 case "$enableval" in
5849   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5850   all ) BINDINGS_TO_BUILD="ocaml" ;;
5851   none | no) BINDINGS_TO_BUILD="" ;;
5852   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5853       case "$a_binding" in
5854         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5855         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5856 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5857    { (exit 1); exit 1; }; } ;;
5858       esac
5859   done
5860   ;;
5861 esac
5862
5863
5864 # Check whether --with-ocaml-libdir was given.
5865 if test "${with_ocaml_libdir+set}" = set; then
5866   withval=$with_ocaml_libdir;
5867 else
5868   withval=auto
5869 fi
5870
5871 case "$withval" in
5872   auto) with_ocaml_libdir="$withval" ;;
5873   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5874   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5875 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5876    { (exit 1); exit 1; }; } ;;
5877 esac
5878
5879
5880 # Check whether --with-clang-srcdir was given.
5881 if test "${with_clang_srcdir+set}" = set; then
5882   withval=$with_clang_srcdir;
5883 else
5884   withval="-"
5885 fi
5886
5887 case "$withval" in
5888   -) clang_src_root="" ;;
5889   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5890   *) clang_src_root="$ac_pwd/$withval" ;;
5891 esac
5892 CLANG_SRC_ROOT=$clang_src_root
5893
5894
5895
5896 # Check whether --with-clang-resource-dir was given.
5897 if test "${with_clang_resource_dir+set}" = set; then
5898   withval=$with_clang_resource_dir;
5899 else
5900   withval=""
5901 fi
5902
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define CLANG_RESOURCE_DIR "$withval"
5906 _ACEOF
5907
5908
5909
5910 # Check whether --with-c-include-dirs was given.
5911 if test "${with_c_include_dirs+set}" = set; then
5912   withval=$with_c_include_dirs;
5913 else
5914   withval=""
5915 fi
5916
5917
5918 cat >>confdefs.h <<_ACEOF
5919 #define C_INCLUDE_DIRS "$withval"
5920 _ACEOF
5921
5922
5923 # Clang normally uses the system c++ headers and libraries. With this option,
5924 # clang will use the ones provided by a gcc installation instead. This option should
5925 # be passed the same value that was used with --prefix when configuring gcc.
5926
5927 # Check whether --with-gcc-toolchain was given.
5928 if test "${with_gcc_toolchain+set}" = set; then
5929   withval=$with_gcc_toolchain;
5930 else
5931   withval=""
5932 fi
5933
5934
5935 cat >>confdefs.h <<_ACEOF
5936 #define GCC_INSTALL_PREFIX "$withval"
5937 _ACEOF
5938
5939
5940
5941 # Check whether --with-default-sysroot was given.
5942 if test "${with_default_sysroot+set}" = set; then
5943   withval=$with_default_sysroot;
5944 else
5945   withval=""
5946 fi
5947
5948
5949 cat >>confdefs.h <<_ACEOF
5950 #define DEFAULT_SYSROOT "$withval"
5951 _ACEOF
5952
5953
5954
5955 # Check whether --with-clang-default-openmp-runtime was given.
5956 if test "${with_clang_default_openmp_runtime+set}" = set; then
5957   withval=$with_clang_default_openmp_runtime;
5958 else
5959   withval="libgomp"
5960 fi
5961
5962
5963 cat >>confdefs.h <<_ACEOF
5964 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5965 _ACEOF
5966
5967
5968
5969 # Check whether --with-binutils-include was given.
5970 if test "${with_binutils_include+set}" = set; then
5971   withval=$with_binutils_include;
5972 else
5973   withval=default
5974 fi
5975
5976 case "$withval" in
5977   default) WITH_BINUTILS_INCDIR=default ;;
5978   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5979   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5980 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5981    { (exit 1); exit 1; }; } ;;
5982 esac
5983 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5984   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5985
5986   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5987      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5988      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5989 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5990    { (exit 1); exit 1; }; };
5991   fi
5992 fi
5993
5994
5995 # Check whether --with-bug-report-url was given.
5996 if test "${with_bug_report_url+set}" = set; then
5997   withval=$with_bug_report_url;
5998 else
5999   withval="http://llvm.org/bugs/"
6000 fi
6001
6002
6003 cat >>confdefs.h <<_ACEOF
6004 #define BUG_REPORT_URL "$withval"
6005 _ACEOF
6006
6007
6008 # Check whether --enable-terminfo was given.
6009 if test "${enable_terminfo+set}" = set; then
6010   enableval=$enable_terminfo; case "$enableval" in
6011     yes) llvm_cv_enable_terminfo="yes" ;;
6012     no)  llvm_cv_enable_terminfo="no"  ;;
6013     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6014 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6015    { (exit 1); exit 1; }; } ;;
6016   esac
6017 else
6018   llvm_cv_enable_terminfo="yes"
6019 fi
6020
6021 case "$llvm_cv_enable_terminfo" in
6022   yes) ENABLE_TERMINFO=1
6023  ;;
6024   no)  ENABLE_TERMINFO=0
6025  ;;
6026 esac
6027
6028 # Check whether --enable-libedit was given.
6029 if test "${enable_libedit+set}" = set; then
6030   enableval=$enable_libedit; case "$enableval" in
6031     yes) llvm_cv_enable_libedit="yes" ;;
6032     no)  llvm_cv_enable_libedit="no"  ;;
6033     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6034 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6035    { (exit 1); exit 1; }; } ;;
6036   esac
6037 else
6038   llvm_cv_enable_libedit="yes"
6039 fi
6040
6041
6042 # Check whether --enable-libffi was given.
6043 if test "${enable_libffi+set}" = set; then
6044   enableval=$enable_libffi; case "$enableval" in
6045     yes) llvm_cv_enable_libffi="yes" ;;
6046     no)  llvm_cv_enable_libffi="no"  ;;
6047     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6048 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6049    { (exit 1); exit 1; }; } ;;
6050   esac
6051 else
6052   llvm_cv_enable_libffi=no
6053 fi
6054
6055
6056
6057 # Check whether --with-internal-prefix was given.
6058 if test "${with_internal_prefix+set}" = set; then
6059   withval=$with_internal_prefix;
6060 else
6061   withval=""
6062 fi
6063
6064 INTERNAL_PREFIX=$withval
6065
6066
6067
6068 { echo "$as_me:$LINENO: checking for GNU make" >&5
6069 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6070 if test "${llvm_cv_gnu_make_command+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   llvm_cv_gnu_make_command=''
6074  for a in "$MAKE" make gmake gnumake ; do
6075   if test -z "$a" ; then continue ; fi ;
6076   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6077   then
6078    llvm_cv_gnu_make_command=$a ;
6079    break;
6080   fi
6081  done
6082 fi
6083 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6084 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6085  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6086    ifGNUmake='' ;
6087  else
6088    ifGNUmake='#' ;
6089    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6090 echo "${ECHO_T}\"Not found\"" >&6; };
6091  fi
6092
6093
6094 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6095 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6096 LN_S=$as_ln_s
6097 if test "$LN_S" = "ln -s"; then
6098   { echo "$as_me:$LINENO: result: yes" >&5
6099 echo "${ECHO_T}yes" >&6; }
6100 else
6101   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6102 echo "${ECHO_T}no, using $LN_S" >&6; }
6103 fi
6104
6105 # Extract the first word of "nm", so it can be a program name with args.
6106 set dummy nm; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_NM+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   case $NM in
6113   [\\/]* | ?:[\\/]*)
6114   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6115   ;;
6116   *)
6117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122   for ac_exec_ext in '' $ac_executable_extensions; do
6123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6133   ;;
6134 esac
6135 fi
6136 NM=$ac_cv_path_NM
6137 if test -n "$NM"; then
6138   { echo "$as_me:$LINENO: result: $NM" >&5
6139 echo "${ECHO_T}$NM" >&6; }
6140 else
6141   { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6143 fi
6144
6145
6146 # Extract the first word of "cmp", so it can be a program name with args.
6147 set dummy cmp; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_CMP+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   case $CMP in
6154   [\\/]* | ?:[\\/]*)
6155   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6156   ;;
6157   *)
6158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6174   ;;
6175 esac
6176 fi
6177 CMP=$ac_cv_path_CMP
6178 if test -n "$CMP"; then
6179   { echo "$as_me:$LINENO: result: $CMP" >&5
6180 echo "${ECHO_T}$CMP" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6184 fi
6185
6186
6187 # Extract the first word of "cp", so it can be a program name with args.
6188 set dummy cp; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_CP+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   case $CP in
6195   [\\/]* | ?:[\\/]*)
6196   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6197   ;;
6198   *)
6199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6215   ;;
6216 esac
6217 fi
6218 CP=$ac_cv_path_CP
6219 if test -n "$CP"; then
6220   { echo "$as_me:$LINENO: result: $CP" >&5
6221 echo "${ECHO_T}$CP" >&6; }
6222 else
6223   { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6225 fi
6226
6227
6228 # Extract the first word of "date", so it can be a program name with args.
6229 set dummy date; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_DATE+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   case $DATE in
6236   [\\/]* | ?:[\\/]*)
6237   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6238   ;;
6239   *)
6240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6256   ;;
6257 esac
6258 fi
6259 DATE=$ac_cv_path_DATE
6260 if test -n "$DATE"; then
6261   { echo "$as_me:$LINENO: result: $DATE" >&5
6262 echo "${ECHO_T}$DATE" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268
6269 # Extract the first word of "find", so it can be a program name with args.
6270 set dummy find; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_FIND+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   case $FIND in
6277   [\\/]* | ?:[\\/]*)
6278   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6279   ;;
6280   *)
6281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6297   ;;
6298 esac
6299 fi
6300 FIND=$ac_cv_path_FIND
6301 if test -n "$FIND"; then
6302   { echo "$as_me:$LINENO: result: $FIND" >&5
6303 echo "${ECHO_T}$FIND" >&6; }
6304 else
6305   { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 fi
6308
6309
6310 # Extract the first word of "grep", so it can be a program name with args.
6311 set dummy grep; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_GREP+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   case $GREP in
6318   [\\/]* | ?:[\\/]*)
6319   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6320   ;;
6321   *)
6322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325   IFS=$as_save_IFS
6326   test -z "$as_dir" && as_dir=.
6327   for ac_exec_ext in '' $ac_executable_extensions; do
6328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331     break 2
6332   fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6338   ;;
6339 esac
6340 fi
6341 GREP=$ac_cv_path_GREP
6342 if test -n "$GREP"; then
6343   { echo "$as_me:$LINENO: result: $GREP" >&5
6344 echo "${ECHO_T}$GREP" >&6; }
6345 else
6346   { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6348 fi
6349
6350
6351 # Extract the first word of "mkdir", so it can be a program name with args.
6352 set dummy mkdir; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_path_MKDIR+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   case $MKDIR in
6359   [\\/]* | ?:[\\/]*)
6360   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6361   ;;
6362   *)
6363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368   for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6379   ;;
6380 esac
6381 fi
6382 MKDIR=$ac_cv_path_MKDIR
6383 if test -n "$MKDIR"; then
6384   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6385 echo "${ECHO_T}$MKDIR" >&6; }
6386 else
6387   { echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6; }
6389 fi
6390
6391
6392 # Extract the first word of "mv", so it can be a program name with args.
6393 set dummy mv; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_path_MV+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   case $MV in
6400   [\\/]* | ?:[\\/]*)
6401   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6402   ;;
6403   *)
6404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409   for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416 done
6417 IFS=$as_save_IFS
6418
6419   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6420   ;;
6421 esac
6422 fi
6423 MV=$ac_cv_path_MV
6424 if test -n "$MV"; then
6425   { echo "$as_me:$LINENO: result: $MV" >&5
6426 echo "${ECHO_T}$MV" >&6; }
6427 else
6428   { echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6; }
6430 fi
6431
6432
6433 if test -n "$ac_tool_prefix"; then
6434   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6438 if test "${ac_cv_prog_RANLIB+set}" = set; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441   if test -n "$RANLIB"; then
6442   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449   for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 RANLIB=$ac_cv_prog_RANLIB
6462 if test -n "$RANLIB"; then
6463   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6464 echo "${ECHO_T}$RANLIB" >&6; }
6465 else
6466   { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6468 fi
6469
6470
6471 fi
6472 if test -z "$ac_cv_prog_RANLIB"; then
6473   ac_ct_RANLIB=$RANLIB
6474   # Extract the first word of "ranlib", so it can be a program name with args.
6475 set dummy ranlib; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481   if test -n "$ac_ct_RANLIB"; then
6482   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_ac_ct_RANLIB="ranlib"
6492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6502 if test -n "$ac_ct_RANLIB"; then
6503   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6504 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6505 else
6506   { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6508 fi
6509
6510   if test "x$ac_ct_RANLIB" = x; then
6511     RANLIB=":"
6512   else
6513     case $cross_compiling:$ac_tool_warned in
6514 yes:)
6515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6516 whose name does not start with the host triplet.  If you think this
6517 configuration is useful to you, please write to autoconf@gnu.org." >&5
6518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6519 whose name does not start with the host triplet.  If you think this
6520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523     RANLIB=$ac_ct_RANLIB
6524   fi
6525 else
6526   RANLIB="$ac_cv_prog_RANLIB"
6527 fi
6528
6529 if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ar; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_prog_AR+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   if test -n "$AR"; then
6538   ac_cv_prog_AR="$AR" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_AR="${ac_tool_prefix}ar"
6548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 AR=$ac_cv_prog_AR
6558 if test -n "$AR"; then
6559   { echo "$as_me:$LINENO: result: $AR" >&5
6560 echo "${ECHO_T}$AR" >&6; }
6561 else
6562   { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_AR"; then
6569   ac_ct_AR=$AR
6570   # Extract the first word of "ar", so it can be a program name with args.
6571 set dummy ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   if test -n "$ac_ct_AR"; then
6578   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_AR="ar"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6598 if test -n "$ac_ct_AR"; then
6599   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6600 echo "${ECHO_T}$ac_ct_AR" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_AR" = x; then
6607     AR="false"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6612 whose name does not start with the host triplet.  If you think this
6613 configuration is useful to you, please write to autoconf@gnu.org." >&5
6614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6615 whose name does not start with the host triplet.  If you think this
6616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619     AR=$ac_ct_AR
6620   fi
6621 else
6622   AR="$ac_cv_prog_AR"
6623 fi
6624
6625 # Extract the first word of "rm", so it can be a program name with args.
6626 set dummy rm; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_RM+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632   case $RM in
6633   [\\/]* | ?:[\\/]*)
6634   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6635   ;;
6636   *)
6637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642   for ac_exec_ext in '' $ac_executable_extensions; do
6643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6653   ;;
6654 esac
6655 fi
6656 RM=$ac_cv_path_RM
6657 if test -n "$RM"; then
6658   { echo "$as_me:$LINENO: result: $RM" >&5
6659 echo "${ECHO_T}$RM" >&6; }
6660 else
6661   { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6663 fi
6664
6665
6666 # Extract the first word of "sed", so it can be a program name with args.
6667 set dummy sed; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_SED+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   case $SED in
6674   [\\/]* | ?:[\\/]*)
6675   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6676   ;;
6677   *)
6678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6694   ;;
6695 esac
6696 fi
6697 SED=$ac_cv_path_SED
6698 if test -n "$SED"; then
6699   { echo "$as_me:$LINENO: result: $SED" >&5
6700 echo "${ECHO_T}$SED" >&6; }
6701 else
6702   { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6704 fi
6705
6706
6707 # Extract the first word of "tar", so it can be a program name with args.
6708 set dummy tar; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_TAR+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   case $TAR in
6715   [\\/]* | ?:[\\/]*)
6716   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6717   ;;
6718   *)
6719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724   for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6735   ;;
6736 esac
6737 fi
6738 TAR=$ac_cv_path_TAR
6739 if test -n "$TAR"; then
6740   { echo "$as_me:$LINENO: result: $TAR" >&5
6741 echo "${ECHO_T}$TAR" >&6; }
6742 else
6743   { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6745 fi
6746
6747
6748 # Extract the first word of "pwd", so it can be a program name with args.
6749 set dummy pwd; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_BINPWD+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   case $BINPWD in
6756   [\\/]* | ?:[\\/]*)
6757   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6758   ;;
6759   *)
6760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765   for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6776   ;;
6777 esac
6778 fi
6779 BINPWD=$ac_cv_path_BINPWD
6780 if test -n "$BINPWD"; then
6781   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6782 echo "${ECHO_T}$BINPWD" >&6; }
6783 else
6784   { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6786 fi
6787
6788
6789
6790 # Extract the first word of "dot", so it can be a program name with args.
6791 set dummy dot; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_DOT+set}" = set; then
6795   echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797   case $DOT in
6798   [\\/]* | ?:[\\/]*)
6799   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6800   ;;
6801   *)
6802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805   IFS=$as_save_IFS
6806   test -z "$as_dir" && as_dir=.
6807   for ac_exec_ext in '' $ac_executable_extensions; do
6808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6809     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811     break 2
6812   fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6818   ;;
6819 esac
6820 fi
6821 DOT=$ac_cv_path_DOT
6822 if test -n "$DOT"; then
6823   { echo "$as_me:$LINENO: result: $DOT" >&5
6824 echo "${ECHO_T}$DOT" >&6; }
6825 else
6826   { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6828 fi
6829
6830
6831 if test "$DOT" != "echo dot" ; then
6832
6833 cat >>confdefs.h <<\_ACEOF
6834 #define HAVE_DOT 1
6835 _ACEOF
6836
6837     if test "$llvm_cv_os_type" = "MingW" ; then
6838     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6839   fi
6840
6841 cat >>confdefs.h <<_ACEOF
6842 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6843 _ACEOF
6844
6845 fi
6846
6847 # Find a good install program.  We prefer a C program (faster),
6848 # so one script is as good as another.  But avoid the broken or
6849 # incompatible versions:
6850 # SysV /etc/install, /usr/sbin/install
6851 # SunOS /usr/etc/install
6852 # IRIX /sbin/install
6853 # AIX /bin/install
6854 # AmigaOS /C/install, which installs bootblocks on floppy discs
6855 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6856 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6857 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6858 # OS/2's system install, which has a completely different semantic
6859 # ./install, which can be erroneously created by make from ./install.sh.
6860 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6861 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6862 if test -z "$INSTALL"; then
6863 if test "${ac_cv_path_install+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871   # Account for people who put trailing slashes in PATH elements.
6872 case $as_dir/ in
6873   ./ | .// | /cC/* | \
6874   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6875   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6876   /usr/ucb/* ) ;;
6877   *)
6878     # OSF1 and SCO ODT 3.0 have their own names for install.
6879     # Don't use installbsd from OSF since it installs stuff as root
6880     # by default.
6881     for ac_prog in ginstall scoinst install; do
6882       for ac_exec_ext in '' $ac_executable_extensions; do
6883         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6884           if test $ac_prog = install &&
6885             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6886             # AIX install.  It has an incompatible calling convention.
6887             :
6888           elif test $ac_prog = install &&
6889             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6890             # program-specific install script used by HP pwplus--don't use.
6891             :
6892           else
6893             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6894             break 3
6895           fi
6896         fi
6897       done
6898     done
6899     ;;
6900 esac
6901 done
6902 IFS=$as_save_IFS
6903
6904
6905 fi
6906   if test "${ac_cv_path_install+set}" = set; then
6907     INSTALL=$ac_cv_path_install
6908   else
6909     # As a last resort, use the slow shell script.  Don't cache a
6910     # value for INSTALL within a source directory, because that will
6911     # break other packages using the cache if that directory is
6912     # removed, or if the value is a relative name.
6913     INSTALL=$ac_install_sh
6914   fi
6915 fi
6916 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6917 echo "${ECHO_T}$INSTALL" >&6; }
6918
6919 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6920 # It thinks the first close brace ends the variable substitution.
6921 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6922
6923 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6924
6925 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6926
6927 case "$INSTALL" in
6928  [\\/$]* | ?:[\\/]* ) ;;
6929  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6930 esac
6931
6932 # Extract the first word of "bzip2", so it can be a program name with args.
6933 set dummy bzip2; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_path_BZIP2+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   case $BZIP2 in
6940   [\\/]* | ?:[\\/]*)
6941   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6942   ;;
6943   *)
6944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6946 do
6947   IFS=$as_save_IFS
6948   test -z "$as_dir" && as_dir=.
6949   for ac_exec_ext in '' $ac_executable_extensions; do
6950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6951     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953     break 2
6954   fi
6955 done
6956 done
6957 IFS=$as_save_IFS
6958
6959   ;;
6960 esac
6961 fi
6962 BZIP2=$ac_cv_path_BZIP2
6963 if test -n "$BZIP2"; then
6964   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6965 echo "${ECHO_T}$BZIP2" >&6; }
6966 else
6967   { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6969 fi
6970
6971
6972 # Extract the first word of "cat", so it can be a program name with args.
6973 set dummy cat; ac_word=$2
6974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6976 if test "${ac_cv_path_CAT+set}" = set; then
6977   echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979   case $CAT in
6980   [\\/]* | ?:[\\/]*)
6981   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6982   ;;
6983   *)
6984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989   for ac_exec_ext in '' $ac_executable_extensions; do
6990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6991     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994   fi
6995 done
6996 done
6997 IFS=$as_save_IFS
6998
6999   ;;
7000 esac
7001 fi
7002 CAT=$ac_cv_path_CAT
7003 if test -n "$CAT"; then
7004   { echo "$as_me:$LINENO: result: $CAT" >&5
7005 echo "${ECHO_T}$CAT" >&6; }
7006 else
7007   { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7009 fi
7010
7011
7012 # Extract the first word of "doxygen", so it can be a program name with args.
7013 set dummy doxygen; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   case $DOXYGEN in
7020   [\\/]* | ?:[\\/]*)
7021   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7022   ;;
7023   *)
7024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027   IFS=$as_save_IFS
7028   test -z "$as_dir" && as_dir=.
7029   for ac_exec_ext in '' $ac_executable_extensions; do
7030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039   ;;
7040 esac
7041 fi
7042 DOXYGEN=$ac_cv_path_DOXYGEN
7043 if test -n "$DOXYGEN"; then
7044   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7045 echo "${ECHO_T}$DOXYGEN" >&6; }
7046 else
7047   { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7049 fi
7050
7051
7052 # Extract the first word of "groff", so it can be a program name with args.
7053 set dummy groff; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_GROFF+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   case $GROFF in
7060   [\\/]* | ?:[\\/]*)
7061   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7062   ;;
7063   *)
7064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069   for ac_exec_ext in '' $ac_executable_extensions; do
7070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079   ;;
7080 esac
7081 fi
7082 GROFF=$ac_cv_path_GROFF
7083 if test -n "$GROFF"; then
7084   { echo "$as_me:$LINENO: result: $GROFF" >&5
7085 echo "${ECHO_T}$GROFF" >&6; }
7086 else
7087   { echo "$as_me:$LINENO: result: no" >&5
7088 echo "${ECHO_T}no" >&6; }
7089 fi
7090
7091
7092 # Extract the first word of "gzip", so it can be a program name with args.
7093 set dummy gzip; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   case $GZIPBIN in
7100   [\\/]* | ?:[\\/]*)
7101   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7102   ;;
7103   *)
7104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109   for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119   ;;
7120 esac
7121 fi
7122 GZIPBIN=$ac_cv_path_GZIPBIN
7123 if test -n "$GZIPBIN"; then
7124   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7125 echo "${ECHO_T}$GZIPBIN" >&6; }
7126 else
7127   { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7129 fi
7130
7131
7132 # Extract the first word of "pdfroff", so it can be a program name with args.
7133 set dummy pdfroff; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_path_PDFROFF+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   case $PDFROFF in
7140   [\\/]* | ?:[\\/]*)
7141   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7142   ;;
7143   *)
7144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159   ;;
7160 esac
7161 fi
7162 PDFROFF=$ac_cv_path_PDFROFF
7163 if test -n "$PDFROFF"; then
7164   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7165 echo "${ECHO_T}$PDFROFF" >&6; }
7166 else
7167   { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7169 fi
7170
7171
7172 # Extract the first word of "zip", so it can be a program name with args.
7173 set dummy zip; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_ZIP+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   case $ZIP in
7180   [\\/]* | ?:[\\/]*)
7181   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7182   ;;
7183   *)
7184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189   for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199   ;;
7200 esac
7201 fi
7202 ZIP=$ac_cv_path_ZIP
7203 if test -n "$ZIP"; then
7204   { echo "$as_me:$LINENO: result: $ZIP" >&5
7205 echo "${ECHO_T}$ZIP" >&6; }
7206 else
7207   { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7209 fi
7210
7211
7212 # Extract the first word of "go", so it can be a program name with args.
7213 set dummy go; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_GO+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   case $GO in
7220   [\\/]* | ?:[\\/]*)
7221   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7222   ;;
7223   *)
7224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229   for ac_exec_ext in '' $ac_executable_extensions; do
7230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239   ;;
7240 esac
7241 fi
7242 GO=$ac_cv_path_GO
7243 if test -n "$GO"; then
7244   { echo "$as_me:$LINENO: result: $GO" >&5
7245 echo "${ECHO_T}$GO" >&6; }
7246 else
7247   { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7249 fi
7250
7251
7252 for ac_prog in ocamlfind
7253 do
7254   # Extract the first word of "$ac_prog", so it can be a program name with args.
7255 set dummy $ac_prog; ac_word=$2
7256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7258 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261   case $OCAMLFIND in
7262   [\\/]* | ?:[\\/]*)
7263   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7264   ;;
7265   *)
7266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271   for ac_exec_ext in '' $ac_executable_extensions; do
7272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7273     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275     break 2
7276   fi
7277 done
7278 done
7279 IFS=$as_save_IFS
7280
7281   ;;
7282 esac
7283 fi
7284 OCAMLFIND=$ac_cv_path_OCAMLFIND
7285 if test -n "$OCAMLFIND"; then
7286   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7287 echo "${ECHO_T}$OCAMLFIND" >&6; }
7288 else
7289   { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7291 fi
7292
7293
7294   test -n "$OCAMLFIND" && break
7295 done
7296
7297 for ac_prog in gas as
7298 do
7299   # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_GAS+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   case $GAS in
7307   [\\/]* | ?:[\\/]*)
7308   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7309   ;;
7310   *)
7311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316   for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326   ;;
7327 esac
7328 fi
7329 GAS=$ac_cv_path_GAS
7330 if test -n "$GAS"; then
7331   { echo "$as_me:$LINENO: result: $GAS" >&5
7332 echo "${ECHO_T}$GAS" >&6; }
7333 else
7334   { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7336 fi
7337
7338
7339   test -n "$GAS" && break
7340 done
7341
7342
7343 { echo "$as_me:$LINENO: checking for linker version" >&5
7344 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7345 if test "${llvm_cv_link_version+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348
7349    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7350
7351    # Check for ld64.
7352    if (echo "$version_string" | grep -q "ld64"); then
7353      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7354    else
7355      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7356    fi
7357
7358 fi
7359 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7360 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7361
7362 cat >>confdefs.h <<_ACEOF
7363 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7364 _ACEOF
7365
7366
7367
7368
7369 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7370 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7371 if test "${llvm_cv_link_use_r+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374    ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380   oldcflags="$CFLAGS"
7381   CFLAGS="$CFLAGS -Wl,-R."
7382   cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388
7389 int
7390 main ()
7391 {
7392
7393   ;
7394   return 0;
7395 }
7396 _ACEOF
7397 rm -f conftest.$ac_objext conftest$ac_exeext
7398 if { (ac_try="$ac_link"
7399 case "(($ac_try" in
7400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401   *) ac_try_echo=$ac_try;;
7402 esac
7403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404   (eval "$ac_link") 2>conftest.er1
7405   ac_status=$?
7406   grep -v '^ *+' conftest.er1 >conftest.err
7407   rm -f conftest.er1
7408   cat conftest.err >&5
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); } &&
7411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7412   { (case "(($ac_try" in
7413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414   *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417   (eval "$ac_try") 2>&5
7418   ac_status=$?
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); }; } &&
7421          { ac_try='test -s conftest$ac_exeext'
7422   { (case "(($ac_try" in
7423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424   *) ac_try_echo=$ac_try;;
7425 esac
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427   (eval "$ac_try") 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); }; }; then
7431   llvm_cv_link_use_r=yes
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         llvm_cv_link_use_r=no
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext \
7440       conftest$ac_exeext conftest.$ac_ext
7441   CFLAGS="$oldcflags"
7442   ac_ext=c
7443 ac_cpp='$CPP $CPPFLAGS'
7444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7447
7448
7449 fi
7450 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7451 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7452 if test "$llvm_cv_link_use_r" = yes ; then
7453
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_LINK_R 1
7456 _ACEOF
7457
7458   fi
7459
7460
7461 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7462 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7463 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466    ac_ext=c
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471
7472   oldcflags="$CFLAGS"
7473   CFLAGS="$CFLAGS -rdynamic"
7474   cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h.  */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h.  */
7480
7481 int
7482 main ()
7483 {
7484
7485   ;
7486   return 0;
7487 }
7488 _ACEOF
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (ac_try="$ac_link"
7491 case "(($ac_try" in
7492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493   *) ac_try_echo=$ac_try;;
7494 esac
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496   (eval "$ac_link") 2>conftest.er1
7497   ac_status=$?
7498   grep -v '^ *+' conftest.er1 >conftest.err
7499   rm -f conftest.er1
7500   cat conftest.err >&5
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); } &&
7503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7504   { (case "(($ac_try" in
7505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506   *) ac_try_echo=$ac_try;;
7507 esac
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509   (eval "$ac_try") 2>&5
7510   ac_status=$?
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }; } &&
7513          { ac_try='test -s conftest$ac_exeext'
7514   { (case "(($ac_try" in
7515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516   *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519   (eval "$ac_try") 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; }; then
7523   llvm_cv_link_use_export_dynamic=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528         llvm_cv_link_use_export_dynamic=no
7529 fi
7530
7531 rm -f core conftest.err conftest.$ac_objext \
7532       conftest$ac_exeext conftest.$ac_ext
7533   CFLAGS="$oldcflags"
7534   ac_ext=c
7535 ac_cpp='$CPP $CPPFLAGS'
7536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7539
7540
7541 fi
7542 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7543 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7544 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7545
7546 cat >>confdefs.h <<\_ACEOF
7547 #define HAVE_LINK_EXPORT_DYNAMIC 1
7548 _ACEOF
7549
7550   fi
7551
7552
7553 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7554 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7555 if test "${llvm_cv_link_use_version_script+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558    ac_ext=c
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563
7564   oldcflags="$CFLAGS"
7565
7566   # The following code is from the autoconf manual,
7567   # "11.13: Limitations of Usual Tools".
7568   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7569   # Use mktemp if possible; otherwise fall back on mkdir,
7570   # with $RANDOM to make collisions less likely.
7571   : ${TMPDIR=/tmp}
7572   {
7573     tmp=`
7574       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7575     ` &&
7576     test -n "$tmp" && test -d "$tmp"
7577   } || {
7578     tmp=$TMPDIR/foo$$-$RANDOM
7579     (umask 077 && mkdir "$tmp")
7580   } || exit $?
7581
7582   echo "{" > "$tmp/export.map"
7583   echo "  global: main;" >> "$tmp/export.map"
7584   echo "  local: *;" >> "$tmp/export.map"
7585   echo "};" >> "$tmp/export.map"
7586
7587   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7588   cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594
7595 int
7596 main ()
7597 {
7598
7599   ;
7600   return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7605 case "(($ac_try" in
7606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607   *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610   (eval "$ac_link") 2>conftest.er1
7611   ac_status=$?
7612   grep -v '^ *+' conftest.er1 >conftest.err
7613   rm -f conftest.er1
7614   cat conftest.err >&5
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); } &&
7617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7618   { (case "(($ac_try" in
7619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620   *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623   (eval "$ac_try") 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; } &&
7627          { ac_try='test -s conftest$ac_exeext'
7628   { (case "(($ac_try" in
7629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630   *) ac_try_echo=$ac_try;;
7631 esac
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633   (eval "$ac_try") 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637   llvm_cv_link_use_version_script=yes
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642         llvm_cv_link_use_version_script=no
7643 fi
7644
7645 rm -f core conftest.err conftest.$ac_objext \
7646       conftest$ac_exeext conftest.$ac_ext
7647   rm "$tmp/export.map"
7648   rmdir "$tmp"
7649   CFLAGS="$oldcflags"
7650   ac_ext=c
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655
7656
7657 fi
7658 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7659 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7660 if test "$llvm_cv_link_use_version_script" = yes ; then
7661   HAVE_LINK_VERSION_SCRIPT=1
7662
7663   fi
7664
7665
7666
7667 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7668 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_GREP+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   # Extract the first word of "grep ggrep" to use in msg output
7673 if test -z "$GREP"; then
7674 set dummy grep ggrep; ac_prog_name=$2
7675 if test "${ac_cv_path_GREP+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   ac_path_GREP_found=false
7679 # Loop through the user's path and test for each of PROGNAME-LIST
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685   for ac_prog in grep ggrep; do
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7688     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7689     # Check for GNU ac_path_GREP and select it if it is found.
7690   # Check for GNU $ac_path_GREP
7691 case `"$ac_path_GREP" --version 2>&1` in
7692 *GNU*)
7693   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7694 *)
7695   ac_count=0
7696   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7697   while :
7698   do
7699     cat "conftest.in" "conftest.in" >"conftest.tmp"
7700     mv "conftest.tmp" "conftest.in"
7701     cp "conftest.in" "conftest.nl"
7702     echo 'GREP' >> "conftest.nl"
7703     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7704     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7705     ac_count=`expr $ac_count + 1`
7706     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7707       # Best one so far, save it but keep looking for a better one
7708       ac_cv_path_GREP="$ac_path_GREP"
7709       ac_path_GREP_max=$ac_count
7710     fi
7711     # 10*(2^10) chars as input seems more than enough
7712     test $ac_count -gt 10 && break
7713   done
7714   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7715 esac
7716
7717
7718     $ac_path_GREP_found && break 3
7719   done
7720 done
7721
7722 done
7723 IFS=$as_save_IFS
7724
7725
7726 fi
7727
7728 GREP="$ac_cv_path_GREP"
7729 if test -z "$GREP"; then
7730   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7731 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7732    { (exit 1); exit 1; }; }
7733 fi
7734
7735 else
7736   ac_cv_path_GREP=$GREP
7737 fi
7738
7739
7740 fi
7741 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7742 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7743  GREP="$ac_cv_path_GREP"
7744
7745
7746 { echo "$as_me:$LINENO: checking for egrep" >&5
7747 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_EGREP+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7752    then ac_cv_path_EGREP="$GREP -E"
7753    else
7754      # Extract the first word of "egrep" to use in msg output
7755 if test -z "$EGREP"; then
7756 set dummy egrep; ac_prog_name=$2
7757 if test "${ac_cv_path_EGREP+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   ac_path_EGREP_found=false
7761 # Loop through the user's path and test for each of PROGNAME-LIST
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767   for ac_prog in egrep; do
7768   for ac_exec_ext in '' $ac_executable_extensions; do
7769     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7770     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7771     # Check for GNU ac_path_EGREP and select it if it is found.
7772   # Check for GNU $ac_path_EGREP
7773 case `"$ac_path_EGREP" --version 2>&1` in
7774 *GNU*)
7775   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7776 *)
7777   ac_count=0
7778   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7779   while :
7780   do
7781     cat "conftest.in" "conftest.in" >"conftest.tmp"
7782     mv "conftest.tmp" "conftest.in"
7783     cp "conftest.in" "conftest.nl"
7784     echo 'EGREP' >> "conftest.nl"
7785     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7786     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7787     ac_count=`expr $ac_count + 1`
7788     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7789       # Best one so far, save it but keep looking for a better one
7790       ac_cv_path_EGREP="$ac_path_EGREP"
7791       ac_path_EGREP_max=$ac_count
7792     fi
7793     # 10*(2^10) chars as input seems more than enough
7794     test $ac_count -gt 10 && break
7795   done
7796   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7797 esac
7798
7799
7800     $ac_path_EGREP_found && break 3
7801   done
7802 done
7803
7804 done
7805 IFS=$as_save_IFS
7806
7807
7808 fi
7809
7810 EGREP="$ac_cv_path_EGREP"
7811 if test -z "$EGREP"; then
7812   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7814    { (exit 1); exit 1; }; }
7815 fi
7816
7817 else
7818   ac_cv_path_EGREP=$EGREP
7819 fi
7820
7821
7822    fi
7823 fi
7824 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7825 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7826  EGREP="$ac_cv_path_EGREP"
7827
7828
7829 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7831 if test "${ac_cv_header_stdc+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h.  */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h.  */
7840 #include <stdlib.h>
7841 #include <stdarg.h>
7842 #include <string.h>
7843 #include <float.h>
7844
7845 int
7846 main ()
7847 {
7848
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7855 case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860   (eval "$ac_compile") 2>conftest.er1
7861   ac_status=$?
7862   grep -v '^ *+' conftest.er1 >conftest.err
7863   rm -f conftest.er1
7864   cat conftest.err >&5
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); } &&
7867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7868   { (case "(($ac_try" in
7869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870   *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873   (eval "$ac_try") 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; } &&
7877          { ac_try='test -s conftest.$ac_objext'
7878   { (case "(($ac_try" in
7879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880   *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883   (eval "$ac_try") 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; }; then
7887   ac_cv_header_stdc=yes
7888 else
7889   echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892         ac_cv_header_stdc=no
7893 fi
7894
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896
7897 if test $ac_cv_header_stdc = yes; then
7898   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905 #include <string.h>
7906
7907 _ACEOF
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909   $EGREP "memchr" >/dev/null 2>&1; then
7910   :
7911 else
7912   ac_cv_header_stdc=no
7913 fi
7914 rm -f conftest*
7915
7916 fi
7917
7918 if test $ac_cv_header_stdc = yes; then
7919   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7920   cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926 #include <stdlib.h>
7927
7928 _ACEOF
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930   $EGREP "free" >/dev/null 2>&1; then
7931   :
7932 else
7933   ac_cv_header_stdc=no
7934 fi
7935 rm -f conftest*
7936
7937 fi
7938
7939 if test $ac_cv_header_stdc = yes; then
7940   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7941   if test "$cross_compiling" = yes; then
7942   :
7943 else
7944   cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h.  */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h.  */
7950 #include <ctype.h>
7951 #include <stdlib.h>
7952 #if ((' ' & 0x0FF) == 0x020)
7953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7955 #else
7956 # define ISLOWER(c) \
7957                    (('a' <= (c) && (c) <= 'i') \
7958                      || ('j' <= (c) && (c) <= 'r') \
7959                      || ('s' <= (c) && (c) <= 'z'))
7960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7961 #endif
7962
7963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7964 int
7965 main ()
7966 {
7967   int i;
7968   for (i = 0; i < 256; i++)
7969     if (XOR (islower (i), ISLOWER (i))
7970         || toupper (i) != TOUPPER (i))
7971       return 2;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7977 case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_link") 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7986   { (case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_try") 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; }; then
7995   :
7996 else
7997   echo "$as_me: program exited with status $ac_status" >&5
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8000
8001 ( exit $ac_status )
8002 ac_cv_header_stdc=no
8003 fi
8004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8005 fi
8006
8007
8008 fi
8009 fi
8010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8012 if test $ac_cv_header_stdc = yes; then
8013
8014 cat >>confdefs.h <<\_ACEOF
8015 #define STDC_HEADERS 1
8016 _ACEOF
8017
8018 fi
8019
8020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8031                   inttypes.h stdint.h unistd.h
8032 do
8033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h.  */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h.  */
8045 $ac_includes_default
8046
8047 #include <$ac_header>
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_compile") 2>conftest.er1
8057   ac_status=$?
8058   grep -v '^ *+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } &&
8063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8064   { (case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069   (eval "$ac_try") 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; } &&
8073          { ac_try='test -s conftest.$ac_objext'
8074   { (case "(($ac_try" in
8075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076   *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079   (eval "$ac_try") 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; }; then
8083   eval "$as_ac_Header=yes"
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088         eval "$as_ac_Header=no"
8089 fi
8090
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8093 ac_res=`eval echo '${'$as_ac_Header'}'`
8094                { echo "$as_me:$LINENO: result: $ac_res" >&5
8095 echo "${ECHO_T}$ac_res" >&6; }
8096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8097   cat >>confdefs.h <<_ACEOF
8098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8099 _ACEOF
8100
8101 fi
8102
8103 done
8104
8105
8106
8107 for ac_header in errno.h
8108 do
8109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8111   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 fi
8116 ac_res=`eval echo '${'$as_ac_Header'}'`
8117                { echo "$as_me:$LINENO: result: $ac_res" >&5
8118 echo "${ECHO_T}$ac_res" >&6; }
8119 else
8120   # Is the header compilable?
8121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h.  */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h.  */
8129 $ac_includes_default
8130 #include <$ac_header>
8131 _ACEOF
8132 rm -f conftest.$ac_objext
8133 if { (ac_try="$ac_compile"
8134 case "(($ac_try" in
8135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136   *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139   (eval "$ac_compile") 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } &&
8146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8147   { (case "(($ac_try" in
8148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149   *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152   (eval "$ac_try") 2>&5
8153   ac_status=$?
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); }; } &&
8156          { ac_try='test -s conftest.$ac_objext'
8157   { (case "(($ac_try" in
8158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159   *) ac_try_echo=$ac_try;;
8160 esac
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162   (eval "$ac_try") 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   ac_header_compiler=yes
8167 else
8168   echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171         ac_header_compiler=no
8172 fi
8173
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8176 echo "${ECHO_T}$ac_header_compiler" >&6; }
8177
8178 # Is the header present?
8179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8181 cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187 #include <$ac_header>
8188 _ACEOF
8189 if { (ac_try="$ac_cpp conftest.$ac_ext"
8190 case "(($ac_try" in
8191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192   *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8196   ac_status=$?
8197   grep -v '^ *+' conftest.er1 >conftest.err
8198   rm -f conftest.er1
8199   cat conftest.err >&5
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } >/dev/null; then
8202   if test -s conftest.err; then
8203     ac_cpp_err=$ac_c_preproc_warn_flag
8204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8205   else
8206     ac_cpp_err=
8207   fi
8208 else
8209   ac_cpp_err=yes
8210 fi
8211 if test -z "$ac_cpp_err"; then
8212   ac_header_preproc=yes
8213 else
8214   echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8216
8217   ac_header_preproc=no
8218 fi
8219
8220 rm -f conftest.err conftest.$ac_ext
8221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8222 echo "${ECHO_T}$ac_header_preproc" >&6; }
8223
8224 # So?  What about this header?
8225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8226   yes:no: )
8227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8231     ac_header_preproc=yes
8232     ;;
8233   no:yes:* )
8234     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8236     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8237 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8238     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8240     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8241 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8244     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8246     ( cat <<\_ASBOX
8247 ## ------------------------------------ ##
8248 ## Report this to http://llvm.org/bugs/ ##
8249 ## ------------------------------------ ##
8250 _ASBOX
8251      ) | sed "s/^/$as_me: WARNING:     /" >&2
8252     ;;
8253 esac
8254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   eval "$as_ac_Header=\$ac_header_preproc"
8260 fi
8261 ac_res=`eval echo '${'$as_ac_Header'}'`
8262                { echo "$as_me:$LINENO: result: $ac_res" >&5
8263 echo "${ECHO_T}$ac_res" >&6; }
8264
8265 fi
8266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8267   cat >>confdefs.h <<_ACEOF
8268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8269 _ACEOF
8270
8271 fi
8272
8273 done
8274
8275
8276 case "$llvm_cv_os_type" in
8277   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8278   Darwin) llvm_shlib_ext=.dylib ;;
8279   *) llvm_shlib_ext=.so ;;
8280 esac
8281
8282
8283 cat >>confdefs.h <<_ACEOF
8284 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8285 _ACEOF
8286
8287
8288 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8289 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8290
8291 ICC=no
8292 IXX=no
8293 case $CC in
8294   icc*|icpc*)
8295     ICC=yes
8296     IXX=yes
8297     ;;
8298    *)
8299     ;;
8300 esac
8301
8302 if test "$GCC" != "yes" && test "$ICC" != "yes"
8303 then
8304   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8305 echo "$as_me: error: gcc|icc required but not found" >&2;}
8306    { (exit 1); exit 1; }; }
8307 fi
8308
8309 if test "$GXX" != "yes" && test "$IXX" != "yes"
8310 then
8311   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8312 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8313    { (exit 1); exit 1; }; }
8314 fi
8315
8316 if test "$GCC" = "yes"
8317 then
8318   cat >conftest.$ac_ext <<_ACEOF
8319
8320   /* confdefs.h.  */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h.  */
8325
8326     #if !defined(__GNUC__) || __GNUC__ < 3
8327     #error Unsupported GCC version
8328     #endif
8329
8330
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (ac_try="$ac_compile"
8334 case "(($ac_try" in
8335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336   *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339   (eval "$ac_compile") 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8347   { (case "(($ac_try" in
8348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349   *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352   (eval "$ac_try") 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; } &&
8356          { ac_try='test -s conftest.$ac_objext'
8357   { (case "(($ac_try" in
8358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359   *) ac_try_echo=$ac_try;;
8360 esac
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362   (eval "$ac_try") 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); }; }; then
8366   :
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8372 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8373    { (exit 1); exit 1; }; }
8374 fi
8375
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 fi
8378
8379 if test -z "$llvm_cv_gnu_make_command"
8380 then
8381   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8382 echo "$as_me: error: GNU Make required but not found" >&2;}
8383    { (exit 1); exit 1; }; }
8384 fi
8385
8386 { echo "$as_me:$LINENO: result: ok" >&5
8387 echo "${ECHO_T}ok" >&6; }
8388
8389 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8390 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8391 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8392
8393 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8394
8395 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8396
8397
8398 NO_UNINITIALIZED=
8399 NO_MAYBE_UNINITIALIZED=
8400 if test "$GXX" = "yes"
8401 then
8402   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8403
8404         if test -z "$NO_MAYBE_UNINITIALIZED"
8405   then
8406     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8407
8408   fi
8409 fi
8410
8411 no_comment=
8412 llvm_cv_old_cxxflags="$CXXFLAGS"
8413 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8414 cat >conftest.$ac_ext <<_ACEOF
8415
8416   /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421 // Comment \o\
8422 // Another comment
8423 int main() { return 0; }
8424
8425
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8429 case "(($ac_try" in
8430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431   *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434   (eval "$ac_compile") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } &&
8441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442   { (case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_try") 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); }; } &&
8451          { ac_try='test -s conftest.$ac_objext'
8452   { (case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_try") 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461
8462   no_comment=-Wno-comment
8463
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468
8469 fi
8470
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 NO_COMMENT=$no_comment
8473
8474 CXXFLAGS="$llvm_cv_old_cxxflags"
8475
8476 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8477 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8478
8479
8480 # Check whether --with-python was given.
8481 if test "${with_python+set}" = set; then
8482   withval=$with_python; PYTHON="$withval"
8483 fi
8484
8485
8486 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8487   { echo "$as_me:$LINENO: checking for python" >&5
8488 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8489   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8490 echo "${ECHO_T}user defined: $with_python" >&6; }
8491 else
8492   if test -n "$PYTHON" ; then
8493     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8494 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8495   fi
8496
8497   # Extract the first word of "python python2 python27", so it can be a program name with args.
8498 set dummy python python2 python27; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_path_PYTHON+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   case $PYTHON in
8505   [\\/]* | ?:[\\/]*)
8506   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8507   ;;
8508   *)
8509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512   IFS=$as_save_IFS
8513   test -z "$as_dir" && as_dir=.
8514   for ac_exec_ext in '' $ac_executable_extensions; do
8515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518     break 2
8519   fi
8520 done
8521 done
8522 IFS=$as_save_IFS
8523
8524   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8525 echo "${ECHO_T}not found" >&6; }
8526                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8527 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8528    { (exit 1); exit 1; }; }"
8529   ;;
8530 esac
8531 fi
8532 PYTHON=$ac_cv_path_PYTHON
8533 if test -n "$PYTHON"; then
8534   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8535 echo "${ECHO_T}$PYTHON" >&6; }
8536 else
8537   { echo "$as_me:$LINENO: result: no" >&5
8538 echo "${ECHO_T}no" >&6; }
8539 fi
8540
8541
8542 fi
8543
8544 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8545 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8546 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8547 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8548 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8549 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8550 if test "$ac_python_version_major" -gt "2" || \
8551    (test "$ac_python_version_major" -eq "2" && \
8552     test "$ac_python_version_minor" -ge "7") ; then
8553   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8554 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8555 else
8556   { echo "$as_me:$LINENO: result: not found" >&5
8557 echo "${ECHO_T}not found" >&6; }
8558   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8559 See \`config.log' for more details." >&5
8560 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8561 See \`config.log' for more details." >&2;}
8562    { (exit 1); exit 1; }; }
8563 fi
8564
8565
8566
8567 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8568 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8569 if test "${ac_cv_lib_m_sin+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   ac_check_lib_save_LIBS=$LIBS
8573 LIBS="-lm  $LIBS"
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h.  */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h.  */
8580
8581 /* Override any GCC internal prototype to avoid an error.
8582    Use char because int might match the return type of a GCC
8583    builtin and then its argument prototype would still apply.  */
8584 #ifdef __cplusplus
8585 extern "C"
8586 #endif
8587 char sin ();
8588 int
8589 main ()
8590 {
8591 return sin ();
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8598 case "(($ac_try" in
8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600   *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603   (eval "$ac_link") 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8611   { (case "(($ac_try" in
8612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613   *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616   (eval "$ac_try") 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); }; } &&
8620          { ac_try='test -s conftest$ac_exeext'
8621   { (case "(($ac_try" in
8622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623   *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626   (eval "$ac_try") 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; }; then
8630   ac_cv_lib_m_sin=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635         ac_cv_lib_m_sin=no
8636 fi
8637
8638 rm -f core conftest.err conftest.$ac_objext \
8639       conftest$ac_exeext conftest.$ac_ext
8640 LIBS=$ac_check_lib_save_LIBS
8641 fi
8642 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8643 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8644 if test $ac_cv_lib_m_sin = yes; then
8645   cat >>confdefs.h <<_ACEOF
8646 #define HAVE_LIBM 1
8647 _ACEOF
8648
8649   LIBS="-lm $LIBS"
8650
8651 fi
8652
8653 if test "$llvm_cv_os_type" = "MingW" ; then
8654
8655 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8656 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8657 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   ac_check_lib_save_LIBS=$LIBS
8661 LIBS="-limagehlp  $LIBS"
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668
8669
8670 int
8671 main ()
8672 {
8673 return main ();
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (ac_try="$ac_link"
8680 case "(($ac_try" in
8681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682   *) ac_try_echo=$ac_try;;
8683 esac
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685   (eval "$ac_link") 2>conftest.er1
8686   ac_status=$?
8687   grep -v '^ *+' conftest.er1 >conftest.err
8688   rm -f conftest.er1
8689   cat conftest.err >&5
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); } &&
8692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8693   { (case "(($ac_try" in
8694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695   *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698   (eval "$ac_try") 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); }; } &&
8702          { ac_try='test -s conftest$ac_exeext'
8703   { (case "(($ac_try" in
8704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705   *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708   (eval "$ac_try") 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_cv_lib_imagehlp_main=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717         ac_cv_lib_imagehlp_main=no
8718 fi
8719
8720 rm -f core conftest.err conftest.$ac_objext \
8721       conftest$ac_exeext conftest.$ac_ext
8722 LIBS=$ac_check_lib_save_LIBS
8723 fi
8724 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8725 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8726 if test $ac_cv_lib_imagehlp_main = yes; then
8727   cat >>confdefs.h <<_ACEOF
8728 #define HAVE_LIBIMAGEHLP 1
8729 _ACEOF
8730
8731   LIBS="-limagehlp $LIBS"
8732
8733 fi
8734
8735
8736 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8737 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8738 if test "${ac_cv_lib_ole32_main+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-lole32  $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749
8750
8751 int
8752 main ()
8753 {
8754 return main ();
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8761 case "(($ac_try" in
8762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763   *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766   (eval "$ac_link") 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } &&
8773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774   { (case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_try") 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; } &&
8783          { ac_try='test -s conftest$ac_exeext'
8784   { (case "(($ac_try" in
8785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786   *) ac_try_echo=$ac_try;;
8787 esac
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789   (eval "$ac_try") 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); }; }; then
8793   ac_cv_lib_ole32_main=yes
8794 else
8795   echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8797
8798         ac_cv_lib_ole32_main=no
8799 fi
8800
8801 rm -f core conftest.err conftest.$ac_objext \
8802       conftest$ac_exeext conftest.$ac_ext
8803 LIBS=$ac_check_lib_save_LIBS
8804 fi
8805 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5
8806 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8807 if test $ac_cv_lib_ole32_main = yes; then
8808   cat >>confdefs.h <<_ACEOF
8809 #define HAVE_LIBOLE32 1
8810 _ACEOF
8811
8812   LIBS="-lole32 $LIBS"
8813
8814 fi
8815
8816
8817 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8818 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8819 if test "${ac_cv_lib_psapi_main+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   ac_check_lib_save_LIBS=$LIBS
8823 LIBS="-lpsapi  $LIBS"
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h.  */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h.  */
8830
8831
8832 int
8833 main ()
8834 {
8835 return main ();
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (ac_try="$ac_link"
8842 case "(($ac_try" in
8843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844   *) ac_try_echo=$ac_try;;
8845 esac
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847   (eval "$ac_link") 2>conftest.er1
8848   ac_status=$?
8849   grep -v '^ *+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } &&
8854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8855   { (case "(($ac_try" in
8856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857   *) ac_try_echo=$ac_try;;
8858 esac
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860   (eval "$ac_try") 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; } &&
8864          { ac_try='test -s conftest$ac_exeext'
8865   { (case "(($ac_try" in
8866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867   *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870   (eval "$ac_try") 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); }; }; then
8874   ac_cv_lib_psapi_main=yes
8875 else
8876   echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879         ac_cv_lib_psapi_main=no
8880 fi
8881
8882 rm -f core conftest.err conftest.$ac_objext \
8883       conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8885 fi
8886 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8887 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8888 if test $ac_cv_lib_psapi_main = yes; then
8889   cat >>confdefs.h <<_ACEOF
8890 #define HAVE_LIBPSAPI 1
8891 _ACEOF
8892
8893   LIBS="-lpsapi $LIBS"
8894
8895 fi
8896
8897
8898 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8899 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8900 if test "${ac_cv_lib_shell32_main+set}" = set; then
8901   echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903   ac_check_lib_save_LIBS=$LIBS
8904 LIBS="-lshell32  $LIBS"
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911
8912
8913 int
8914 main ()
8915 {
8916 return main ();
8917   ;
8918   return 0;
8919 }
8920 _ACEOF
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (ac_try="$ac_link"
8923 case "(($ac_try" in
8924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925   *) ac_try_echo=$ac_try;;
8926 esac
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928   (eval "$ac_link") 2>conftest.er1
8929   ac_status=$?
8930   grep -v '^ *+' conftest.er1 >conftest.err
8931   rm -f conftest.er1
8932   cat conftest.err >&5
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); } &&
8935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8936   { (case "(($ac_try" in
8937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938   *) ac_try_echo=$ac_try;;
8939 esac
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941   (eval "$ac_try") 2>&5
8942   ac_status=$?
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); }; } &&
8945          { ac_try='test -s conftest$ac_exeext'
8946   { (case "(($ac_try" in
8947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948   *) ac_try_echo=$ac_try;;
8949 esac
8950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8951   (eval "$ac_try") 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; }; then
8955   ac_cv_lib_shell32_main=yes
8956 else
8957   echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8959
8960         ac_cv_lib_shell32_main=no
8961 fi
8962
8963 rm -f core conftest.err conftest.$ac_objext \
8964       conftest$ac_exeext conftest.$ac_ext
8965 LIBS=$ac_check_lib_save_LIBS
8966 fi
8967 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8968 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8969 if test $ac_cv_lib_shell32_main = yes; then
8970   cat >>confdefs.h <<_ACEOF
8971 #define HAVE_LIBSHELL32 1
8972 _ACEOF
8973
8974   LIBS="-lshell32 $LIBS"
8975
8976 fi
8977
8978 fi
8979
8980 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8981 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8982 if test "${ac_cv_search_dlopen+set}" = set; then
8983   echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985   ac_func_search_save_LIBS=$LIBS
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h.  */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h.  */
8992
8993 /* Override any GCC internal prototype to avoid an error.
8994    Use char because int might match the return type of a GCC
8995    builtin and then its argument prototype would still apply.  */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 char dlopen ();
9000 int
9001 main ()
9002 {
9003 return dlopen ();
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 for ac_lib in '' dl; do
9009   if test -z "$ac_lib"; then
9010     ac_res="none required"
9011   else
9012     ac_res=-l$ac_lib
9013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9014   fi
9015   rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (ac_try="$ac_link"
9017 case "(($ac_try" in
9018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019   *) ac_try_echo=$ac_try;;
9020 esac
9021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022   (eval "$ac_link") 2>conftest.er1
9023   ac_status=$?
9024   grep -v '^ *+' conftest.er1 >conftest.err
9025   rm -f conftest.er1
9026   cat conftest.err >&5
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); } &&
9029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030   { (case "(($ac_try" in
9031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032   *) ac_try_echo=$ac_try;;
9033 esac
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035   (eval "$ac_try") 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; } &&
9039          { ac_try='test -s conftest$ac_exeext'
9040   { (case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_try") 2>&5
9046   ac_status=$?
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); }; }; then
9049   ac_cv_search_dlopen=$ac_res
9050 else
9051   echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054
9055 fi
9056
9057 rm -f core conftest.err conftest.$ac_objext \
9058       conftest$ac_exeext
9059   if test "${ac_cv_search_dlopen+set}" = set; then
9060   break
9061 fi
9062 done
9063 if test "${ac_cv_search_dlopen+set}" = set; then
9064   :
9065 else
9066   ac_cv_search_dlopen=no
9067 fi
9068 rm conftest.$ac_ext
9069 LIBS=$ac_func_search_save_LIBS
9070 fi
9071 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9072 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9073 ac_res=$ac_cv_search_dlopen
9074 if test "$ac_res" != no; then
9075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9076
9077
9078 cat >>confdefs.h <<\_ACEOF
9079 #define HAVE_DLOPEN 1
9080 _ACEOF
9081
9082 HAVE_DLOPEN='1'
9083
9084
9085 else
9086   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9087 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9088 fi
9089
9090
9091 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9092 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9093 if test "${ac_cv_search_clock_gettime+set}" = set; then
9094   echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096   ac_func_search_save_LIBS=$LIBS
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h.  */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h.  */
9103
9104 /* Override any GCC internal prototype to avoid an error.
9105    Use char because int might match the return type of a GCC
9106    builtin and then its argument prototype would still apply.  */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 char clock_gettime ();
9111 int
9112 main ()
9113 {
9114 return clock_gettime ();
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 for ac_lib in '' rt; do
9120   if test -z "$ac_lib"; then
9121     ac_res="none required"
9122   else
9123     ac_res=-l$ac_lib
9124     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9125   fi
9126   rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (ac_try="$ac_link"
9128 case "(($ac_try" in
9129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130   *) ac_try_echo=$ac_try;;
9131 esac
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133   (eval "$ac_link") 2>conftest.er1
9134   ac_status=$?
9135   grep -v '^ *+' conftest.er1 >conftest.err
9136   rm -f conftest.er1
9137   cat conftest.err >&5
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); } &&
9140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9141   { (case "(($ac_try" in
9142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143   *) ac_try_echo=$ac_try;;
9144 esac
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146   (eval "$ac_try") 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; } &&
9150          { ac_try='test -s conftest$ac_exeext'
9151   { (case "(($ac_try" in
9152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153   *) ac_try_echo=$ac_try;;
9154 esac
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156   (eval "$ac_try") 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; }; then
9160   ac_cv_search_clock_gettime=$ac_res
9161 else
9162   echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9164
9165
9166 fi
9167
9168 rm -f core conftest.err conftest.$ac_objext \
9169       conftest$ac_exeext
9170   if test "${ac_cv_search_clock_gettime+set}" = set; then
9171   break
9172 fi
9173 done
9174 if test "${ac_cv_search_clock_gettime+set}" = set; then
9175   :
9176 else
9177   ac_cv_search_clock_gettime=no
9178 fi
9179 rm conftest.$ac_ext
9180 LIBS=$ac_func_search_save_LIBS
9181 fi
9182 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9183 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9184 ac_res=$ac_cv_search_clock_gettime
9185 if test "$ac_res" != no; then
9186   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9187
9188 fi
9189
9190
9191 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9192     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9193 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9194 if test "${ac_cv_search_setupterm+set}" = set; then
9195   echo $ECHO_N "(cached) $ECHO_C" >&6
9196 else
9197   ac_func_search_save_LIBS=$LIBS
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h.  */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h.  */
9204
9205 /* Override any GCC internal prototype to avoid an error.
9206    Use char because int might match the return type of a GCC
9207    builtin and then its argument prototype would still apply.  */
9208 #ifdef __cplusplus
9209 extern "C"
9210 #endif
9211 char setupterm ();
9212 int
9213 main ()
9214 {
9215 return setupterm ();
9216   ;
9217   return 0;
9218 }
9219 _ACEOF
9220 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9221   if test -z "$ac_lib"; then
9222     ac_res="none required"
9223   else
9224     ac_res=-l$ac_lib
9225     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9226   fi
9227   rm -f conftest.$ac_objext conftest$ac_exeext
9228 if { (ac_try="$ac_link"
9229 case "(($ac_try" in
9230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231   *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234   (eval "$ac_link") 2>conftest.er1
9235   ac_status=$?
9236   grep -v '^ *+' conftest.er1 >conftest.err
9237   rm -f conftest.er1
9238   cat conftest.err >&5
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); } &&
9241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9242   { (case "(($ac_try" in
9243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244   *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247   (eval "$ac_try") 2>&5
9248   ac_status=$?
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); }; } &&
9251          { ac_try='test -s conftest$ac_exeext'
9252   { (case "(($ac_try" in
9253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254   *) ac_try_echo=$ac_try;;
9255 esac
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257   (eval "$ac_try") 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_search_setupterm=$ac_res
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266
9267 fi
9268
9269 rm -f core conftest.err conftest.$ac_objext \
9270       conftest$ac_exeext
9271   if test "${ac_cv_search_setupterm+set}" = set; then
9272   break
9273 fi
9274 done
9275 if test "${ac_cv_search_setupterm+set}" = set; then
9276   :
9277 else
9278   ac_cv_search_setupterm=no
9279 fi
9280 rm conftest.$ac_ext
9281 LIBS=$ac_func_search_save_LIBS
9282 fi
9283 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9284 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9285 ac_res=$ac_cv_search_setupterm
9286 if test "$ac_res" != no; then
9287   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9288
9289
9290 cat >>confdefs.h <<\_ACEOF
9291 #define HAVE_TERMINFO 1
9292 _ACEOF
9293
9294 HAVE_TERMINFO='1'
9295
9296
9297 fi
9298
9299 fi
9300
9301 if test "$llvm_cv_enable_libedit" = "yes" ; then
9302   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9303 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9304 if test "${ac_cv_search_el_init+set}" = set; then
9305   echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307   ac_func_search_save_LIBS=$LIBS
9308 cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h.  */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h.  */
9314
9315 /* Override any GCC internal prototype to avoid an error.
9316    Use char because int might match the return type of a GCC
9317    builtin and then its argument prototype would still apply.  */
9318 #ifdef __cplusplus
9319 extern "C"
9320 #endif
9321 char el_init ();
9322 int
9323 main ()
9324 {
9325 return el_init ();
9326   ;
9327   return 0;
9328 }
9329 _ACEOF
9330 for ac_lib in '' edit; do
9331   if test -z "$ac_lib"; then
9332     ac_res="none required"
9333   else
9334     ac_res=-l$ac_lib
9335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9336   fi
9337   rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9339 case "(($ac_try" in
9340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341   *) ac_try_echo=$ac_try;;
9342 esac
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344   (eval "$ac_link") 2>conftest.er1
9345   ac_status=$?
9346   grep -v '^ *+' conftest.er1 >conftest.err
9347   rm -f conftest.er1
9348   cat conftest.err >&5
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); } &&
9351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9352   { (case "(($ac_try" in
9353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354   *) ac_try_echo=$ac_try;;
9355 esac
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357   (eval "$ac_try") 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; } &&
9361          { ac_try='test -s conftest$ac_exeext'
9362   { (case "(($ac_try" in
9363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364   *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367   (eval "$ac_try") 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); }; }; then
9371   ac_cv_search_el_init=$ac_res
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376
9377 fi
9378
9379 rm -f core conftest.err conftest.$ac_objext \
9380       conftest$ac_exeext
9381   if test "${ac_cv_search_el_init+set}" = set; then
9382   break
9383 fi
9384 done
9385 if test "${ac_cv_search_el_init+set}" = set; then
9386   :
9387 else
9388   ac_cv_search_el_init=no
9389 fi
9390 rm conftest.$ac_ext
9391 LIBS=$ac_func_search_save_LIBS
9392 fi
9393 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9394 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9395 ac_res=$ac_cv_search_el_init
9396 if test "$ac_res" != no; then
9397   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9398
9399 cat >>confdefs.h <<\_ACEOF
9400 #define HAVE_LIBEDIT 1
9401 _ACEOF
9402
9403 fi
9404
9405 fi
9406
9407 if test "$llvm_cv_enable_libffi" = "yes" ; then
9408   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9409 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9410 if test "${ac_cv_search_ffi_call+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   ac_func_search_save_LIBS=$LIBS
9414 cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h.  */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h.  */
9420
9421 /* Override any GCC internal prototype to avoid an error.
9422    Use char because int might match the return type of a GCC
9423    builtin and then its argument prototype would still apply.  */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 char ffi_call ();
9428 int
9429 main ()
9430 {
9431 return ffi_call ();
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 for ac_lib in '' ffi; do
9437   if test -z "$ac_lib"; then
9438     ac_res="none required"
9439   else
9440     ac_res=-l$ac_lib
9441     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9442   fi
9443   rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9445 case "(($ac_try" in
9446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447   *) ac_try_echo=$ac_try;;
9448 esac
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450   (eval "$ac_link") 2>conftest.er1
9451   ac_status=$?
9452   grep -v '^ *+' conftest.er1 >conftest.err
9453   rm -f conftest.er1
9454   cat conftest.err >&5
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); } &&
9457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9458   { (case "(($ac_try" in
9459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460   *) ac_try_echo=$ac_try;;
9461 esac
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463   (eval "$ac_try") 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); }; } &&
9467          { ac_try='test -s conftest$ac_exeext'
9468   { (case "(($ac_try" in
9469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470   *) ac_try_echo=$ac_try;;
9471 esac
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473   (eval "$ac_try") 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }; }; then
9477   ac_cv_search_ffi_call=$ac_res
9478 else
9479   echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482
9483 fi
9484
9485 rm -f core conftest.err conftest.$ac_objext \
9486       conftest$ac_exeext
9487   if test "${ac_cv_search_ffi_call+set}" = set; then
9488   break
9489 fi
9490 done
9491 if test "${ac_cv_search_ffi_call+set}" = set; then
9492   :
9493 else
9494   ac_cv_search_ffi_call=no
9495 fi
9496 rm conftest.$ac_ext
9497 LIBS=$ac_func_search_save_LIBS
9498 fi
9499 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9500 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9501 ac_res=$ac_cv_search_ffi_call
9502 if test "$ac_res" != no; then
9503   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9504
9505 cat >>confdefs.h <<\_ACEOF
9506 #define HAVE_FFI_CALL 1
9507 _ACEOF
9508
9509 else
9510   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9511 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9512    { (exit 1); exit 1; }; }
9513 fi
9514
9515 fi
9516
9517 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9518 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9519 if test "${ac_cv_search_mallinfo+set}" = set; then
9520   echo $ECHO_N "(cached) $ECHO_C" >&6
9521 else
9522   ac_func_search_save_LIBS=$LIBS
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h.  */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h.  */
9529
9530 /* Override any GCC internal prototype to avoid an error.
9531    Use char because int might match the return type of a GCC
9532    builtin and then its argument prototype would still apply.  */
9533 #ifdef __cplusplus
9534 extern "C"
9535 #endif
9536 char mallinfo ();
9537 int
9538 main ()
9539 {
9540 return mallinfo ();
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 for ac_lib in '' malloc; do
9546   if test -z "$ac_lib"; then
9547     ac_res="none required"
9548   else
9549     ac_res=-l$ac_lib
9550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9551   fi
9552   rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (ac_try="$ac_link"
9554 case "(($ac_try" in
9555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556   *) ac_try_echo=$ac_try;;
9557 esac
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559   (eval "$ac_link") 2>conftest.er1
9560   ac_status=$?
9561   grep -v '^ *+' conftest.er1 >conftest.err
9562   rm -f conftest.er1
9563   cat conftest.err >&5
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); } &&
9566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567   { (case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572   (eval "$ac_try") 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; } &&
9576          { ac_try='test -s conftest$ac_exeext'
9577   { (case "(($ac_try" in
9578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579   *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582   (eval "$ac_try") 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); }; }; then
9586   ac_cv_search_mallinfo=$ac_res
9587 else
9588   echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591
9592 fi
9593
9594 rm -f core conftest.err conftest.$ac_objext \
9595       conftest$ac_exeext
9596   if test "${ac_cv_search_mallinfo+set}" = set; then
9597   break
9598 fi
9599 done
9600 if test "${ac_cv_search_mallinfo+set}" = set; then
9601   :
9602 else
9603   ac_cv_search_mallinfo=no
9604 fi
9605 rm conftest.$ac_ext
9606 LIBS=$ac_func_search_save_LIBS
9607 fi
9608 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9609 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9610 ac_res=$ac_cv_search_mallinfo
9611 if test "$ac_res" != no; then
9612   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9613
9614 cat >>confdefs.h <<\_ACEOF
9615 #define HAVE_MALLINFO 1
9616 _ACEOF
9617
9618 fi
9619
9620
9621 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9622
9623 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9624 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9625 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9626   echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628   ac_check_lib_save_LIBS=$LIBS
9629 LIBS="-lpthread  $LIBS"
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636
9637 /* Override any GCC internal prototype to avoid an error.
9638    Use char because int might match the return type of a GCC
9639    builtin and then its argument prototype would still apply.  */
9640 #ifdef __cplusplus
9641 extern "C"
9642 #endif
9643 char pthread_mutex_init ();
9644 int
9645 main ()
9646 {
9647 return pthread_mutex_init ();
9648   ;
9649   return 0;
9650 }
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (ac_try="$ac_link"
9654 case "(($ac_try" in
9655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656   *) ac_try_echo=$ac_try;;
9657 esac
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659   (eval "$ac_link") 2>conftest.er1
9660   ac_status=$?
9661   grep -v '^ *+' conftest.er1 >conftest.err
9662   rm -f conftest.er1
9663   cat conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } &&
9666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9667   { (case "(($ac_try" in
9668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669   *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672   (eval "$ac_try") 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; } &&
9676          { ac_try='test -s conftest$ac_exeext'
9677   { (case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_try") 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; }; then
9686   ac_cv_lib_pthread_pthread_mutex_init=yes
9687 else
9688   echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691         ac_cv_lib_pthread_pthread_mutex_init=no
9692 fi
9693
9694 rm -f core conftest.err conftest.$ac_objext \
9695       conftest$ac_exeext conftest.$ac_ext
9696 LIBS=$ac_check_lib_save_LIBS
9697 fi
9698 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9699 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9700 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9701   cat >>confdefs.h <<_ACEOF
9702 #define HAVE_LIBPTHREAD 1
9703 _ACEOF
9704
9705   LIBS="-lpthread $LIBS"
9706
9707 fi
9708
9709   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9710 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9711 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714   ac_func_search_save_LIBS=$LIBS
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721
9722 /* Override any GCC internal prototype to avoid an error.
9723    Use char because int might match the return type of a GCC
9724    builtin and then its argument prototype would still apply.  */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char pthread_mutex_lock ();
9729 int
9730 main ()
9731 {
9732 return pthread_mutex_lock ();
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 for ac_lib in '' pthread; do
9738   if test -z "$ac_lib"; then
9739     ac_res="none required"
9740   else
9741     ac_res=-l$ac_lib
9742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9743   fi
9744   rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9746 case "(($ac_try" in
9747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748   *) ac_try_echo=$ac_try;;
9749 esac
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751   (eval "$ac_link") 2>conftest.er1
9752   ac_status=$?
9753   grep -v '^ *+' conftest.er1 >conftest.err
9754   rm -f conftest.er1
9755   cat conftest.err >&5
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } &&
9758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9759   { (case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_try") 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; } &&
9768          { ac_try='test -s conftest$ac_exeext'
9769   { (case "(($ac_try" in
9770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771   *) ac_try_echo=$ac_try;;
9772 esac
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774   (eval "$ac_try") 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778   ac_cv_search_pthread_mutex_lock=$ac_res
9779 else
9780   echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783
9784 fi
9785
9786 rm -f core conftest.err conftest.$ac_objext \
9787       conftest$ac_exeext
9788   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9789   break
9790 fi
9791 done
9792 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9793   :
9794 else
9795   ac_cv_search_pthread_mutex_lock=no
9796 fi
9797 rm conftest.$ac_ext
9798 LIBS=$ac_func_search_save_LIBS
9799 fi
9800 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9801 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9802 ac_res=$ac_cv_search_pthread_mutex_lock
9803 if test "$ac_res" != no; then
9804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_PTHREAD_MUTEX_LOCK 1
9808 _ACEOF
9809
9810 fi
9811
9812   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9813 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9814 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   ac_func_search_save_LIBS=$LIBS
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h.  */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h.  */
9824
9825 /* Override any GCC internal prototype to avoid an error.
9826    Use char because int might match the return type of a GCC
9827    builtin and then its argument prototype would still apply.  */
9828 #ifdef __cplusplus
9829 extern "C"
9830 #endif
9831 char pthread_rwlock_init ();
9832 int
9833 main ()
9834 {
9835 return pthread_rwlock_init ();
9836   ;
9837   return 0;
9838 }
9839 _ACEOF
9840 for ac_lib in '' pthread; do
9841   if test -z "$ac_lib"; then
9842     ac_res="none required"
9843   else
9844     ac_res=-l$ac_lib
9845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9846   fi
9847   rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9849 case "(($ac_try" in
9850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851   *) ac_try_echo=$ac_try;;
9852 esac
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854   (eval "$ac_link") 2>conftest.er1
9855   ac_status=$?
9856   grep -v '^ *+' conftest.er1 >conftest.err
9857   rm -f conftest.er1
9858   cat conftest.err >&5
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } &&
9861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862   { (case "(($ac_try" in
9863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864   *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867   (eval "$ac_try") 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; } &&
9871          { ac_try='test -s conftest$ac_exeext'
9872   { (case "(($ac_try" in
9873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874   *) ac_try_echo=$ac_try;;
9875 esac
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877   (eval "$ac_try") 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_search_pthread_rwlock_init=$ac_res
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886
9887 fi
9888
9889 rm -f core conftest.err conftest.$ac_objext \
9890       conftest$ac_exeext
9891   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9892   break
9893 fi
9894 done
9895 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9896   :
9897 else
9898   ac_cv_search_pthread_rwlock_init=no
9899 fi
9900 rm conftest.$ac_ext
9901 LIBS=$ac_func_search_save_LIBS
9902 fi
9903 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9904 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9905 ac_res=$ac_cv_search_pthread_rwlock_init
9906 if test "$ac_res" != no; then
9907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9908
9909 cat >>confdefs.h <<\_ACEOF
9910 #define HAVE_PTHREAD_RWLOCK_INIT 1
9911 _ACEOF
9912
9913 fi
9914
9915   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9916 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9917 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   ac_func_search_save_LIBS=$LIBS
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h.  */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h.  */
9927
9928 /* Override any GCC internal prototype to avoid an error.
9929    Use char because int might match the return type of a GCC
9930    builtin and then its argument prototype would still apply.  */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 char pthread_getspecific ();
9935 int
9936 main ()
9937 {
9938 return pthread_getspecific ();
9939   ;
9940   return 0;
9941 }
9942 _ACEOF
9943 for ac_lib in '' pthread; do
9944   if test -z "$ac_lib"; then
9945     ac_res="none required"
9946   else
9947     ac_res=-l$ac_lib
9948     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9949   fi
9950   rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9952 case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_link") 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } &&
9964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9965   { (case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970   (eval "$ac_try") 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; } &&
9974          { ac_try='test -s conftest$ac_exeext'
9975   { (case "(($ac_try" in
9976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977   *) ac_try_echo=$ac_try;;
9978 esac
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980   (eval "$ac_try") 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); }; }; then
9984   ac_cv_search_pthread_getspecific=$ac_res
9985 else
9986   echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989
9990 fi
9991
9992 rm -f core conftest.err conftest.$ac_objext \
9993       conftest$ac_exeext
9994   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9995   break
9996 fi
9997 done
9998 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9999   :
10000 else
10001   ac_cv_search_pthread_getspecific=no
10002 fi
10003 rm conftest.$ac_ext
10004 LIBS=$ac_func_search_save_LIBS
10005 fi
10006 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10007 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10008 ac_res=$ac_cv_search_pthread_getspecific
10009 if test "$ac_res" != no; then
10010   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10011
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_PTHREAD_GETSPECIFIC 1
10014 _ACEOF
10015
10016 fi
10017
10018 fi
10019
10020 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10021
10022 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10023 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10024 if test "${ac_cv_lib_z_compress2+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   ac_check_lib_save_LIBS=$LIBS
10028 LIBS="-lz  $LIBS"
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035
10036 /* Override any GCC internal prototype to avoid an error.
10037    Use char because int might match the return type of a GCC
10038    builtin and then its argument prototype would still apply.  */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 char compress2 ();
10043 int
10044 main ()
10045 {
10046 return compress2 ();
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_link") 2>conftest.er1
10059   ac_status=$?
10060   grep -v '^ *+' conftest.er1 >conftest.err
10061   rm -f conftest.er1
10062   cat conftest.err >&5
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } &&
10065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10066   { (case "(($ac_try" in
10067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068   *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071   (eval "$ac_try") 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; } &&
10075          { ac_try='test -s conftest$ac_exeext'
10076   { (case "(($ac_try" in
10077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078   *) ac_try_echo=$ac_try;;
10079 esac
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081   (eval "$ac_try") 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; }; then
10085   ac_cv_lib_z_compress2=yes
10086 else
10087   echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090         ac_cv_lib_z_compress2=no
10091 fi
10092
10093 rm -f core conftest.err conftest.$ac_objext \
10094       conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10096 fi
10097 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10098 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10099 if test $ac_cv_lib_z_compress2 = yes; then
10100   cat >>confdefs.h <<_ACEOF
10101 #define HAVE_LIBZ 1
10102 _ACEOF
10103
10104   LIBS="-lz $LIBS"
10105
10106 fi
10107
10108 fi
10109
10110
10111 # Check whether --with-oprofile was given.
10112 if test "${with_oprofile+set}" = set; then
10113   withval=$with_oprofile;
10114       USE_OPROFILE=1
10115
10116       case "$withval" in
10117         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10118         no) llvm_cv_oppath=
10119             USE_OPROFILE=0
10120  ;;
10121         *) llvm_cv_oppath="${withval}/lib/oprofile"
10122            CPPFLAGS="-I${withval}/include";;
10123       esac
10124       case $llvm_cv_os_type in
10125         Linux)
10126           if test -n "$llvm_cv_oppath" ; then
10127             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10128                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10129 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10130 if test "${ac_cv_search_bfd_init+set}" = set; then
10131   echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133   ac_func_search_save_LIBS=$LIBS
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h.  */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h.  */
10140
10141 /* Override any GCC internal prototype to avoid an error.
10142    Use char because int might match the return type of a GCC
10143    builtin and then its argument prototype would still apply.  */
10144 #ifdef __cplusplus
10145 extern "C"
10146 #endif
10147 char bfd_init ();
10148 int
10149 main ()
10150 {
10151 return bfd_init ();
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 for ac_lib in '' bfd; do
10157   if test -z "$ac_lib"; then
10158     ac_res="none required"
10159   else
10160     ac_res=-l$ac_lib
10161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10162   fi
10163   rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170   (eval "$ac_link") 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } &&
10177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10178   { (case "(($ac_try" in
10179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180   *) ac_try_echo=$ac_try;;
10181 esac
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183   (eval "$ac_try") 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; } &&
10187          { ac_try='test -s conftest$ac_exeext'
10188   { (case "(($ac_try" in
10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190   *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193   (eval "$ac_try") 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; }; then
10197   ac_cv_search_bfd_init=$ac_res
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202
10203 fi
10204
10205 rm -f core conftest.err conftest.$ac_objext \
10206       conftest$ac_exeext
10207   if test "${ac_cv_search_bfd_init+set}" = set; then
10208   break
10209 fi
10210 done
10211 if test "${ac_cv_search_bfd_init+set}" = set; then
10212   :
10213 else
10214   ac_cv_search_bfd_init=no
10215 fi
10216 rm conftest.$ac_ext
10217 LIBS=$ac_func_search_save_LIBS
10218 fi
10219 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10220 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10221 ac_res=$ac_cv_search_bfd_init
10222 if test "$ac_res" != no; then
10223   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10224
10225 fi
10226
10227             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10228 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10229 if test "${ac_cv_search_op_open_agent+set}" = set; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   ac_func_search_save_LIBS=$LIBS
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241    Use char because int might match the return type of a GCC
10242    builtin and then its argument prototype would still apply.  */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char op_open_agent ();
10247 int
10248 main ()
10249 {
10250 return op_open_agent ();
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 for ac_lib in '' opagent; do
10256   if test -z "$ac_lib"; then
10257     ac_res="none required"
10258   else
10259     ac_res=-l$ac_lib
10260     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10261   fi
10262   rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266   *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269   (eval "$ac_link") 2>conftest.er1
10270   ac_status=$?
10271   grep -v '^ *+' conftest.er1 >conftest.err
10272   rm -f conftest.er1
10273   cat conftest.err >&5
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } &&
10276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10277   { (case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282   (eval "$ac_try") 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); }; } &&
10286          { ac_try='test -s conftest$ac_exeext'
10287   { (case "(($ac_try" in
10288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289   *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292   (eval "$ac_try") 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   ac_cv_search_op_open_agent=$ac_res
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301
10302 fi
10303
10304 rm -f core conftest.err conftest.$ac_objext \
10305       conftest$ac_exeext
10306   if test "${ac_cv_search_op_open_agent+set}" = set; then
10307   break
10308 fi
10309 done
10310 if test "${ac_cv_search_op_open_agent+set}" = set; then
10311   :
10312 else
10313   ac_cv_search_op_open_agent=no
10314 fi
10315 rm conftest.$ac_ext
10316 LIBS=$ac_func_search_save_LIBS
10317 fi
10318 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10319 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10320 ac_res=$ac_cv_search_op_open_agent
10321 if test "$ac_res" != no; then
10322   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10323
10324 else
10325
10326               echo "Error! You need to have libopagent around."
10327               exit 1
10328
10329 fi
10330
10331             if test "${ac_cv_header_opagent_h+set}" = set; then
10332   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10333 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10334 if test "${ac_cv_header_opagent_h+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 fi
10337 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10338 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10339 else
10340   # Is the header compilable?
10341 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10342 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h.  */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h.  */
10349 $ac_includes_default
10350 #include <opagent.h>
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (ac_try="$ac_compile"
10354 case "(($ac_try" in
10355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356   *) ac_try_echo=$ac_try;;
10357 esac
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359   (eval "$ac_compile") 2>conftest.er1
10360   ac_status=$?
10361   grep -v '^ *+' conftest.er1 >conftest.err
10362   rm -f conftest.er1
10363   cat conftest.err >&5
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); } &&
10366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10367   { (case "(($ac_try" in
10368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369   *) ac_try_echo=$ac_try;;
10370 esac
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372   (eval "$ac_try") 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); }; } &&
10376          { ac_try='test -s conftest.$ac_objext'
10377   { (case "(($ac_try" in
10378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379   *) ac_try_echo=$ac_try;;
10380 esac
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382   (eval "$ac_try") 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; }; then
10386   ac_header_compiler=yes
10387 else
10388   echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10390
10391         ac_header_compiler=no
10392 fi
10393
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10396 echo "${ECHO_T}$ac_header_compiler" >&6; }
10397
10398 # Is the header present?
10399 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10400 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10401 cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h.  */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h.  */
10407 #include <opagent.h>
10408 _ACEOF
10409 if { (ac_try="$ac_cpp conftest.$ac_ext"
10410 case "(($ac_try" in
10411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412   *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10416   ac_status=$?
10417   grep -v '^ *+' conftest.er1 >conftest.err
10418   rm -f conftest.er1
10419   cat conftest.err >&5
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } >/dev/null; then
10422   if test -s conftest.err; then
10423     ac_cpp_err=$ac_c_preproc_warn_flag
10424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10425   else
10426     ac_cpp_err=
10427   fi
10428 else
10429   ac_cpp_err=yes
10430 fi
10431 if test -z "$ac_cpp_err"; then
10432   ac_header_preproc=yes
10433 else
10434   echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437   ac_header_preproc=no
10438 fi
10439
10440 rm -f conftest.err conftest.$ac_ext
10441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10442 echo "${ECHO_T}$ac_header_preproc" >&6; }
10443
10444 # So?  What about this header?
10445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10446   yes:no: )
10447     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10448 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10449     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10450 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10451     ac_header_preproc=yes
10452     ;;
10453   no:yes:* )
10454     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10455 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10456     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10457 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10458     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10459 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10460     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10461 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10462     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10463 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10464     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10465 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10466     ( cat <<\_ASBOX
10467 ## ------------------------------------ ##
10468 ## Report this to http://llvm.org/bugs/ ##
10469 ## ------------------------------------ ##
10470 _ASBOX
10471      ) | sed "s/^/$as_me: WARNING:     /" >&2
10472     ;;
10473 esac
10474 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10475 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10476 if test "${ac_cv_header_opagent_h+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   ac_cv_header_opagent_h=$ac_header_preproc
10480 fi
10481 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10482 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10483
10484 fi
10485 if test $ac_cv_header_opagent_h = yes; then
10486   :
10487 else
10488
10489               echo "Error! You need to have opagent.h around."
10490               exit 1
10491
10492 fi
10493
10494
10495           fi ;;
10496         *)
10497           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10498 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10499    { (exit 1); exit 1; }; } ;;
10500       esac
10501
10502 else
10503
10504       USE_OPROFILE=0
10505
10506
10507 fi
10508
10509
10510 cat >>confdefs.h <<_ACEOF
10511 #define LLVM_USE_OPROFILE $USE_OPROFILE
10512 _ACEOF
10513
10514
10515
10516 # Check whether --with-intel-jitevents was given.
10517 if test "${with_intel_jitevents+set}" = set; then
10518   withval=$with_intel_jitevents;
10519        case "$withval" in
10520           yes) USE_INTEL_JITEVENTS=1
10521 ;;
10522           no)  USE_INTEL_JITEVENTS=0
10523 ;;
10524           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10525 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10526    { (exit 1); exit 1; }; };;
10527        esac
10528
10529       case $llvm_cv_os_type in
10530         Linux|Win32|Cygwin|MingW) ;;
10531         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10532 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10533    { (exit 1); exit 1; }; };;
10534       esac
10535
10536       case "$llvm_cv_target_arch" in
10537         x86|x86_64) ;;
10538         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10539 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10540    { (exit 1); exit 1; }; };;
10541       esac
10542
10543 else
10544
10545       USE_INTEL_JITEVENTS=0
10546
10547
10548 fi
10549
10550
10551 cat >>confdefs.h <<_ACEOF
10552 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10553 _ACEOF
10554
10555
10556 for ac_prog in xml2-config
10557 do
10558   # Extract the first word of "$ac_prog", so it can be a program name with args.
10559 set dummy $ac_prog; ac_word=$2
10560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10562 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10563   echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565   if test -n "$XML2CONFIG"; then
10566   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10567 else
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10570 do
10571   IFS=$as_save_IFS
10572   test -z "$as_dir" && as_dir=.
10573   for ac_exec_ext in '' $ac_executable_extensions; do
10574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10575     ac_cv_prog_XML2CONFIG="$ac_prog"
10576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10577     break 2
10578   fi
10579 done
10580 done
10581 IFS=$as_save_IFS
10582
10583 fi
10584 fi
10585 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10586 if test -n "$XML2CONFIG"; then
10587   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10588 echo "${ECHO_T}$XML2CONFIG" >&6; }
10589 else
10590   { echo "$as_me:$LINENO: result: no" >&5
10591 echo "${ECHO_T}no" >&6; }
10592 fi
10593
10594
10595   test -n "$XML2CONFIG" && break
10596 done
10597
10598
10599 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10600 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10601 if test "x$XML2CONFIG" = "x"; then
10602  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10603 echo "${ECHO_T}xml2-config not found" >&6; }
10604 else
10605  LIBXML2_INC=`$XML2CONFIG --cflags`
10606  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10607 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10608  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10609 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10610 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613   ac_check_lib_save_LIBS=$LIBS
10614 LIBS="-lxml2  $LIBS"
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h.  */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h.  */
10621
10622 /* Override any GCC internal prototype to avoid an error.
10623    Use char because int might match the return type of a GCC
10624    builtin and then its argument prototype would still apply.  */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 char xmlReadFile ();
10629 int
10630 main ()
10631 {
10632 return xmlReadFile ();
10633   ;
10634   return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (ac_try="$ac_link"
10639 case "(($ac_try" in
10640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641   *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644   (eval "$ac_link") 2>conftest.er1
10645   ac_status=$?
10646   grep -v '^ *+' conftest.er1 >conftest.err
10647   rm -f conftest.er1
10648   cat conftest.err >&5
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } &&
10651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10652   { (case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657   (eval "$ac_try") 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); }; } &&
10661          { ac_try='test -s conftest$ac_exeext'
10662   { (case "(($ac_try" in
10663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664   *) ac_try_echo=$ac_try;;
10665 esac
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667   (eval "$ac_try") 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; }; then
10671   ac_cv_lib_xml2_xmlReadFile=yes
10672 else
10673   echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676         ac_cv_lib_xml2_xmlReadFile=no
10677 fi
10678
10679 rm -f core conftest.err conftest.$ac_objext \
10680       conftest$ac_exeext conftest.$ac_ext
10681 LIBS=$ac_check_lib_save_LIBS
10682 fi
10683 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10684 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10685 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10686
10687 cat >>confdefs.h <<\_ACEOF
10688 #define CLANG_HAVE_LIBXML 1
10689 _ACEOF
10690
10691                                 LIBXML2_LIBS="-lxml2"
10692 fi
10693
10694 fi
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704 ac_header_dirent=no
10705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10706   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10707 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h.  */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h.  */
10718 #include <sys/types.h>
10719 #include <$ac_hdr>
10720
10721 int
10722 main ()
10723 {
10724 if ((DIR *) 0)
10725 return 0;
10726   ;
10727   return 0;
10728 }
10729 _ACEOF
10730 rm -f conftest.$ac_objext
10731 if { (ac_try="$ac_compile"
10732 case "(($ac_try" in
10733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734   *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737   (eval "$ac_compile") 2>conftest.er1
10738   ac_status=$?
10739   grep -v '^ *+' conftest.er1 >conftest.err
10740   rm -f conftest.er1
10741   cat conftest.err >&5
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); } &&
10744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745   { (case "(($ac_try" in
10746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747   *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750   (eval "$ac_try") 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; } &&
10754          { ac_try='test -s conftest.$ac_objext'
10755   { (case "(($ac_try" in
10756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757   *) ac_try_echo=$ac_try;;
10758 esac
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760   (eval "$ac_try") 2>&5
10761   ac_status=$?
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   (exit $ac_status); }; }; then
10764   eval "$as_ac_Header=yes"
10765 else
10766   echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10768
10769         eval "$as_ac_Header=no"
10770 fi
10771
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 fi
10774 ac_res=`eval echo '${'$as_ac_Header'}'`
10775                { echo "$as_me:$LINENO: result: $ac_res" >&5
10776 echo "${ECHO_T}$ac_res" >&6; }
10777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10778   cat >>confdefs.h <<_ACEOF
10779 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10780 _ACEOF
10781
10782 ac_header_dirent=$ac_hdr; break
10783 fi
10784
10785 done
10786 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10787 if test $ac_header_dirent = dirent.h; then
10788   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10789 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10790 if test "${ac_cv_search_opendir+set}" = set; then
10791   echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793   ac_func_search_save_LIBS=$LIBS
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802    Use char because int might match the return type of a GCC
10803    builtin and then its argument prototype would still apply.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char opendir ();
10808 int
10809 main ()
10810 {
10811 return opendir ();
10812   ;
10813   return 0;
10814 }
10815 _ACEOF
10816 for ac_lib in '' dir; do
10817   if test -z "$ac_lib"; then
10818     ac_res="none required"
10819   else
10820     ac_res=-l$ac_lib
10821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10822   fi
10823   rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_link") 2>conftest.er1
10831   ac_status=$?
10832   grep -v '^ *+' conftest.er1 >conftest.err
10833   rm -f conftest.er1
10834   cat conftest.err >&5
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); } &&
10837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838   { (case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_try") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; } &&
10847          { ac_try='test -s conftest$ac_exeext'
10848   { (case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853   (eval "$ac_try") 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   ac_cv_search_opendir=$ac_res
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862
10863 fi
10864
10865 rm -f core conftest.err conftest.$ac_objext \
10866       conftest$ac_exeext
10867   if test "${ac_cv_search_opendir+set}" = set; then
10868   break
10869 fi
10870 done
10871 if test "${ac_cv_search_opendir+set}" = set; then
10872   :
10873 else
10874   ac_cv_search_opendir=no
10875 fi
10876 rm conftest.$ac_ext
10877 LIBS=$ac_func_search_save_LIBS
10878 fi
10879 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10880 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10881 ac_res=$ac_cv_search_opendir
10882 if test "$ac_res" != no; then
10883   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10884
10885 fi
10886
10887 else
10888   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10889 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10890 if test "${ac_cv_search_opendir+set}" = set; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   ac_func_search_save_LIBS=$LIBS
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h.  */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h.  */
10900
10901 /* Override any GCC internal prototype to avoid an error.
10902    Use char because int might match the return type of a GCC
10903    builtin and then its argument prototype would still apply.  */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 char opendir ();
10908 int
10909 main ()
10910 {
10911 return opendir ();
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 for ac_lib in '' x; do
10917   if test -z "$ac_lib"; then
10918     ac_res="none required"
10919   else
10920     ac_res=-l$ac_lib
10921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10922   fi
10923   rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (ac_try="$ac_link"
10925 case "(($ac_try" in
10926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927   *) ac_try_echo=$ac_try;;
10928 esac
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930   (eval "$ac_link") 2>conftest.er1
10931   ac_status=$?
10932   grep -v '^ *+' conftest.er1 >conftest.err
10933   rm -f conftest.er1
10934   cat conftest.err >&5
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); } &&
10937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10938   { (case "(($ac_try" in
10939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940   *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943   (eval "$ac_try") 2>&5
10944   ac_status=$?
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); }; } &&
10947          { ac_try='test -s conftest$ac_exeext'
10948   { (case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_try") 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; }; then
10957   ac_cv_search_opendir=$ac_res
10958 else
10959   echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962
10963 fi
10964
10965 rm -f core conftest.err conftest.$ac_objext \
10966       conftest$ac_exeext
10967   if test "${ac_cv_search_opendir+set}" = set; then
10968   break
10969 fi
10970 done
10971 if test "${ac_cv_search_opendir+set}" = set; then
10972   :
10973 else
10974   ac_cv_search_opendir=no
10975 fi
10976 rm conftest.$ac_ext
10977 LIBS=$ac_func_search_save_LIBS
10978 fi
10979 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10980 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10981 ac_res=$ac_cv_search_opendir
10982 if test "$ac_res" != no; then
10983   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10984
10985 fi
10986
10987 fi
10988
10989 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10990 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10991 if test "${ac_cv_header_mmap_anon+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994    ac_ext=c
10995 ac_cpp='$CPP $CPPFLAGS'
10996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10999
11000   cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006 #include <sys/mman.h>
11007 #include <unistd.h>
11008 #include <fcntl.h>
11009 int
11010 main ()
11011 {
11012 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext
11018 if { (ac_try="$ac_compile"
11019 case "(($ac_try" in
11020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021   *) ac_try_echo=$ac_try;;
11022 esac
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024   (eval "$ac_compile") 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } &&
11031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11032   { (case "(($ac_try" in
11033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034   *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037   (eval "$ac_try") 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); }; } &&
11041          { ac_try='test -s conftest.$ac_objext'
11042   { (case "(($ac_try" in
11043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044   *) ac_try_echo=$ac_try;;
11045 esac
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047   (eval "$ac_try") 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); }; }; then
11051   ac_cv_header_mmap_anon=yes
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056         ac_cv_header_mmap_anon=no
11057 fi
11058
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060   ac_ext=c
11061 ac_cpp='$CPP $CPPFLAGS'
11062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11065
11066
11067 fi
11068 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11069 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11070 if test "$ac_cv_header_mmap_anon" = yes; then
11071
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_MMAP_ANONYMOUS 1
11074 _ACEOF
11075
11076 fi
11077
11078 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11079 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11080 if test "${ac_cv_header_stat_broken+set}" = set; then
11081   echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083   cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h.  */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h.  */
11089 #include <sys/types.h>
11090 #include <sys/stat.h>
11091
11092 #if defined S_ISBLK && defined S_IFDIR
11093 # if S_ISBLK (S_IFDIR)
11094 You lose.
11095 # endif
11096 #endif
11097
11098 #if defined S_ISBLK && defined S_IFCHR
11099 # if S_ISBLK (S_IFCHR)
11100 You lose.
11101 # endif
11102 #endif
11103
11104 #if defined S_ISLNK && defined S_IFREG
11105 # if S_ISLNK (S_IFREG)
11106 You lose.
11107 # endif
11108 #endif
11109
11110 #if defined S_ISSOCK && defined S_IFREG
11111 # if S_ISSOCK (S_IFREG)
11112 You lose.
11113 # endif
11114 #endif
11115
11116 _ACEOF
11117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11118   $EGREP "You lose" >/dev/null 2>&1; then
11119   ac_cv_header_stat_broken=yes
11120 else
11121   ac_cv_header_stat_broken=no
11122 fi
11123 rm -f conftest*
11124
11125 fi
11126 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11127 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11128 if test $ac_cv_header_stat_broken = yes; then
11129
11130 cat >>confdefs.h <<\_ACEOF
11131 #define STAT_MACROS_BROKEN 1
11132 _ACEOF
11133
11134 fi
11135
11136 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11137 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11138 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   cat >conftest.$ac_ext <<_ACEOF
11142 /* confdefs.h.  */
11143 _ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h.  */
11147 #include <sys/types.h>
11148 #include <sys/wait.h>
11149 #ifndef WEXITSTATUS
11150 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11151 #endif
11152 #ifndef WIFEXITED
11153 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11154 #endif
11155
11156 int
11157 main ()
11158 {
11159   int s;
11160   wait (&s);
11161   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11162   ;
11163   return 0;
11164 }
11165 _ACEOF
11166 rm -f conftest.$ac_objext
11167 if { (ac_try="$ac_compile"
11168 case "(($ac_try" in
11169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170   *) ac_try_echo=$ac_try;;
11171 esac
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173   (eval "$ac_compile") 2>conftest.er1
11174   ac_status=$?
11175   grep -v '^ *+' conftest.er1 >conftest.err
11176   rm -f conftest.er1
11177   cat conftest.err >&5
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); } &&
11180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11181   { (case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_try") 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; } &&
11190          { ac_try='test -s conftest.$ac_objext'
11191   { (case "(($ac_try" in
11192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193   *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196   (eval "$ac_try") 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; }; then
11200   ac_cv_header_sys_wait_h=yes
11201 else
11202   echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11204
11205         ac_cv_header_sys_wait_h=no
11206 fi
11207
11208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11209 fi
11210 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11211 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11212 if test $ac_cv_header_sys_wait_h = yes; then
11213
11214 cat >>confdefs.h <<\_ACEOF
11215 #define HAVE_SYS_WAIT_H 1
11216 _ACEOF
11217
11218 fi
11219
11220 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11221 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11222 if test "${ac_cv_header_time+set}" = set; then
11223   echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225   cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h.  */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h.  */
11231 #include <sys/types.h>
11232 #include <sys/time.h>
11233 #include <time.h>
11234
11235 int
11236 main ()
11237 {
11238 if ((struct tm *) 0)
11239 return 0;
11240   ;
11241   return 0;
11242 }
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (ac_try="$ac_compile"
11246 case "(($ac_try" in
11247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248   *) ac_try_echo=$ac_try;;
11249 esac
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251   (eval "$ac_compile") 2>conftest.er1
11252   ac_status=$?
11253   grep -v '^ *+' conftest.er1 >conftest.err
11254   rm -f conftest.er1
11255   cat conftest.err >&5
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } &&
11258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11259   { (case "(($ac_try" in
11260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261   *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264   (eval "$ac_try") 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); }; } &&
11268          { ac_try='test -s conftest.$ac_objext'
11269   { (case "(($ac_try" in
11270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271   *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274   (eval "$ac_try") 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); }; }; then
11278   ac_cv_header_time=yes
11279 else
11280   echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283         ac_cv_header_time=no
11284 fi
11285
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 fi
11288 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11289 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11290 if test $ac_cv_header_time = yes; then
11291
11292 cat >>confdefs.h <<\_ACEOF
11293 #define TIME_WITH_SYS_TIME 1
11294 _ACEOF
11295
11296 fi
11297
11298
11299 ac_ext=cpp
11300 ac_cpp='$CXXCPP $CPPFLAGS'
11301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11304
11305
11306 for ac_header in cxxabi.h
11307 do
11308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314   cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320 #include <stddef.h>
11321
11322
11323 #include <$ac_header>
11324 _ACEOF
11325 rm -f conftest.$ac_objext
11326 if { (ac_try="$ac_compile"
11327 case "(($ac_try" in
11328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329   *) ac_try_echo=$ac_try;;
11330 esac
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332   (eval "$ac_compile") 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11340   { (case "(($ac_try" in
11341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342   *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345   (eval "$ac_try") 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; } &&
11349          { ac_try='test -s conftest.$ac_objext'
11350   { (case "(($ac_try" in
11351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352   *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355   (eval "$ac_try") 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; }; then
11359   eval "$as_ac_Header=yes"
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364         eval "$as_ac_Header=no"
11365 fi
11366
11367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 fi
11369 ac_res=`eval echo '${'$as_ac_Header'}'`
11370                { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11373   cat >>confdefs.h <<_ACEOF
11374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11375 _ACEOF
11376
11377 fi
11378
11379 done
11380
11381 ac_ext=c
11382 ac_cpp='$CPP $CPPFLAGS'
11383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11386
11387
11388
11389
11390
11391
11392
11393 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11394 do
11395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11397   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400   echo $ECHO_N "(cached) $ECHO_C" >&6
11401 fi
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403                { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11405 else
11406   # Is the header compilable?
11407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h.  */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h.  */
11415 $ac_includes_default
11416 #include <$ac_header>
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (ac_try="$ac_compile"
11420 case "(($ac_try" in
11421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422   *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425   (eval "$ac_compile") 2>conftest.er1
11426   ac_status=$?
11427   grep -v '^ *+' conftest.er1 >conftest.err
11428   rm -f conftest.er1
11429   cat conftest.err >&5
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } &&
11432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11433   { (case "(($ac_try" in
11434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435   *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438   (eval "$ac_try") 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); }; } &&
11442          { ac_try='test -s conftest.$ac_objext'
11443   { (case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_try") 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; }; then
11452   ac_header_compiler=yes
11453 else
11454   echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11456
11457         ac_header_compiler=no
11458 fi
11459
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11462 echo "${ECHO_T}$ac_header_compiler" >&6; }
11463
11464 # Is the header present?
11465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h.  */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h.  */
11473 #include <$ac_header>
11474 _ACEOF
11475 if { (ac_try="$ac_cpp conftest.$ac_ext"
11476 case "(($ac_try" in
11477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478   *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11482   ac_status=$?
11483   grep -v '^ *+' conftest.er1 >conftest.err
11484   rm -f conftest.er1
11485   cat conftest.err >&5
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } >/dev/null; then
11488   if test -s conftest.err; then
11489     ac_cpp_err=$ac_c_preproc_warn_flag
11490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11491   else
11492     ac_cpp_err=
11493   fi
11494 else
11495   ac_cpp_err=yes
11496 fi
11497 if test -z "$ac_cpp_err"; then
11498   ac_header_preproc=yes
11499 else
11500   echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11502
11503   ac_header_preproc=no
11504 fi
11505
11506 rm -f conftest.err conftest.$ac_ext
11507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11508 echo "${ECHO_T}$ac_header_preproc" >&6; }
11509
11510 # So?  What about this header?
11511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11512   yes:no: )
11513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11517     ac_header_preproc=yes
11518     ;;
11519   no:yes:* )
11520     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11522     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11523 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11524     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11526     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11527 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11530     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11532     ( cat <<\_ASBOX
11533 ## ------------------------------------ ##
11534 ## Report this to http://llvm.org/bugs/ ##
11535 ## ------------------------------------ ##
11536 _ASBOX
11537      ) | sed "s/^/$as_me: WARNING:     /" >&2
11538     ;;
11539 esac
11540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11543   echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545   eval "$as_ac_Header=\$ac_header_preproc"
11546 fi
11547 ac_res=`eval echo '${'$as_ac_Header'}'`
11548                { echo "$as_me:$LINENO: result: $ac_res" >&5
11549 echo "${ECHO_T}$ac_res" >&6; }
11550
11551 fi
11552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11553   cat >>confdefs.h <<_ACEOF
11554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11555 _ACEOF
11556
11557 fi
11558
11559 done
11560
11561
11562
11563
11564
11565
11566
11567 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11568 do
11569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 fi
11576 ac_res=`eval echo '${'$as_ac_Header'}'`
11577                { echo "$as_me:$LINENO: result: $ac_res" >&5
11578 echo "${ECHO_T}$ac_res" >&6; }
11579 else
11580   # Is the header compilable?
11581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11583 cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h.  */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h.  */
11589 $ac_includes_default
11590 #include <$ac_header>
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596   *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599   (eval "$ac_compile") 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } &&
11606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11607   { (case "(($ac_try" in
11608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609   *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612   (eval "$ac_try") 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; } &&
11616          { ac_try='test -s conftest.$ac_objext'
11617   { (case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622   (eval "$ac_try") 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }; then
11626   ac_header_compiler=yes
11627 else
11628   echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631         ac_header_compiler=no
11632 fi
11633
11634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11636 echo "${ECHO_T}$ac_header_compiler" >&6; }
11637
11638 # Is the header present?
11639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 #include <$ac_header>
11648 _ACEOF
11649 if { (ac_try="$ac_cpp conftest.$ac_ext"
11650 case "(($ac_try" in
11651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652   *) ac_try_echo=$ac_try;;
11653 esac
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11656   ac_status=$?
11657   grep -v '^ *+' conftest.er1 >conftest.err
11658   rm -f conftest.er1
11659   cat conftest.err >&5
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); } >/dev/null; then
11662   if test -s conftest.err; then
11663     ac_cpp_err=$ac_c_preproc_warn_flag
11664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11665   else
11666     ac_cpp_err=
11667   fi
11668 else
11669   ac_cpp_err=yes
11670 fi
11671 if test -z "$ac_cpp_err"; then
11672   ac_header_preproc=yes
11673 else
11674   echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11676
11677   ac_header_preproc=no
11678 fi
11679
11680 rm -f conftest.err conftest.$ac_ext
11681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11682 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683
11684 # So?  What about this header?
11685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686   yes:no: )
11687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11691     ac_header_preproc=yes
11692     ;;
11693   no:yes:* )
11694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11706     ( cat <<\_ASBOX
11707 ## ------------------------------------ ##
11708 ## Report this to http://llvm.org/bugs/ ##
11709 ## ------------------------------------ ##
11710 _ASBOX
11711      ) | sed "s/^/$as_me: WARNING:     /" >&2
11712     ;;
11713 esac
11714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   eval "$as_ac_Header=\$ac_header_preproc"
11720 fi
11721 ac_res=`eval echo '${'$as_ac_Header'}'`
11722                { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11724
11725 fi
11726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727   cat >>confdefs.h <<_ACEOF
11728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11729 _ACEOF
11730
11731 fi
11732
11733 done
11734
11735
11736 for ac_header in utime.h
11737 do
11738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11740   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 fi
11745 ac_res=`eval echo '${'$as_ac_Header'}'`
11746                { echo "$as_me:$LINENO: result: $ac_res" >&5
11747 echo "${ECHO_T}$ac_res" >&6; }
11748 else
11749   # Is the header compilable?
11750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 $ac_includes_default
11759 #include <$ac_header>
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (ac_try="$ac_compile"
11763 case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768   (eval "$ac_compile") 2>conftest.er1
11769   ac_status=$?
11770   grep -v '^ *+' conftest.er1 >conftest.err
11771   rm -f conftest.er1
11772   cat conftest.err >&5
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776   { (case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781   (eval "$ac_try") 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; } &&
11785          { ac_try='test -s conftest.$ac_objext'
11786   { (case "(($ac_try" in
11787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788   *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791   (eval "$ac_try") 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; }; then
11795   ac_header_compiler=yes
11796 else
11797   echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800         ac_header_compiler=no
11801 fi
11802
11803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11805 echo "${ECHO_T}$ac_header_compiler" >&6; }
11806
11807 # Is the header present?
11808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 #include <$ac_header>
11817 _ACEOF
11818 if { (ac_try="$ac_cpp conftest.$ac_ext"
11819 case "(($ac_try" in
11820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821   *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11825   ac_status=$?
11826   grep -v '^ *+' conftest.er1 >conftest.err
11827   rm -f conftest.er1
11828   cat conftest.err >&5
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); } >/dev/null; then
11831   if test -s conftest.err; then
11832     ac_cpp_err=$ac_c_preproc_warn_flag
11833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11834   else
11835     ac_cpp_err=
11836   fi
11837 else
11838   ac_cpp_err=yes
11839 fi
11840 if test -z "$ac_cpp_err"; then
11841   ac_header_preproc=yes
11842 else
11843   echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846   ac_header_preproc=no
11847 fi
11848
11849 rm -f conftest.err conftest.$ac_ext
11850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11851 echo "${ECHO_T}$ac_header_preproc" >&6; }
11852
11853 # So?  What about this header?
11854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11855   yes:no: )
11856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11860     ac_header_preproc=yes
11861     ;;
11862   no:yes:* )
11863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11875     ( cat <<\_ASBOX
11876 ## ------------------------------------ ##
11877 ## Report this to http://llvm.org/bugs/ ##
11878 ## ------------------------------------ ##
11879 _ASBOX
11880      ) | sed "s/^/$as_me: WARNING:     /" >&2
11881     ;;
11882 esac
11883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11886   echo $ECHO_N "(cached) $ECHO_C" >&6
11887 else
11888   eval "$as_ac_Header=\$ac_header_preproc"
11889 fi
11890 ac_res=`eval echo '${'$as_ac_Header'}'`
11891                { echo "$as_me:$LINENO: result: $ac_res" >&5
11892 echo "${ECHO_T}$ac_res" >&6; }
11893
11894 fi
11895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11896   cat >>confdefs.h <<_ACEOF
11897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11898 _ACEOF
11899
11900 fi
11901
11902 done
11903
11904
11905
11906
11907
11908
11909 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11910 do
11911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11913   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 fi
11918 ac_res=`eval echo '${'$as_ac_Header'}'`
11919                { echo "$as_me:$LINENO: result: $ac_res" >&5
11920 echo "${ECHO_T}$ac_res" >&6; }
11921 else
11922   # Is the header compilable?
11923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h.  */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h.  */
11931 $ac_includes_default
11932 #include <$ac_header>
11933 _ACEOF
11934 rm -f conftest.$ac_objext
11935 if { (ac_try="$ac_compile"
11936 case "(($ac_try" in
11937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938   *) ac_try_echo=$ac_try;;
11939 esac
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941   (eval "$ac_compile") 2>conftest.er1
11942   ac_status=$?
11943   grep -v '^ *+' conftest.er1 >conftest.err
11944   rm -f conftest.er1
11945   cat conftest.err >&5
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); } &&
11948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11949   { (case "(($ac_try" in
11950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951   *) ac_try_echo=$ac_try;;
11952 esac
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954   (eval "$ac_try") 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; } &&
11958          { ac_try='test -s conftest.$ac_objext'
11959   { (case "(($ac_try" in
11960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961   *) ac_try_echo=$ac_try;;
11962 esac
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964   (eval "$ac_try") 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; }; then
11968   ac_header_compiler=yes
11969 else
11970   echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973         ac_header_compiler=no
11974 fi
11975
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11978 echo "${ECHO_T}$ac_header_compiler" >&6; }
11979
11980 # Is the header present?
11981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h.  */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h.  */
11989 #include <$ac_header>
11990 _ACEOF
11991 if { (ac_try="$ac_cpp conftest.$ac_ext"
11992 case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11998   ac_status=$?
11999   grep -v '^ *+' conftest.er1 >conftest.err
12000   rm -f conftest.er1
12001   cat conftest.err >&5
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } >/dev/null; then
12004   if test -s conftest.err; then
12005     ac_cpp_err=$ac_c_preproc_warn_flag
12006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12007   else
12008     ac_cpp_err=
12009   fi
12010 else
12011   ac_cpp_err=yes
12012 fi
12013 if test -z "$ac_cpp_err"; then
12014   ac_header_preproc=yes
12015 else
12016   echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019   ac_header_preproc=no
12020 fi
12021
12022 rm -f conftest.err conftest.$ac_ext
12023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12024 echo "${ECHO_T}$ac_header_preproc" >&6; }
12025
12026 # So?  What about this header?
12027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12028   yes:no: )
12029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12033     ac_header_preproc=yes
12034     ;;
12035   no:yes:* )
12036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12048     ( cat <<\_ASBOX
12049 ## ------------------------------------ ##
12050 ## Report this to http://llvm.org/bugs/ ##
12051 ## ------------------------------------ ##
12052 _ASBOX
12053      ) | sed "s/^/$as_me: WARNING:     /" >&2
12054     ;;
12055 esac
12056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061   eval "$as_ac_Header=\$ac_header_preproc"
12062 fi
12063 ac_res=`eval echo '${'$as_ac_Header'}'`
12064                { echo "$as_me:$LINENO: result: $ac_res" >&5
12065 echo "${ECHO_T}$ac_res" >&6; }
12066
12067 fi
12068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12069   cat >>confdefs.h <<_ACEOF
12070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12071 _ACEOF
12072
12073 fi
12074
12075 done
12076
12077
12078
12079
12080 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12081 do
12082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12084   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12087   echo $ECHO_N "(cached) $ECHO_C" >&6
12088 fi
12089 ac_res=`eval echo '${'$as_ac_Header'}'`
12090                { echo "$as_me:$LINENO: result: $ac_res" >&5
12091 echo "${ECHO_T}$ac_res" >&6; }
12092 else
12093   # Is the header compilable?
12094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h.  */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h.  */
12102 $ac_includes_default
12103 #include <$ac_header>
12104 _ACEOF
12105 rm -f conftest.$ac_objext
12106 if { (ac_try="$ac_compile"
12107 case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112   (eval "$ac_compile") 2>conftest.er1
12113   ac_status=$?
12114   grep -v '^ *+' conftest.er1 >conftest.err
12115   rm -f conftest.er1
12116   cat conftest.err >&5
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } &&
12119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120   { (case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125   (eval "$ac_try") 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; } &&
12129          { ac_try='test -s conftest.$ac_objext'
12130   { (case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_try") 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; }; then
12139   ac_header_compiler=yes
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144         ac_header_compiler=no
12145 fi
12146
12147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12149 echo "${ECHO_T}$ac_header_compiler" >&6; }
12150
12151 # Is the header present?
12152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160 #include <$ac_header>
12161 _ACEOF
12162 if { (ac_try="$ac_cpp conftest.$ac_ext"
12163 case "(($ac_try" in
12164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165   *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12169   ac_status=$?
12170   grep -v '^ *+' conftest.er1 >conftest.err
12171   rm -f conftest.er1
12172   cat conftest.err >&5
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } >/dev/null; then
12175   if test -s conftest.err; then
12176     ac_cpp_err=$ac_c_preproc_warn_flag
12177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12178   else
12179     ac_cpp_err=
12180   fi
12181 else
12182   ac_cpp_err=yes
12183 fi
12184 if test -z "$ac_cpp_err"; then
12185   ac_header_preproc=yes
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190   ac_header_preproc=no
12191 fi
12192
12193 rm -f conftest.err conftest.$ac_ext
12194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12195 echo "${ECHO_T}$ac_header_preproc" >&6; }
12196
12197 # So?  What about this header?
12198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12199   yes:no: )
12200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12204     ac_header_preproc=yes
12205     ;;
12206   no:yes:* )
12207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12209     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12211     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12213     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12217     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12219     ( cat <<\_ASBOX
12220 ## ------------------------------------ ##
12221 ## Report this to http://llvm.org/bugs/ ##
12222 ## ------------------------------------ ##
12223 _ASBOX
12224      ) | sed "s/^/$as_me: WARNING:     /" >&2
12225     ;;
12226 esac
12227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   eval "$as_ac_Header=\$ac_header_preproc"
12233 fi
12234 ac_res=`eval echo '${'$as_ac_Header'}'`
12235                { echo "$as_me:$LINENO: result: $ac_res" >&5
12236 echo "${ECHO_T}$ac_res" >&6; }
12237
12238 fi
12239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12240   cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12242 _ACEOF
12243
12244 fi
12245
12246 done
12247
12248
12249 for ac_header in valgrind/valgrind.h
12250 do
12251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12256   echo $ECHO_N "(cached) $ECHO_C" >&6
12257 fi
12258 ac_res=`eval echo '${'$as_ac_Header'}'`
12259                { echo "$as_me:$LINENO: result: $ac_res" >&5
12260 echo "${ECHO_T}$ac_res" >&6; }
12261 else
12262   # Is the header compilable?
12263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12265 cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h.  */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h.  */
12271 $ac_includes_default
12272 #include <$ac_header>
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_compile") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } &&
12288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289   { (case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294   (eval "$ac_try") 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; } &&
12298          { ac_try='test -s conftest.$ac_objext'
12299   { (case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304   (eval "$ac_try") 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   ac_header_compiler=yes
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313         ac_header_compiler=no
12314 fi
12315
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12318 echo "${ECHO_T}$ac_header_compiler" >&6; }
12319
12320 # Is the header present?
12321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h.  */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h.  */
12329 #include <$ac_header>
12330 _ACEOF
12331 if { (ac_try="$ac_cpp conftest.$ac_ext"
12332 case "(($ac_try" in
12333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334   *) ac_try_echo=$ac_try;;
12335 esac
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } >/dev/null; then
12344   if test -s conftest.err; then
12345     ac_cpp_err=$ac_c_preproc_warn_flag
12346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12347   else
12348     ac_cpp_err=
12349   fi
12350 else
12351   ac_cpp_err=yes
12352 fi
12353 if test -z "$ac_cpp_err"; then
12354   ac_header_preproc=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359   ac_header_preproc=no
12360 fi
12361
12362 rm -f conftest.err conftest.$ac_ext
12363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12364 echo "${ECHO_T}$ac_header_preproc" >&6; }
12365
12366 # So?  What about this header?
12367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12368   yes:no: )
12369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12373     ac_header_preproc=yes
12374     ;;
12375   no:yes:* )
12376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12388     ( cat <<\_ASBOX
12389 ## ------------------------------------ ##
12390 ## Report this to http://llvm.org/bugs/ ##
12391 ## ------------------------------------ ##
12392 _ASBOX
12393      ) | sed "s/^/$as_me: WARNING:     /" >&2
12394     ;;
12395 esac
12396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12399   echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401   eval "$as_ac_Header=\$ac_header_preproc"
12402 fi
12403 ac_res=`eval echo '${'$as_ac_Header'}'`
12404                { echo "$as_me:$LINENO: result: $ac_res" >&5
12405 echo "${ECHO_T}$ac_res" >&6; }
12406
12407 fi
12408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12409   cat >>confdefs.h <<_ACEOF
12410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12411 _ACEOF
12412
12413 fi
12414
12415 done
12416
12417
12418 for ac_header in fenv.h
12419 do
12420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12422   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12425   echo $ECHO_N "(cached) $ECHO_C" >&6
12426 fi
12427 ac_res=`eval echo '${'$as_ac_Header'}'`
12428                { echo "$as_me:$LINENO: result: $ac_res" >&5
12429 echo "${ECHO_T}$ac_res" >&6; }
12430 else
12431   # Is the header compilable?
12432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440 $ac_includes_default
12441 #include <$ac_header>
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (ac_try="$ac_compile"
12445 case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450   (eval "$ac_compile") 2>conftest.er1
12451   ac_status=$?
12452   grep -v '^ *+' conftest.er1 >conftest.err
12453   rm -f conftest.er1
12454   cat conftest.err >&5
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } &&
12457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12458   { (case "(($ac_try" in
12459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460   *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463   (eval "$ac_try") 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; } &&
12467          { ac_try='test -s conftest.$ac_objext'
12468   { (case "(($ac_try" in
12469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470   *) ac_try_echo=$ac_try;;
12471 esac
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473   (eval "$ac_try") 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; }; then
12477   ac_header_compiler=yes
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482         ac_header_compiler=no
12483 fi
12484
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12487 echo "${ECHO_T}$ac_header_compiler" >&6; }
12488
12489 # Is the header present?
12490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12492 cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498 #include <$ac_header>
12499 _ACEOF
12500 if { (ac_try="$ac_cpp conftest.$ac_ext"
12501 case "(($ac_try" in
12502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503   *) ac_try_echo=$ac_try;;
12504 esac
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12507   ac_status=$?
12508   grep -v '^ *+' conftest.er1 >conftest.err
12509   rm -f conftest.er1
12510   cat conftest.err >&5
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); } >/dev/null; then
12513   if test -s conftest.err; then
12514     ac_cpp_err=$ac_c_preproc_warn_flag
12515     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12516   else
12517     ac_cpp_err=
12518   fi
12519 else
12520   ac_cpp_err=yes
12521 fi
12522 if test -z "$ac_cpp_err"; then
12523   ac_header_preproc=yes
12524 else
12525   echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12527
12528   ac_header_preproc=no
12529 fi
12530
12531 rm -f conftest.err conftest.$ac_ext
12532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12533 echo "${ECHO_T}$ac_header_preproc" >&6; }
12534
12535 # So?  What about this header?
12536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12537   yes:no: )
12538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12542     ac_header_preproc=yes
12543     ;;
12544   no:yes:* )
12545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12557     ( cat <<\_ASBOX
12558 ## ------------------------------------ ##
12559 ## Report this to http://llvm.org/bugs/ ##
12560 ## ------------------------------------ ##
12561 _ASBOX
12562      ) | sed "s/^/$as_me: WARNING:     /" >&2
12563     ;;
12564 esac
12565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12568   echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570   eval "$as_ac_Header=\$ac_header_preproc"
12571 fi
12572 ac_res=`eval echo '${'$as_ac_Header'}'`
12573                { echo "$as_me:$LINENO: result: $ac_res" >&5
12574 echo "${ECHO_T}$ac_res" >&6; }
12575
12576 fi
12577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12578   cat >>confdefs.h <<_ACEOF
12579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12580 _ACEOF
12581
12582 fi
12583
12584 done
12585
12586 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12587 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12588 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591   cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597 #include <fenv.h>
12598
12599 int
12600 main ()
12601 {
12602 #ifndef FE_ALL_EXCEPT
12603   char *p = (char *) FE_ALL_EXCEPT;
12604   return !p;
12605 #endif
12606
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext
12612 if { (ac_try="$ac_compile"
12613 case "(($ac_try" in
12614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615   *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618   (eval "$ac_compile") 2>conftest.er1
12619   ac_status=$?
12620   grep -v '^ *+' conftest.er1 >conftest.err
12621   rm -f conftest.er1
12622   cat conftest.err >&5
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } &&
12625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626   { (case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_try") 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); }; } &&
12635          { ac_try='test -s conftest.$ac_objext'
12636   { (case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_try") 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; }; then
12645   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12646 else
12647   echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12649
12650         ac_cv_have_decl_FE_ALL_EXCEPT=no
12651 fi
12652
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 fi
12655 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12656 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12657 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12658
12659 cat >>confdefs.h <<_ACEOF
12660 #define HAVE_DECL_FE_ALL_EXCEPT 1
12661 _ACEOF
12662
12663
12664 else
12665   cat >>confdefs.h <<_ACEOF
12666 #define HAVE_DECL_FE_ALL_EXCEPT 0
12667 _ACEOF
12668
12669
12670 fi
12671 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12672 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12673 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12674   echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676   cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h.  */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h.  */
12682 #include <fenv.h>
12683
12684 int
12685 main ()
12686 {
12687 #ifndef FE_INEXACT
12688   char *p = (char *) FE_INEXACT;
12689   return !p;
12690 #endif
12691
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 rm -f conftest.$ac_objext
12697 if { (ac_try="$ac_compile"
12698 case "(($ac_try" in
12699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700   *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703   (eval "$ac_compile") 2>conftest.er1
12704   ac_status=$?
12705   grep -v '^ *+' conftest.er1 >conftest.err
12706   rm -f conftest.er1
12707   cat conftest.err >&5
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); } &&
12710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12711   { (case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_try") 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }; } &&
12720          { ac_try='test -s conftest.$ac_objext'
12721   { (case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726   (eval "$ac_try") 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; }; then
12730   ac_cv_have_decl_FE_INEXACT=yes
12731 else
12732   echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12734
12735         ac_cv_have_decl_FE_INEXACT=no
12736 fi
12737
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12739 fi
12740 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12741 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12742 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12743
12744 cat >>confdefs.h <<_ACEOF
12745 #define HAVE_DECL_FE_INEXACT 1
12746 _ACEOF
12747
12748
12749 else
12750   cat >>confdefs.h <<_ACEOF
12751 #define HAVE_DECL_FE_INEXACT 0
12752 _ACEOF
12753
12754
12755 fi
12756
12757
12758 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12759
12760 for ac_header in pthread.h
12761 do
12762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12764   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12767   echo $ECHO_N "(cached) $ECHO_C" >&6
12768 fi
12769 ac_res=`eval echo '${'$as_ac_Header'}'`
12770                { echo "$as_me:$LINENO: result: $ac_res" >&5
12771 echo "${ECHO_T}$ac_res" >&6; }
12772 else
12773   # Is the header compilable?
12774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12776 cat >conftest.$ac_ext <<_ACEOF
12777 /* confdefs.h.  */
12778 _ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h.  */
12782 $ac_includes_default
12783 #include <$ac_header>
12784 _ACEOF
12785 rm -f conftest.$ac_objext
12786 if { (ac_try="$ac_compile"
12787 case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792   (eval "$ac_compile") 2>conftest.er1
12793   ac_status=$?
12794   grep -v '^ *+' conftest.er1 >conftest.err
12795   rm -f conftest.er1
12796   cat conftest.err >&5
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } &&
12799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12800   { (case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_try") 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; } &&
12809          { ac_try='test -s conftest.$ac_objext'
12810   { (case "(($ac_try" in
12811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812   *) ac_try_echo=$ac_try;;
12813 esac
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815   (eval "$ac_try") 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); }; }; then
12819   ac_header_compiler=yes
12820 else
12821   echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12823
12824         ac_header_compiler=no
12825 fi
12826
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12829 echo "${ECHO_T}$ac_header_compiler" >&6; }
12830
12831 # Is the header present?
12832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12834 cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h.  */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h.  */
12840 #include <$ac_header>
12841 _ACEOF
12842 if { (ac_try="$ac_cpp conftest.$ac_ext"
12843 case "(($ac_try" in
12844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845   *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12849   ac_status=$?
12850   grep -v '^ *+' conftest.er1 >conftest.err
12851   rm -f conftest.er1
12852   cat conftest.err >&5
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); } >/dev/null; then
12855   if test -s conftest.err; then
12856     ac_cpp_err=$ac_c_preproc_warn_flag
12857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12858   else
12859     ac_cpp_err=
12860   fi
12861 else
12862   ac_cpp_err=yes
12863 fi
12864 if test -z "$ac_cpp_err"; then
12865   ac_header_preproc=yes
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870   ac_header_preproc=no
12871 fi
12872
12873 rm -f conftest.err conftest.$ac_ext
12874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12875 echo "${ECHO_T}$ac_header_preproc" >&6; }
12876
12877 # So?  What about this header?
12878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12879   yes:no: )
12880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12884     ac_header_preproc=yes
12885     ;;
12886   no:yes:* )
12887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12899     ( cat <<\_ASBOX
12900 ## ------------------------------------ ##
12901 ## Report this to http://llvm.org/bugs/ ##
12902 ## ------------------------------------ ##
12903 _ASBOX
12904      ) | sed "s/^/$as_me: WARNING:     /" >&2
12905     ;;
12906 esac
12907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12910   echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912   eval "$as_ac_Header=\$ac_header_preproc"
12913 fi
12914 ac_res=`eval echo '${'$as_ac_Header'}'`
12915                { echo "$as_me:$LINENO: result: $ac_res" >&5
12916 echo "${ECHO_T}$ac_res" >&6; }
12917
12918 fi
12919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12920   cat >>confdefs.h <<_ACEOF
12921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12922 _ACEOF
12923  HAVE_PTHREAD=1
12924
12925 else
12926   HAVE_PTHREAD=0
12927
12928 fi
12929
12930 done
12931
12932 else
12933   HAVE_PTHREAD=0
12934
12935 fi
12936 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12937
12938 for ac_header in zlib.h
12939 do
12940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12942   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 fi
12947 ac_res=`eval echo '${'$as_ac_Header'}'`
12948                { echo "$as_me:$LINENO: result: $ac_res" >&5
12949 echo "${ECHO_T}$ac_res" >&6; }
12950 else
12951   # Is the header compilable?
12952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12954 cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 $ac_includes_default
12961 #include <$ac_header>
12962 _ACEOF
12963 rm -f conftest.$ac_objext
12964 if { (ac_try="$ac_compile"
12965 case "(($ac_try" in
12966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967   *) ac_try_echo=$ac_try;;
12968 esac
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970   (eval "$ac_compile") 2>conftest.er1
12971   ac_status=$?
12972   grep -v '^ *+' conftest.er1 >conftest.err
12973   rm -f conftest.er1
12974   cat conftest.err >&5
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } &&
12977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12978   { (case "(($ac_try" in
12979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980   *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983   (eval "$ac_try") 2>&5
12984   ac_status=$?
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); }; } &&
12987          { ac_try='test -s conftest.$ac_objext'
12988   { (case "(($ac_try" in
12989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990   *) ac_try_echo=$ac_try;;
12991 esac
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993   (eval "$ac_try") 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; }; then
12997   ac_header_compiler=yes
12998 else
12999   echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13001
13002         ac_header_compiler=no
13003 fi
13004
13005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13007 echo "${ECHO_T}$ac_header_compiler" >&6; }
13008
13009 # Is the header present?
13010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h.  */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h.  */
13018 #include <$ac_header>
13019 _ACEOF
13020 if { (ac_try="$ac_cpp conftest.$ac_ext"
13021 case "(($ac_try" in
13022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023   *) ac_try_echo=$ac_try;;
13024 esac
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13027   ac_status=$?
13028   grep -v '^ *+' conftest.er1 >conftest.err
13029   rm -f conftest.er1
13030   cat conftest.err >&5
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } >/dev/null; then
13033   if test -s conftest.err; then
13034     ac_cpp_err=$ac_c_preproc_warn_flag
13035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13036   else
13037     ac_cpp_err=
13038   fi
13039 else
13040   ac_cpp_err=yes
13041 fi
13042 if test -z "$ac_cpp_err"; then
13043   ac_header_preproc=yes
13044 else
13045   echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13047
13048   ac_header_preproc=no
13049 fi
13050
13051 rm -f conftest.err conftest.$ac_ext
13052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13053 echo "${ECHO_T}$ac_header_preproc" >&6; }
13054
13055 # So?  What about this header?
13056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13057   yes:no: )
13058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13062     ac_header_preproc=yes
13063     ;;
13064   no:yes:* )
13065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13067     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13068 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13069     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13071     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13072 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13075     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13077     ( cat <<\_ASBOX
13078 ## ------------------------------------ ##
13079 ## Report this to http://llvm.org/bugs/ ##
13080 ## ------------------------------------ ##
13081 _ASBOX
13082      ) | sed "s/^/$as_me: WARNING:     /" >&2
13083     ;;
13084 esac
13085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   eval "$as_ac_Header=\$ac_header_preproc"
13091 fi
13092 ac_res=`eval echo '${'$as_ac_Header'}'`
13093                { echo "$as_me:$LINENO: result: $ac_res" >&5
13094 echo "${ECHO_T}$ac_res" >&6; }
13095
13096 fi
13097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13098   cat >>confdefs.h <<_ACEOF
13099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13100 _ACEOF
13101  HAVE_LIBZ=1
13102
13103 else
13104   HAVE_LIBZ=0
13105
13106 fi
13107
13108 done
13109
13110 else
13111   HAVE_LIBZ=0
13112
13113 fi
13114
13115 if test "$llvm_cv_enable_libffi" = "yes" ; then
13116
13117
13118 for ac_header in ffi.h ffi/ffi.h
13119 do
13120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13122   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13125   echo $ECHO_N "(cached) $ECHO_C" >&6
13126 fi
13127 ac_res=`eval echo '${'$as_ac_Header'}'`
13128                { echo "$as_me:$LINENO: result: $ac_res" >&5
13129 echo "${ECHO_T}$ac_res" >&6; }
13130 else
13131   # Is the header compilable?
13132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h.  */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h.  */
13140 $ac_includes_default
13141 #include <$ac_header>
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (ac_try="$ac_compile"
13145 case "(($ac_try" in
13146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147   *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150   (eval "$ac_compile") 2>conftest.er1
13151   ac_status=$?
13152   grep -v '^ *+' conftest.er1 >conftest.err
13153   rm -f conftest.er1
13154   cat conftest.err >&5
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); } &&
13157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13158   { (case "(($ac_try" in
13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160   *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163   (eval "$ac_try") 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; } &&
13167          { ac_try='test -s conftest.$ac_objext'
13168   { (case "(($ac_try" in
13169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170   *) ac_try_echo=$ac_try;;
13171 esac
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173   (eval "$ac_try") 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; }; then
13177   ac_header_compiler=yes
13178 else
13179   echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182         ac_header_compiler=no
13183 fi
13184
13185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13187 echo "${ECHO_T}$ac_header_compiler" >&6; }
13188
13189 # Is the header present?
13190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13192 cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h.  */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h.  */
13198 #include <$ac_header>
13199 _ACEOF
13200 if { (ac_try="$ac_cpp conftest.$ac_ext"
13201 case "(($ac_try" in
13202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203   *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13207   ac_status=$?
13208   grep -v '^ *+' conftest.er1 >conftest.err
13209   rm -f conftest.er1
13210   cat conftest.err >&5
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); } >/dev/null; then
13213   if test -s conftest.err; then
13214     ac_cpp_err=$ac_c_preproc_warn_flag
13215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13216   else
13217     ac_cpp_err=
13218   fi
13219 else
13220   ac_cpp_err=yes
13221 fi
13222 if test -z "$ac_cpp_err"; then
13223   ac_header_preproc=yes
13224 else
13225   echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228   ac_header_preproc=no
13229 fi
13230
13231 rm -f conftest.err conftest.$ac_ext
13232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13233 echo "${ECHO_T}$ac_header_preproc" >&6; }
13234
13235 # So?  What about this header?
13236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13237   yes:no: )
13238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13242     ac_header_preproc=yes
13243     ;;
13244   no:yes:* )
13245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13257     ( cat <<\_ASBOX
13258 ## ------------------------------------ ##
13259 ## Report this to http://llvm.org/bugs/ ##
13260 ## ------------------------------------ ##
13261 _ASBOX
13262      ) | sed "s/^/$as_me: WARNING:     /" >&2
13263     ;;
13264 esac
13265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   eval "$as_ac_Header=\$ac_header_preproc"
13271 fi
13272 ac_res=`eval echo '${'$as_ac_Header'}'`
13273                { echo "$as_me:$LINENO: result: $ac_res" >&5
13274 echo "${ECHO_T}$ac_res" >&6; }
13275
13276 fi
13277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13278   cat >>confdefs.h <<_ACEOF
13279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13280 _ACEOF
13281
13282 fi
13283
13284 done
13285
13286 fi
13287
13288
13289 for ac_header in CrashReporterClient.h
13290 do
13291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13293   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13296   echo $ECHO_N "(cached) $ECHO_C" >&6
13297 fi
13298 ac_res=`eval echo '${'$as_ac_Header'}'`
13299                { echo "$as_me:$LINENO: result: $ac_res" >&5
13300 echo "${ECHO_T}$ac_res" >&6; }
13301 else
13302   # Is the header compilable?
13303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h.  */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h.  */
13311 $ac_includes_default
13312 #include <$ac_header>
13313 _ACEOF
13314 rm -f conftest.$ac_objext
13315 if { (ac_try="$ac_compile"
13316 case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_compile") 2>conftest.er1
13322   ac_status=$?
13323   grep -v '^ *+' conftest.er1 >conftest.err
13324   rm -f conftest.er1
13325   cat conftest.err >&5
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } &&
13328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329   { (case "(($ac_try" in
13330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331   *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334   (eval "$ac_try") 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; } &&
13338          { ac_try='test -s conftest.$ac_objext'
13339   { (case "(($ac_try" in
13340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341   *) ac_try_echo=$ac_try;;
13342 esac
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344   (eval "$ac_try") 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; }; then
13348   ac_header_compiler=yes
13349 else
13350   echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353         ac_header_compiler=no
13354 fi
13355
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13358 echo "${ECHO_T}$ac_header_compiler" >&6; }
13359
13360 # Is the header present?
13361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369 #include <$ac_header>
13370 _ACEOF
13371 if { (ac_try="$ac_cpp conftest.$ac_ext"
13372 case "(($ac_try" in
13373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374   *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13378   ac_status=$?
13379   grep -v '^ *+' conftest.er1 >conftest.err
13380   rm -f conftest.er1
13381   cat conftest.err >&5
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } >/dev/null; then
13384   if test -s conftest.err; then
13385     ac_cpp_err=$ac_c_preproc_warn_flag
13386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13387   else
13388     ac_cpp_err=
13389   fi
13390 else
13391   ac_cpp_err=yes
13392 fi
13393 if test -z "$ac_cpp_err"; then
13394   ac_header_preproc=yes
13395 else
13396   echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13398
13399   ac_header_preproc=no
13400 fi
13401
13402 rm -f conftest.err conftest.$ac_ext
13403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13404 echo "${ECHO_T}$ac_header_preproc" >&6; }
13405
13406 # So?  What about this header?
13407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13408   yes:no: )
13409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13413     ac_header_preproc=yes
13414     ;;
13415   no:yes:* )
13416     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13418     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13419 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13420     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13422     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13423 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13426     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13428     ( cat <<\_ASBOX
13429 ## ------------------------------------ ##
13430 ## Report this to http://llvm.org/bugs/ ##
13431 ## ------------------------------------ ##
13432 _ASBOX
13433      ) | sed "s/^/$as_me: WARNING:     /" >&2
13434     ;;
13435 esac
13436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   eval "$as_ac_Header=\$ac_header_preproc"
13442 fi
13443 ac_res=`eval echo '${'$as_ac_Header'}'`
13444                { echo "$as_me:$LINENO: result: $ac_res" >&5
13445 echo "${ECHO_T}$ac_res" >&6; }
13446
13447 fi
13448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13449   cat >>confdefs.h <<_ACEOF
13450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13451 _ACEOF
13452
13453 fi
13454
13455 done
13456
13457
13458 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13459 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13460 cat >conftest.$ac_ext <<_ACEOF
13461
13462   /* confdefs.h.  */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h.  */
13467
13468     extern const char *__crashreporter_info__;
13469     int main() {
13470       __crashreporter_info__ = "test";
13471       return 0;
13472     }
13473
13474
13475 _ACEOF
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480   *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483   (eval "$ac_link") 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } &&
13490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491   { (case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496   (eval "$ac_try") 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; } &&
13500          { ac_try='test -s conftest$ac_exeext'
13501   { (case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506   (eval "$ac_try") 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); }; }; then
13510
13511   { echo "$as_me:$LINENO: result: yes" >&5
13512 echo "${ECHO_T}yes" >&6; }
13513
13514 cat >>confdefs.h <<\_ACEOF
13515 #define HAVE_CRASHREPORTER_INFO 1
13516 _ACEOF
13517
13518
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523
13524   { echo "$as_me:$LINENO: result: no" >&5
13525 echo "${ECHO_T}no" >&6; }
13526
13527 cat >>confdefs.h <<\_ACEOF
13528 #define HAVE_CRASHREPORTER_INFO 0
13529 _ACEOF
13530
13531
13532 fi
13533
13534 rm -f core conftest.err conftest.$ac_objext \
13535       conftest$ac_exeext conftest.$ac_ext
13536
13537
13538
13539   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13540 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13541 if test "${ac_cv_huge_val_sanity+set}" = set; then
13542   echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544
13545     ac_ext=cpp
13546 ac_cpp='$CXXCPP $CPPFLAGS'
13547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13550
13551     ac_save_CXXFLAGS=$CXXFLAGS
13552     CXXFLAGS="$CXXFLAGS -pedantic"
13553     if test "$cross_compiling" = yes; then
13554   ac_cv_huge_val_sanity=yes
13555 else
13556   cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562 #include <math.h>
13563 int
13564 main ()
13565 {
13566 double x = HUGE_VAL; return x != x;
13567   ;
13568   return 0;
13569 }
13570 _ACEOF
13571 rm -f conftest$ac_exeext
13572 if { (ac_try="$ac_link"
13573 case "(($ac_try" in
13574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575   *) ac_try_echo=$ac_try;;
13576 esac
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578   (eval "$ac_link") 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13582   { (case "(($ac_try" in
13583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584   *) ac_try_echo=$ac_try;;
13585 esac
13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587   (eval "$ac_try") 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591   ac_cv_huge_val_sanity=yes
13592 else
13593   echo "$as_me: program exited with status $ac_status" >&5
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 ( exit $ac_status )
13598 ac_cv_huge_val_sanity=no
13599 fi
13600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13601 fi
13602
13603
13604     CXXFLAGS=$ac_save_CXXFLAGS
13605     ac_ext=c
13606 ac_cpp='$CPP $CPPFLAGS'
13607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13610
13611
13612 fi
13613 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13614 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13615   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13616
13617
13618 { echo "$as_me:$LINENO: checking for pid_t" >&5
13619 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13620 if test "${ac_cv_type_pid_t+set}" = set; then
13621   echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623   cat >conftest.$ac_ext <<_ACEOF
13624 /* confdefs.h.  */
13625 _ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h.  */
13629 $ac_includes_default
13630 typedef pid_t ac__type_new_;
13631 int
13632 main ()
13633 {
13634 if ((ac__type_new_ *) 0)
13635   return 0;
13636 if (sizeof (ac__type_new_))
13637   return 0;
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 rm -f conftest.$ac_objext
13643 if { (ac_try="$ac_compile"
13644 case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649   (eval "$ac_compile") 2>conftest.er1
13650   ac_status=$?
13651   grep -v '^ *+' conftest.er1 >conftest.err
13652   rm -f conftest.er1
13653   cat conftest.err >&5
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); } &&
13656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13657   { (case "(($ac_try" in
13658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659   *) ac_try_echo=$ac_try;;
13660 esac
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662   (eval "$ac_try") 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; } &&
13666          { ac_try='test -s conftest.$ac_objext'
13667   { (case "(($ac_try" in
13668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669   *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672   (eval "$ac_try") 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   ac_cv_type_pid_t=yes
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681         ac_cv_type_pid_t=no
13682 fi
13683
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 fi
13686 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13687 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13688 if test $ac_cv_type_pid_t = yes; then
13689   :
13690 else
13691
13692 cat >>confdefs.h <<_ACEOF
13693 #define pid_t int
13694 _ACEOF
13695
13696 fi
13697
13698 { echo "$as_me:$LINENO: checking for size_t" >&5
13699 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13700 if test "${ac_cv_type_size_t+set}" = set; then
13701   echo $ECHO_N "(cached) $ECHO_C" >&6
13702 else
13703   cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709 $ac_includes_default
13710 typedef size_t ac__type_new_;
13711 int
13712 main ()
13713 {
13714 if ((ac__type_new_ *) 0)
13715   return 0;
13716 if (sizeof (ac__type_new_))
13717   return 0;
13718   ;
13719   return 0;
13720 }
13721 _ACEOF
13722 rm -f conftest.$ac_objext
13723 if { (ac_try="$ac_compile"
13724 case "(($ac_try" in
13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726   *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729   (eval "$ac_compile") 2>conftest.er1
13730   ac_status=$?
13731   grep -v '^ *+' conftest.er1 >conftest.err
13732   rm -f conftest.er1
13733   cat conftest.err >&5
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); } &&
13736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13737   { (case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742   (eval "$ac_try") 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }; } &&
13746          { ac_try='test -s conftest.$ac_objext'
13747   { (case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_try") 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; }; then
13756   ac_cv_type_size_t=yes
13757 else
13758   echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13760
13761         ac_cv_type_size_t=no
13762 fi
13763
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 fi
13766 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13767 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13768 if test $ac_cv_type_size_t = yes; then
13769   :
13770 else
13771
13772 cat >>confdefs.h <<_ACEOF
13773 #define size_t unsigned int
13774 _ACEOF
13775
13776 fi
13777
13778
13779 cat >>confdefs.h <<_ACEOF
13780 #define RETSIGTYPE void
13781 _ACEOF
13782
13783 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13784 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13785 if test "${ac_cv_struct_tm+set}" = set; then
13786   echo $ECHO_N "(cached) $ECHO_C" >&6
13787 else
13788   cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h.  */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h.  */
13794 #include <sys/types.h>
13795 #include <time.h>
13796
13797 int
13798 main ()
13799 {
13800 struct tm *tp; tp->tm_sec;
13801   ;
13802   return 0;
13803 }
13804 _ACEOF
13805 rm -f conftest.$ac_objext
13806 if { (ac_try="$ac_compile"
13807 case "(($ac_try" in
13808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809   *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812   (eval "$ac_compile") 2>conftest.er1
13813   ac_status=$?
13814   grep -v '^ *+' conftest.er1 >conftest.err
13815   rm -f conftest.er1
13816   cat conftest.err >&5
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } &&
13819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820   { (case "(($ac_try" in
13821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822   *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825   (eval "$ac_try") 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); }; } &&
13829          { ac_try='test -s conftest.$ac_objext'
13830   { (case "(($ac_try" in
13831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832   *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835   (eval "$ac_try") 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); }; }; then
13839   ac_cv_struct_tm=time.h
13840 else
13841   echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13843
13844         ac_cv_struct_tm=sys/time.h
13845 fi
13846
13847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 fi
13849 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13850 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13851 if test $ac_cv_struct_tm = sys/time.h; then
13852
13853 cat >>confdefs.h <<\_ACEOF
13854 #define TM_IN_SYS_TIME 1
13855 _ACEOF
13856
13857 fi
13858
13859 { echo "$as_me:$LINENO: checking for int64_t" >&5
13860 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13861 if test "${ac_cv_type_int64_t+set}" = set; then
13862   echo $ECHO_N "(cached) $ECHO_C" >&6
13863 else
13864   cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 $ac_includes_default
13871 typedef int64_t ac__type_new_;
13872 int
13873 main ()
13874 {
13875 if ((ac__type_new_ *) 0)
13876   return 0;
13877 if (sizeof (ac__type_new_))
13878   return 0;
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 rm -f conftest.$ac_objext
13884 if { (ac_try="$ac_compile"
13885 case "(($ac_try" in
13886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887   *) ac_try_echo=$ac_try;;
13888 esac
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890   (eval "$ac_compile") 2>conftest.er1
13891   ac_status=$?
13892   grep -v '^ *+' conftest.er1 >conftest.err
13893   rm -f conftest.er1
13894   cat conftest.err >&5
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); } &&
13897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13898   { (case "(($ac_try" in
13899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900   *) ac_try_echo=$ac_try;;
13901 esac
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903   (eval "$ac_try") 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; } &&
13907          { ac_try='test -s conftest.$ac_objext'
13908   { (case "(($ac_try" in
13909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910   *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913   (eval "$ac_try") 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); }; }; then
13917   ac_cv_type_int64_t=yes
13918 else
13919   echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13921
13922         ac_cv_type_int64_t=no
13923 fi
13924
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926 fi
13927 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13928 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13929 if test $ac_cv_type_int64_t = yes; then
13930
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_INT64_T 1
13933 _ACEOF
13934
13935
13936 else
13937   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13938 echo "$as_me: error: Type int64_t required but not found" >&2;}
13939    { (exit 1); exit 1; }; }
13940 fi
13941
13942 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13943 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13944 if test "${ac_cv_type_uint64_t+set}" = set; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947   cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h.  */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h.  */
13953 $ac_includes_default
13954 typedef uint64_t ac__type_new_;
13955 int
13956 main ()
13957 {
13958 if ((ac__type_new_ *) 0)
13959   return 0;
13960 if (sizeof (ac__type_new_))
13961   return 0;
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_compile") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } &&
13980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981   { (case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986   (eval "$ac_try") 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; } &&
13990          { ac_try='test -s conftest.$ac_objext'
13991   { (case "(($ac_try" in
13992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993   *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996   (eval "$ac_try") 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_cv_type_uint64_t=yes
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005         ac_cv_type_uint64_t=no
14006 fi
14007
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009 fi
14010 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14011 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14012 if test $ac_cv_type_uint64_t = yes; then
14013
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_UINT64_T 1
14016 _ACEOF
14017
14018
14019 else
14020   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14021 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14022 if test "${ac_cv_type_u_int64_t+set}" = set; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   cat >conftest.$ac_ext <<_ACEOF
14026 /* confdefs.h.  */
14027 _ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h.  */
14031 $ac_includes_default
14032 typedef u_int64_t ac__type_new_;
14033 int
14034 main ()
14035 {
14036 if ((ac__type_new_ *) 0)
14037   return 0;
14038 if (sizeof (ac__type_new_))
14039   return 0;
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 rm -f conftest.$ac_objext
14045 if { (ac_try="$ac_compile"
14046 case "(($ac_try" in
14047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14048   *) ac_try_echo=$ac_try;;
14049 esac
14050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14051   (eval "$ac_compile") 2>conftest.er1
14052   ac_status=$?
14053   grep -v '^ *+' conftest.er1 >conftest.err
14054   rm -f conftest.er1
14055   cat conftest.err >&5
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); } &&
14058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14059   { (case "(($ac_try" in
14060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061   *) ac_try_echo=$ac_try;;
14062 esac
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064   (eval "$ac_try") 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; } &&
14068          { ac_try='test -s conftest.$ac_objext'
14069   { (case "(($ac_try" in
14070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071   *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074   (eval "$ac_try") 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); }; }; then
14078   ac_cv_type_u_int64_t=yes
14079 else
14080   echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083         ac_cv_type_u_int64_t=no
14084 fi
14085
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 fi
14088 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14089 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14090 if test $ac_cv_type_u_int64_t = yes; then
14091
14092 cat >>confdefs.h <<_ACEOF
14093 #define HAVE_U_INT64_T 1
14094 _ACEOF
14095
14096
14097 else
14098   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14099 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14100    { (exit 1); exit 1; }; }
14101 fi
14102
14103 fi
14104
14105
14106
14107
14108
14109 for ac_func in backtrace getcwd
14110 do
14111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14115   echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117   cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h.  */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h.  */
14123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14125 #define $ac_func innocuous_$ac_func
14126
14127 /* System header to define __stub macros and hopefully few prototypes,
14128     which can conflict with char $ac_func (); below.
14129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14130     <limits.h> exists even on freestanding compilers.  */
14131
14132 #ifdef __STDC__
14133 # include <limits.h>
14134 #else
14135 # include <assert.h>
14136 #endif
14137
14138 #undef $ac_func
14139
14140 /* Override any GCC internal prototype to avoid an error.
14141    Use char because int might match the return type of a GCC
14142    builtin and then its argument prototype would still apply.  */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 char $ac_func ();
14147 /* The GNU C library defines this for functions which it implements
14148     to always fail with ENOSYS.  Some functions are actually named
14149     something starting with __ and the normal name is an alias.  */
14150 #if defined __stub_$ac_func || defined __stub___$ac_func
14151 choke me
14152 #endif
14153
14154 int
14155 main ()
14156 {
14157 return $ac_func ();
14158   ;
14159   return 0;
14160 }
14161 _ACEOF
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (ac_try="$ac_link"
14164 case "(($ac_try" in
14165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166   *) ac_try_echo=$ac_try;;
14167 esac
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169   (eval "$ac_link") 2>conftest.er1
14170   ac_status=$?
14171   grep -v '^ *+' conftest.er1 >conftest.err
14172   rm -f conftest.er1
14173   cat conftest.err >&5
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); } &&
14176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177   { (case "(($ac_try" in
14178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179   *) ac_try_echo=$ac_try;;
14180 esac
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182   (eval "$ac_try") 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); }; } &&
14186          { ac_try='test -s conftest$ac_exeext'
14187   { (case "(($ac_try" in
14188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189   *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192   (eval "$ac_try") 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; }; then
14196   eval "$as_ac_var=yes"
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201         eval "$as_ac_var=no"
14202 fi
14203
14204 rm -f core conftest.err conftest.$ac_objext \
14205       conftest$ac_exeext conftest.$ac_ext
14206 fi
14207 ac_res=`eval echo '${'$as_ac_var'}'`
14208                { echo "$as_me:$LINENO: result: $ac_res" >&5
14209 echo "${ECHO_T}$ac_res" >&6; }
14210 if test `eval echo '${'$as_ac_var'}'` = yes; then
14211   cat >>confdefs.h <<_ACEOF
14212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14213 _ACEOF
14214
14215 fi
14216 done
14217
14218
14219
14220
14221
14222
14223 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14224 do
14225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231   cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14239 #define $ac_func innocuous_$ac_func
14240
14241 /* System header to define __stub macros and hopefully few prototypes,
14242     which can conflict with char $ac_func (); below.
14243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14244     <limits.h> exists even on freestanding compilers.  */
14245
14246 #ifdef __STDC__
14247 # include <limits.h>
14248 #else
14249 # include <assert.h>
14250 #endif
14251
14252 #undef $ac_func
14253
14254 /* Override any GCC internal prototype to avoid an error.
14255    Use char because int might match the return type of a GCC
14256    builtin and then its argument prototype would still apply.  */
14257 #ifdef __cplusplus
14258 extern "C"
14259 #endif
14260 char $ac_func ();
14261 /* The GNU C library defines this for functions which it implements
14262     to always fail with ENOSYS.  Some functions are actually named
14263     something starting with __ and the normal name is an alias.  */
14264 #if defined __stub_$ac_func || defined __stub___$ac_func
14265 choke me
14266 #endif
14267
14268 int
14269 main ()
14270 {
14271 return $ac_func ();
14272   ;
14273   return 0;
14274 }
14275 _ACEOF
14276 rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (ac_try="$ac_link"
14278 case "(($ac_try" in
14279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280   *) ac_try_echo=$ac_try;;
14281 esac
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283   (eval "$ac_link") 2>conftest.er1
14284   ac_status=$?
14285   grep -v '^ *+' conftest.er1 >conftest.err
14286   rm -f conftest.er1
14287   cat conftest.err >&5
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); } &&
14290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14291   { (case "(($ac_try" in
14292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293   *) ac_try_echo=$ac_try;;
14294 esac
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296   (eval "$ac_try") 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; } &&
14300          { ac_try='test -s conftest$ac_exeext'
14301   { (case "(($ac_try" in
14302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303   *) ac_try_echo=$ac_try;;
14304 esac
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306   (eval "$ac_try") 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; }; then
14310   eval "$as_ac_var=yes"
14311 else
14312   echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315         eval "$as_ac_var=no"
14316 fi
14317
14318 rm -f core conftest.err conftest.$ac_objext \
14319       conftest$ac_exeext conftest.$ac_ext
14320 fi
14321 ac_res=`eval echo '${'$as_ac_var'}'`
14322                { echo "$as_me:$LINENO: result: $ac_res" >&5
14323 echo "${ECHO_T}$ac_res" >&6; }
14324 if test `eval echo '${'$as_ac_var'}'` = yes; then
14325   cat >>confdefs.h <<_ACEOF
14326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14327 _ACEOF
14328
14329 fi
14330 done
14331
14332
14333
14334
14335 for ac_func in isatty mkdtemp mkstemp
14336 do
14337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14341   echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343   cat >conftest.$ac_ext <<_ACEOF
14344 /* confdefs.h.  */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h.  */
14349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14351 #define $ac_func innocuous_$ac_func
14352
14353 /* System header to define __stub macros and hopefully few prototypes,
14354     which can conflict with char $ac_func (); below.
14355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14356     <limits.h> exists even on freestanding compilers.  */
14357
14358 #ifdef __STDC__
14359 # include <limits.h>
14360 #else
14361 # include <assert.h>
14362 #endif
14363
14364 #undef $ac_func
14365
14366 /* Override any GCC internal prototype to avoid an error.
14367    Use char because int might match the return type of a GCC
14368    builtin and then its argument prototype would still apply.  */
14369 #ifdef __cplusplus
14370 extern "C"
14371 #endif
14372 char $ac_func ();
14373 /* The GNU C library defines this for functions which it implements
14374     to always fail with ENOSYS.  Some functions are actually named
14375     something starting with __ and the normal name is an alias.  */
14376 #if defined __stub_$ac_func || defined __stub___$ac_func
14377 choke me
14378 #endif
14379
14380 int
14381 main ()
14382 {
14383 return $ac_func ();
14384   ;
14385   return 0;
14386 }
14387 _ACEOF
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392   *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395   (eval "$ac_link") 2>conftest.er1
14396   ac_status=$?
14397   grep -v '^ *+' conftest.er1 >conftest.err
14398   rm -f conftest.er1
14399   cat conftest.err >&5
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } &&
14402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14403   { (case "(($ac_try" in
14404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405   *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408   (eval "$ac_try") 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); }; } &&
14412          { ac_try='test -s conftest$ac_exeext'
14413   { (case "(($ac_try" in
14414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415   *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418   (eval "$ac_try") 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; }; then
14422   eval "$as_ac_var=yes"
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427         eval "$as_ac_var=no"
14428 fi
14429
14430 rm -f core conftest.err conftest.$ac_objext \
14431       conftest$ac_exeext conftest.$ac_ext
14432 fi
14433 ac_res=`eval echo '${'$as_ac_var'}'`
14434                { echo "$as_me:$LINENO: result: $ac_res" >&5
14435 echo "${ECHO_T}$ac_res" >&6; }
14436 if test `eval echo '${'$as_ac_var'}'` = yes; then
14437   cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14439 _ACEOF
14440
14441 fi
14442 done
14443
14444
14445
14446
14447
14448
14449
14450 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14451 do
14452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14456   echo $ECHO_N "(cached) $ECHO_C" >&6
14457 else
14458   cat >conftest.$ac_ext <<_ACEOF
14459 /* confdefs.h.  */
14460 _ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h.  */
14464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14466 #define $ac_func innocuous_$ac_func
14467
14468 /* System header to define __stub macros and hopefully few prototypes,
14469     which can conflict with char $ac_func (); below.
14470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14471     <limits.h> exists even on freestanding compilers.  */
14472
14473 #ifdef __STDC__
14474 # include <limits.h>
14475 #else
14476 # include <assert.h>
14477 #endif
14478
14479 #undef $ac_func
14480
14481 /* Override any GCC internal prototype to avoid an error.
14482    Use char because int might match the return type of a GCC
14483    builtin and then its argument prototype would still apply.  */
14484 #ifdef __cplusplus
14485 extern "C"
14486 #endif
14487 char $ac_func ();
14488 /* The GNU C library defines this for functions which it implements
14489     to always fail with ENOSYS.  Some functions are actually named
14490     something starting with __ and the normal name is an alias.  */
14491 #if defined __stub_$ac_func || defined __stub___$ac_func
14492 choke me
14493 #endif
14494
14495 int
14496 main ()
14497 {
14498 return $ac_func ();
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 rm -f conftest.$ac_objext conftest$ac_exeext
14504 if { (ac_try="$ac_link"
14505 case "(($ac_try" in
14506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507   *) ac_try_echo=$ac_try;;
14508 esac
14509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510   (eval "$ac_link") 2>conftest.er1
14511   ac_status=$?
14512   grep -v '^ *+' conftest.er1 >conftest.err
14513   rm -f conftest.er1
14514   cat conftest.err >&5
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } &&
14517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14518   { (case "(($ac_try" in
14519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520   *) ac_try_echo=$ac_try;;
14521 esac
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523   (eval "$ac_try") 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); }; } &&
14527          { ac_try='test -s conftest$ac_exeext'
14528   { (case "(($ac_try" in
14529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530   *) ac_try_echo=$ac_try;;
14531 esac
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533   (eval "$ac_try") 2>&5
14534   ac_status=$?
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); }; }; then
14537   eval "$as_ac_var=yes"
14538 else
14539   echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542         eval "$as_ac_var=no"
14543 fi
14544
14545 rm -f core conftest.err conftest.$ac_objext \
14546       conftest$ac_exeext conftest.$ac_ext
14547 fi
14548 ac_res=`eval echo '${'$as_ac_var'}'`
14549                { echo "$as_me:$LINENO: result: $ac_res" >&5
14550 echo "${ECHO_T}$ac_res" >&6; }
14551 if test `eval echo '${'$as_ac_var'}'` = yes; then
14552   cat >>confdefs.h <<_ACEOF
14553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14554 _ACEOF
14555
14556 fi
14557 done
14558
14559
14560
14561
14562 for ac_func in strerror strerror_r setenv
14563 do
14564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570   cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h.  */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h.  */
14576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14578 #define $ac_func innocuous_$ac_func
14579
14580 /* System header to define __stub macros and hopefully few prototypes,
14581     which can conflict with char $ac_func (); below.
14582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14583     <limits.h> exists even on freestanding compilers.  */
14584
14585 #ifdef __STDC__
14586 # include <limits.h>
14587 #else
14588 # include <assert.h>
14589 #endif
14590
14591 #undef $ac_func
14592
14593 /* Override any GCC internal prototype to avoid an error.
14594    Use char because int might match the return type of a GCC
14595    builtin and then its argument prototype would still apply.  */
14596 #ifdef __cplusplus
14597 extern "C"
14598 #endif
14599 char $ac_func ();
14600 /* The GNU C library defines this for functions which it implements
14601     to always fail with ENOSYS.  Some functions are actually named
14602     something starting with __ and the normal name is an alias.  */
14603 #if defined __stub_$ac_func || defined __stub___$ac_func
14604 choke me
14605 #endif
14606
14607 int
14608 main ()
14609 {
14610 return $ac_func ();
14611   ;
14612   return 0;
14613 }
14614 _ACEOF
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619   *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622   (eval "$ac_link") 2>conftest.er1
14623   ac_status=$?
14624   grep -v '^ *+' conftest.er1 >conftest.err
14625   rm -f conftest.er1
14626   cat conftest.err >&5
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); } &&
14629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14630   { (case "(($ac_try" in
14631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632   *) ac_try_echo=$ac_try;;
14633 esac
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635   (eval "$ac_try") 2>&5
14636   ac_status=$?
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); }; } &&
14639          { ac_try='test -s conftest$ac_exeext'
14640   { (case "(($ac_try" in
14641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642   *) ac_try_echo=$ac_try;;
14643 esac
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645   (eval "$ac_try") 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; }; then
14649   eval "$as_ac_var=yes"
14650 else
14651   echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654         eval "$as_ac_var=no"
14655 fi
14656
14657 rm -f core conftest.err conftest.$ac_objext \
14658       conftest$ac_exeext conftest.$ac_ext
14659 fi
14660 ac_res=`eval echo '${'$as_ac_var'}'`
14661                { echo "$as_me:$LINENO: result: $ac_res" >&5
14662 echo "${ECHO_T}$ac_res" >&6; }
14663 if test `eval echo '${'$as_ac_var'}'` = yes; then
14664   cat >>confdefs.h <<_ACEOF
14665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14666 _ACEOF
14667
14668 fi
14669 done
14670
14671
14672
14673
14674
14675 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14676 do
14677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14681   echo $ECHO_N "(cached) $ECHO_C" >&6
14682 else
14683   cat >conftest.$ac_ext <<_ACEOF
14684 /* confdefs.h.  */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h.  */
14689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14691 #define $ac_func innocuous_$ac_func
14692
14693 /* System header to define __stub macros and hopefully few prototypes,
14694     which can conflict with char $ac_func (); below.
14695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14696     <limits.h> exists even on freestanding compilers.  */
14697
14698 #ifdef __STDC__
14699 # include <limits.h>
14700 #else
14701 # include <assert.h>
14702 #endif
14703
14704 #undef $ac_func
14705
14706 /* Override any GCC internal prototype to avoid an error.
14707    Use char because int might match the return type of a GCC
14708    builtin and then its argument prototype would still apply.  */
14709 #ifdef __cplusplus
14710 extern "C"
14711 #endif
14712 char $ac_func ();
14713 /* The GNU C library defines this for functions which it implements
14714     to always fail with ENOSYS.  Some functions are actually named
14715     something starting with __ and the normal name is an alias.  */
14716 #if defined __stub_$ac_func || defined __stub___$ac_func
14717 choke me
14718 #endif
14719
14720 int
14721 main ()
14722 {
14723 return $ac_func ();
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 rm -f conftest.$ac_objext conftest$ac_exeext
14729 if { (ac_try="$ac_link"
14730 case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735   (eval "$ac_link") 2>conftest.er1
14736   ac_status=$?
14737   grep -v '^ *+' conftest.er1 >conftest.err
14738   rm -f conftest.er1
14739   cat conftest.err >&5
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } &&
14742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14743   { (case "(($ac_try" in
14744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745   *) ac_try_echo=$ac_try;;
14746 esac
14747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748   (eval "$ac_try") 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; } &&
14752          { ac_try='test -s conftest$ac_exeext'
14753   { (case "(($ac_try" in
14754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755   *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758   (eval "$ac_try") 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   eval "$as_ac_var=yes"
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767         eval "$as_ac_var=no"
14768 fi
14769
14770 rm -f core conftest.err conftest.$ac_objext \
14771       conftest$ac_exeext conftest.$ac_ext
14772 fi
14773 ac_res=`eval echo '${'$as_ac_var'}'`
14774                { echo "$as_me:$LINENO: result: $ac_res" >&5
14775 echo "${ECHO_T}$ac_res" >&6; }
14776 if test `eval echo '${'$as_ac_var'}'` = yes; then
14777   cat >>confdefs.h <<_ACEOF
14778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14779 _ACEOF
14780
14781 fi
14782 done
14783
14784
14785
14786
14787
14788
14789 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14790 do
14791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797   cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h.  */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h.  */
14803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14805 #define $ac_func innocuous_$ac_func
14806
14807 /* System header to define __stub macros and hopefully few prototypes,
14808     which can conflict with char $ac_func (); below.
14809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14810     <limits.h> exists even on freestanding compilers.  */
14811
14812 #ifdef __STDC__
14813 # include <limits.h>
14814 #else
14815 # include <assert.h>
14816 #endif
14817
14818 #undef $ac_func
14819
14820 /* Override any GCC internal prototype to avoid an error.
14821    Use char because int might match the return type of a GCC
14822    builtin and then its argument prototype would still apply.  */
14823 #ifdef __cplusplus
14824 extern "C"
14825 #endif
14826 char $ac_func ();
14827 /* The GNU C library defines this for functions which it implements
14828     to always fail with ENOSYS.  Some functions are actually named
14829     something starting with __ and the normal name is an alias.  */
14830 #if defined __stub_$ac_func || defined __stub___$ac_func
14831 choke me
14832 #endif
14833
14834 int
14835 main ()
14836 {
14837 return $ac_func ();
14838   ;
14839   return 0;
14840 }
14841 _ACEOF
14842 rm -f conftest.$ac_objext conftest$ac_exeext
14843 if { (ac_try="$ac_link"
14844 case "(($ac_try" in
14845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846   *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849   (eval "$ac_link") 2>conftest.er1
14850   ac_status=$?
14851   grep -v '^ *+' conftest.er1 >conftest.err
14852   rm -f conftest.er1
14853   cat conftest.err >&5
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); } &&
14856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857   { (case "(($ac_try" in
14858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859   *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862   (eval "$ac_try") 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; } &&
14866          { ac_try='test -s conftest$ac_exeext'
14867   { (case "(($ac_try" in
14868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869   *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872   (eval "$ac_try") 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }; }; then
14876   eval "$as_ac_var=yes"
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881         eval "$as_ac_var=no"
14882 fi
14883
14884 rm -f core conftest.err conftest.$ac_objext \
14885       conftest$ac_exeext conftest.$ac_ext
14886 fi
14887 ac_res=`eval echo '${'$as_ac_var'}'`
14888                { echo "$as_me:$LINENO: result: $ac_res" >&5
14889 echo "${ECHO_T}$ac_res" >&6; }
14890 if test `eval echo '${'$as_ac_var'}'` = yes; then
14891   cat >>confdefs.h <<_ACEOF
14892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14893 _ACEOF
14894
14895 fi
14896 done
14897
14898
14899
14900 for ac_func in futimes futimens
14901 do
14902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908   cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14916 #define $ac_func innocuous_$ac_func
14917
14918 /* System header to define __stub macros and hopefully few prototypes,
14919     which can conflict with char $ac_func (); below.
14920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14921     <limits.h> exists even on freestanding compilers.  */
14922
14923 #ifdef __STDC__
14924 # include <limits.h>
14925 #else
14926 # include <assert.h>
14927 #endif
14928
14929 #undef $ac_func
14930
14931 /* Override any GCC internal prototype to avoid an error.
14932    Use char because int might match the return type of a GCC
14933    builtin and then its argument prototype would still apply.  */
14934 #ifdef __cplusplus
14935 extern "C"
14936 #endif
14937 char $ac_func ();
14938 /* The GNU C library defines this for functions which it implements
14939     to always fail with ENOSYS.  Some functions are actually named
14940     something starting with __ and the normal name is an alias.  */
14941 #if defined __stub_$ac_func || defined __stub___$ac_func
14942 choke me
14943 #endif
14944
14945 int
14946 main ()
14947 {
14948 return $ac_func ();
14949   ;
14950   return 0;
14951 }
14952 _ACEOF
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (ac_try="$ac_link"
14955 case "(($ac_try" in
14956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957   *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960   (eval "$ac_link") 2>conftest.er1
14961   ac_status=$?
14962   grep -v '^ *+' conftest.er1 >conftest.err
14963   rm -f conftest.er1
14964   cat conftest.err >&5
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); } &&
14967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14968   { (case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973   (eval "$ac_try") 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; } &&
14977          { ac_try='test -s conftest$ac_exeext'
14978   { (case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983   (eval "$ac_try") 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); }; }; then
14987   eval "$as_ac_var=yes"
14988 else
14989   echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992         eval "$as_ac_var=no"
14993 fi
14994
14995 rm -f core conftest.err conftest.$ac_objext \
14996       conftest$ac_exeext conftest.$ac_ext
14997 fi
14998 ac_res=`eval echo '${'$as_ac_var'}'`
14999                { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15001 if test `eval echo '${'$as_ac_var'}'` = yes; then
15002   cat >>confdefs.h <<_ACEOF
15003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15004 _ACEOF
15005
15006 fi
15007 done
15008
15009 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15010 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15011 if test "${llvm_cv_c_printf_a+set}" = set; then
15012   echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014   ac_ext=c
15015 ac_cpp='$CPP $CPPFLAGS'
15016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15019
15020  if test "$cross_compiling" = yes; then
15021   llvmac_cv_c_printf_a=no
15022 else
15023   cat >conftest.$ac_ext <<_ACEOF
15024
15025   /* confdefs.h.  */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h.  */
15030
15031 #include <stdio.h>
15032 #include <stdlib.h>
15033
15034 int
15035 main ()
15036 {
15037
15038 volatile double A, B;
15039 char Buffer[100];
15040 A = 1;
15041 A /= 10.0;
15042 sprintf(Buffer, "%a", A);
15043 B = atof(Buffer);
15044 if (A != B)
15045   return (1);
15046 if (A != 0x1.999999999999ap-4)
15047   return (1);
15048 return (0);
15049   ;
15050   return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest$ac_exeext
15054 if { (ac_try="$ac_link"
15055 case "(($ac_try" in
15056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057   *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060   (eval "$ac_link") 2>&5
15061   ac_status=$?
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15064   { (case "(($ac_try" in
15065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066   *) ac_try_echo=$ac_try;;
15067 esac
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069   (eval "$ac_try") 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); }; }; then
15073   llvm_cv_c_printf_a=yes
15074 else
15075   echo "$as_me: program exited with status $ac_status" >&5
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15078
15079 ( exit $ac_status )
15080 llvmac_cv_c_printf_a=no
15081 fi
15082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15083 fi
15084
15085
15086  ac_ext=c
15087 ac_cpp='$CPP $CPPFLAGS'
15088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15091
15092 fi
15093 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15094 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15095  if test "$llvm_cv_c_printf_a" = "yes"; then
15096
15097 cat >>confdefs.h <<\_ACEOF
15098 #define HAVE_PRINTF_A 1
15099 _ACEOF
15100
15101  fi
15102
15103
15104
15105   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15106 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15107 if test "${ac_cv_func_rand48+set}" = set; then
15108   echo $ECHO_N "(cached) $ECHO_C" >&6
15109 else
15110
15111     ac_ext=cpp
15112 ac_cpp='$CXXCPP $CPPFLAGS'
15113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15116
15117     cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123 #include <stdlib.h>
15124 int
15125 main ()
15126 {
15127 srand48(0);lrand48();drand48();
15128   ;
15129   return 0;
15130 }
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_compile") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } &&
15146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15147   { (case "(($ac_try" in
15148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149   *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152   (eval "$ac_try") 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; } &&
15156          { ac_try='test -s conftest.$ac_objext'
15157   { (case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_try") 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; }; then
15166   ac_cv_func_rand48=yes
15167 else
15168   echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171         ac_cv_func_rand48=no
15172 fi
15173
15174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15175     ac_ext=c
15176 ac_cpp='$CPP $CPPFLAGS'
15177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15180
15181
15182 fi
15183 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15184 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15185
15186 if test "$ac_cv_func_rand48" = "yes" ; then
15187
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_RAND48 1
15190 _ACEOF
15191
15192 fi
15193
15194
15195 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15196 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15197 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   cat >conftest.$ac_ext <<_ACEOF
15201 /* confdefs.h.  */
15202 _ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h.  */
15206 $ac_includes_default
15207 int
15208 main ()
15209 {
15210 #ifndef arc4random
15211   char *p = (char *) arc4random;
15212   return !p;
15213 #endif
15214
15215   ;
15216   return 0;
15217 }
15218 _ACEOF
15219 rm -f conftest.$ac_objext
15220 if { (ac_try="$ac_compile"
15221 case "(($ac_try" in
15222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223   *) ac_try_echo=$ac_try;;
15224 esac
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226   (eval "$ac_compile") 2>conftest.er1
15227   ac_status=$?
15228   grep -v '^ *+' conftest.er1 >conftest.err
15229   rm -f conftest.er1
15230   cat conftest.err >&5
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); } &&
15233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15234   { (case "(($ac_try" in
15235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236   *) ac_try_echo=$ac_try;;
15237 esac
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239   (eval "$ac_try") 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); }; } &&
15243          { ac_try='test -s conftest.$ac_objext'
15244   { (case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_try") 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; }; then
15253   ac_cv_have_decl_arc4random=yes
15254 else
15255   echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258         ac_cv_have_decl_arc4random=no
15259 fi
15260
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262 fi
15263 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15264 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15265 if test $ac_cv_have_decl_arc4random = yes; then
15266
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_DECL_ARC4RANDOM 1
15269 _ACEOF
15270
15271
15272 else
15273   cat >>confdefs.h <<_ACEOF
15274 #define HAVE_DECL_ARC4RANDOM 0
15275 _ACEOF
15276
15277
15278 fi
15279
15280
15281
15282 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15283 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15284 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15285   echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287   cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h.  */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h.  */
15293 $ac_includes_default
15294 int
15295 main ()
15296 {
15297 #ifndef strerror_s
15298   char *p = (char *) strerror_s;
15299   return !p;
15300 #endif
15301
15302   ;
15303   return 0;
15304 }
15305 _ACEOF
15306 rm -f conftest.$ac_objext
15307 if { (ac_try="$ac_compile"
15308 case "(($ac_try" in
15309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310   *) ac_try_echo=$ac_try;;
15311 esac
15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313   (eval "$ac_compile") 2>conftest.er1
15314   ac_status=$?
15315   grep -v '^ *+' conftest.er1 >conftest.err
15316   rm -f conftest.er1
15317   cat conftest.err >&5
15318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); } &&
15320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15321   { (case "(($ac_try" in
15322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323   *) ac_try_echo=$ac_try;;
15324 esac
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326   (eval "$ac_try") 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; } &&
15330          { ac_try='test -s conftest.$ac_objext'
15331   { (case "(($ac_try" in
15332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333   *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336   (eval "$ac_try") 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; }; then
15340   ac_cv_have_decl_strerror_s=yes
15341 else
15342   echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15344
15345         ac_cv_have_decl_strerror_s=no
15346 fi
15347
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 fi
15350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15351 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15352 if test $ac_cv_have_decl_strerror_s = yes; then
15353
15354 cat >>confdefs.h <<_ACEOF
15355 #define HAVE_DECL_STRERROR_S 1
15356 _ACEOF
15357
15358
15359 else
15360   cat >>confdefs.h <<_ACEOF
15361 #define HAVE_DECL_STRERROR_S 0
15362 _ACEOF
15363
15364
15365 fi
15366
15367
15368
15369 if test "$llvm_cv_os_type" = "MingW" ; then
15370   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15371 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15372 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   ac_check_lib_save_LIBS=$LIBS
15376 LIBS="-lgcc  $LIBS"
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h.  */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h.  */
15383
15384 /* Override any GCC internal prototype to avoid an error.
15385    Use char because int might match the return type of a GCC
15386    builtin and then its argument prototype would still apply.  */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char _alloca ();
15391 int
15392 main ()
15393 {
15394 return _alloca ();
15395   ;
15396   return 0;
15397 }
15398 _ACEOF
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403   *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406   (eval "$ac_link") 2>conftest.er1
15407   ac_status=$?
15408   grep -v '^ *+' conftest.er1 >conftest.err
15409   rm -f conftest.er1
15410   cat conftest.err >&5
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); } &&
15413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15414   { (case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419   (eval "$ac_try") 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); }; } &&
15423          { ac_try='test -s conftest$ac_exeext'
15424   { (case "(($ac_try" in
15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426   *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429   (eval "$ac_try") 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; }; then
15433   ac_cv_lib_gcc__alloca=yes
15434 else
15435   echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15437
15438         ac_cv_lib_gcc__alloca=no
15439 fi
15440
15441 rm -f core conftest.err conftest.$ac_objext \
15442       conftest$ac_exeext conftest.$ac_ext
15443 LIBS=$ac_check_lib_save_LIBS
15444 fi
15445 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15446 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15447 if test $ac_cv_lib_gcc__alloca = yes; then
15448
15449 cat >>confdefs.h <<\_ACEOF
15450 #define HAVE__ALLOCA 1
15451 _ACEOF
15452
15453 fi
15454
15455   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15456 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15457 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460   ac_check_lib_save_LIBS=$LIBS
15461 LIBS="-lgcc  $LIBS"
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468
15469 /* Override any GCC internal prototype to avoid an error.
15470    Use char because int might match the return type of a GCC
15471    builtin and then its argument prototype would still apply.  */
15472 #ifdef __cplusplus
15473 extern "C"
15474 #endif
15475 char __alloca ();
15476 int
15477 main ()
15478 {
15479 return __alloca ();
15480   ;
15481   return 0;
15482 }
15483 _ACEOF
15484 rm -f conftest.$ac_objext conftest$ac_exeext
15485 if { (ac_try="$ac_link"
15486 case "(($ac_try" in
15487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488   *) ac_try_echo=$ac_try;;
15489 esac
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491   (eval "$ac_link") 2>conftest.er1
15492   ac_status=$?
15493   grep -v '^ *+' conftest.er1 >conftest.err
15494   rm -f conftest.er1
15495   cat conftest.err >&5
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); } &&
15498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499   { (case "(($ac_try" in
15500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501   *) ac_try_echo=$ac_try;;
15502 esac
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504   (eval "$ac_try") 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; } &&
15508          { ac_try='test -s conftest$ac_exeext'
15509   { (case "(($ac_try" in
15510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511   *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514   (eval "$ac_try") 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   ac_cv_lib_gcc___alloca=yes
15519 else
15520   echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523         ac_cv_lib_gcc___alloca=no
15524 fi
15525
15526 rm -f core conftest.err conftest.$ac_objext \
15527       conftest$ac_exeext conftest.$ac_ext
15528 LIBS=$ac_check_lib_save_LIBS
15529 fi
15530 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15531 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15532 if test $ac_cv_lib_gcc___alloca = yes; then
15533
15534 cat >>confdefs.h <<\_ACEOF
15535 #define HAVE___ALLOCA 1
15536 _ACEOF
15537
15538 fi
15539
15540   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15541 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15542 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15543   echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545   ac_check_lib_save_LIBS=$LIBS
15546 LIBS="-lgcc  $LIBS"
15547 cat >conftest.$ac_ext <<_ACEOF
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553
15554 /* Override any GCC internal prototype to avoid an error.
15555    Use char because int might match the return type of a GCC
15556    builtin and then its argument prototype would still apply.  */
15557 #ifdef __cplusplus
15558 extern "C"
15559 #endif
15560 char __chkstk ();
15561 int
15562 main ()
15563 {
15564 return __chkstk ();
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest.$ac_objext conftest$ac_exeext
15570 if { (ac_try="$ac_link"
15571 case "(($ac_try" in
15572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573   *) ac_try_echo=$ac_try;;
15574 esac
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576   (eval "$ac_link") 2>conftest.er1
15577   ac_status=$?
15578   grep -v '^ *+' conftest.er1 >conftest.err
15579   rm -f conftest.er1
15580   cat conftest.err >&5
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); } &&
15583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15584   { (case "(($ac_try" in
15585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586   *) ac_try_echo=$ac_try;;
15587 esac
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589   (eval "$ac_try") 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; } &&
15593          { ac_try='test -s conftest$ac_exeext'
15594   { (case "(($ac_try" in
15595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596   *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599   (eval "$ac_try") 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); }; }; then
15603   ac_cv_lib_gcc___chkstk=yes
15604 else
15605   echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608         ac_cv_lib_gcc___chkstk=no
15609 fi
15610
15611 rm -f core conftest.err conftest.$ac_objext \
15612       conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_check_lib_save_LIBS
15614 fi
15615 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15616 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15617 if test $ac_cv_lib_gcc___chkstk = yes; then
15618
15619 cat >>confdefs.h <<\_ACEOF
15620 #define HAVE___CHKSTK 1
15621 _ACEOF
15622
15623 fi
15624
15625   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15626 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15627 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15628   echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630   ac_check_lib_save_LIBS=$LIBS
15631 LIBS="-lgcc  $LIBS"
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638
15639 /* Override any GCC internal prototype to avoid an error.
15640    Use char because int might match the return type of a GCC
15641    builtin and then its argument prototype would still apply.  */
15642 #ifdef __cplusplus
15643 extern "C"
15644 #endif
15645 char __chkstk_ms ();
15646 int
15647 main ()
15648 {
15649 return __chkstk_ms ();
15650   ;
15651   return 0;
15652 }
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_link") 2>conftest.er1
15662   ac_status=$?
15663   grep -v '^ *+' conftest.er1 >conftest.err
15664   rm -f conftest.er1
15665   cat conftest.err >&5
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); } &&
15668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15669   { (case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_try") 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; } &&
15678          { ac_try='test -s conftest$ac_exeext'
15679   { (case "(($ac_try" in
15680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681   *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684   (eval "$ac_try") 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   ac_cv_lib_gcc___chkstk_ms=yes
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693         ac_cv_lib_gcc___chkstk_ms=no
15694 fi
15695
15696 rm -f core conftest.err conftest.$ac_objext \
15697       conftest$ac_exeext conftest.$ac_ext
15698 LIBS=$ac_check_lib_save_LIBS
15699 fi
15700 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15701 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15702 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15703
15704 cat >>confdefs.h <<\_ACEOF
15705 #define HAVE___CHKSTK_MS 1
15706 _ACEOF
15707
15708 fi
15709
15710   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15711 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15712 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15713   echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715   ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lgcc  $LIBS"
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h.  */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h.  */
15723
15724 /* Override any GCC internal prototype to avoid an error.
15725    Use char because int might match the return type of a GCC
15726    builtin and then its argument prototype would still apply.  */
15727 #ifdef __cplusplus
15728 extern "C"
15729 #endif
15730 char ___chkstk ();
15731 int
15732 main ()
15733 {
15734 return ___chkstk ();
15735   ;
15736   return 0;
15737 }
15738 _ACEOF
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743   *) ac_try_echo=$ac_try;;
15744 esac
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746   (eval "$ac_link") 2>conftest.er1
15747   ac_status=$?
15748   grep -v '^ *+' conftest.er1 >conftest.err
15749   rm -f conftest.er1
15750   cat conftest.err >&5
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); } &&
15753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15754   { (case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_try") 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; } &&
15763          { ac_try='test -s conftest$ac_exeext'
15764   { (case "(($ac_try" in
15765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766   *) ac_try_echo=$ac_try;;
15767 esac
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769   (eval "$ac_try") 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; }; then
15773   ac_cv_lib_gcc____chkstk=yes
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778         ac_cv_lib_gcc____chkstk=no
15779 fi
15780
15781 rm -f core conftest.err conftest.$ac_objext \
15782       conftest$ac_exeext conftest.$ac_ext
15783 LIBS=$ac_check_lib_save_LIBS
15784 fi
15785 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15786 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15787 if test $ac_cv_lib_gcc____chkstk = yes; then
15788
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE____CHKSTK 1
15791 _ACEOF
15792
15793 fi
15794
15795   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15796 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15797 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15798   echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800   ac_check_lib_save_LIBS=$LIBS
15801 LIBS="-lgcc  $LIBS"
15802 cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h.  */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h.  */
15808
15809 /* Override any GCC internal prototype to avoid an error.
15810    Use char because int might match the return type of a GCC
15811    builtin and then its argument prototype would still apply.  */
15812 #ifdef __cplusplus
15813 extern "C"
15814 #endif
15815 char ___chkstk_ms ();
15816 int
15817 main ()
15818 {
15819 return ___chkstk_ms ();
15820   ;
15821   return 0;
15822 }
15823 _ACEOF
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828   *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831   (eval "$ac_link") 2>conftest.er1
15832   ac_status=$?
15833   grep -v '^ *+' conftest.er1 >conftest.err
15834   rm -f conftest.er1
15835   cat conftest.err >&5
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); } &&
15838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15839   { (case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_try") 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; } &&
15848          { ac_try='test -s conftest$ac_exeext'
15849   { (case "(($ac_try" in
15850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851   *) ac_try_echo=$ac_try;;
15852 esac
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854   (eval "$ac_try") 2>&5
15855   ac_status=$?
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); }; }; then
15858   ac_cv_lib_gcc____chkstk_ms=yes
15859 else
15860   echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15862
15863         ac_cv_lib_gcc____chkstk_ms=no
15864 fi
15865
15866 rm -f core conftest.err conftest.$ac_objext \
15867       conftest$ac_exeext conftest.$ac_ext
15868 LIBS=$ac_check_lib_save_LIBS
15869 fi
15870 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15871 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15872 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15873
15874 cat >>confdefs.h <<\_ACEOF
15875 #define HAVE____CHKSTK_MS 1
15876 _ACEOF
15877
15878 fi
15879
15880
15881   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15882 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15883 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15884   echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886   ac_check_lib_save_LIBS=$LIBS
15887 LIBS="-lgcc  $LIBS"
15888 cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h.  */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h.  */
15894
15895 /* Override any GCC internal prototype to avoid an error.
15896    Use char because int might match the return type of a GCC
15897    builtin and then its argument prototype would still apply.  */
15898 #ifdef __cplusplus
15899 extern "C"
15900 #endif
15901 char __ashldi3 ();
15902 int
15903 main ()
15904 {
15905 return __ashldi3 ();
15906   ;
15907   return 0;
15908 }
15909 _ACEOF
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (ac_try="$ac_link"
15912 case "(($ac_try" in
15913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914   *) ac_try_echo=$ac_try;;
15915 esac
15916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15917   (eval "$ac_link") 2>conftest.er1
15918   ac_status=$?
15919   grep -v '^ *+' conftest.er1 >conftest.err
15920   rm -f conftest.er1
15921   cat conftest.err >&5
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); } &&
15924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15925   { (case "(($ac_try" in
15926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927   *) ac_try_echo=$ac_try;;
15928 esac
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930   (eval "$ac_try") 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; } &&
15934          { ac_try='test -s conftest$ac_exeext'
15935   { (case "(($ac_try" in
15936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937   *) ac_try_echo=$ac_try;;
15938 esac
15939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15940   (eval "$ac_try") 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); }; }; then
15944   ac_cv_lib_gcc___ashldi3=yes
15945 else
15946   echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949         ac_cv_lib_gcc___ashldi3=no
15950 fi
15951
15952 rm -f core conftest.err conftest.$ac_objext \
15953       conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15955 fi
15956 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15957 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15958 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15959
15960 cat >>confdefs.h <<\_ACEOF
15961 #define HAVE___ASHLDI3 1
15962 _ACEOF
15963
15964 fi
15965
15966   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15967 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15968 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15969   echo $ECHO_N "(cached) $ECHO_C" >&6
15970 else
15971   ac_check_lib_save_LIBS=$LIBS
15972 LIBS="-lgcc  $LIBS"
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979
15980 /* Override any GCC internal prototype to avoid an error.
15981    Use char because int might match the return type of a GCC
15982    builtin and then its argument prototype would still apply.  */
15983 #ifdef __cplusplus
15984 extern "C"
15985 #endif
15986 char __ashrdi3 ();
15987 int
15988 main ()
15989 {
15990 return __ashrdi3 ();
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999   *) ac_try_echo=$ac_try;;
16000 esac
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002   (eval "$ac_link") 2>conftest.er1
16003   ac_status=$?
16004   grep -v '^ *+' conftest.er1 >conftest.err
16005   rm -f conftest.er1
16006   cat conftest.err >&5
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } &&
16009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16010   { (case "(($ac_try" in
16011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012   *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015   (eval "$ac_try") 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; } &&
16019          { ac_try='test -s conftest$ac_exeext'
16020   { (case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_try") 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; }; then
16029   ac_cv_lib_gcc___ashrdi3=yes
16030 else
16031   echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034         ac_cv_lib_gcc___ashrdi3=no
16035 fi
16036
16037 rm -f core conftest.err conftest.$ac_objext \
16038       conftest$ac_exeext conftest.$ac_ext
16039 LIBS=$ac_check_lib_save_LIBS
16040 fi
16041 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16042 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16043 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16044
16045 cat >>confdefs.h <<\_ACEOF
16046 #define HAVE___ASHRDI3 1
16047 _ACEOF
16048
16049 fi
16050
16051   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16052 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16053 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16054   echo $ECHO_N "(cached) $ECHO_C" >&6
16055 else
16056   ac_check_lib_save_LIBS=$LIBS
16057 LIBS="-lgcc  $LIBS"
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h.  */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h.  */
16064
16065 /* Override any GCC internal prototype to avoid an error.
16066    Use char because int might match the return type of a GCC
16067    builtin and then its argument prototype would still apply.  */
16068 #ifdef __cplusplus
16069 extern "C"
16070 #endif
16071 char __divdi3 ();
16072 int
16073 main ()
16074 {
16075 return __divdi3 ();
16076   ;
16077   return 0;
16078 }
16079 _ACEOF
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (ac_try="$ac_link"
16082 case "(($ac_try" in
16083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084   *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087   (eval "$ac_link") 2>conftest.er1
16088   ac_status=$?
16089   grep -v '^ *+' conftest.er1 >conftest.err
16090   rm -f conftest.er1
16091   cat conftest.err >&5
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); } &&
16094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16095   { (case "(($ac_try" in
16096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097   *) ac_try_echo=$ac_try;;
16098 esac
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100   (eval "$ac_try") 2>&5
16101   ac_status=$?
16102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); }; } &&
16104          { ac_try='test -s conftest$ac_exeext'
16105   { (case "(($ac_try" in
16106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107   *) ac_try_echo=$ac_try;;
16108 esac
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110   (eval "$ac_try") 2>&5
16111   ac_status=$?
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); }; }; then
16114   ac_cv_lib_gcc___divdi3=yes
16115 else
16116   echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119         ac_cv_lib_gcc___divdi3=no
16120 fi
16121
16122 rm -f core conftest.err conftest.$ac_objext \
16123       conftest$ac_exeext conftest.$ac_ext
16124 LIBS=$ac_check_lib_save_LIBS
16125 fi
16126 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16127 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16128 if test $ac_cv_lib_gcc___divdi3 = yes; then
16129
16130 cat >>confdefs.h <<\_ACEOF
16131 #define HAVE___DIVDI3 1
16132 _ACEOF
16133
16134 fi
16135
16136   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16137 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16138 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16139   echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141   ac_check_lib_save_LIBS=$LIBS
16142 LIBS="-lgcc  $LIBS"
16143 cat >conftest.$ac_ext <<_ACEOF
16144 /* confdefs.h.  */
16145 _ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h.  */
16149
16150 /* Override any GCC internal prototype to avoid an error.
16151    Use char because int might match the return type of a GCC
16152    builtin and then its argument prototype would still apply.  */
16153 #ifdef __cplusplus
16154 extern "C"
16155 #endif
16156 char __fixdfdi ();
16157 int
16158 main ()
16159 {
16160 return __fixdfdi ();
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext conftest$ac_exeext
16166 if { (ac_try="$ac_link"
16167 case "(($ac_try" in
16168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169   *) ac_try_echo=$ac_try;;
16170 esac
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172   (eval "$ac_link") 2>conftest.er1
16173   ac_status=$?
16174   grep -v '^ *+' conftest.er1 >conftest.err
16175   rm -f conftest.er1
16176   cat conftest.err >&5
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); } &&
16179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16180   { (case "(($ac_try" in
16181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182   *) ac_try_echo=$ac_try;;
16183 esac
16184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185   (eval "$ac_try") 2>&5
16186   ac_status=$?
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); }; } &&
16189          { ac_try='test -s conftest$ac_exeext'
16190   { (case "(($ac_try" in
16191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192   *) ac_try_echo=$ac_try;;
16193 esac
16194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16195   (eval "$ac_try") 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; }; then
16199   ac_cv_lib_gcc___fixdfdi=yes
16200 else
16201   echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204         ac_cv_lib_gcc___fixdfdi=no
16205 fi
16206
16207 rm -f core conftest.err conftest.$ac_objext \
16208       conftest$ac_exeext conftest.$ac_ext
16209 LIBS=$ac_check_lib_save_LIBS
16210 fi
16211 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16212 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16213 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16214
16215 cat >>confdefs.h <<\_ACEOF
16216 #define HAVE___FIXDFDI 1
16217 _ACEOF
16218
16219 fi
16220
16221   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16222 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16223 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16224   echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226   ac_check_lib_save_LIBS=$LIBS
16227 LIBS="-lgcc  $LIBS"
16228 cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h.  */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h.  */
16234
16235 /* Override any GCC internal prototype to avoid an error.
16236    Use char because int might match the return type of a GCC
16237    builtin and then its argument prototype would still apply.  */
16238 #ifdef __cplusplus
16239 extern "C"
16240 #endif
16241 char __fixsfdi ();
16242 int
16243 main ()
16244 {
16245 return __fixsfdi ();
16246   ;
16247   return 0;
16248 }
16249 _ACEOF
16250 rm -f conftest.$ac_objext conftest$ac_exeext
16251 if { (ac_try="$ac_link"
16252 case "(($ac_try" in
16253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254   *) ac_try_echo=$ac_try;;
16255 esac
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257   (eval "$ac_link") 2>conftest.er1
16258   ac_status=$?
16259   grep -v '^ *+' conftest.er1 >conftest.err
16260   rm -f conftest.er1
16261   cat conftest.err >&5
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); } &&
16264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16265   { (case "(($ac_try" in
16266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267   *) ac_try_echo=$ac_try;;
16268 esac
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270   (eval "$ac_try") 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); }; } &&
16274          { ac_try='test -s conftest$ac_exeext'
16275   { (case "(($ac_try" in
16276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277   *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280   (eval "$ac_try") 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); }; }; then
16284   ac_cv_lib_gcc___fixsfdi=yes
16285 else
16286   echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16288
16289         ac_cv_lib_gcc___fixsfdi=no
16290 fi
16291
16292 rm -f core conftest.err conftest.$ac_objext \
16293       conftest$ac_exeext conftest.$ac_ext
16294 LIBS=$ac_check_lib_save_LIBS
16295 fi
16296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16297 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16298 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16299
16300 cat >>confdefs.h <<\_ACEOF
16301 #define HAVE___FIXSFDI 1
16302 _ACEOF
16303
16304 fi
16305
16306   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16307 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16308 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16309   echo $ECHO_N "(cached) $ECHO_C" >&6
16310 else
16311   ac_check_lib_save_LIBS=$LIBS
16312 LIBS="-lgcc  $LIBS"
16313 cat >conftest.$ac_ext <<_ACEOF
16314 /* confdefs.h.  */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h.  */
16319
16320 /* Override any GCC internal prototype to avoid an error.
16321    Use char because int might match the return type of a GCC
16322    builtin and then its argument prototype would still apply.  */
16323 #ifdef __cplusplus
16324 extern "C"
16325 #endif
16326 char __floatdidf ();
16327 int
16328 main ()
16329 {
16330 return __floatdidf ();
16331   ;
16332   return 0;
16333 }
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339   *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342   (eval "$ac_link") 2>conftest.er1
16343   ac_status=$?
16344   grep -v '^ *+' conftest.er1 >conftest.err
16345   rm -f conftest.er1
16346   cat conftest.err >&5
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } &&
16349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350   { (case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_try") 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; } &&
16359          { ac_try='test -s conftest$ac_exeext'
16360   { (case "(($ac_try" in
16361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362   *) ac_try_echo=$ac_try;;
16363 esac
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365   (eval "$ac_try") 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; }; then
16369   ac_cv_lib_gcc___floatdidf=yes
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374         ac_cv_lib_gcc___floatdidf=no
16375 fi
16376
16377 rm -f core conftest.err conftest.$ac_objext \
16378       conftest$ac_exeext conftest.$ac_ext
16379 LIBS=$ac_check_lib_save_LIBS
16380 fi
16381 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16382 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16383 if test $ac_cv_lib_gcc___floatdidf = yes; then
16384
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE___FLOATDIDF 1
16387 _ACEOF
16388
16389 fi
16390
16391   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16392 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16393 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16394   echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396   ac_check_lib_save_LIBS=$LIBS
16397 LIBS="-lgcc  $LIBS"
16398 cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404
16405 /* Override any GCC internal prototype to avoid an error.
16406    Use char because int might match the return type of a GCC
16407    builtin and then its argument prototype would still apply.  */
16408 #ifdef __cplusplus
16409 extern "C"
16410 #endif
16411 char __lshrdi3 ();
16412 int
16413 main ()
16414 {
16415 return __lshrdi3 ();
16416   ;
16417   return 0;
16418 }
16419 _ACEOF
16420 rm -f conftest.$ac_objext conftest$ac_exeext
16421 if { (ac_try="$ac_link"
16422 case "(($ac_try" in
16423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424   *) ac_try_echo=$ac_try;;
16425 esac
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427   (eval "$ac_link") 2>conftest.er1
16428   ac_status=$?
16429   grep -v '^ *+' conftest.er1 >conftest.err
16430   rm -f conftest.er1
16431   cat conftest.err >&5
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } &&
16434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16435   { (case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440   (eval "$ac_try") 2>&5
16441   ac_status=$?
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); }; } &&
16444          { ac_try='test -s conftest$ac_exeext'
16445   { (case "(($ac_try" in
16446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447   *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450   (eval "$ac_try") 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); }; }; then
16454   ac_cv_lib_gcc___lshrdi3=yes
16455 else
16456   echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16458
16459         ac_cv_lib_gcc___lshrdi3=no
16460 fi
16461
16462 rm -f core conftest.err conftest.$ac_objext \
16463       conftest$ac_exeext conftest.$ac_ext
16464 LIBS=$ac_check_lib_save_LIBS
16465 fi
16466 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16467 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16468 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16469
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE___LSHRDI3 1
16472 _ACEOF
16473
16474 fi
16475
16476   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16477 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16478 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481   ac_check_lib_save_LIBS=$LIBS
16482 LIBS="-lgcc  $LIBS"
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h.  */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h.  */
16489
16490 /* Override any GCC internal prototype to avoid an error.
16491    Use char because int might match the return type of a GCC
16492    builtin and then its argument prototype would still apply.  */
16493 #ifdef __cplusplus
16494 extern "C"
16495 #endif
16496 char __moddi3 ();
16497 int
16498 main ()
16499 {
16500 return __moddi3 ();
16501   ;
16502   return 0;
16503 }
16504 _ACEOF
16505 rm -f conftest.$ac_objext conftest$ac_exeext
16506 if { (ac_try="$ac_link"
16507 case "(($ac_try" in
16508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509   *) ac_try_echo=$ac_try;;
16510 esac
16511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512   (eval "$ac_link") 2>conftest.er1
16513   ac_status=$?
16514   grep -v '^ *+' conftest.er1 >conftest.err
16515   rm -f conftest.er1
16516   cat conftest.err >&5
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); } &&
16519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16520   { (case "(($ac_try" in
16521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522   *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525   (eval "$ac_try") 2>&5
16526   ac_status=$?
16527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528   (exit $ac_status); }; } &&
16529          { ac_try='test -s conftest$ac_exeext'
16530   { (case "(($ac_try" in
16531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532   *) ac_try_echo=$ac_try;;
16533 esac
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535   (eval "$ac_try") 2>&5
16536   ac_status=$?
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); }; }; then
16539   ac_cv_lib_gcc___moddi3=yes
16540 else
16541   echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16543
16544         ac_cv_lib_gcc___moddi3=no
16545 fi
16546
16547 rm -f core conftest.err conftest.$ac_objext \
16548       conftest$ac_exeext conftest.$ac_ext
16549 LIBS=$ac_check_lib_save_LIBS
16550 fi
16551 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16552 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16553 if test $ac_cv_lib_gcc___moddi3 = yes; then
16554
16555 cat >>confdefs.h <<\_ACEOF
16556 #define HAVE___MODDI3 1
16557 _ACEOF
16558
16559 fi
16560
16561   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16562 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16563 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16564   echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566   ac_check_lib_save_LIBS=$LIBS
16567 LIBS="-lgcc  $LIBS"
16568 cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574
16575 /* Override any GCC internal prototype to avoid an error.
16576    Use char because int might match the return type of a GCC
16577    builtin and then its argument prototype would still apply.  */
16578 #ifdef __cplusplus
16579 extern "C"
16580 #endif
16581 char __udivdi3 ();
16582 int
16583 main ()
16584 {
16585 return __udivdi3 ();
16586   ;
16587   return 0;
16588 }
16589 _ACEOF
16590 rm -f conftest.$ac_objext conftest$ac_exeext
16591 if { (ac_try="$ac_link"
16592 case "(($ac_try" in
16593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594   *) ac_try_echo=$ac_try;;
16595 esac
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597   (eval "$ac_link") 2>conftest.er1
16598   ac_status=$?
16599   grep -v '^ *+' conftest.er1 >conftest.err
16600   rm -f conftest.er1
16601   cat conftest.err >&5
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); } &&
16604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16605   { (case "(($ac_try" in
16606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607   *) ac_try_echo=$ac_try;;
16608 esac
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610   (eval "$ac_try") 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); }; } &&
16614          { ac_try='test -s conftest$ac_exeext'
16615   { (case "(($ac_try" in
16616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617   *) ac_try_echo=$ac_try;;
16618 esac
16619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16620   (eval "$ac_try") 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); }; }; then
16624   ac_cv_lib_gcc___udivdi3=yes
16625 else
16626   echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16628
16629         ac_cv_lib_gcc___udivdi3=no
16630 fi
16631
16632 rm -f core conftest.err conftest.$ac_objext \
16633       conftest$ac_exeext conftest.$ac_ext
16634 LIBS=$ac_check_lib_save_LIBS
16635 fi
16636 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16637 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16638 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16639
16640 cat >>confdefs.h <<\_ACEOF
16641 #define HAVE___UDIVDI3 1
16642 _ACEOF
16643
16644 fi
16645
16646   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16647 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16648 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   ac_check_lib_save_LIBS=$LIBS
16652 LIBS="-lgcc  $LIBS"
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659
16660 /* Override any GCC internal prototype to avoid an error.
16661    Use char because int might match the return type of a GCC
16662    builtin and then its argument prototype would still apply.  */
16663 #ifdef __cplusplus
16664 extern "C"
16665 #endif
16666 char __umoddi3 ();
16667 int
16668 main ()
16669 {
16670 return __umoddi3 ();
16671   ;
16672   return 0;
16673 }
16674 _ACEOF
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (ac_try="$ac_link"
16677 case "(($ac_try" in
16678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679   *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682   (eval "$ac_link") 2>conftest.er1
16683   ac_status=$?
16684   grep -v '^ *+' conftest.er1 >conftest.err
16685   rm -f conftest.er1
16686   cat conftest.err >&5
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); } &&
16689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16690   { (case "(($ac_try" in
16691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692   *) ac_try_echo=$ac_try;;
16693 esac
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695   (eval "$ac_try") 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); }; } &&
16699          { ac_try='test -s conftest$ac_exeext'
16700   { (case "(($ac_try" in
16701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702   *) ac_try_echo=$ac_try;;
16703 esac
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705   (eval "$ac_try") 2>&5
16706   ac_status=$?
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); }; }; then
16709   ac_cv_lib_gcc___umoddi3=yes
16710 else
16711   echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16713
16714         ac_cv_lib_gcc___umoddi3=no
16715 fi
16716
16717 rm -f core conftest.err conftest.$ac_objext \
16718       conftest$ac_exeext conftest.$ac_ext
16719 LIBS=$ac_check_lib_save_LIBS
16720 fi
16721 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16722 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16723 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16724
16725 cat >>confdefs.h <<\_ACEOF
16726 #define HAVE___UMODDI3 1
16727 _ACEOF
16728
16729 fi
16730
16731
16732   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16733 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16734 if test "${ac_cv_lib_gcc___main+set}" = set; then
16735   echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737   ac_check_lib_save_LIBS=$LIBS
16738 LIBS="-lgcc  $LIBS"
16739 cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745
16746 /* Override any GCC internal prototype to avoid an error.
16747    Use char because int might match the return type of a GCC
16748    builtin and then its argument prototype would still apply.  */
16749 #ifdef __cplusplus
16750 extern "C"
16751 #endif
16752 char __main ();
16753 int
16754 main ()
16755 {
16756 return __main ();
16757   ;
16758   return 0;
16759 }
16760 _ACEOF
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (ac_try="$ac_link"
16763 case "(($ac_try" in
16764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765   *) ac_try_echo=$ac_try;;
16766 esac
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768   (eval "$ac_link") 2>conftest.er1
16769   ac_status=$?
16770   grep -v '^ *+' conftest.er1 >conftest.err
16771   rm -f conftest.er1
16772   cat conftest.err >&5
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); } &&
16775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16776   { (case "(($ac_try" in
16777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778   *) ac_try_echo=$ac_try;;
16779 esac
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781   (eval "$ac_try") 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; } &&
16785          { ac_try='test -s conftest$ac_exeext'
16786   { (case "(($ac_try" in
16787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788   *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791   (eval "$ac_try") 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; }; then
16795   ac_cv_lib_gcc___main=yes
16796 else
16797   echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800         ac_cv_lib_gcc___main=no
16801 fi
16802
16803 rm -f core conftest.err conftest.$ac_objext \
16804       conftest$ac_exeext conftest.$ac_ext
16805 LIBS=$ac_check_lib_save_LIBS
16806 fi
16807 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16808 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16809 if test $ac_cv_lib_gcc___main = yes; then
16810
16811 cat >>confdefs.h <<\_ACEOF
16812 #define HAVE___MAIN 1
16813 _ACEOF
16814
16815 fi
16816
16817   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16818 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16819 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16820   echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822   ac_check_lib_save_LIBS=$LIBS
16823 LIBS="-lgcc  $LIBS"
16824 cat >conftest.$ac_ext <<_ACEOF
16825 /* confdefs.h.  */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h.  */
16830
16831 /* Override any GCC internal prototype to avoid an error.
16832    Use char because int might match the return type of a GCC
16833    builtin and then its argument prototype would still apply.  */
16834 #ifdef __cplusplus
16835 extern "C"
16836 #endif
16837 char __cmpdi2 ();
16838 int
16839 main ()
16840 {
16841 return __cmpdi2 ();
16842   ;
16843   return 0;
16844 }
16845 _ACEOF
16846 rm -f conftest.$ac_objext conftest$ac_exeext
16847 if { (ac_try="$ac_link"
16848 case "(($ac_try" in
16849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850   *) ac_try_echo=$ac_try;;
16851 esac
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853   (eval "$ac_link") 2>conftest.er1
16854   ac_status=$?
16855   grep -v '^ *+' conftest.er1 >conftest.err
16856   rm -f conftest.er1
16857   cat conftest.err >&5
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); } &&
16860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16861   { (case "(($ac_try" in
16862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863   *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866   (eval "$ac_try") 2>&5
16867   ac_status=$?
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); }; } &&
16870          { ac_try='test -s conftest$ac_exeext'
16871   { (case "(($ac_try" in
16872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873   *) ac_try_echo=$ac_try;;
16874 esac
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876   (eval "$ac_try") 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; }; then
16880   ac_cv_lib_gcc___cmpdi2=yes
16881 else
16882   echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16884
16885         ac_cv_lib_gcc___cmpdi2=no
16886 fi
16887
16888 rm -f core conftest.err conftest.$ac_objext \
16889       conftest$ac_exeext conftest.$ac_ext
16890 LIBS=$ac_check_lib_save_LIBS
16891 fi
16892 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16893 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16894 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16895
16896 cat >>confdefs.h <<\_ACEOF
16897 #define HAVE___CMPDI2 1
16898 _ACEOF
16899
16900 fi
16901
16902 fi
16903
16904 if test "$llvm_cv_os_type" = "MingW" ; then
16905   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16906 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16907   cat >conftest.$ac_ext <<_ACEOF
16908
16909   /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914
16915     #include <windows.h>
16916     #include <imagehlp.h>
16917     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16918     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16919
16920
16921 _ACEOF
16922 rm -f conftest.$ac_objext
16923 if { (ac_try="$ac_compile"
16924 case "(($ac_try" in
16925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926   *) ac_try_echo=$ac_try;;
16927 esac
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929   (eval "$ac_compile") 2>conftest.er1
16930   ac_status=$?
16931   grep -v '^ *+' conftest.er1 >conftest.err
16932   rm -f conftest.er1
16933   cat conftest.err >&5
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937   { (case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_try") 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }; } &&
16946          { ac_try='test -s conftest.$ac_objext'
16947   { (case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_try") 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }; }; then
16956
16957   { echo "$as_me:$LINENO: result: yes" >&5
16958 echo "${ECHO_T}yes" >&6; }
16959   llvm_cv_win32_elmcb_pcstr="PCSTR"
16960
16961 else
16962   echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965
16966   { echo "$as_me:$LINENO: result: no" >&5
16967 echo "${ECHO_T}no" >&6; }
16968   llvm_cv_win32_elmcb_pcstr="PSTR"
16969
16970 fi
16971
16972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16973
16974 cat >>confdefs.h <<_ACEOF
16975 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16976 _ACEOF
16977
16978 fi
16979
16980 if test "$llvm_cv_platform_type" = "Unix" ; then
16981
16982
16983 for ac_header in stdlib.h unistd.h
16984 do
16985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16987   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16990   echo $ECHO_N "(cached) $ECHO_C" >&6
16991 fi
16992 ac_res=`eval echo '${'$as_ac_Header'}'`
16993                { echo "$as_me:$LINENO: result: $ac_res" >&5
16994 echo "${ECHO_T}$ac_res" >&6; }
16995 else
16996   # Is the header compilable?
16997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16999 cat >conftest.$ac_ext <<_ACEOF
17000 /* confdefs.h.  */
17001 _ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h.  */
17005 $ac_includes_default
17006 #include <$ac_header>
17007 _ACEOF
17008 rm -f conftest.$ac_objext
17009 if { (ac_try="$ac_compile"
17010 case "(($ac_try" in
17011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012   *) ac_try_echo=$ac_try;;
17013 esac
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015   (eval "$ac_compile") 2>conftest.er1
17016   ac_status=$?
17017   grep -v '^ *+' conftest.er1 >conftest.err
17018   rm -f conftest.er1
17019   cat conftest.err >&5
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); } &&
17022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023   { (case "(($ac_try" in
17024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025   *) ac_try_echo=$ac_try;;
17026 esac
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028   (eval "$ac_try") 2>&5
17029   ac_status=$?
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); }; } &&
17032          { ac_try='test -s conftest.$ac_objext'
17033   { (case "(($ac_try" in
17034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035   *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038   (eval "$ac_try") 2>&5
17039   ac_status=$?
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); }; }; then
17042   ac_header_compiler=yes
17043 else
17044   echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047         ac_header_compiler=no
17048 fi
17049
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17052 echo "${ECHO_T}$ac_header_compiler" >&6; }
17053
17054 # Is the header present?
17055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17057 cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063 #include <$ac_header>
17064 _ACEOF
17065 if { (ac_try="$ac_cpp conftest.$ac_ext"
17066 case "(($ac_try" in
17067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068   *) ac_try_echo=$ac_try;;
17069 esac
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17072   ac_status=$?
17073   grep -v '^ *+' conftest.er1 >conftest.err
17074   rm -f conftest.er1
17075   cat conftest.err >&5
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); } >/dev/null; then
17078   if test -s conftest.err; then
17079     ac_cpp_err=$ac_c_preproc_warn_flag
17080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17081   else
17082     ac_cpp_err=
17083   fi
17084 else
17085   ac_cpp_err=yes
17086 fi
17087 if test -z "$ac_cpp_err"; then
17088   ac_header_preproc=yes
17089 else
17090   echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093   ac_header_preproc=no
17094 fi
17095
17096 rm -f conftest.err conftest.$ac_ext
17097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17098 echo "${ECHO_T}$ac_header_preproc" >&6; }
17099
17100 # So?  What about this header?
17101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17102   yes:no: )
17103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17107     ac_header_preproc=yes
17108     ;;
17109   no:yes:* )
17110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17122     ( cat <<\_ASBOX
17123 ## ------------------------------------ ##
17124 ## Report this to http://llvm.org/bugs/ ##
17125 ## ------------------------------------ ##
17126 _ASBOX
17127      ) | sed "s/^/$as_me: WARNING:     /" >&2
17128     ;;
17129 esac
17130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17133   echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135   eval "$as_ac_Header=\$ac_header_preproc"
17136 fi
17137 ac_res=`eval echo '${'$as_ac_Header'}'`
17138                { echo "$as_me:$LINENO: result: $ac_res" >&5
17139 echo "${ECHO_T}$ac_res" >&6; }
17140
17141 fi
17142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17143   cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17145 _ACEOF
17146
17147 fi
17148
17149 done
17150
17151
17152 for ac_func in getpagesize
17153 do
17154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160   cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h.  */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h.  */
17166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17168 #define $ac_func innocuous_$ac_func
17169
17170 /* System header to define __stub macros and hopefully few prototypes,
17171     which can conflict with char $ac_func (); below.
17172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17173     <limits.h> exists even on freestanding compilers.  */
17174
17175 #ifdef __STDC__
17176 # include <limits.h>
17177 #else
17178 # include <assert.h>
17179 #endif
17180
17181 #undef $ac_func
17182
17183 /* Override any GCC internal prototype to avoid an error.
17184    Use char because int might match the return type of a GCC
17185    builtin and then its argument prototype would still apply.  */
17186 #ifdef __cplusplus
17187 extern "C"
17188 #endif
17189 char $ac_func ();
17190 /* The GNU C library defines this for functions which it implements
17191     to always fail with ENOSYS.  Some functions are actually named
17192     something starting with __ and the normal name is an alias.  */
17193 #if defined __stub_$ac_func || defined __stub___$ac_func
17194 choke me
17195 #endif
17196
17197 int
17198 main ()
17199 {
17200 return $ac_func ();
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (ac_try="$ac_link"
17207 case "(($ac_try" in
17208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17209   *) ac_try_echo=$ac_try;;
17210 esac
17211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17212   (eval "$ac_link") 2>conftest.er1
17213   ac_status=$?
17214   grep -v '^ *+' conftest.er1 >conftest.err
17215   rm -f conftest.er1
17216   cat conftest.err >&5
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); } &&
17219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17220   { (case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_try") 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); }; } &&
17229          { ac_try='test -s conftest$ac_exeext'
17230   { (case "(($ac_try" in
17231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232   *) ac_try_echo=$ac_try;;
17233 esac
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235   (eval "$ac_try") 2>&5
17236   ac_status=$?
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); }; }; then
17239   eval "$as_ac_var=yes"
17240 else
17241   echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244         eval "$as_ac_var=no"
17245 fi
17246
17247 rm -f core conftest.err conftest.$ac_objext \
17248       conftest$ac_exeext conftest.$ac_ext
17249 fi
17250 ac_res=`eval echo '${'$as_ac_var'}'`
17251                { echo "$as_me:$LINENO: result: $ac_res" >&5
17252 echo "${ECHO_T}$ac_res" >&6; }
17253 if test `eval echo '${'$as_ac_var'}'` = yes; then
17254   cat >>confdefs.h <<_ACEOF
17255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17256 _ACEOF
17257
17258 fi
17259 done
17260
17261 { echo "$as_me:$LINENO: checking for working mmap" >&5
17262 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17263 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266   if test "$cross_compiling" = yes; then
17267   ac_cv_func_mmap_fixed_mapped=no
17268 else
17269   cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h.  */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h.  */
17275 $ac_includes_default
17276 /* malloc might have been renamed as rpl_malloc. */
17277 #undef malloc
17278
17279 /* Thanks to Mike Haertel and Jim Avera for this test.
17280    Here is a matrix of mmap possibilities:
17281         mmap private not fixed
17282         mmap private fixed at somewhere currently unmapped
17283         mmap private fixed at somewhere already mapped
17284         mmap shared not fixed
17285         mmap shared fixed at somewhere currently unmapped
17286         mmap shared fixed at somewhere already mapped
17287    For private mappings, we should verify that changes cannot be read()
17288    back from the file, nor mmap's back from the file at a different
17289    address.  (There have been systems where private was not correctly
17290    implemented like the infamous i386 svr4.0, and systems where the
17291    VM page cache was not coherent with the file system buffer cache
17292    like early versions of FreeBSD and possibly contemporary NetBSD.)
17293    For shared mappings, we should conversely verify that changes get
17294    propagated back to all the places they're supposed to be.
17295
17296    Grep wants private fixed already mapped.
17297    The main things grep needs to know about mmap are:
17298    * does it exist and is it safe to write into the mmap'd area
17299    * how to use it (BSD variants)  */
17300
17301 #include <fcntl.h>
17302 #include <sys/mman.h>
17303
17304 #if !STDC_HEADERS && !HAVE_STDLIB_H
17305 char *malloc ();
17306 #endif
17307
17308 /* This mess was copied from the GNU getpagesize.h.  */
17309 #if !HAVE_GETPAGESIZE
17310 /* Assume that all systems that can run configure have sys/param.h.  */
17311 # if !HAVE_SYS_PARAM_H
17312 #  define HAVE_SYS_PARAM_H 1
17313 # endif
17314
17315 # ifdef _SC_PAGESIZE
17316 #  define getpagesize() sysconf(_SC_PAGESIZE)
17317 # else /* no _SC_PAGESIZE */
17318 #  if HAVE_SYS_PARAM_H
17319 #   include <sys/param.h>
17320 #   ifdef EXEC_PAGESIZE
17321 #    define getpagesize() EXEC_PAGESIZE
17322 #   else /* no EXEC_PAGESIZE */
17323 #    ifdef NBPG
17324 #     define getpagesize() NBPG * CLSIZE
17325 #     ifndef CLSIZE
17326 #      define CLSIZE 1
17327 #     endif /* no CLSIZE */
17328 #    else /* no NBPG */
17329 #     ifdef NBPC
17330 #      define getpagesize() NBPC
17331 #     else /* no NBPC */
17332 #      ifdef PAGESIZE
17333 #       define getpagesize() PAGESIZE
17334 #      endif /* PAGESIZE */
17335 #     endif /* no NBPC */
17336 #    endif /* no NBPG */
17337 #   endif /* no EXEC_PAGESIZE */
17338 #  else /* no HAVE_SYS_PARAM_H */
17339 #   define getpagesize() 8192   /* punt totally */
17340 #  endif /* no HAVE_SYS_PARAM_H */
17341 # endif /* no _SC_PAGESIZE */
17342
17343 #endif /* no HAVE_GETPAGESIZE */
17344
17345 int
17346 main ()
17347 {
17348   char *data, *data2, *data3;
17349   int i, pagesize;
17350   int fd;
17351
17352   pagesize = getpagesize ();
17353
17354   /* First, make a file with some known garbage in it. */
17355   data = (char *) malloc (pagesize);
17356   if (!data)
17357     return 1;
17358   for (i = 0; i < pagesize; ++i)
17359     *(data + i) = rand ();
17360   umask (0);
17361   fd = creat ("conftest.mmap", 0600);
17362   if (fd < 0)
17363     return 1;
17364   if (write (fd, data, pagesize) != pagesize)
17365     return 1;
17366   close (fd);
17367
17368   /* Next, try to mmap the file at a fixed address which already has
17369      something else allocated at it.  If we can, also make sure that
17370      we see the same garbage.  */
17371   fd = open ("conftest.mmap", O_RDWR);
17372   if (fd < 0)
17373     return 1;
17374   data2 = (char *) malloc (2 * pagesize);
17375   if (!data2)
17376     return 1;
17377   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17378   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17379                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17380     return 1;
17381   for (i = 0; i < pagesize; ++i)
17382     if (*(data + i) != *(data2 + i))
17383       return 1;
17384
17385   /* Finally, make sure that changes to the mapped area do not
17386      percolate back to the file as seen by read().  (This is a bug on
17387      some variants of i386 svr4.0.)  */
17388   for (i = 0; i < pagesize; ++i)
17389     *(data2 + i) = *(data2 + i) + 1;
17390   data3 = (char *) malloc (pagesize);
17391   if (!data3)
17392     return 1;
17393   if (read (fd, data3, pagesize) != pagesize)
17394     return 1;
17395   for (i = 0; i < pagesize; ++i)
17396     if (*(data + i) != *(data3 + i))
17397       return 1;
17398   close (fd);
17399   return 0;
17400 }
17401 _ACEOF
17402 rm -f conftest$ac_exeext
17403 if { (ac_try="$ac_link"
17404 case "(($ac_try" in
17405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406   *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409   (eval "$ac_link") 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17413   { (case "(($ac_try" in
17414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415   *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418   (eval "$ac_try") 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   ac_cv_func_mmap_fixed_mapped=yes
17423 else
17424   echo "$as_me: program exited with status $ac_status" >&5
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428 ( exit $ac_status )
17429 ac_cv_func_mmap_fixed_mapped=no
17430 fi
17431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17432 fi
17433
17434
17435 fi
17436 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17437 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17438 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17439
17440 cat >>confdefs.h <<\_ACEOF
17441 #define HAVE_MMAP 1
17442 _ACEOF
17443
17444 fi
17445 rm -f conftest.mmap
17446
17447   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17448 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17449 if test "${ac_cv_func_mmap_file+set}" = set; then
17450   echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452    ac_ext=c
17453 ac_cpp='$CPP $CPPFLAGS'
17454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17457
17458   if test "$cross_compiling" = yes; then
17459   ac_cv_func_mmap_file=no
17460 else
17461   cat >conftest.$ac_ext <<_ACEOF
17462
17463     /* confdefs.h.  */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h.  */
17468
17469 #include <sys/types.h>
17470 #include <sys/mman.h>
17471 #include <fcntl.h>
17472
17473 int
17474 main ()
17475 {
17476
17477   int fd;
17478   fd = creat ("foo",0777);
17479   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17480   unlink ("foo");
17481   return (fd != (int) MAP_FAILED);
17482   ;
17483   return 0;
17484 }
17485 _ACEOF
17486 rm -f conftest$ac_exeext
17487 if { (ac_try="$ac_link"
17488 case "(($ac_try" in
17489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490   *) ac_try_echo=$ac_try;;
17491 esac
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493   (eval "$ac_link") 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17497   { (case "(($ac_try" in
17498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499   *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502   (eval "$ac_try") 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; }; then
17506   ac_cv_func_mmap_file=yes
17507 else
17508   echo "$as_me: program exited with status $ac_status" >&5
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 ( exit $ac_status )
17513 ac_cv_func_mmap_file=no
17514 fi
17515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17516 fi
17517
17518
17519   ac_ext=c
17520 ac_cpp='$CPP $CPPFLAGS'
17521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17524
17525
17526 fi
17527 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17528 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17529 if test "$ac_cv_func_mmap_file" = yes; then
17530
17531 cat >>confdefs.h <<\_ACEOF
17532 #define HAVE_MMAP_FILE
17533 _ACEOF
17534
17535    MMAP_FILE=yes
17536
17537 fi
17538
17539   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17540 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17541 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17542   echo $ECHO_N "(cached) $ECHO_C" >&6
17543 else
17544   if test "$llvm_cv_os_type" = "Interix" ; then
17545    ac_cv_need_dev_zero_for_mmap=yes
17546  else
17547    ac_cv_need_dev_zero_for_mmap=no
17548  fi
17549
17550 fi
17551 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17552 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17553 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17554
17555 cat >>confdefs.h <<\_ACEOF
17556 #define NEED_DEV_ZERO_FOR_MMAP 1
17557 _ACEOF
17558
17559 fi
17560
17561   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17562   then
17563     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17564 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17565   fi
17566   if test "$ac_cv_func_mmap_file" = "no"
17567   then
17568     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17569 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17570   fi
17571 fi
17572
17573 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17574 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17575 ac_ext=cpp
17576 ac_cpp='$CXXCPP $CPPFLAGS'
17577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17580
17581 cat >conftest.$ac_ext <<_ACEOF
17582
17583   /* confdefs.h.  */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h.  */
17588
17589     int main() {
17590       volatile unsigned long val = 1;
17591       __sync_synchronize();
17592       __sync_val_compare_and_swap(&val, 1, 0);
17593       __sync_add_and_fetch(&val, 1);
17594       __sync_sub_and_fetch(&val, 1);
17595       return 0;
17596     }
17597
17598
17599 _ACEOF
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604   *) ac_try_echo=$ac_try;;
17605 esac
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607   (eval "$ac_link") 2>conftest.er1
17608   ac_status=$?
17609   grep -v '^ *+' conftest.er1 >conftest.err
17610   rm -f conftest.er1
17611   cat conftest.err >&5
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); } &&
17614          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17615   { (case "(($ac_try" in
17616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617   *) ac_try_echo=$ac_try;;
17618 esac
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620   (eval "$ac_try") 2>&5
17621   ac_status=$?
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); }; } &&
17624          { ac_try='test -s conftest$ac_exeext'
17625   { (case "(($ac_try" in
17626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627   *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630   (eval "$ac_try") 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; }; then
17634
17635   { echo "$as_me:$LINENO: result: yes" >&5
17636 echo "${ECHO_T}yes" >&6; }
17637
17638 cat >>confdefs.h <<\_ACEOF
17639 #define LLVM_HAS_ATOMICS 1
17640 _ACEOF
17641
17642
17643 else
17644   echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17646
17647
17648   { echo "$as_me:$LINENO: result: no" >&5
17649 echo "${ECHO_T}no" >&6; }
17650
17651 cat >>confdefs.h <<\_ACEOF
17652 #define LLVM_HAS_ATOMICS 0
17653 _ACEOF
17654
17655   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17656 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17657
17658 fi
17659
17660 rm -f core conftest.err conftest.$ac_objext \
17661       conftest$ac_exeext conftest.$ac_ext
17662 ac_ext=c
17663 ac_cpp='$CPP $CPPFLAGS'
17664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17667
17668
17669
17670 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17671   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17672 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17673 if test "${llvm_cv_linux_mixed+set}" = set; then
17674   echo $ECHO_N "(cached) $ECHO_C" >&6
17675 else
17676    ac_ext=c
17677 ac_cpp='$CPP $CPPFLAGS'
17678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17681
17682   cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 #ifndef __x86_64__
17689        error: Not x86-64 even if uname says so!
17690       #endif
17691
17692 int
17693 main ()
17694 {
17695
17696   ;
17697   return 0;
17698 }
17699 _ACEOF
17700 rm -f conftest.$ac_objext
17701 if { (ac_try="$ac_compile"
17702 case "(($ac_try" in
17703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704   *) ac_try_echo=$ac_try;;
17705 esac
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707   (eval "$ac_compile") 2>conftest.er1
17708   ac_status=$?
17709   grep -v '^ *+' conftest.er1 >conftest.err
17710   rm -f conftest.er1
17711   cat conftest.err >&5
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } &&
17714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17715   { (case "(($ac_try" in
17716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717   *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720   (eval "$ac_try") 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; } &&
17724          { ac_try='test -s conftest.$ac_objext'
17725   { (case "(($ac_try" in
17726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727   *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730   (eval "$ac_try") 2>&5
17731   ac_status=$?
17732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); }; }; then
17734   llvm_cv_linux_mixed=no
17735 else
17736   echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739         llvm_cv_linux_mixed=yes
17740 fi
17741
17742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743   ac_ext=c
17744 ac_cpp='$CPP $CPPFLAGS'
17745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17748
17749
17750 fi
17751 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17752 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17753
17754   if test "$llvm_cv_linux_mixed" = "yes"; then
17755     llvm_cv_target_arch="x86"
17756     ARCH="x86"
17757   fi
17758 fi
17759
17760
17761 for ac_func in __dso_handle
17762 do
17763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17777 #define $ac_func innocuous_$ac_func
17778
17779 /* System header to define __stub macros and hopefully few prototypes,
17780     which can conflict with char $ac_func (); below.
17781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782     <limits.h> exists even on freestanding compilers.  */
17783
17784 #ifdef __STDC__
17785 # include <limits.h>
17786 #else
17787 # include <assert.h>
17788 #endif
17789
17790 #undef $ac_func
17791
17792 /* Override any GCC internal prototype to avoid an error.
17793    Use char because int might match the return type of a GCC
17794    builtin and then its argument prototype would still apply.  */
17795 #ifdef __cplusplus
17796 extern "C"
17797 #endif
17798 char $ac_func ();
17799 /* The GNU C library defines this for functions which it implements
17800     to always fail with ENOSYS.  Some functions are actually named
17801     something starting with __ and the normal name is an alias.  */
17802 #if defined __stub_$ac_func || defined __stub___$ac_func
17803 choke me
17804 #endif
17805
17806 int
17807 main ()
17808 {
17809 return $ac_func ();
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_link") 2>conftest.er1
17822   ac_status=$?
17823   grep -v '^ *+' conftest.er1 >conftest.err
17824   rm -f conftest.er1
17825   cat conftest.err >&5
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } &&
17828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829   { (case "(($ac_try" in
17830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831   *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834   (eval "$ac_try") 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); }; } &&
17838          { ac_try='test -s conftest$ac_exeext'
17839   { (case "(($ac_try" in
17840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841   *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844   (eval "$ac_try") 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); }; }; then
17848   eval "$as_ac_var=yes"
17849 else
17850   echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853         eval "$as_ac_var=no"
17854 fi
17855
17856 rm -f core conftest.err conftest.$ac_objext \
17857       conftest$ac_exeext conftest.$ac_ext
17858 fi
17859 ac_res=`eval echo '${'$as_ac_var'}'`
17860                { echo "$as_me:$LINENO: result: $ac_res" >&5
17861 echo "${ECHO_T}$ac_res" >&6; }
17862 if test `eval echo '${'$as_ac_var'}'` = yes; then
17863   cat >>confdefs.h <<_ACEOF
17864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17865 _ACEOF
17866
17867 fi
17868 done
17869
17870
17871 SHLIBEXT=$llvm_shlib_ext
17872
17873
17874 if test "${prefix}" = "NONE" ; then
17875   prefix="/usr/local"
17876 fi
17877 eval LLVM_PREFIX="${prefix}";
17878 eval LLVM_BINDIR="${prefix}/bin";
17879 eval LLVM_DATADIR="${prefix}/share/llvm";
17880 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17881 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17882 eval LLVM_INCLUDEDIR="${prefix}/include";
17883 eval LLVM_INFODIR="${prefix}/info";
17884 eval LLVM_MANDIR="${prefix}/man";
17885 LLVM_CONFIGTIME=`date`
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17897   LLVM_CONFIGTIME="(timestamp not enabled)"
17898 fi
17899
17900
17901 cat >>confdefs.h <<_ACEOF
17902 #define LLVM_PREFIX "$LLVM_PREFIX"
17903 _ACEOF
17904
17905
17906 cat >>confdefs.h <<_ACEOF
17907 #define LLVM_BINDIR "$LLVM_BINDIR"
17908 _ACEOF
17909
17910
17911 cat >>confdefs.h <<_ACEOF
17912 #define LLVM_DATADIR "$LLVM_DATADIR"
17913 _ACEOF
17914
17915
17916 cat >>confdefs.h <<_ACEOF
17917 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17918 _ACEOF
17919
17920
17921 cat >>confdefs.h <<_ACEOF
17922 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17923 _ACEOF
17924
17925
17926 cat >>confdefs.h <<_ACEOF
17927 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17928 _ACEOF
17929
17930
17931 cat >>confdefs.h <<_ACEOF
17932 #define LLVM_INFODIR "$LLVM_INFODIR"
17933 _ACEOF
17934
17935
17936 cat >>confdefs.h <<_ACEOF
17937 #define LLVM_MANDIR "$LLVM_MANDIR"
17938 _ACEOF
17939
17940
17941 cat >>confdefs.h <<_ACEOF
17942 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17943 _ACEOF
17944
17945
17946 cat >>confdefs.h <<_ACEOF
17947 #define LLVM_HOST_TRIPLE "$host"
17948 _ACEOF
17949
17950
17951 cat >>confdefs.h <<_ACEOF
17952 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17953 _ACEOF
17954
17955
17956 if test "$BINDINGS_TO_BUILD" = auto ; then
17957   BINDINGS_TO_BUILD=""
17958   if test "x$OCAMLFIND" != x ; then
17959     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17960   fi
17961   if test "x$GO" != x ; then
17962     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17963       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17964     fi
17965   fi
17966 fi
17967 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17968
17969
17970 binding_prereqs_failed=0
17971 for a_binding in $BINDINGS_TO_BUILD ; do
17972   case "$a_binding" in
17973   ocaml)
17974     if test "x$OCAMLFIND" = x ; then
17975       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17976 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17977       binding_prereqs_failed=1
17978     fi
17979
17980     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17981       HAVE_OCAMLOPT=1
17982     else
17983       HAVE_OCAMLOPT=0
17984     fi
17985
17986
17987     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17988       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17989 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17990       binding_prereqs_failed=1
17991     fi
17992
17993     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17994       HAVE_OCAML_OUNIT=1
17995     else
17996       HAVE_OCAML_OUNIT=0
17997       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17998 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17999           fi
18000
18001
18002     if test "x$with_ocaml_libdir" != xauto ; then
18003       OCAML_LIBDIR=$with_ocaml_libdir
18004
18005     else
18006       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18007       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18008       then
18009         # ocaml stdlib is beneath our prefix; use stdlib
18010         OCAML_LIBDIR=$ocaml_stdlib
18011
18012       else
18013         # ocaml stdlib is outside our prefix; use libdir/ocaml
18014         OCAML_LIBDIR=${prefix}/lib/ocaml
18015
18016       fi
18017     fi
18018     ;;
18019   go)
18020     if test "x$GO" = x ; then
18021       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18022 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18023       binding_prereqs_failed=1
18024     else
18025       if $GO run ${srcdir}/bindings/go/conftest.go ; then
18026         :
18027       else
18028         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18029 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18030         binding_prereqs_failed=1
18031       fi
18032     fi
18033     ;;
18034   esac
18035 done
18036 if test "$binding_prereqs_failed" = 1 ; then
18037   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18038 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18039    { (exit 1); exit 1; }; }
18040 fi
18041
18042 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18043 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18044 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18045   echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047    ac_ext=cpp
18048 ac_cpp='$CXXCPP $CPPFLAGS'
18049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18052
18053   oldcxxflags="$CXXFLAGS"
18054   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18055   cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h.  */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h.  */
18061 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18062 int
18063 main ()
18064 {
18065 X<int>().f();
18066   ;
18067   return 0;
18068 }
18069 _ACEOF
18070 rm -f conftest.$ac_objext
18071 if { (ac_try="$ac_compile"
18072 case "(($ac_try" in
18073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074   *) ac_try_echo=$ac_try;;
18075 esac
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077   (eval "$ac_compile") 2>conftest.er1
18078   ac_status=$?
18079   grep -v '^ *+' conftest.er1 >conftest.err
18080   rm -f conftest.er1
18081   cat conftest.err >&5
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); } &&
18084          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18085   { (case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_try") 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; } &&
18094          { ac_try='test -s conftest.$ac_objext'
18095   { (case "(($ac_try" in
18096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097   *) ac_try_echo=$ac_try;;
18098 esac
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100   (eval "$ac_try") 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; }; then
18104   llvm_cv_cxx_visibility_inlines_hidden=yes
18105 else
18106   echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109         llvm_cv_cxx_visibility_inlines_hidden=no
18110 fi
18111
18112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113   CXXFLAGS="$oldcxxflags"
18114   ac_ext=c
18115 ac_cpp='$CPP $CPPFLAGS'
18116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18119
18120
18121 fi
18122 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18123 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18124 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18125   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18126
18127 else
18128   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18129
18130 fi
18131
18132
18133 if test "$llvm_cv_link_use_r" = "yes" ; then
18134   RPATH="-Wl,-R"
18135 else
18136   RPATH="-Wl,-rpath"
18137 fi
18138
18139
18140 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18141   RDYNAMIC="-rdynamic"
18142 else
18143   RDYNAMIC=""
18144 fi
18145
18146
18147
18148 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18149
18150
18151
18152
18153
18154
18155 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18156
18157 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18158
18159 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18160
18161 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18162
18163 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18164
18165
18166 ac_config_files="$ac_config_files Makefile.config"
18167
18168
18169 ac_config_files="$ac_config_files llvm.spec"
18170
18171
18172 ac_config_files="$ac_config_files docs/doxygen.cfg"
18173
18174
18175 if test "${clang_src_root}" = ""; then
18176   clang_src_root="$srcdir/tools/clang"
18177 fi
18178 if test -f ${clang_src_root}/README.txt; then
18179
18180 cat >>confdefs.h <<_ACEOF
18181 #define CLANG_LIBDIR_SUFFIX ""
18182 _ACEOF
18183
18184
18185     configh="include/clang/Config/config.h"
18186   doxy="docs/doxygen.cfg"
18187   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18188
18189   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18190
18191 fi
18192
18193 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18194
18195
18196 test "x$program_prefix" = "xNONE" && program_prefix=""
18197
18198
18199
18200 ac_config_commands="$ac_config_commands setup"
18201
18202 ac_config_commands="$ac_config_commands Makefile"
18203
18204
18205 ac_config_commands="$ac_config_commands Makefile.common"
18206
18207
18208 ac_config_commands="$ac_config_commands examples/Makefile"
18209
18210
18211 ac_config_commands="$ac_config_commands lib/Makefile"
18212
18213
18214 ac_config_commands="$ac_config_commands test/Makefile"
18215
18216
18217 ac_config_commands="$ac_config_commands test/Makefile.tests"
18218
18219
18220 ac_config_commands="$ac_config_commands unittests/Makefile"
18221
18222
18223 ac_config_commands="$ac_config_commands tools/Makefile"
18224
18225
18226 ac_config_commands="$ac_config_commands utils/Makefile"
18227
18228
18229 ac_config_commands="$ac_config_commands projects/Makefile"
18230
18231
18232 ac_config_commands="$ac_config_commands bindings/Makefile"
18233
18234
18235 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18236
18237
18238
18239 cat >confcache <<\_ACEOF
18240 # This file is a shell script that caches the results of configure
18241 # tests run on this system so they can be shared between configure
18242 # scripts and configure runs, see configure's option --config-cache.
18243 # It is not useful on other systems.  If it contains results you don't
18244 # want to keep, you may remove or edit it.
18245 #
18246 # config.status only pays attention to the cache file if you give it
18247 # the --recheck option to rerun configure.
18248 #
18249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18251 # following values.
18252
18253 _ACEOF
18254
18255 # The following way of writing the cache mishandles newlines in values,
18256 # but we know of no workaround that is simple, portable, and efficient.
18257 # So, we kill variables containing newlines.
18258 # Ultrix sh set writes to stderr and can't be redirected directly,
18259 # and sets the high bit in the cache file unless we assign to the vars.
18260 (
18261   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18262     eval ac_val=\$$ac_var
18263     case $ac_val in #(
18264     *${as_nl}*)
18265       case $ac_var in #(
18266       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18267 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18268       esac
18269       case $ac_var in #(
18270       _ | IFS | as_nl) ;; #(
18271       *) $as_unset $ac_var ;;
18272       esac ;;
18273     esac
18274   done
18275
18276   (set) 2>&1 |
18277     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18278     *${as_nl}ac_space=\ *)
18279       # `set' does not quote correctly, so add quotes (double-quote
18280       # substitution turns \\\\ into \\, and sed turns \\ into \).
18281       sed -n \
18282         "s/'/'\\\\''/g;
18283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18284       ;; #(
18285     *)
18286       # `set' quotes correctly as required by POSIX, so do not add quotes.
18287       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18288       ;;
18289     esac |
18290     sort
18291 ) |
18292   sed '
18293      /^ac_cv_env_/b end
18294      t clear
18295      :clear
18296      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18297      t end
18298      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18299      :end' >>confcache
18300 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18301   if test -w "$cache_file"; then
18302     test "x$cache_file" != "x/dev/null" &&
18303       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18304 echo "$as_me: updating cache $cache_file" >&6;}
18305     cat confcache >$cache_file
18306   else
18307     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18308 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18309   fi
18310 fi
18311 rm -f confcache
18312
18313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18314 # Let make expand exec_prefix.
18315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18316
18317 DEFS=-DHAVE_CONFIG_H
18318
18319 ac_libobjs=
18320 ac_ltlibobjs=
18321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18322   # 1. Remove the extension, and $U if already installed.
18323   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18324   ac_i=`echo "$ac_i" | sed "$ac_script"`
18325   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18326   #    will be set to the directory where LIBOBJS objects are built.
18327   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18328   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18329 done
18330 LIBOBJS=$ac_libobjs
18331
18332 LTLIBOBJS=$ac_ltlibobjs
18333
18334
18335
18336 : ${CONFIG_STATUS=./config.status}
18337 ac_clean_files_save=$ac_clean_files
18338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18339 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18340 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18341 cat >$CONFIG_STATUS <<_ACEOF
18342 #! $SHELL
18343 # Generated by $as_me.
18344 # Run this file to recreate the current configuration.
18345 # Compiler output produced by configure, useful for debugging
18346 # configure, is in config.log if it exists.
18347
18348 debug=false
18349 ac_cs_recheck=false
18350 ac_cs_silent=false
18351 SHELL=\${CONFIG_SHELL-$SHELL}
18352 _ACEOF
18353
18354 cat >>$CONFIG_STATUS <<\_ACEOF
18355 ## --------------------- ##
18356 ## M4sh Initialization.  ##
18357 ## --------------------- ##
18358
18359 # Be Bourne compatible
18360 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18361   emulate sh
18362   NULLCMD=:
18363   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18364   # is contrary to our usage.  Disable this feature.
18365   alias -g '${1+"$@"}'='"$@"'
18366   setopt NO_GLOB_SUBST
18367 else
18368   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18369 fi
18370 BIN_SH=xpg4; export BIN_SH # for Tru64
18371 DUALCASE=1; export DUALCASE # for MKS sh
18372
18373
18374 # PATH needs CR
18375 # Avoid depending upon Character Ranges.
18376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18379 as_cr_digits='0123456789'
18380 as_cr_alnum=$as_cr_Letters$as_cr_digits
18381
18382 # The user is always right.
18383 if test "${PATH_SEPARATOR+set}" != set; then
18384   echo "#! /bin/sh" >conf$$.sh
18385   echo  "exit 0"   >>conf$$.sh
18386   chmod +x conf$$.sh
18387   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18388     PATH_SEPARATOR=';'
18389   else
18390     PATH_SEPARATOR=:
18391   fi
18392   rm -f conf$$.sh
18393 fi
18394
18395 # Support unset when possible.
18396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18397   as_unset=unset
18398 else
18399   as_unset=false
18400 fi
18401
18402
18403 # IFS
18404 # We need space, tab and new line, in precisely that order.  Quoting is
18405 # there to prevent editors from complaining about space-tab.
18406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18407 # splitting by setting IFS to empty value.)
18408 as_nl='
18409 '
18410 IFS=" ""        $as_nl"
18411
18412 # Find who we are.  Look in the path if we contain no directory separator.
18413 case $0 in
18414   *[\\/]* ) as_myself=$0 ;;
18415   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18416 for as_dir in $PATH
18417 do
18418   IFS=$as_save_IFS
18419   test -z "$as_dir" && as_dir=.
18420   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18421 done
18422 IFS=$as_save_IFS
18423
18424      ;;
18425 esac
18426 # We did not find ourselves, most probably we were run as `sh COMMAND'
18427 # in which case we are not to be found in the path.
18428 if test "x$as_myself" = x; then
18429   as_myself=$0
18430 fi
18431 if test ! -f "$as_myself"; then
18432   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18433   { (exit 1); exit 1; }
18434 fi
18435
18436 # Work around bugs in pre-3.0 UWIN ksh.
18437 for as_var in ENV MAIL MAILPATH
18438 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18439 done
18440 PS1='$ '
18441 PS2='> '
18442 PS4='+ '
18443
18444 # NLS nuisances.
18445 for as_var in \
18446   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18447   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18448   LC_TELEPHONE LC_TIME
18449 do
18450   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18451     eval $as_var=C; export $as_var
18452   else
18453     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18454   fi
18455 done
18456
18457 # Required to use basename.
18458 if expr a : '\(a\)' >/dev/null 2>&1 &&
18459    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18460   as_expr=expr
18461 else
18462   as_expr=false
18463 fi
18464
18465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18466   as_basename=basename
18467 else
18468   as_basename=false
18469 fi
18470
18471
18472 # Name of the executable.
18473 as_me=`$as_basename -- "$0" ||
18474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18475          X"$0" : 'X\(//\)$' \| \
18476          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18477 echo X/"$0" |
18478     sed '/^.*\/\([^/][^/]*\)\/*$/{
18479             s//\1/
18480             q
18481           }
18482           /^X\/\(\/\/\)$/{
18483             s//\1/
18484             q
18485           }
18486           /^X\/\(\/\).*/{
18487             s//\1/
18488             q
18489           }
18490           s/.*/./; q'`
18491
18492 # CDPATH.
18493 $as_unset CDPATH
18494
18495
18496
18497   as_lineno_1=$LINENO
18498   as_lineno_2=$LINENO
18499   test "x$as_lineno_1" != "x$as_lineno_2" &&
18500   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18501
18502   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18503   # uniformly replaced by the line number.  The first 'sed' inserts a
18504   # line-number line after each line using $LINENO; the second 'sed'
18505   # does the real work.  The second script uses 'N' to pair each
18506   # line-number line with the line containing $LINENO, and appends
18507   # trailing '-' during substitution so that $LINENO is not a special
18508   # case at line end.
18509   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18510   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18511   # E. McMahon (1931-1989) for sed's syntax.  :-)
18512   sed -n '
18513     p
18514     /[$]LINENO/=
18515   ' <$as_myself |
18516     sed '
18517       s/[$]LINENO.*/&-/
18518       t lineno
18519       b
18520       :lineno
18521       N
18522       :loop
18523       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18524       t loop
18525       s/-\n.*//
18526     ' >$as_me.lineno &&
18527   chmod +x "$as_me.lineno" ||
18528     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18529    { (exit 1); exit 1; }; }
18530
18531   # Don't try to exec as it changes $[0], causing all sort of problems
18532   # (the dirname of $[0] is not the place where we might find the
18533   # original and so on.  Autoconf is especially sensitive to this).
18534   . "./$as_me.lineno"
18535   # Exit status is that of the last command.
18536   exit
18537 }
18538
18539
18540 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18541   as_dirname=dirname
18542 else
18543   as_dirname=false
18544 fi
18545
18546 ECHO_C= ECHO_N= ECHO_T=
18547 case `echo -n x` in
18548 -n*)
18549   case `echo 'x\c'` in
18550   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18551   *)   ECHO_C='\c';;
18552   esac;;
18553 *)
18554   ECHO_N='-n';;
18555 esac
18556
18557 if expr a : '\(a\)' >/dev/null 2>&1 &&
18558    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18559   as_expr=expr
18560 else
18561   as_expr=false
18562 fi
18563
18564 rm -f conf$$ conf$$.exe conf$$.file
18565 if test -d conf$$.dir; then
18566   rm -f conf$$.dir/conf$$.file
18567 else
18568   rm -f conf$$.dir
18569   mkdir conf$$.dir
18570 fi
18571 echo >conf$$.file
18572 if ln -s conf$$.file conf$$ 2>/dev/null; then
18573   as_ln_s='ln -s'
18574   # ... but there are two gotchas:
18575   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18576   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18577   # In both cases, we have to default to `cp -p'.
18578   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18579     as_ln_s='cp -p'
18580 elif ln conf$$.file conf$$ 2>/dev/null; then
18581   as_ln_s=ln
18582 else
18583   as_ln_s='cp -p'
18584 fi
18585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18586 rmdir conf$$.dir 2>/dev/null
18587
18588 if mkdir -p . 2>/dev/null; then
18589   as_mkdir_p=:
18590 else
18591   test -d ./-p && rmdir ./-p
18592   as_mkdir_p=false
18593 fi
18594
18595 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18596 # systems may use methods other than mode bits to determine executability.
18597 cat >conf$$.file <<_ASEOF
18598 #! /bin/sh
18599 exit 0
18600 _ASEOF
18601 chmod +x conf$$.file
18602 if test -x conf$$.file >/dev/null 2>&1; then
18603   as_executable_p="test -x"
18604 else
18605   as_executable_p=:
18606 fi
18607 rm -f conf$$.file
18608
18609 # Sed expression to map a string onto a valid CPP name.
18610 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18611
18612 # Sed expression to map a string onto a valid variable name.
18613 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18614
18615
18616 exec 6>&1
18617
18618 # Save the log message, to keep $[0] and so on meaningful, and to
18619 # report actual input values of CONFIG_FILES etc. instead of their
18620 # values after options handling.
18621 ac_log="
18622 This file was extended by LLVM $as_me 3.7.0svn, which was
18623 generated by GNU Autoconf 2.60.  Invocation command line was
18624
18625   CONFIG_FILES    = $CONFIG_FILES
18626   CONFIG_HEADERS  = $CONFIG_HEADERS
18627   CONFIG_LINKS    = $CONFIG_LINKS
18628   CONFIG_COMMANDS = $CONFIG_COMMANDS
18629   $ $0 $@
18630
18631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18632 "
18633
18634 _ACEOF
18635
18636 cat >>$CONFIG_STATUS <<_ACEOF
18637 # Files that config.status was made for.
18638 config_files="$ac_config_files"
18639 config_headers="$ac_config_headers"
18640 config_commands="$ac_config_commands"
18641
18642 _ACEOF
18643
18644 cat >>$CONFIG_STATUS <<\_ACEOF
18645 ac_cs_usage="\
18646 \`$as_me' instantiates files from templates according to the
18647 current configuration.
18648
18649 Usage: $0 [OPTIONS] [FILE]...
18650
18651   -h, --help       print this help, then exit
18652   -V, --version    print version number, then exit
18653   -q, --quiet      do not print progress messages
18654   -d, --debug      don't remove temporary files
18655       --recheck    update $as_me by reconfiguring in the same conditions
18656   --file=FILE[:TEMPLATE]
18657                    instantiate the configuration file FILE
18658   --header=FILE[:TEMPLATE]
18659                    instantiate the configuration header FILE
18660
18661 Configuration files:
18662 $config_files
18663
18664 Configuration headers:
18665 $config_headers
18666
18667 Configuration commands:
18668 $config_commands
18669
18670 Report bugs to <bug-autoconf@gnu.org>."
18671
18672 _ACEOF
18673 cat >>$CONFIG_STATUS <<_ACEOF
18674 ac_cs_version="\\
18675 LLVM config.status 3.7.0svn
18676 configured by $0, generated by GNU Autoconf 2.60,
18677   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18678
18679 Copyright (C) 2006 Free Software Foundation, Inc.
18680 This config.status script is free software; the Free Software Foundation
18681 gives unlimited permission to copy, distribute and modify it."
18682
18683 ac_pwd='$ac_pwd'
18684 srcdir='$srcdir'
18685 INSTALL='$INSTALL'
18686 _ACEOF
18687
18688 cat >>$CONFIG_STATUS <<\_ACEOF
18689 # If no file are specified by the user, then we need to provide default
18690 # value.  By we need to know if files were specified by the user.
18691 ac_need_defaults=:
18692 while test $# != 0
18693 do
18694   case $1 in
18695   --*=*)
18696     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18697     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18698     ac_shift=:
18699     ;;
18700   *)
18701     ac_option=$1
18702     ac_optarg=$2
18703     ac_shift=shift
18704     ;;
18705   esac
18706
18707   case $ac_option in
18708   # Handling of the options.
18709   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18710     ac_cs_recheck=: ;;
18711   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18712     echo "$ac_cs_version"; exit ;;
18713   --debug | --debu | --deb | --de | --d | -d )
18714     debug=: ;;
18715   --file | --fil | --fi | --f )
18716     $ac_shift
18717     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18718     ac_need_defaults=false;;
18719   --header | --heade | --head | --hea )
18720     $ac_shift
18721     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18722     ac_need_defaults=false;;
18723   --he | --h)
18724     # Conflict between --help and --header
18725     { echo "$as_me: error: ambiguous option: $1
18726 Try \`$0 --help' for more information." >&2
18727    { (exit 1); exit 1; }; };;
18728   --help | --hel | -h )
18729     echo "$ac_cs_usage"; exit ;;
18730   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18731   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18732     ac_cs_silent=: ;;
18733
18734   # This is an error.
18735   -*) { echo "$as_me: error: unrecognized option: $1
18736 Try \`$0 --help' for more information." >&2
18737    { (exit 1); exit 1; }; } ;;
18738
18739   *) ac_config_targets="$ac_config_targets $1"
18740      ac_need_defaults=false ;;
18741
18742   esac
18743   shift
18744 done
18745
18746 ac_configure_extra_args=
18747
18748 if $ac_cs_silent; then
18749   exec 6>/dev/null
18750   ac_configure_extra_args="$ac_configure_extra_args --silent"
18751 fi
18752
18753 _ACEOF
18754 cat >>$CONFIG_STATUS <<_ACEOF
18755 if \$ac_cs_recheck; then
18756   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18757   CONFIG_SHELL=$SHELL
18758   export CONFIG_SHELL
18759   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18760 fi
18761
18762 _ACEOF
18763 cat >>$CONFIG_STATUS <<\_ACEOF
18764 exec 5>>config.log
18765 {
18766   echo
18767   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18768 ## Running $as_me. ##
18769 _ASBOX
18770   echo "$ac_log"
18771 } >&5
18772
18773 _ACEOF
18774 cat >>$CONFIG_STATUS <<_ACEOF
18775 #
18776 # INIT-COMMANDS
18777 #
18778 llvm_src="${srcdir}"
18779
18780 _ACEOF
18781
18782 cat >>$CONFIG_STATUS <<\_ACEOF
18783
18784 # Handling of arguments.
18785 for ac_config_target in $ac_config_targets
18786 do
18787   case $ac_config_target in
18788     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18789     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18790     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18791     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18792     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18793     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18794     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18795     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18796     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18797     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18798     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18799     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18800     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18801     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18802     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18803     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18804     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18805     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18806     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18807     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18808     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18809     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18810     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18811     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18812     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18813     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18814
18815   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18816 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18817    { (exit 1); exit 1; }; };;
18818   esac
18819 done
18820
18821
18822 # If the user did not use the arguments to specify the items to instantiate,
18823 # then the envvar interface is used.  Set only those that are not.
18824 # We use the long form for the default assignment because of an extremely
18825 # bizarre bug on SunOS 4.1.3.
18826 if $ac_need_defaults; then
18827   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18828   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18829   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18830 fi
18831
18832 # Have a temporary directory for convenience.  Make it in the build tree
18833 # simply because there is no reason against having it here, and in addition,
18834 # creating and moving files from /tmp can sometimes cause problems.
18835 # Hook for its removal unless debugging.
18836 # Note that there is a small window in which the directory will not be cleaned:
18837 # after its creation but before its name has been assigned to `$tmp'.
18838 $debug ||
18839 {
18840   tmp=
18841   trap 'exit_status=$?
18842   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18843 ' 0
18844   trap '{ (exit 1); exit 1; }' 1 2 13 15
18845 }
18846 # Create a (secure) tmp directory for tmp files.
18847
18848 {
18849   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18850   test -n "$tmp" && test -d "$tmp"
18851 }  ||
18852 {
18853   tmp=./conf$$-$RANDOM
18854   (umask 077 && mkdir "$tmp")
18855 } ||
18856 {
18857    echo "$me: cannot create a temporary directory in ." >&2
18858    { (exit 1); exit 1; }
18859 }
18860
18861 #
18862 # Set up the sed scripts for CONFIG_FILES section.
18863 #
18864
18865 # No need to generate the scripts if there are no CONFIG_FILES.
18866 # This happens for instance when ./config.status config.h
18867 if test -n "$CONFIG_FILES"; then
18868
18869 _ACEOF
18870
18871
18872
18873 ac_delim='%!_!# '
18874 for ac_last_try in false false false false false :; do
18875   cat >conf$$subs.sed <<_ACEOF
18876 SHELL!$SHELL$ac_delim
18877 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18878 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18879 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18880 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18881 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18882 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18883 exec_prefix!$exec_prefix$ac_delim
18884 prefix!$prefix$ac_delim
18885 program_transform_name!$program_transform_name$ac_delim
18886 bindir!$bindir$ac_delim
18887 sbindir!$sbindir$ac_delim
18888 libexecdir!$libexecdir$ac_delim
18889 datarootdir!$datarootdir$ac_delim
18890 datadir!$datadir$ac_delim
18891 sysconfdir!$sysconfdir$ac_delim
18892 sharedstatedir!$sharedstatedir$ac_delim
18893 localstatedir!$localstatedir$ac_delim
18894 includedir!$includedir$ac_delim
18895 oldincludedir!$oldincludedir$ac_delim
18896 docdir!$docdir$ac_delim
18897 infodir!$infodir$ac_delim
18898 htmldir!$htmldir$ac_delim
18899 dvidir!$dvidir$ac_delim
18900 pdfdir!$pdfdir$ac_delim
18901 psdir!$psdir$ac_delim
18902 libdir!$libdir$ac_delim
18903 localedir!$localedir$ac_delim
18904 mandir!$mandir$ac_delim
18905 DEFS!$DEFS$ac_delim
18906 ECHO_C!$ECHO_C$ac_delim
18907 ECHO_N!$ECHO_N$ac_delim
18908 ECHO_T!$ECHO_T$ac_delim
18909 LIBS!$LIBS$ac_delim
18910 build_alias!$build_alias$ac_delim
18911 host_alias!$host_alias$ac_delim
18912 target_alias!$target_alias$ac_delim
18913 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18914 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18915 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18916 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18917 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18918 CC!$CC$ac_delim
18919 CFLAGS!$CFLAGS$ac_delim
18920 LDFLAGS!$LDFLAGS$ac_delim
18921 CPPFLAGS!$CPPFLAGS$ac_delim
18922 ac_ct_CC!$ac_ct_CC$ac_delim
18923 EXEEXT!$EXEEXT$ac_delim
18924 OBJEXT!$OBJEXT$ac_delim
18925 CXX!$CXX$ac_delim
18926 CXXFLAGS!$CXXFLAGS$ac_delim
18927 ac_ct_CXX!$ac_ct_CXX$ac_delim
18928 CPP!$CPP$ac_delim
18929 subdirs!$subdirs$ac_delim
18930 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18931 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18932 build!$build$ac_delim
18933 build_cpu!$build_cpu$ac_delim
18934 build_vendor!$build_vendor$ac_delim
18935 build_os!$build_os$ac_delim
18936 host!$host$ac_delim
18937 host_cpu!$host_cpu$ac_delim
18938 host_vendor!$host_vendor$ac_delim
18939 host_os!$host_os$ac_delim
18940 target!$target$ac_delim
18941 target_cpu!$target_cpu$ac_delim
18942 target_vendor!$target_vendor$ac_delim
18943 target_os!$target_os$ac_delim
18944 OS!$OS$ac_delim
18945 HOST_OS!$HOST_OS$ac_delim
18946 TARGET_OS!$TARGET_OS$ac_delim
18947 LINKALL!$LINKALL$ac_delim
18948 NOLINKALL!$NOLINKALL$ac_delim
18949 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18950 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18951 ARCH!$ARCH$ac_delim
18952 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18953 HOST_ARCH!$HOST_ARCH$ac_delim
18954 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18955 BUILD_CC!$BUILD_CC$ac_delim
18956 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18957 BUILD_CXX!$BUILD_CXX$ac_delim
18958 CVSBUILD!$CVSBUILD$ac_delim
18959 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18960 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18961 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18962 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18963 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18964 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18965 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18966 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18967 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18968 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18969 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18970 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18971 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18972 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18973 _ACEOF
18974
18975   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18976     break
18977   elif $ac_last_try; then
18978     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18979 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18980    { (exit 1); exit 1; }; }
18981   else
18982     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18983   fi
18984 done
18985
18986 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18987 if test -n "$ac_eof"; then
18988   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18989   ac_eof=`expr $ac_eof + 1`
18990 fi
18991
18992 cat >>$CONFIG_STATUS <<_ACEOF
18993 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18995 _ACEOF
18996 sed '
18997 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18998 s/^/s,@/; s/!/@,|#_!!_#|/
18999 :n
19000 t n
19001 s/'"$ac_delim"'$/,g/; t
19002 s/$/\\/; p
19003 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19004 ' >>$CONFIG_STATUS <conf$$subs.sed
19005 rm -f conf$$subs.sed
19006 cat >>$CONFIG_STATUS <<_ACEOF
19007 CEOF$ac_eof
19008 _ACEOF
19009
19010
19011 ac_delim='%!_!# '
19012 for ac_last_try in false false false false false :; do
19013   cat >conf$$subs.sed <<_ACEOF
19014 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19015 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19016 JIT!$JIT$ac_delim
19017 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19018 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19019 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19020 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19021 enable_searchengine!$enable_searchengine$ac_delim
19022 enable_external_search!$enable_external_search$ac_delim
19023 enable_server_based_search!$enable_server_based_search$ac_delim
19024 searchengine_url!$searchengine_url$ac_delim
19025 extra_search_mappings!$extra_search_mappings$ac_delim
19026 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
19027 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
19028 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
19029 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
19030 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
19031 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
19032 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
19033 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
19034 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
19035 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
19036 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
19037 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
19038 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
19039 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19040 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19041 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19042 ENABLE_PIC!$ENABLE_PIC$ac_delim
19043 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19044 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19045 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19046 ALL_TARGETS!$ALL_TARGETS$ac_delim
19047 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19048 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19049 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19050 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19051 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19052 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19053 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19054 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19055 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19056 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19057 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19058 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19059 ifGNUmake!$ifGNUmake$ac_delim
19060 LN_S!$LN_S$ac_delim
19061 NM!$NM$ac_delim
19062 CMP!$CMP$ac_delim
19063 CP!$CP$ac_delim
19064 DATE!$DATE$ac_delim
19065 FIND!$FIND$ac_delim
19066 GREP!$GREP$ac_delim
19067 MKDIR!$MKDIR$ac_delim
19068 MV!$MV$ac_delim
19069 RANLIB!$RANLIB$ac_delim
19070 AR!$AR$ac_delim
19071 RM!$RM$ac_delim
19072 SED!$SED$ac_delim
19073 TAR!$TAR$ac_delim
19074 BINPWD!$BINPWD$ac_delim
19075 DOT!$DOT$ac_delim
19076 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19077 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19078 INSTALL_DATA!$INSTALL_DATA$ac_delim
19079 BZIP2!$BZIP2$ac_delim
19080 CAT!$CAT$ac_delim
19081 DOXYGEN!$DOXYGEN$ac_delim
19082 GROFF!$GROFF$ac_delim
19083 GZIPBIN!$GZIPBIN$ac_delim
19084 PDFROFF!$PDFROFF$ac_delim
19085 ZIP!$ZIP$ac_delim
19086 GO!$GO$ac_delim
19087 OCAMLFIND!$OCAMLFIND$ac_delim
19088 GAS!$GAS$ac_delim
19089 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19090 EGREP!$EGREP$ac_delim
19091 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19092 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19093 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19094 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19095 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19096 NO_COMMENT!$NO_COMMENT$ac_delim
19097 PYTHON!$PYTHON$ac_delim
19098 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19099 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19100 USE_OPROFILE!$USE_OPROFILE$ac_delim
19101 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19102 XML2CONFIG!$XML2CONFIG$ac_delim
19103 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19104 LIBXML2_INC!$LIBXML2_INC$ac_delim
19105 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19106 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19107 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19108 MMAP_FILE!$MMAP_FILE$ac_delim
19109 SHLIBEXT!$SHLIBEXT$ac_delim
19110 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19111 _ACEOF
19112
19113   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19114     break
19115   elif $ac_last_try; then
19116     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19117 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19118    { (exit 1); exit 1; }; }
19119   else
19120     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19121   fi
19122 done
19123
19124 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19125 if test -n "$ac_eof"; then
19126   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19127   ac_eof=`expr $ac_eof + 1`
19128 fi
19129
19130 cat >>$CONFIG_STATUS <<_ACEOF
19131 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19133 _ACEOF
19134 sed '
19135 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19136 s/^/s,@/; s/!/@,|#_!!_#|/
19137 :n
19138 t n
19139 s/'"$ac_delim"'$/,g/; t
19140 s/$/\\/; p
19141 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19142 ' >>$CONFIG_STATUS <conf$$subs.sed
19143 rm -f conf$$subs.sed
19144 cat >>$CONFIG_STATUS <<_ACEOF
19145 CEOF$ac_eof
19146 _ACEOF
19147
19148
19149 ac_delim='%!_!# '
19150 for ac_last_try in false false false false false :; do
19151   cat >conf$$subs.sed <<_ACEOF
19152 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19153 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19154 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19155 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19156 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19157 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19158 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19159 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19160 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19161 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19162 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19163 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19164 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19165 RPATH!$RPATH$ac_delim
19166 RDYNAMIC!$RDYNAMIC$ac_delim
19167 program_prefix!$program_prefix$ac_delim
19168 LIBOBJS!$LIBOBJS$ac_delim
19169 LTLIBOBJS!$LTLIBOBJS$ac_delim
19170 _ACEOF
19171
19172   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19173     break
19174   elif $ac_last_try; then
19175     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19176 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19177    { (exit 1); exit 1; }; }
19178   else
19179     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19180   fi
19181 done
19182
19183 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19184 if test -n "$ac_eof"; then
19185   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19186   ac_eof=`expr $ac_eof + 1`
19187 fi
19188
19189 cat >>$CONFIG_STATUS <<_ACEOF
19190 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19192 _ACEOF
19193 sed '
19194 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19195 s/^/s,@/; s/!/@,|#_!!_#|/
19196 :n
19197 t n
19198 s/'"$ac_delim"'$/,g/; t
19199 s/$/\\/; p
19200 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19201 ' >>$CONFIG_STATUS <conf$$subs.sed
19202 rm -f conf$$subs.sed
19203 cat >>$CONFIG_STATUS <<_ACEOF
19204 :end
19205 s/|#_!!_#|//g
19206 CEOF$ac_eof
19207 _ACEOF
19208
19209
19210 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19211 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19212 # trailing colons and then remove the whole line if VPATH becomes empty
19213 # (actually we leave an empty line to preserve line numbers).
19214 if test "x$srcdir" = x.; then
19215   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19216 s/:*\$(srcdir):*/:/
19217 s/:*\${srcdir}:*/:/
19218 s/:*@srcdir@:*/:/
19219 s/^\([^=]*=[     ]*\):*/\1/
19220 s/:*$//
19221 s/^[^=]*=[       ]*$//
19222 }'
19223 fi
19224
19225 cat >>$CONFIG_STATUS <<\_ACEOF
19226 fi # test -n "$CONFIG_FILES"
19227
19228
19229 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19230 do
19231   case $ac_tag in
19232   :[FHLC]) ac_mode=$ac_tag; continue;;
19233   esac
19234   case $ac_mode$ac_tag in
19235   :[FHL]*:*);;
19236   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19237 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19238    { (exit 1); exit 1; }; };;
19239   :[FH]-) ac_tag=-:-;;
19240   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19241   esac
19242   ac_save_IFS=$IFS
19243   IFS=:
19244   set x $ac_tag
19245   IFS=$ac_save_IFS
19246   shift
19247   ac_file=$1
19248   shift
19249
19250   case $ac_mode in
19251   :L) ac_source=$1;;
19252   :[FH])
19253     ac_file_inputs=
19254     for ac_f
19255     do
19256       case $ac_f in
19257       -) ac_f="$tmp/stdin";;
19258       *) # Look for the file first in the build tree, then in the source tree
19259          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19260          # because $ac_f cannot contain `:'.
19261          test -f "$ac_f" ||
19262            case $ac_f in
19263            [\\/$]*) false;;
19264            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19265            esac ||
19266            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19267 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19268    { (exit 1); exit 1; }; };;
19269       esac
19270       ac_file_inputs="$ac_file_inputs $ac_f"
19271     done
19272
19273     # Let's still pretend it is `configure' which instantiates (i.e., don't
19274     # use $as_me), people would be surprised to read:
19275     #    /* config.h.  Generated by config.status.  */
19276     configure_input="Generated from "`IFS=:
19277           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19278     if test x"$ac_file" != x-; then
19279       configure_input="$ac_file.  $configure_input"
19280       { echo "$as_me:$LINENO: creating $ac_file" >&5
19281 echo "$as_me: creating $ac_file" >&6;}
19282     fi
19283
19284     case $ac_tag in
19285     *:-:* | *:-) cat >"$tmp/stdin";;
19286     esac
19287     ;;
19288   esac
19289
19290   ac_dir=`$as_dirname -- "$ac_file" ||
19291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19292          X"$ac_file" : 'X\(//\)[^/]' \| \
19293          X"$ac_file" : 'X\(//\)$' \| \
19294          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19295 echo X"$ac_file" |
19296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19297             s//\1/
19298             q
19299           }
19300           /^X\(\/\/\)[^/].*/{
19301             s//\1/
19302             q
19303           }
19304           /^X\(\/\/\)$/{
19305             s//\1/
19306             q
19307           }
19308           /^X\(\/\).*/{
19309             s//\1/
19310             q
19311           }
19312           s/.*/./; q'`
19313   { as_dir="$ac_dir"
19314   case $as_dir in #(
19315   -*) as_dir=./$as_dir;;
19316   esac
19317   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19318     as_dirs=
19319     while :; do
19320       case $as_dir in #(
19321       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19322       *) as_qdir=$as_dir;;
19323       esac
19324       as_dirs="'$as_qdir' $as_dirs"
19325       as_dir=`$as_dirname -- "$as_dir" ||
19326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19327          X"$as_dir" : 'X\(//\)[^/]' \| \
19328          X"$as_dir" : 'X\(//\)$' \| \
19329          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19330 echo X"$as_dir" |
19331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19332             s//\1/
19333             q
19334           }
19335           /^X\(\/\/\)[^/].*/{
19336             s//\1/
19337             q
19338           }
19339           /^X\(\/\/\)$/{
19340             s//\1/
19341             q
19342           }
19343           /^X\(\/\).*/{
19344             s//\1/
19345             q
19346           }
19347           s/.*/./; q'`
19348       test -d "$as_dir" && break
19349     done
19350     test -z "$as_dirs" || eval "mkdir $as_dirs"
19351   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19352 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19353    { (exit 1); exit 1; }; }; }
19354   ac_builddir=.
19355
19356 case "$ac_dir" in
19357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19358 *)
19359   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19360   # A ".." for each directory in $ac_dir_suffix.
19361   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19362   case $ac_top_builddir_sub in
19363   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19364   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19365   esac ;;
19366 esac
19367 ac_abs_top_builddir=$ac_pwd
19368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19369 # for backward compatibility:
19370 ac_top_builddir=$ac_top_build_prefix
19371
19372 case $srcdir in
19373   .)  # We are building in place.
19374     ac_srcdir=.
19375     ac_top_srcdir=$ac_top_builddir_sub
19376     ac_abs_top_srcdir=$ac_pwd ;;
19377   [\\/]* | ?:[\\/]* )  # Absolute name.
19378     ac_srcdir=$srcdir$ac_dir_suffix;
19379     ac_top_srcdir=$srcdir
19380     ac_abs_top_srcdir=$srcdir ;;
19381   *) # Relative name.
19382     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19383     ac_top_srcdir=$ac_top_build_prefix$srcdir
19384     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19385 esac
19386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19387
19388
19389   case $ac_mode in
19390   :F)
19391   #
19392   # CONFIG_FILE
19393   #
19394
19395   case $INSTALL in
19396   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19397   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19398   esac
19399 _ACEOF
19400
19401 cat >>$CONFIG_STATUS <<\_ACEOF
19402 # If the template does not know about datarootdir, expand it.
19403 # FIXME: This hack should be removed a few years after 2.60.
19404 ac_datarootdir_hack=; ac_datarootdir_seen=
19405
19406 case `sed -n '/datarootdir/ {
19407   p
19408   q
19409 }
19410 /@datadir@/p
19411 /@docdir@/p
19412 /@infodir@/p
19413 /@localedir@/p
19414 /@mandir@/p
19415 ' $ac_file_inputs` in
19416 *datarootdir*) ac_datarootdir_seen=yes;;
19417 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19418   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19419 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19420 _ACEOF
19421 cat >>$CONFIG_STATUS <<_ACEOF
19422   ac_datarootdir_hack='
19423   s&@datadir@&$datadir&g
19424   s&@docdir@&$docdir&g
19425   s&@infodir@&$infodir&g
19426   s&@localedir@&$localedir&g
19427   s&@mandir@&$mandir&g
19428     s&\\\${datarootdir}&$datarootdir&g' ;;
19429 esac
19430 _ACEOF
19431
19432 # Neutralize VPATH when `$srcdir' = `.'.
19433 # Shell code in configure.ac might set extrasub.
19434 # FIXME: do we really want to maintain this feature?
19435 cat >>$CONFIG_STATUS <<_ACEOF
19436   sed "$ac_vpsub
19437 $extrasub
19438 _ACEOF
19439 cat >>$CONFIG_STATUS <<\_ACEOF
19440 :t
19441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19442 s&@configure_input@&$configure_input&;t t
19443 s&@top_builddir@&$ac_top_builddir_sub&;t t
19444 s&@srcdir@&$ac_srcdir&;t t
19445 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19446 s&@top_srcdir@&$ac_top_srcdir&;t t
19447 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19448 s&@builddir@&$ac_builddir&;t t
19449 s&@abs_builddir@&$ac_abs_builddir&;t t
19450 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19451 s&@INSTALL@&$ac_INSTALL&;t t
19452 $ac_datarootdir_hack
19453 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19454
19455 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19456   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19457   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19458   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19459 which seems to be undefined.  Please make sure it is defined." >&5
19460 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19461 which seems to be undefined.  Please make sure it is defined." >&2;}
19462
19463   rm -f "$tmp/stdin"
19464   case $ac_file in
19465   -) cat "$tmp/out"; rm -f "$tmp/out";;
19466   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19467   esac
19468  ;;
19469   :H)
19470   #
19471   # CONFIG_HEADER
19472   #
19473 _ACEOF
19474
19475 # Transform confdefs.h into a sed script `conftest.defines', that
19476 # substitutes the proper values into config.h.in to produce config.h.
19477 rm -f conftest.defines conftest.tail
19478 # First, append a space to every undef/define line, to ease matching.
19479 echo 's/$/ /' >conftest.defines
19480 # Then, protect against being on the right side of a sed subst, or in
19481 # an unquoted here document, in config.status.  If some macros were
19482 # called several times there might be several #defines for the same
19483 # symbol, which is useless.  But do not sort them, since the last
19484 # AC_DEFINE must be honored.
19485 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19486 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19487 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19488 # PARAMS is the parameter list in the macro definition--in most cases, it's
19489 # just an empty string.
19490 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19491 ac_dB='\\)[      (].*,\\1define\\2'
19492 ac_dC=' '
19493 ac_dD=' ,'
19494
19495 uniq confdefs.h |
19496   sed -n '
19497         t rset
19498         :rset
19499         s/^[     ]*#[    ]*define[       ][      ]*//
19500         t ok
19501         d
19502         :ok
19503         s/[\\&,]/\\&/g
19504         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19505         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19506   ' >>conftest.defines
19507
19508 # Remove the space that was appended to ease matching.
19509 # Then replace #undef with comments.  This is necessary, for
19510 # example, in the case of _POSIX_SOURCE, which is predefined and required
19511 # on some systems where configure will not decide to define it.
19512 # (The regexp can be short, since the line contains either #define or #undef.)
19513 echo 's/ $//
19514 s,^[     #]*u.*,/* & */,' >>conftest.defines
19515
19516 # Break up conftest.defines:
19517 ac_max_sed_lines=50
19518
19519 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19520 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19521 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19522 # et cetera.
19523 ac_in='$ac_file_inputs'
19524 ac_out='"$tmp/out1"'
19525 ac_nxt='"$tmp/out2"'
19526
19527 while :
19528 do
19529   # Write a here document:
19530     cat >>$CONFIG_STATUS <<_ACEOF
19531     # First, check the format of the line:
19532     cat >"\$tmp/defines.sed" <<\\CEOF
19533 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19534 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19535 b
19536 :def
19537 _ACEOF
19538   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19539   echo 'CEOF
19540     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19541   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19542   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19543   grep . conftest.tail >/dev/null || break
19544   rm -f conftest.defines
19545   mv conftest.tail conftest.defines
19546 done
19547 rm -f conftest.defines conftest.tail
19548
19549 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19550 cat >>$CONFIG_STATUS <<\_ACEOF
19551   if test x"$ac_file" != x-; then
19552     echo "/* $configure_input  */" >"$tmp/config.h"
19553     cat "$ac_result" >>"$tmp/config.h"
19554     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19555       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19556 echo "$as_me: $ac_file is unchanged" >&6;}
19557     else
19558       rm -f $ac_file
19559       mv "$tmp/config.h" $ac_file
19560     fi
19561   else
19562     echo "/* $configure_input  */"
19563     cat "$ac_result"
19564   fi
19565   rm -f "$tmp/out12"
19566  ;;
19567
19568   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19569 echo "$as_me: executing $ac_file commands" >&6;}
19570  ;;
19571   esac
19572
19573
19574   case $ac_file$ac_mode in
19575     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19576    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19577     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19578    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19579     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19580    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19581     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19582    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19583     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19584    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19585     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19586    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19587     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19588    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19589     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19590    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19591     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19592    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19593     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19594    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19595     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19596    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19597     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19598    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19599
19600   esac
19601 done # for ac_tag
19602
19603
19604 { (exit 0); exit 0; }
19605 _ACEOF
19606 chmod +x $CONFIG_STATUS
19607 ac_clean_files=$ac_clean_files_save
19608
19609
19610 # configure is writing to config.log, and then calls config.status.
19611 # config.status does its own redirection, appending to config.log.
19612 # Unfortunately, on DOS this fails, as config.log is still kept open
19613 # by configure, so config.status won't be able to write to it; its
19614 # output is simply discarded.  So we exec the FD to /dev/null,
19615 # effectively closing config.log, so it can be properly (re)opened and
19616 # appended to by config.status.  When coming back to configure, we
19617 # need to make the FD available again.
19618 if test "$no_create" != yes; then
19619   ac_cs_success=:
19620   ac_config_status_args=
19621   test "$silent" = yes &&
19622     ac_config_status_args="$ac_config_status_args --quiet"
19623   exec 5>/dev/null
19624   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19625   exec 5>>config.log
19626   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19627   # would make configure fail if this is the last instruction.
19628   $ac_cs_success || { (exit 1); exit 1; }
19629 fi
19630
19631 #
19632 # CONFIG_SUBDIRS section.
19633 #
19634 if test "$no_recursion" != yes; then
19635
19636   # Remove --cache-file and --srcdir arguments so they do not pile up.
19637   ac_sub_configure_args=
19638   ac_prev=
19639   eval "set x $ac_configure_args"
19640   shift
19641   for ac_arg
19642   do
19643     if test -n "$ac_prev"; then
19644       ac_prev=
19645       continue
19646     fi
19647     case $ac_arg in
19648     -cache-file | --cache-file | --cache-fil | --cache-fi \
19649     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19650       ac_prev=cache_file ;;
19651     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19652     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19653     | --c=*)
19654       ;;
19655     --config-cache | -C)
19656       ;;
19657     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19658       ac_prev=srcdir ;;
19659     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19660       ;;
19661     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19662       ac_prev=prefix ;;
19663     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19664       ;;
19665     *)
19666       case $ac_arg in
19667       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19668       esac
19669       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19670     esac
19671   done
19672
19673   # Always prepend --prefix to ensure using the same prefix
19674   # in subdir configurations.
19675   ac_arg="--prefix=$prefix"
19676   case $ac_arg in
19677   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19678   esac
19679   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19680
19681   ac_popdir=`pwd`
19682   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19683
19684     # Do not complain, so a configure script can configure whichever
19685     # parts of a large source tree are present.
19686     test -d "$srcdir/$ac_dir" || continue
19687
19688     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19689     echo "$as_me:$LINENO: $ac_msg" >&5
19690     echo "$ac_msg" >&6
19691     { as_dir="$ac_dir"
19692   case $as_dir in #(
19693   -*) as_dir=./$as_dir;;
19694   esac
19695   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19696     as_dirs=
19697     while :; do
19698       case $as_dir in #(
19699       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19700       *) as_qdir=$as_dir;;
19701       esac
19702       as_dirs="'$as_qdir' $as_dirs"
19703       as_dir=`$as_dirname -- "$as_dir" ||
19704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19705          X"$as_dir" : 'X\(//\)[^/]' \| \
19706          X"$as_dir" : 'X\(//\)$' \| \
19707          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19708 echo X"$as_dir" |
19709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19710             s//\1/
19711             q
19712           }
19713           /^X\(\/\/\)[^/].*/{
19714             s//\1/
19715             q
19716           }
19717           /^X\(\/\/\)$/{
19718             s//\1/
19719             q
19720           }
19721           /^X\(\/\).*/{
19722             s//\1/
19723             q
19724           }
19725           s/.*/./; q'`
19726       test -d "$as_dir" && break
19727     done
19728     test -z "$as_dirs" || eval "mkdir $as_dirs"
19729   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19730 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19731    { (exit 1); exit 1; }; }; }
19732     ac_builddir=.
19733
19734 case "$ac_dir" in
19735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19736 *)
19737   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19738   # A ".." for each directory in $ac_dir_suffix.
19739   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19740   case $ac_top_builddir_sub in
19741   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19742   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19743   esac ;;
19744 esac
19745 ac_abs_top_builddir=$ac_pwd
19746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19747 # for backward compatibility:
19748 ac_top_builddir=$ac_top_build_prefix
19749
19750 case $srcdir in
19751   .)  # We are building in place.
19752     ac_srcdir=.
19753     ac_top_srcdir=$ac_top_builddir_sub
19754     ac_abs_top_srcdir=$ac_pwd ;;
19755   [\\/]* | ?:[\\/]* )  # Absolute name.
19756     ac_srcdir=$srcdir$ac_dir_suffix;
19757     ac_top_srcdir=$srcdir
19758     ac_abs_top_srcdir=$srcdir ;;
19759   *) # Relative name.
19760     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19761     ac_top_srcdir=$ac_top_build_prefix$srcdir
19762     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19763 esac
19764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19765
19766
19767     cd "$ac_dir"
19768
19769     # Check for guested configure; otherwise get Cygnus style configure.
19770     if test -f "$ac_srcdir/configure.gnu"; then
19771       ac_sub_configure=$ac_srcdir/configure.gnu
19772     elif test -f "$ac_srcdir/configure"; then
19773       ac_sub_configure=$ac_srcdir/configure
19774     elif test -f "$ac_srcdir/configure.in"; then
19775       # This should be Cygnus configure.
19776       ac_sub_configure=$ac_aux_dir/configure
19777     else
19778       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19779 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19780       ac_sub_configure=
19781     fi
19782
19783     # The recursion is here.
19784     if test -n "$ac_sub_configure"; then
19785       # Make the cache file name correct relative to the subdirectory.
19786       case $cache_file in
19787       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19788       *) # Relative name.
19789         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19790       esac
19791
19792       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19793 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19794       # The eval makes quoting arguments work.
19795       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19796            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19797         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19798 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19799    { (exit 1); exit 1; }; }
19800     fi
19801
19802     cd "$ac_popdir"
19803   done
19804 fi
19805