[Orc] Remove one of the OrcMCJITReplacement regression tests while I
[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-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.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 DEBUG_RUNTIME
701 DEBUG_SYMBOLS
702 KEEP_SYMBOLS
703 JIT
704 TARGET_HAS_JIT
705 TARGETS_WITH_JIT
706 ENABLE_DOCS
707 ENABLE_DOXYGEN
708 LLVM_ENABLE_THREADS
709 ENABLE_PTHREADS
710 LLVM_ENABLE_ZLIB
711 ENABLE_PIC
712 ENABLE_SHARED
713 ENABLE_EMBED_STDCXX
714 ENABLE_TIMESTAMPS
715 ALL_TARGETS
716 TARGETS_TO_BUILD
717 LLVM_ENUM_TARGETS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
721 OPTIMIZE_OPTION
722 EXTRA_OPTIONS
723 EXTRA_LD_OPTIONS
724 CLANG_SRC_ROOT
725 BINUTILS_INCDIR
726 ENABLE_TERMINFO
727 INTERNAL_PREFIX
728 ifGNUmake
729 LN_S
730 NM
731 CMP
732 CP
733 DATE
734 FIND
735 GREP
736 MKDIR
737 MV
738 RANLIB
739 AR
740 RM
741 SED
742 TAR
743 BINPWD
744 DOT
745 INSTALL_PROGRAM
746 INSTALL_SCRIPT
747 INSTALL_DATA
748 BZIP2
749 CAT
750 DOXYGEN
751 GROFF
752 GZIPBIN
753 PDFROFF
754 ZIP
755 GO
756 OCAMLFIND
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 EGREP
760 NO_VARIADIC_MACROS
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 NO_MAYBE_UNINITIALIZED
764 NO_UNINITIALIZED
765 NO_COMMENT
766 PYTHON
767 HAVE_DLOPEN
768 HAVE_TERMINFO
769 USE_OPROFILE
770 USE_INTEL_JITEVENTS
771 XML2CONFIG
772 LIBXML2_LIBS
773 LIBXML2_INC
774 HAVE_PTHREAD
775 HAVE_LIBZ
776 HUGE_VAL_SANITY
777 MMAP_FILE
778 SHLIBEXT
779 LLVM_PREFIX
780 LLVM_BINDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 HAVE_OCAMLOPT
790 HAVE_OCAML_OUNIT
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 program_prefix
796 LIBOBJS
797 LTLIBOBJS'
798 ac_subst_files=''
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 CPP'
810 ac_subdirs_all='projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/safecode
815 tools/polly'
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867   # If the previous option needs an argument, assign it.
868   if test -n "$ac_prev"; then
869     eval $ac_prev=\$ac_option
870     ac_prev=
871     continue
872   fi
873
874   case $ac_option in
875   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876   *)    ac_optarg=yes ;;
877   esac
878
879   # Accept the important Cygnus configure options, so we can diagnose typos.
880
881   case $ac_dashdash$ac_option in
882   --)
883     ac_dashdash=yes ;;
884
885   -bindir | --bindir | --bindi | --bind | --bin | --bi)
886     ac_prev=bindir ;;
887   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888     bindir=$ac_optarg ;;
889
890   -build | --build | --buil | --bui | --bu)
891     ac_prev=build_alias ;;
892   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893     build_alias=$ac_optarg ;;
894
895   -cache-file | --cache-file | --cache-fil | --cache-fi \
896   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897     ac_prev=cache_file ;;
898   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900     cache_file=$ac_optarg ;;
901
902   --config-cache | -C)
903     cache_file=config.cache ;;
904
905   -datadir | --datadir | --datadi | --datad)
906     ac_prev=datadir ;;
907   -datadir=* | --datadir=* | --datadi=* | --datad=*)
908     datadir=$ac_optarg ;;
909
910   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911   | --dataroo | --dataro | --datar)
912     ac_prev=datarootdir ;;
913   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915     datarootdir=$ac_optarg ;;
916
917   -disable-* | --disable-*)
918     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922    { (exit 1); exit 1; }; }
923     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924     eval enable_$ac_feature=no ;;
925
926   -docdir | --docdir | --docdi | --doc | --do)
927     ac_prev=docdir ;;
928   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929     docdir=$ac_optarg ;;
930
931   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932     ac_prev=dvidir ;;
933   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934     dvidir=$ac_optarg ;;
935
936   -enable-* | --enable-*)
937     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941    { (exit 1); exit 1; }; }
942     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943     eval enable_$ac_feature=\$ac_optarg ;;
944
945   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947   | --exec | --exe | --ex)
948     ac_prev=exec_prefix ;;
949   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951   | --exec=* | --exe=* | --ex=*)
952     exec_prefix=$ac_optarg ;;
953
954   -gas | --gas | --ga | --g)
955     # Obsolete; use --with-gas.
956     with_gas=yes ;;
957
958   -help | --help | --hel | --he | -h)
959     ac_init_help=long ;;
960   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961     ac_init_help=recursive ;;
962   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963     ac_init_help=short ;;
964
965   -host | --host | --hos | --ho)
966     ac_prev=host_alias ;;
967   -host=* | --host=* | --hos=* | --ho=*)
968     host_alias=$ac_optarg ;;
969
970   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971     ac_prev=htmldir ;;
972   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973   | --ht=*)
974     htmldir=$ac_optarg ;;
975
976   -includedir | --includedir | --includedi | --included | --include \
977   | --includ | --inclu | --incl | --inc)
978     ac_prev=includedir ;;
979   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980   | --includ=* | --inclu=* | --incl=* | --inc=*)
981     includedir=$ac_optarg ;;
982
983   -infodir | --infodir | --infodi | --infod | --info | --inf)
984     ac_prev=infodir ;;
985   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986     infodir=$ac_optarg ;;
987
988   -libdir | --libdir | --libdi | --libd)
989     ac_prev=libdir ;;
990   -libdir=* | --libdir=* | --libdi=* | --libd=*)
991     libdir=$ac_optarg ;;
992
993   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994   | --libexe | --libex | --libe)
995     ac_prev=libexecdir ;;
996   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997   | --libexe=* | --libex=* | --libe=*)
998     libexecdir=$ac_optarg ;;
999
1000   -localedir | --localedir | --localedi | --localed | --locale)
1001     ac_prev=localedir ;;
1002   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003     localedir=$ac_optarg ;;
1004
1005   -localstatedir | --localstatedir | --localstatedi | --localstated \
1006   | --localstate | --localstat | --localsta | --localst | --locals)
1007     ac_prev=localstatedir ;;
1008   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010     localstatedir=$ac_optarg ;;
1011
1012   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013     ac_prev=mandir ;;
1014   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015     mandir=$ac_optarg ;;
1016
1017   -nfp | --nfp | --nf)
1018     # Obsolete; use --without-fp.
1019     with_fp=no ;;
1020
1021   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022   | --no-cr | --no-c | -n)
1023     no_create=yes ;;
1024
1025   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027     no_recursion=yes ;;
1028
1029   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031   | --oldin | --oldi | --old | --ol | --o)
1032     ac_prev=oldincludedir ;;
1033   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036     oldincludedir=$ac_optarg ;;
1037
1038   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039     ac_prev=prefix ;;
1040   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041     prefix=$ac_optarg ;;
1042
1043   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044   | --program-pre | --program-pr | --program-p)
1045     ac_prev=program_prefix ;;
1046   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048     program_prefix=$ac_optarg ;;
1049
1050   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051   | --program-suf | --program-su | --program-s)
1052     ac_prev=program_suffix ;;
1053   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055     program_suffix=$ac_optarg ;;
1056
1057   -program-transform-name | --program-transform-name \
1058   | --program-transform-nam | --program-transform-na \
1059   | --program-transform-n | --program-transform- \
1060   | --program-transform | --program-transfor \
1061   | --program-transfo | --program-transf \
1062   | --program-trans | --program-tran \
1063   | --progr-tra | --program-tr | --program-t)
1064     ac_prev=program_transform_name ;;
1065   -program-transform-name=* | --program-transform-name=* \
1066   | --program-transform-nam=* | --program-transform-na=* \
1067   | --program-transform-n=* | --program-transform-=* \
1068   | --program-transform=* | --program-transfor=* \
1069   | --program-transfo=* | --program-transf=* \
1070   | --program-trans=* | --program-tran=* \
1071   | --progr-tra=* | --program-tr=* | --program-t=*)
1072     program_transform_name=$ac_optarg ;;
1073
1074   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075     ac_prev=pdfdir ;;
1076   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077     pdfdir=$ac_optarg ;;
1078
1079   -psdir | --psdir | --psdi | --psd | --ps)
1080     ac_prev=psdir ;;
1081   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082     psdir=$ac_optarg ;;
1083
1084   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085   | -silent | --silent | --silen | --sile | --sil)
1086     silent=yes ;;
1087
1088   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089     ac_prev=sbindir ;;
1090   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091   | --sbi=* | --sb=*)
1092     sbindir=$ac_optarg ;;
1093
1094   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096   | --sharedst | --shareds | --shared | --share | --shar \
1097   | --sha | --sh)
1098     ac_prev=sharedstatedir ;;
1099   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102   | --sha=* | --sh=*)
1103     sharedstatedir=$ac_optarg ;;
1104
1105   -site | --site | --sit)
1106     ac_prev=site ;;
1107   -site=* | --site=* | --sit=*)
1108     site=$ac_optarg ;;
1109
1110   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111     ac_prev=srcdir ;;
1112   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113     srcdir=$ac_optarg ;;
1114
1115   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116   | --syscon | --sysco | --sysc | --sys | --sy)
1117     ac_prev=sysconfdir ;;
1118   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120     sysconfdir=$ac_optarg ;;
1121
1122   -target | --target | --targe | --targ | --tar | --ta | --t)
1123     ac_prev=target_alias ;;
1124   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125     target_alias=$ac_optarg ;;
1126
1127   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128     verbose=yes ;;
1129
1130   -version | --version | --versio | --versi | --vers | -V)
1131     ac_init_version=: ;;
1132
1133   -with-* | --with-*)
1134     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137       { echo "$as_me: error: invalid package name: $ac_package" >&2
1138    { (exit 1); exit 1; }; }
1139     ac_package=`echo $ac_package| sed 's/-/_/g'`
1140     eval with_$ac_package=\$ac_optarg ;;
1141
1142   -without-* | --without-*)
1143     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid package name: $ac_package" >&2
1147    { (exit 1); exit 1; }; }
1148     ac_package=`echo $ac_package | sed 's/-/_/g'`
1149     eval with_$ac_package=no ;;
1150
1151   --x)
1152     # Obsolete; use --with-x.
1153     with_x=yes ;;
1154
1155   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156   | --x-incl | --x-inc | --x-in | --x-i)
1157     ac_prev=x_includes ;;
1158   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160     x_includes=$ac_optarg ;;
1161
1162   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164     ac_prev=x_libraries ;;
1165   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167     x_libraries=$ac_optarg ;;
1168
1169   -*) { echo "$as_me: error: unrecognized option: $ac_option
1170 Try \`$0 --help' for more information." >&2
1171    { (exit 1); exit 1; }; }
1172     ;;
1173
1174   *=*)
1175     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179    { (exit 1); exit 1; }; }
1180     eval $ac_envvar=\$ac_optarg
1181     export $ac_envvar ;;
1182
1183   *)
1184     # FIXME: should be removed in autoconf 3.0.
1185     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189     ;;
1190
1191   esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196   { echo "$as_me: error: missing argument to $ac_option" >&2
1197    { (exit 1); exit 1; }; }
1198 fi
1199
1200 # Be sure to have absolute directory names.
1201 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202                 datadir sysconfdir sharedstatedir localstatedir includedir \
1203                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204                 libdir localedir mandir
1205 do
1206   eval ac_val=\$$ac_var
1207   case $ac_val in
1208     [\\/$]* | ?:[\\/]* )  continue;;
1209     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210   esac
1211   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212    { (exit 1); exit 1; }; }
1213 done
1214
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1221
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224   if test "x$build_alias" = x; then
1225     cross_compiling=maybe
1226     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227     If a cross compiler is detected then cross compile mode will be used." >&2
1228   elif test "x$build_alias" != "x$host_alias"; then
1229     cross_compiling=yes
1230   fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242   { echo "$as_me: error: Working directory cannot be determined" >&2
1243    { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245   { echo "$as_me: error: pwd does not report name of working directory" >&2
1246    { (exit 1); exit 1; }; }
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251   ac_srcdir_defaulted=yes
1252   # Try the directory containing this script, then the parent directory.
1253   ac_confdir=`$as_dirname -- "$0" ||
1254 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255          X"$0" : 'X\(//\)[^/]' \| \
1256          X"$0" : 'X\(//\)$' \| \
1257          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258 echo X"$0" |
1259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)[^/].*/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\).*/{
1272             s//\1/
1273             q
1274           }
1275           s/.*/./; q'`
1276   srcdir=$ac_confdir
1277   if test ! -r "$srcdir/$ac_unique_file"; then
1278     srcdir=..
1279   fi
1280 else
1281   ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286    { (exit 1); exit 1; }; }
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291    { (exit 1); exit 1; }; }
1292         pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295   srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_env_${ac_var}_value=\$${ac_var}
1306   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314   # Omit some internal or obsolete options to make the list less imposing.
1315   # This message is too long to be a string in the A/UX 3.1 sh.
1316   cat <<_ACEOF
1317 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327   -h, --help              display this help and exit
1328       --help=short        display options specific to this package
1329       --help=recursive    display the short help of all the included packages
1330   -V, --version           display version information and exit
1331   -q, --quiet, --silent   do not print \`checking...' messages
1332       --cache-file=FILE   cache test results in FILE [disabled]
1333   -C, --config-cache      alias for \`--cache-file=config.cache'
1334   -n, --no-create         do not create output files
1335       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338   --prefix=PREFIX         install architecture-independent files in PREFIX
1339                           [$ac_default_prefix]
1340   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                           [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351   --bindir=DIR           user executables [EPREFIX/bin]
1352   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1353   --libexecdir=DIR       program executables [EPREFIX/libexec]
1354   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1355   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1356   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1357   --libdir=DIR           object code libraries [EPREFIX/lib]
1358   --includedir=DIR       C header files [PREFIX/include]
1359   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1360   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1361   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1362   --infodir=DIR          info documentation [DATAROOTDIR/info]
1363   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1364   --mandir=DIR           man documentation [DATAROOTDIR/man]
1365   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1366   --htmldir=DIR          html documentation [DOCDIR]
1367   --dvidir=DIR           dvi documentation [DOCDIR]
1368   --pdfdir=DIR           pdf documentation [DOCDIR]
1369   --psdir=DIR            ps documentation [DOCDIR]
1370 _ACEOF
1371
1372   cat <<\_ACEOF
1373
1374 System types:
1375   --build=BUILD     configure for building on BUILD [guessed]
1376   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377   --target=TARGET   configure for building compilers for TARGET [HOST]
1378 _ACEOF
1379 fi
1380
1381 if test -n "$ac_init_help"; then
1382   case $ac_init_help in
1383      short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1384    esac
1385   cat <<\_ACEOF
1386
1387 Optional Features:
1388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390   --enable-polly          Use polly if available (default is YES)
1391   --enable-libcpp         Use libc++ if available (default is NO)
1392   --enable-compiler-version-checks
1393                           Check the version of the host compiler (default is
1394                           YES)
1395   --enable-cxx1y          Use c++1y if available (default is NO)
1396   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1397   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1398   --enable-clang-plugin-support
1399                           Enable plugin support in clang (default is YES)
1400   --enable-clang-static-analyzer
1401                           Enable building of clang Static Analyzer (default is
1402                           YES)
1403   --enable-optimized      Compile with optimizations enabled (default is NO)
1404   --enable-profiling      Compile with profiling enabled (default is NO)
1405   --enable-assertions     Compile with assertion checks enabled (default is
1406                           YES)
1407   --enable-werror         Compile with -Werror enabled (default is NO)
1408   --enable-expensive-checks
1409                           Compile with expensive debug checks enabled (default
1410                           is NO)
1411   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1412                           NO)
1413   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1414                           optimization is on and YES if it's off)
1415   --enable-keep-symbols   Do not strip installed executables)
1416   --enable-jit            Enable Just In Time Compiling (default is YES)
1417   --enable-docs           Build documents (default is YES)
1418   --enable-doxygen        Build doxygen documentation (default is NO)
1419   --enable-threads        Use threads if available (default is YES)
1420   --enable-pthreads       Use pthreads if available (default is YES)
1421   --enable-zlib           Use zlib for compression/decompression if available
1422                           (default is YES)
1423   --enable-pic            Build LLVM with Position Independent Code (default
1424                           is YES)
1425   --enable-shared         Build a shared library and link tools against it
1426                           (default is NO)
1427   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1428                           Win32 DLL (default is NO)
1429   --enable-timestamps     Enable embedding timestamp information in build
1430                           (default is YES)
1431   --enable-backtraces     Enable embedding backtraces on crash (default is
1432                           YES)
1433   --enable-crash-overrides
1434                           Enable crash handling overrides (default is YES)
1435   --enable-targets        Build specific host targets: all or
1436                           target1,target2,... Valid targets are: host, x86,
1437                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1439                           cpp (default=all)
1440   --enable-experimental-targets
1441                           Build experimental host targets: disable or
1442                           target1,target2,... (default=disable)
1443   --enable-bindings       Build specific language bindings:
1444                           all,auto,none,{binding-name} (default=auto)
1445   --enable-terminfo       Query the terminfo database if available (default is
1446                           YES)
1447   --enable-libedit        Use libedit if available (default is YES)
1448   --enable-libffi         Check for the presence of libffi (default is NO)
1449
1450 Optional Packages:
1451   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453   --with-optimize-option  Select the compiler options to use for optimized
1454                           builds
1455   --with-extra-options    Specify additional options to compile LLVM with
1456   --with-extra-ld-options Specify additional options to link LLVM with
1457   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1458                           is stdlib)
1459   --with-clang-srcdir     Directory to the out-of-tree Clang source
1460   --with-clang-resource-dir
1461                           Relative directory from the Clang binary for
1462                           resource files
1463   --with-c-include-dirs   Colon separated list of directories clang will
1464                           search for headers
1465   --with-gcc-toolchain    Directory where gcc is installed.
1466   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1467   --with-binutils-include Specify path to binutils/include/ containing
1468                           plugin-api.h file for gold plugin.
1469   --with-bug-report-url   Specify the URL where bug reports should be
1470                           submitted (default=http://llvm.org/bugs/)
1471   --with-internal-prefix  Installation directory for internal files
1472   --with-python           path to python
1473   --with-oprofile=<prefix>
1474                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1475   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1476
1477
1478 Some influential environment variables:
1479   CC          C compiler command
1480   CFLAGS      C compiler flags
1481   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482               nonstandard directory <lib dir>
1483   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484               you have headers in a nonstandard directory <include dir>
1485   CXX         C++ compiler command
1486   CXXFLAGS    C++ compiler flags
1487   CPP         C preprocessor
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <http://llvm.org/bugs/>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" || continue
1501     ac_builddir=.
1502
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *)
1506   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507   # A ".." for each directory in $ac_dir_suffix.
1508   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509   case $ac_top_builddir_sub in
1510   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512   esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1518
1519 case $srcdir in
1520   .)  # We are building in place.
1521     ac_srcdir=.
1522     ac_top_srcdir=$ac_top_builddir_sub
1523     ac_abs_top_srcdir=$ac_pwd ;;
1524   [\\/]* | ?:[\\/]* )  # Absolute name.
1525     ac_srcdir=$srcdir$ac_dir_suffix;
1526     ac_top_srcdir=$srcdir
1527     ac_abs_top_srcdir=$srcdir ;;
1528   *) # Relative name.
1529     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530     ac_top_srcdir=$ac_top_build_prefix$srcdir
1531     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535     cd "$ac_dir" || { ac_status=$?; continue; }
1536     # Check for guested configure.
1537     if test -f "$ac_srcdir/configure.gnu"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540     elif test -f "$ac_srcdir/configure"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure" --help=recursive
1543     else
1544       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545     fi || ac_status=$?
1546     cd "$ac_pwd" || { ac_status=$?; break; }
1547   done
1548 fi
1549
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552   cat <<\_ACEOF
1553 LLVM configure 3.7.0svn
1554 generated by GNU Autoconf 2.60
1555
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1560
1561 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1562 _ACEOF
1563   exit
1564 fi
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1568
1569 It was created by LLVM $as_me 3.7.0svn, which was
1570 generated by GNU Autoconf 2.60.  Invocation command line was
1571
1572   $ $0 $@
1573
1574 _ACEOF
1575 exec 5>>config.log
1576 {
1577 cat <<_ASUNAME
1578 ## --------- ##
1579 ## Platform. ##
1580 ## --------- ##
1581
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1590
1591 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1592 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1595 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1596 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1597 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1598
1599 _ASUNAME
1600
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 for as_dir in $PATH
1603 do
1604   IFS=$as_save_IFS
1605   test -z "$as_dir" && as_dir=.
1606   echo "PATH: $as_dir"
1607 done
1608 IFS=$as_save_IFS
1609
1610 } >&5
1611
1612 cat >&5 <<_ACEOF
1613
1614
1615 ## ----------- ##
1616 ## Core tests. ##
1617 ## ----------- ##
1618
1619 _ACEOF
1620
1621
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_configure_args=
1628 ac_configure_args0=
1629 ac_configure_args1=
1630 ac_must_keep_next=false
1631 for ac_pass in 1 2
1632 do
1633   for ac_arg
1634   do
1635     case $ac_arg in
1636     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638     | -silent | --silent | --silen | --sile | --sil)
1639       continue ;;
1640     *\'*)
1641       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642     esac
1643     case $ac_pass in
1644     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645     2)
1646       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647       if test $ac_must_keep_next = true; then
1648         ac_must_keep_next=false # Got value, back to normal.
1649       else
1650         case $ac_arg in
1651           *=* | --config-cache | -C | -disable-* | --disable-* \
1652           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654           | -with-* | --with-* | -without-* | --without-* | --x)
1655             case "$ac_configure_args0 " in
1656               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657             esac
1658             ;;
1659           -* ) ac_must_keep_next=true ;;
1660         esac
1661       fi
1662       ac_configure_args="$ac_configure_args '$ac_arg'"
1663       ;;
1664     esac
1665   done
1666 done
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log.  We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676   # Save into config.log some information that might help in debugging.
1677   {
1678     echo
1679
1680     cat <<\_ASBOX
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1684 _ASBOX
1685     echo
1686     # The following way of writing the cache mishandles newlines in values,
1687 (
1688   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689     eval ac_val=\$$ac_var
1690     case $ac_val in #(
1691     *${as_nl}*)
1692       case $ac_var in #(
1693       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695       esac
1696       case $ac_var in #(
1697       _ | IFS | as_nl) ;; #(
1698       *) $as_unset $ac_var ;;
1699       esac ;;
1700     esac
1701   done
1702   (set) 2>&1 |
1703     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704     *${as_nl}ac_space=\ *)
1705       sed -n \
1706         "s/'\''/'\''\\\\'\'''\''/g;
1707           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708       ;; #(
1709     *)
1710       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711       ;;
1712     esac |
1713     sort
1714 )
1715     echo
1716
1717     cat <<\_ASBOX
1718 ## ----------------- ##
1719 ## Output variables. ##
1720 ## ----------------- ##
1721 _ASBOX
1722     echo
1723     for ac_var in $ac_subst_vars
1724     do
1725       eval ac_val=\$$ac_var
1726       case $ac_val in
1727       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728       esac
1729       echo "$ac_var='\''$ac_val'\''"
1730     done | sort
1731     echo
1732
1733     if test -n "$ac_subst_files"; then
1734       cat <<\_ASBOX
1735 ## ------------------- ##
1736 ## File substitutions. ##
1737 ## ------------------- ##
1738 _ASBOX
1739       echo
1740       for ac_var in $ac_subst_files
1741       do
1742         eval ac_val=\$$ac_var
1743         case $ac_val in
1744         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745         esac
1746         echo "$ac_var='\''$ac_val'\''"
1747       done | sort
1748       echo
1749     fi
1750
1751     if test -s confdefs.h; then
1752       cat <<\_ASBOX
1753 ## ----------- ##
1754 ## confdefs.h. ##
1755 ## ----------- ##
1756 _ASBOX
1757       echo
1758       cat confdefs.h
1759       echo
1760     fi
1761     test "$ac_signal" != 0 &&
1762       echo "$as_me: caught signal $ac_signal"
1763     echo "$as_me: exit $exit_status"
1764   } >&5
1765   rm -f core *.core core.conftest.* &&
1766     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767     exit $exit_status
1768 ' 0
1769 for ac_signal in 1 2 13 15; do
1770   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 done
1772 ac_signal=0
1773
1774 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1775 rm -f -r conftest* confdefs.h
1776
1777 # Predefined preprocessor variables.
1778
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 _ACEOF
1782
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 _ACEOF
1802
1803
1804 # Let the site file select an alternate cache file if it wants to.
1805 # Prefer explicitly selected file to automatically selected ones.
1806 if test -n "$CONFIG_SITE"; then
1807   set x "$CONFIG_SITE"
1808 elif test "x$prefix" != xNONE; then
1809   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810 else
1811   set x "$ac_default_prefix/share/config.site" \
1812         "$ac_default_prefix/etc/config.site"
1813 fi
1814 shift
1815 for ac_site_file
1816 do
1817   if test -r "$ac_site_file"; then
1818     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819 echo "$as_me: loading site script $ac_site_file" >&6;}
1820     sed 's/^/| /' "$ac_site_file" >&5
1821     . "$ac_site_file"
1822   fi
1823 done
1824
1825 if test -r "$cache_file"; then
1826   # Some versions of bash will fail to source /dev/null (special
1827   # files actually), so we avoid doing that.
1828   if test -f "$cache_file"; then
1829     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830 echo "$as_me: loading cache $cache_file" >&6;}
1831     case $cache_file in
1832       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833       *)                      . "./$cache_file";;
1834     esac
1835   fi
1836 else
1837   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838 echo "$as_me: creating cache $cache_file" >&6;}
1839   >$cache_file
1840 fi
1841
1842 # Check that the precious variables saved in the cache have kept the same
1843 # value.
1844 ac_cache_corrupted=false
1845 for ac_var in $ac_precious_vars; do
1846   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847   eval ac_new_set=\$ac_env_${ac_var}_set
1848   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849   eval ac_new_val=\$ac_env_${ac_var}_value
1850   case $ac_old_set,$ac_new_set in
1851     set,)
1852       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854       ac_cache_corrupted=: ;;
1855     ,set)
1856       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858       ac_cache_corrupted=: ;;
1859     ,);;
1860     *)
1861       if test "x$ac_old_val" != "x$ac_new_val"; then
1862         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1865 echo "$as_me:   former value:  $ac_old_val" >&2;}
1866         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1867 echo "$as_me:   current value: $ac_new_val" >&2;}
1868         ac_cache_corrupted=:
1869       fi;;
1870   esac
1871   # Pass precious variables to config.status.
1872   if test "$ac_new_set" = set; then
1873     case $ac_new_val in
1874     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875     *) ac_arg=$ac_var=$ac_new_val ;;
1876     esac
1877     case " $ac_configure_args " in
1878       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1879       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880     esac
1881   fi
1882 done
1883 if $ac_cache_corrupted; then
1884   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888    { (exit 1); exit 1; }; }
1889 fi
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915 ac_ext=c
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
1923 LLVM_VERSION_MAJOR=3
1924 LLVM_VERSION_MINOR=7
1925 LLVM_VERSION_PATCH=0
1926 LLVM_VERSION_SUFFIX=svn
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1946 _ACEOF
1947
1948
1949
1950
1951
1952
1953
1954 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1955
1956
1957
1958
1959
1960
1961
1962 ac_aux_dir=
1963 for ac_dir in autoconf "$srcdir"/autoconf; do
1964   if test -f "$ac_dir/install-sh"; then
1965     ac_aux_dir=$ac_dir
1966     ac_install_sh="$ac_aux_dir/install-sh -c"
1967     break
1968   elif test -f "$ac_dir/install.sh"; then
1969     ac_aux_dir=$ac_dir
1970     ac_install_sh="$ac_aux_dir/install.sh -c"
1971     break
1972   elif test -f "$ac_dir/shtool"; then
1973     ac_aux_dir=$ac_dir
1974     ac_install_sh="$ac_aux_dir/shtool install -c"
1975     break
1976   fi
1977 done
1978 if test -z "$ac_aux_dir"; then
1979   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1980 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1981    { (exit 1); exit 1; }; }
1982 fi
1983
1984 # These three variables are undocumented and unsupported,
1985 # and are intended to be withdrawn in a future Autoconf release.
1986 # They can cause serious problems if a builder's source tree is in a directory
1987 # whose full name contains unusual characters.
1988 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1989 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1990 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1991
1992
1993
1994 if test ${srcdir} != "." ; then
1995   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1996     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1997 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1998    { (exit 1); exit 1; }; }
1999   fi
2000 fi
2001
2002 : ${CFLAGS=}
2003 : ${CXXFLAGS=}
2004
2005 ac_ext=c
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011   for ac_prog in clang gcc
2012   do
2013     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   if test -n "$CC"; then
2021   ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
2027   test -z "$as_dir" && as_dir=.
2028   for ac_exec_ext in '' $ac_executable_extensions; do
2029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032     break 2
2033   fi
2034 done
2035 done
2036 IFS=$as_save_IFS
2037
2038 fi
2039 fi
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042   { echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6; }
2044 else
2045   { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2047 fi
2048
2049
2050     test -n "$CC" && break
2051   done
2052 fi
2053 if test -z "$CC"; then
2054   ac_ct_CC=$CC
2055   for ac_prog in clang gcc
2056 do
2057   # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   if test -n "$ac_ct_CC"; then
2065   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070   IFS=$as_save_IFS
2071   test -z "$as_dir" && as_dir=.
2072   for ac_exec_ext in '' $ac_executable_extensions; do
2073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2074     ac_cv_prog_ac_ct_CC="$ac_prog"
2075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076     break 2
2077   fi
2078 done
2079 done
2080 IFS=$as_save_IFS
2081
2082 fi
2083 fi
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 echo "${ECHO_T}$ac_ct_CC" >&6; }
2088 else
2089   { echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6; }
2091 fi
2092
2093
2094   test -n "$ac_ct_CC" && break
2095 done
2096
2097   if test "x$ac_ct_CC" = x; then
2098     CC=""
2099   else
2100     case $cross_compiling:$ac_tool_warned in
2101 yes:)
2102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2103 whose name does not start with the host triplet.  If you think this
2104 configuration is useful to you, please write to autoconf@gnu.org." >&5
2105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2106 whose name does not start with the host triplet.  If you think this
2107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2108 ac_tool_warned=yes ;;
2109 esac
2110     CC=$ac_ct_CC
2111   fi
2112 fi
2113
2114
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119    { (exit 1); exit 1; }; }
2120
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO: checking for C compiler version" >&5
2123 ac_compiler=`set X $ac_compile; echo $2`
2124 { (ac_try="$ac_compiler --version >&5"
2125 case "(($ac_try" in
2126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127   *) ac_try_echo=$ac_try;;
2128 esac
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130   (eval "$ac_compiler --version >&5") 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }
2134 { (ac_try="$ac_compiler -v >&5"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140   (eval "$ac_compiler -v >&5") 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144 { (ac_try="$ac_compiler -V >&5"
2145 case "(($ac_try" in
2146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147   *) ac_try_echo=$ac_try;;
2148 esac
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150   (eval "$ac_compiler -V >&5") 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154
2155 cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h.  */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h.  */
2161
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2174 # of exeext.
2175 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178 #
2179 # List of possible output files, starting from the most likely.
2180 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2181 # only as a last resort.  b.out is created by i960 compilers.
2182 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2183 #
2184 # The IRIX 6 linker writes into existing files which may not be
2185 # executable, retaining their permissions.  Remove them first so a
2186 # subsequent execution test works.
2187 ac_rmfiles=
2188 for ac_file in $ac_files
2189 do
2190   case $ac_file in
2191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2192     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2193   esac
2194 done
2195 rm -f $ac_rmfiles
2196
2197 if { (ac_try="$ac_link_default"
2198 case "(($ac_try" in
2199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200   *) ac_try_echo=$ac_try;;
2201 esac
2202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203   (eval "$ac_link_default") 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }; then
2207   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2208 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2209 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2210 # so that the user can short-circuit this test for compilers unknown to
2211 # Autoconf.
2212 for ac_file in $ac_files
2213 do
2214   test -f "$ac_file" || continue
2215   case $ac_file in
2216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2217         ;;
2218     [ab].out )
2219         # We found the default executable, but exeext='' is most
2220         # certainly right.
2221         break;;
2222     *.* )
2223         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2224         then :; else
2225            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226         fi
2227         # We set ac_cv_exeext here because the later test for it is not
2228         # safe: cross compilers may not add the suffix if given an `-o'
2229         # argument, so we may need to know it at that point already.
2230         # Even if this section looks crufty: it has the advantage of
2231         # actually working.
2232         break;;
2233     * )
2234         break;;
2235   esac
2236 done
2237 test "$ac_cv_exeext" = no && ac_cv_exeext=
2238
2239 else
2240   echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: C compiler cannot create executables
2246 See \`config.log' for more details." >&2;}
2247    { (exit 77); exit 77; }; }
2248 fi
2249
2250 ac_exeext=$ac_cv_exeext
2251 { echo "$as_me:$LINENO: result: $ac_file" >&5
2252 echo "${ECHO_T}$ac_file" >&6; }
2253
2254 # Check that the compiler produces executables we can run.  If not, either
2255 # the compiler is broken, or we cross compile.
2256 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2258 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259 # If not cross compiling, check that we can run a simple program.
2260 if test "$cross_compiling" != yes; then
2261   if { ac_try='./$ac_file'
2262   { (case "(($ac_try" in
2263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264   *) ac_try_echo=$ac_try;;
2265 esac
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267   (eval "$ac_try") 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; }; then
2271     cross_compiling=no
2272   else
2273     if test "$cross_compiling" = maybe; then
2274         cross_compiling=yes
2275     else
2276         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277 If you meant to cross compile, use \`--host'.
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot run C compiled programs.
2280 If you meant to cross compile, use \`--host'.
2281 See \`config.log' for more details." >&2;}
2282    { (exit 1); exit 1; }; }
2283     fi
2284   fi
2285 fi
2286 { echo "$as_me:$LINENO: result: yes" >&5
2287 echo "${ECHO_T}yes" >&6; }
2288
2289 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2290 ac_clean_files=$ac_clean_files_save
2291 # Check that the compiler produces executables we can run.  If not, either
2292 # the compiler is broken, or we cross compile.
2293 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2295 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296 echo "${ECHO_T}$cross_compiling" >&6; }
2297
2298 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2300 if { (ac_try="$ac_link"
2301 case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306   (eval "$ac_link") 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; then
2310   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2311 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2312 # work properly (i.e., refer to `conftest.exe'), while it won't with
2313 # `rm'.
2314 for ac_file in conftest.exe conftest conftest.*; do
2315   test -f "$ac_file" || continue
2316   case $ac_file in
2317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2318     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2319           break;;
2320     * ) break;;
2321   esac
2322 done
2323 else
2324   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&2;}
2328    { (exit 1); exit 1; }; }
2329 fi
2330
2331 rm -f conftest$ac_cv_exeext
2332 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2334
2335 rm -f conftest.$ac_ext
2336 EXEEXT=$ac_cv_exeext
2337 ac_exeext=$EXEEXT
2338 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2340 if test "${ac_cv_objext+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   cat >conftest.$ac_ext <<_ACEOF
2344 /* confdefs.h.  */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h.  */
2349
2350 int
2351 main ()
2352 {
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.o conftest.obj
2359 if { (ac_try="$ac_compile"
2360 case "(($ac_try" in
2361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362   *) ac_try_echo=$ac_try;;
2363 esac
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365   (eval "$ac_compile") 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }; then
2369   for ac_file in conftest.o conftest.obj conftest.*; do
2370   test -f "$ac_file" || continue;
2371   case $ac_file in
2372     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2373     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2374        break;;
2375   esac
2376 done
2377 else
2378   echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&5
2383 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384 See \`config.log' for more details." >&2;}
2385    { (exit 1); exit 1; }; }
2386 fi
2387
2388 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2389 fi
2390 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391 echo "${ECHO_T}$ac_cv_objext" >&6; }
2392 OBJEXT=$ac_cv_objext
2393 ac_objext=$OBJEXT
2394 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2396 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   cat >conftest.$ac_ext <<_ACEOF
2400 /* confdefs.h.  */
2401 _ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h.  */
2405
2406 int
2407 main ()
2408 {
2409 #ifndef __GNUC__
2410        choke me
2411 #endif
2412
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 rm -f conftest.$ac_objext
2418 if { (ac_try="$ac_compile"
2419 case "(($ac_try" in
2420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421   *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424   (eval "$ac_compile") 2>conftest.er1
2425   ac_status=$?
2426   grep -v '^ *+' conftest.er1 >conftest.err
2427   rm -f conftest.er1
2428   cat conftest.err >&5
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); } &&
2431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432   { (case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437   (eval "$ac_try") 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; } &&
2441          { ac_try='test -s conftest.$ac_objext'
2442   { (case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447   (eval "$ac_try") 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   ac_compiler_gnu=yes
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456         ac_compiler_gnu=no
2457 fi
2458
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2461
2462 fi
2463 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2465 GCC=`test $ac_compiler_gnu = yes && echo yes`
2466 ac_test_CFLAGS=${CFLAGS+set}
2467 ac_save_CFLAGS=$CFLAGS
2468 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_cc_g+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   ac_save_c_werror_flag=$ac_c_werror_flag
2474    ac_c_werror_flag=yes
2475    ac_cv_prog_cc_g=no
2476    CFLAGS="-g"
2477    cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h.  */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h.  */
2483
2484 int
2485 main ()
2486 {
2487
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2494 case "(($ac_try" in
2495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496   *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499   (eval "$ac_compile") 2>conftest.er1
2500   ac_status=$?
2501   grep -v '^ *+' conftest.er1 >conftest.err
2502   rm -f conftest.er1
2503   cat conftest.err >&5
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); } &&
2506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507   { (case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512   (eval "$ac_try") 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; } &&
2516          { ac_try='test -s conftest.$ac_objext'
2517   { (case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_try") 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; }; then
2526   ac_cv_prog_cc_g=yes
2527 else
2528   echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531         CFLAGS=""
2532       cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h.  */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h.  */
2538
2539 int
2540 main ()
2541 {
2542
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (ac_try="$ac_compile"
2549 case "(($ac_try" in
2550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551   *) ac_try_echo=$ac_try;;
2552 esac
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554   (eval "$ac_compile") 2>conftest.er1
2555   ac_status=$?
2556   grep -v '^ *+' conftest.er1 >conftest.err
2557   rm -f conftest.er1
2558   cat conftest.err >&5
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); } &&
2561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562   { (case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_try") 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; } &&
2571          { ac_try='test -s conftest.$ac_objext'
2572   { (case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_try") 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; }; then
2581   :
2582 else
2583   echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586         ac_c_werror_flag=$ac_save_c_werror_flag
2587          CFLAGS="-g"
2588          cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h.  */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h.  */
2594
2595 int
2596 main ()
2597 {
2598
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 rm -f conftest.$ac_objext
2604 if { (ac_try="$ac_compile"
2605 case "(($ac_try" in
2606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607   *) ac_try_echo=$ac_try;;
2608 esac
2609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610   (eval "$ac_compile") 2>conftest.er1
2611   ac_status=$?
2612   grep -v '^ *+' conftest.er1 >conftest.err
2613   rm -f conftest.er1
2614   cat conftest.err >&5
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); } &&
2617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2618   { (case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623   (eval "$ac_try") 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; } &&
2627          { ac_try='test -s conftest.$ac_objext'
2628   { (case "(($ac_try" in
2629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630   *) ac_try_echo=$ac_try;;
2631 esac
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633   (eval "$ac_try") 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; }; then
2637   ac_cv_prog_cc_g=yes
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642
2643 fi
2644
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 fi
2647
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 fi
2650
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652    ac_c_werror_flag=$ac_save_c_werror_flag
2653 fi
2654 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2656 if test "$ac_test_CFLAGS" = set; then
2657   CFLAGS=$ac_save_CFLAGS
2658 elif test $ac_cv_prog_cc_g = yes; then
2659   if test "$GCC" = yes; then
2660     CFLAGS="-g -O2"
2661   else
2662     CFLAGS="-g"
2663   fi
2664 else
2665   if test "$GCC" = yes; then
2666     CFLAGS="-O2"
2667   else
2668     CFLAGS=
2669   fi
2670 fi
2671 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2672 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_cc_c89+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   ac_cv_prog_cc_c89=no
2677 ac_save_CC=$CC
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684 #include <stdarg.h>
2685 #include <stdio.h>
2686 #include <sys/types.h>
2687 #include <sys/stat.h>
2688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2689 struct buf { int x; };
2690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691 static char *e (p, i)
2692      char **p;
2693      int i;
2694 {
2695   return p[i];
2696 }
2697 static char *f (char * (*g) (char **, int), char **p, ...)
2698 {
2699   char *s;
2700   va_list v;
2701   va_start (v,p);
2702   s = g (p, va_arg (v,int));
2703   va_end (v);
2704   return s;
2705 }
2706
2707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2708    function prototypes and stuff, but not '\xHH' hex character constants.
2709    These don't provoke an error unfortunately, instead are silently treated
2710    as 'x'.  The following induces an error, until -std is added to get
2711    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2712    array size at least.  It's necessary to write '\x00'==0 to get something
2713    that's true only with -std.  */
2714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2715
2716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2717    inside strings and character constants.  */
2718 #define FOO(x) 'x'
2719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2720
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 int argc;
2726 char **argv;
2727 int
2728 main ()
2729 {
2730 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2736         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737 do
2738   CC="$ac_save_CC $ac_arg"
2739   rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2741 case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746   (eval "$ac_compile") 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754   { (case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_try") 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; } &&
2763          { ac_try='test -s conftest.$ac_objext'
2764   { (case "(($ac_try" in
2765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766   *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769   (eval "$ac_try") 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; }; then
2773   ac_cv_prog_cc_c89=$ac_arg
2774 else
2775   echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2777
2778
2779 fi
2780
2781 rm -f core conftest.err conftest.$ac_objext
2782   test "x$ac_cv_prog_cc_c89" != "xno" && break
2783 done
2784 rm -f conftest.$ac_ext
2785 CC=$ac_save_CC
2786
2787 fi
2788 # AC_CACHE_VAL
2789 case "x$ac_cv_prog_cc_c89" in
2790   x)
2791     { echo "$as_me:$LINENO: result: none needed" >&5
2792 echo "${ECHO_T}none needed" >&6; } ;;
2793   xno)
2794     { echo "$as_me:$LINENO: result: unsupported" >&5
2795 echo "${ECHO_T}unsupported" >&6; } ;;
2796   *)
2797     CC="$CC $ac_cv_prog_cc_c89"
2798     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2800 esac
2801
2802
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
2809 ac_ext=cpp
2810 ac_cpp='$CXXCPP $CPPFLAGS'
2811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2814 if test -z "$CXX"; then
2815   if test -n "$CCC"; then
2816     CXX=$CCC
2817   else
2818     if test -n "$ac_tool_prefix"; then
2819   for ac_prog in clang++ g++
2820   do
2821     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CXX+set}" = set; then
2826   echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828   if test -n "$CXX"; then
2829   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836   for ac_exec_ext in '' $ac_executable_extensions; do
2837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 CXX=$ac_cv_prog_CXX
2849 if test -n "$CXX"; then
2850   { echo "$as_me:$LINENO: result: $CXX" >&5
2851 echo "${ECHO_T}$CXX" >&6; }
2852 else
2853   { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2855 fi
2856
2857
2858     test -n "$CXX" && break
2859   done
2860 fi
2861 if test -z "$CXX"; then
2862   ac_ct_CXX=$CXX
2863   for ac_prog in clang++ g++
2864 do
2865   # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2870   echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872   if test -n "$ac_ct_CXX"; then
2873   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880   for ac_exec_ext in '' $ac_executable_extensions; do
2881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2882     ac_cv_prog_ac_ct_CXX="$ac_prog"
2883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884     break 2
2885   fi
2886 done
2887 done
2888 IFS=$as_save_IFS
2889
2890 fi
2891 fi
2892 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2893 if test -n "$ac_ct_CXX"; then
2894   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2895 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2896 else
2897   { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2899 fi
2900
2901
2902   test -n "$ac_ct_CXX" && break
2903 done
2904
2905   if test "x$ac_ct_CXX" = x; then
2906     CXX="g++"
2907   else
2908     case $cross_compiling:$ac_tool_warned in
2909 yes:)
2910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2911 whose name does not start with the host triplet.  If you think this
2912 configuration is useful to you, please write to autoconf@gnu.org." >&5
2913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2914 whose name does not start with the host triplet.  If you think this
2915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918     CXX=$ac_ct_CXX
2919   fi
2920 fi
2921
2922   fi
2923 fi
2924 # Provide some information about the compiler.
2925 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2926 ac_compiler=`set X $ac_compile; echo $2`
2927 { (ac_try="$ac_compiler --version >&5"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compiler --version >&5") 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }
2937 { (ac_try="$ac_compiler -v >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler -v >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2947 { (ac_try="$ac_compiler -V >&5"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compiler -V >&5") 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }
2957
2958 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2959 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2960 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963   cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969
2970 int
2971 main ()
2972 {
2973 #ifndef __GNUC__
2974        choke me
2975 #endif
2976
2977   ;
2978   return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985   *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988   (eval "$ac_compile") 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } &&
2995          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2996   { (case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_try") 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; } &&
3005          { ac_try='test -s conftest.$ac_objext'
3006   { (case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_try") 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }; }; then
3015   ac_compiler_gnu=yes
3016 else
3017   echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020         ac_compiler_gnu=no
3021 fi
3022
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3025
3026 fi
3027 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3028 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3029 GXX=`test $ac_compiler_gnu = yes && echo yes`
3030 ac_test_CXXFLAGS=${CXXFLAGS+set}
3031 ac_save_CXXFLAGS=$CXXFLAGS
3032 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3033 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_cxx_g+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3038    ac_cxx_werror_flag=yes
3039    ac_cv_prog_cxx_g=no
3040    CXXFLAGS="-g"
3041    cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047
3048 int
3049 main ()
3050 {
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_compile") 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } &&
3070          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071   { (case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; } &&
3080          { ac_try='test -s conftest.$ac_objext'
3081   { (case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_try") 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; }; then
3090   ac_cv_prog_cxx_g=yes
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095         CXXFLAGS=""
3096       cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h.  */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h.  */
3102
3103 int
3104 main ()
3105 {
3106
3107   ;
3108   return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3113 case "(($ac_try" in
3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115   *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118   (eval "$ac_compile") 2>conftest.er1
3119   ac_status=$?
3120   grep -v '^ *+' conftest.er1 >conftest.err
3121   rm -f conftest.er1
3122   cat conftest.err >&5
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); } &&
3125          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3126   { (case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_try") 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; } &&
3135          { ac_try='test -s conftest.$ac_objext'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; }; then
3145   :
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3151          CXXFLAGS="-g"
3152          cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3169 case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174   (eval "$ac_compile") 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } &&
3181          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3182   { (case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_try") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; } &&
3191          { ac_try='test -s conftest.$ac_objext'
3192   { (case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_try") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; }; then
3201   ac_cv_prog_cxx_g=yes
3202 else
3203   echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206
3207 fi
3208
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 fi
3211
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 fi
3214
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3217 fi
3218 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3219 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3220 if test "$ac_test_CXXFLAGS" = set; then
3221   CXXFLAGS=$ac_save_CXXFLAGS
3222 elif test $ac_cv_prog_cxx_g = yes; then
3223   if test "$GXX" = yes; then
3224     CXXFLAGS="-g -O2"
3225   else
3226     CXXFLAGS="-g"
3227   fi
3228 else
3229   if test "$GXX" = yes; then
3230     CXXFLAGS="-O2"
3231   else
3232     CXXFLAGS=
3233   fi
3234 fi
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3247 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3248 # On Suns, sometimes $CPP names a directory.
3249 if test -n "$CPP" && test -d "$CPP"; then
3250   CPP=
3251 fi
3252 if test -z "$CPP"; then
3253   if test "${ac_cv_prog_CPP+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256       # Double quotes because CPP needs to be expanded
3257     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258     do
3259       ac_preproc_ok=false
3260 for ac_c_preproc_warn_flag in '' yes
3261 do
3262   # Use a header file that comes with gcc, so configuring glibc
3263   # with a fresh cross-compiler works.
3264   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3265   # <limits.h> exists even on freestanding compilers.
3266   # On the NeXT, cc -E runs the code through the compiler's parser,
3267   # not just through cpp. "Syntax error" is here to catch this case.
3268   cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274 #ifdef __STDC__
3275 # include <limits.h>
3276 #else
3277 # include <assert.h>
3278 #endif
3279                      Syntax error
3280 _ACEOF
3281 if { (ac_try="$ac_cpp conftest.$ac_ext"
3282 case "(($ac_try" in
3283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284   *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3288   ac_status=$?
3289   grep -v '^ *+' conftest.er1 >conftest.err
3290   rm -f conftest.er1
3291   cat conftest.err >&5
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); } >/dev/null; then
3294   if test -s conftest.err; then
3295     ac_cpp_err=$ac_c_preproc_warn_flag
3296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297   else
3298     ac_cpp_err=
3299   fi
3300 else
3301   ac_cpp_err=yes
3302 fi
3303 if test -z "$ac_cpp_err"; then
3304   :
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309   # Broken: fails on valid input.
3310 continue
3311 fi
3312
3313 rm -f conftest.err conftest.$ac_ext
3314
3315   # OK, works on sane cases.  Now check whether nonexistent headers
3316   # can be detected and how.
3317   cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h.  */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h.  */
3323 #include <ac_nonexistent.h>
3324 _ACEOF
3325 if { (ac_try="$ac_cpp conftest.$ac_ext"
3326 case "(($ac_try" in
3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328   *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3332   ac_status=$?
3333   grep -v '^ *+' conftest.er1 >conftest.err
3334   rm -f conftest.er1
3335   cat conftest.err >&5
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } >/dev/null; then
3338   if test -s conftest.err; then
3339     ac_cpp_err=$ac_c_preproc_warn_flag
3340     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3341   else
3342     ac_cpp_err=
3343   fi
3344 else
3345   ac_cpp_err=yes
3346 fi
3347 if test -z "$ac_cpp_err"; then
3348   # Broken: success on invalid input.
3349 continue
3350 else
3351   echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354   # Passes both tests.
3355 ac_preproc_ok=:
3356 break
3357 fi
3358
3359 rm -f conftest.err conftest.$ac_ext
3360
3361 done
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then
3365   break
3366 fi
3367
3368     done
3369     ac_cv_prog_CPP=$CPP
3370
3371 fi
3372   CPP=$ac_cv_prog_CPP
3373 else
3374   ac_cv_prog_CPP=$CPP
3375 fi
3376 { echo "$as_me:$LINENO: result: $CPP" >&5
3377 echo "${ECHO_T}$CPP" >&6; }
3378 ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381   # Use a header file that comes with gcc, so configuring glibc
3382   # with a fresh cross-compiler works.
3383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384   # <limits.h> exists even on freestanding compilers.
3385   # On the NeXT, cc -E runs the code through the compiler's parser,
3386   # not just through cpp. "Syntax error" is here to catch this case.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #ifdef __STDC__
3394 # include <limits.h>
3395 #else
3396 # include <assert.h>
3397 #endif
3398                      Syntax error
3399 _ACEOF
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407   ac_status=$?
3408   grep -v '^ *+' conftest.er1 >conftest.err
3409   rm -f conftest.er1
3410   cat conftest.err >&5
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); } >/dev/null; then
3413   if test -s conftest.err; then
3414     ac_cpp_err=$ac_c_preproc_warn_flag
3415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416   else
3417     ac_cpp_err=
3418   fi
3419 else
3420   ac_cpp_err=yes
3421 fi
3422 if test -z "$ac_cpp_err"; then
3423   :
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428   # Broken: fails on valid input.
3429 continue
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434   # OK, works on sane cases.  Now check whether nonexistent headers
3435   # can be detected and how.
3436   cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442 #include <ac_nonexistent.h>
3443 _ACEOF
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } >/dev/null; then
3457   if test -s conftest.err; then
3458     ac_cpp_err=$ac_c_preproc_warn_flag
3459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460   else
3461     ac_cpp_err=
3462   fi
3463 else
3464   ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467   # Broken: success on invalid input.
3468 continue
3469 else
3470   echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473   # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3476 fi
3477
3478 rm -f conftest.err conftest.$ac_ext
3479
3480 done
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3484   :
3485 else
3486   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490    { (exit 1); exit 1; }; }
3491 fi
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
3499
3500 if test "$CXX" = "clang++" ; then
3501   { echo "$as_me:$LINENO: checking whether clang works" >&5
3502 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3503   ac_ext=cpp
3504 ac_cpp='$CXXCPP $CPPFLAGS'
3505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508
3509
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h.  */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h.  */
3516 #include <limits>
3517 #if __has_include (<cxxabi.h>)
3518 #include <cxxabi.h>
3519 #endif
3520 #if __has_include (<unwind.h>)
3521 #include <unwind.h>
3522 #endif
3523
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3534 case "(($ac_try" in
3535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536   *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539   (eval "$ac_compile") 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3547   { (case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; } &&
3556          { ac_try='test -s conftest.$ac_objext'
3557   { (case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_try") 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; }; then
3566
3567   { echo "$as_me:$LINENO: result: yes" >&5
3568 echo "${ECHO_T}yes" >&6; }
3569
3570 else
3571   echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574
3575   { echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6; }
3577   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3578 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3579    { (exit 1); exit 1; }; }
3580
3581 fi
3582
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584   ac_ext=c
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589
3590 fi
3591
3592 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3593 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3594 ac_ext=cpp
3595 ac_cpp='$CXXCPP $CPPFLAGS'
3596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3599
3600 llvm_cv_cxx_compiler=unknown
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h.  */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607 #if ! __clang__
3608                                     #error
3609                                     #endif
3610
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619   (eval "$ac_compile") 2>conftest.er1
3620   ac_status=$?
3621   grep -v '^ *+' conftest.er1 >conftest.err
3622   rm -f conftest.er1
3623   cat conftest.err >&5
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); } &&
3626          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3627   { (case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632   (eval "$ac_try") 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; } &&
3636          { ac_try='test -s conftest.$ac_objext'
3637   { (case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642   (eval "$ac_try") 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); }; }; then
3646   llvm_cv_cxx_compiler=clang
3647 else
3648   echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651         cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657 #if ! __GNUC__
3658                                                        #error
3659                                                        #endif
3660
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3664 case "(($ac_try" in
3665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666   *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669   (eval "$ac_compile") 2>conftest.er1
3670   ac_status=$?
3671   grep -v '^ *+' conftest.er1 >conftest.err
3672   rm -f conftest.er1
3673   cat conftest.err >&5
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); } &&
3676          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3677   { (case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682   (eval "$ac_try") 2>&5
3683   ac_status=$?
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); }; } &&
3686          { ac_try='test -s conftest.$ac_objext'
3687   { (case "(($ac_try" in
3688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689   *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692   (eval "$ac_try") 2>&5
3693   ac_status=$?
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); }; }; then
3696   llvm_cv_cxx_compiler=gcc
3697 else
3698   echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701
3702 fi
3703
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 fi
3706
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3715 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3716
3717
3718
3719 if test -d ${srcdir}/projects/test-suite ; then
3720   subdirs="$subdirs projects/test-suite"
3721
3722 fi
3723
3724 if test -d ${srcdir}/projects/llvm-test ; then
3725   subdirs="$subdirs projects/llvm-test"
3726
3727 fi
3728
3729 if test -d ${srcdir}/projects/poolalloc ; then
3730   subdirs="$subdirs projects/poolalloc"
3731
3732 fi
3733
3734 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3735   subdirs="$subdirs projects/llvm-poolalloc"
3736
3737 fi
3738
3739 for i in `ls ${srcdir}/projects`
3740 do
3741   if test -d ${srcdir}/projects/${i} ; then
3742     case ${i} in
3743       safecode)     subdirs="$subdirs projects/safecode"
3744  ;;
3745       compiler-rt)       ;;
3746       test-suite)     ;;
3747       llvm-test)      ;;
3748       poolalloc)      ;;
3749       llvm-poolalloc) ;;
3750       *)
3751         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3752 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3753         ;;
3754     esac
3755   fi
3756 done
3757
3758 # Check whether --enable-polly was given.
3759 if test "${enable_polly+set}" = set; then
3760   enableval=$enable_polly;
3761 else
3762   enableval=default
3763 fi
3764
3765 case "$enableval" in
3766   yes) ENABLE_POLLY=1
3767  ;;
3768   no)  ENABLE_POLLY=0
3769  ;;
3770   default) ENABLE_POLLY=1
3771  ;;
3772   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3773 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3774    { (exit 1); exit 1; }; } ;;
3775 esac
3776
3777
3778 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3779   LLVM_HAS_POLLY=1
3780
3781   subdirs="$subdirs tools/polly"
3782
3783 fi
3784
3785
3786 # Make sure we can run config.sub.
3787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3788   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3789 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3790    { (exit 1); exit 1; }; }
3791
3792 { echo "$as_me:$LINENO: checking build system type" >&5
3793 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3794 if test "${ac_cv_build+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   ac_build_alias=$build_alias
3798 test "x$ac_build_alias" = x &&
3799   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3800 test "x$ac_build_alias" = x &&
3801   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3802 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3803    { (exit 1); exit 1; }; }
3804 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3805   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3807    { (exit 1); exit 1; }; }
3808
3809 fi
3810 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3811 echo "${ECHO_T}$ac_cv_build" >&6; }
3812 case $ac_cv_build in
3813 *-*-*) ;;
3814 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3815 echo "$as_me: error: invalid value of canonical build" >&2;}
3816    { (exit 1); exit 1; }; };;
3817 esac
3818 build=$ac_cv_build
3819 ac_save_IFS=$IFS; IFS='-'
3820 set x $ac_cv_build
3821 shift
3822 build_cpu=$1
3823 build_vendor=$2
3824 shift; shift
3825 # Remember, the first character of IFS is used to create $*,
3826 # except with old shells:
3827 build_os=$*
3828 IFS=$ac_save_IFS
3829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830
3831
3832 { echo "$as_me:$LINENO: checking host system type" >&5
3833 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3834 if test "${ac_cv_host+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   if test "x$host_alias" = x; then
3838   ac_cv_host=$ac_cv_build
3839 else
3840   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3841     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3842 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3843    { (exit 1); exit 1; }; }
3844 fi
3845
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3848 echo "${ECHO_T}$ac_cv_host" >&6; }
3849 case $ac_cv_host in
3850 *-*-*) ;;
3851 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3852 echo "$as_me: error: invalid value of canonical host" >&2;}
3853    { (exit 1); exit 1; }; };;
3854 esac
3855 host=$ac_cv_host
3856 ac_save_IFS=$IFS; IFS='-'
3857 set x $ac_cv_host
3858 shift
3859 host_cpu=$1
3860 host_vendor=$2
3861 shift; shift
3862 # Remember, the first character of IFS is used to create $*,
3863 # except with old shells:
3864 host_os=$*
3865 IFS=$ac_save_IFS
3866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867
3868
3869 { echo "$as_me:$LINENO: checking target system type" >&5
3870 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3871 if test "${ac_cv_target+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   if test "x$target_alias" = x; then
3875   ac_cv_target=$ac_cv_host
3876 else
3877   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3878     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3879 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3880    { (exit 1); exit 1; }; }
3881 fi
3882
3883 fi
3884 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3885 echo "${ECHO_T}$ac_cv_target" >&6; }
3886 case $ac_cv_target in
3887 *-*-*) ;;
3888 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3889 echo "$as_me: error: invalid value of canonical target" >&2;}
3890    { (exit 1); exit 1; }; };;
3891 esac
3892 target=$ac_cv_target
3893 ac_save_IFS=$IFS; IFS='-'
3894 set x $ac_cv_target
3895 shift
3896 target_cpu=$1
3897 target_vendor=$2
3898 shift; shift
3899 # Remember, the first character of IFS is used to create $*,
3900 # except with old shells:
3901 target_os=$*
3902 IFS=$ac_save_IFS
3903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3904
3905
3906 # The aliases save the names the user supplied, while $host etc.
3907 # will get canonicalized.
3908 test -n "$target_alias" &&
3909   test "$program_prefix$program_suffix$program_transform_name" = \
3910     NONENONEs,x,x, &&
3911   program_prefix=${target_alias}-
3912
3913 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3914 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3915 if test "${llvm_cv_os_type+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   case $host in
3919   *-*-aix*)
3920     llvm_cv_link_all_option="-Wl,--whole-archive"
3921     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922     llvm_cv_os_type="AIX"
3923     llvm_cv_platform_type="Unix" ;;
3924   *-*-irix*)
3925     llvm_cv_link_all_option="-Wl,--whole-archive"
3926     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927     llvm_cv_os_type="IRIX"
3928     llvm_cv_platform_type="Unix" ;;
3929   *-*-cygwin*)
3930     llvm_cv_link_all_option="-Wl,--whole-archive"
3931     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932     llvm_cv_os_type="Cygwin"
3933     llvm_cv_platform_type="Unix" ;;
3934   *-*-darwin*)
3935     llvm_cv_link_all_option="-Wl,-all_load"
3936     llvm_cv_no_link_all_option="-Wl,-noall_load"
3937     llvm_cv_os_type="Darwin"
3938     llvm_cv_platform_type="Unix" ;;
3939   *-*-minix*)
3940     llvm_cv_link_all_option="-Wl,-all_load"
3941     llvm_cv_no_link_all_option="-Wl,-noall_load"
3942     llvm_cv_os_type="Minix"
3943     llvm_cv_platform_type="Unix" ;;
3944   *-*-freebsd*)
3945     llvm_cv_link_all_option="-Wl,--whole-archive"
3946     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947     llvm_cv_os_type="FreeBSD"
3948     llvm_cv_platform_type="Unix" ;;
3949   *-*-kfreebsd-gnu)
3950     llvm_cv_link_all_option="-Wl,--whole-archive"
3951     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952     llvm_cv_os_type="GNU/kFreeBSD"
3953     llvm_cv_platform_type="Unix" ;;
3954   *-*-openbsd*)
3955     llvm_cv_link_all_option="-Wl,--whole-archive"
3956     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957     llvm_cv_os_type="OpenBSD"
3958     llvm_cv_platform_type="Unix" ;;
3959   *-*-netbsd*)
3960     llvm_cv_link_all_option="-Wl,--whole-archive"
3961     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962     llvm_cv_os_type="NetBSD"
3963     llvm_cv_platform_type="Unix" ;;
3964   *-*-dragonfly*)
3965     llvm_cv_link_all_option="-Wl,--whole-archive"
3966     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967     llvm_cv_os_type="DragonFly"
3968     llvm_cv_platform_type="Unix" ;;
3969   *-*-hpux*)
3970     llvm_cv_link_all_option="-Wl,--whole-archive"
3971     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972     llvm_cv_os_type="HP-UX"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-interix*)
3975     llvm_cv_link_all_option="-Wl,--whole-archive"
3976     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977     llvm_cv_os_type="Interix"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-linux*)
3980     llvm_cv_link_all_option="-Wl,--whole-archive"
3981     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982     llvm_cv_os_type="Linux"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-gnu*)
3985     llvm_cv_link_all_option="-Wl,--whole-archive"
3986     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987     llvm_cv_os_type="GNU"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-solaris*)
3990     llvm_cv_link_all_option="-Wl,-z,allextract"
3991     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3992     llvm_cv_os_type="SunOS"
3993     llvm_cv_platform_type="Unix" ;;
3994   *-*-win32*)
3995     llvm_cv_link_all_option="-Wl,--whole-archive"
3996     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997     llvm_cv_os_type="Win32"
3998     llvm_cv_platform_type="Win32" ;;
3999   *-*-mingw*)
4000     llvm_cv_link_all_option="-Wl,--whole-archive"
4001     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002     llvm_cv_os_type="MingW"
4003     llvm_cv_platform_type="Win32" ;;
4004   *-*-haiku*)
4005     llvm_cv_link_all_option="-Wl,--whole-archive"
4006     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007     llvm_cv_os_type="Haiku"
4008     llvm_cv_platform_type="Unix" ;;
4009   *-unknown-eabi*)
4010     llvm_cv_link_all_option="-Wl,--whole-archive"
4011     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012     llvm_cv_os_type="Freestanding"
4013     llvm_cv_platform_type="Unix" ;;
4014   *-unknown-elf*)
4015     llvm_cv_link_all_option="-Wl,--whole-archive"
4016     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017     llvm_cv_os_type="Freestanding"
4018     llvm_cv_platform_type="Unix" ;;
4019   *)
4020     llvm_cv_link_all_option=""
4021     llvm_cv_no_link_all_option=""
4022     llvm_cv_os_type="Unknown"
4023     llvm_cv_platform_type="Unknown" ;;
4024 esac
4025 fi
4026 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4027 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4028
4029 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4030 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4031 if test "${llvm_cv_target_os_type+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   case $target in
4035   *-*-aix*)
4036     llvm_cv_target_os_type="AIX" ;;
4037   *-*-irix*)
4038     llvm_cv_target_os_type="IRIX" ;;
4039   *-*-cygwin*)
4040     llvm_cv_target_os_type="Cygwin" ;;
4041   *-*-darwin*)
4042     llvm_cv_target_os_type="Darwin" ;;
4043   *-*-minix*)
4044     llvm_cv_target_os_type="Minix" ;;
4045   *-*-freebsd*)
4046     llvm_cv_target_os_type="FreeBSD" ;;
4047   *-*-kfreebsd-gnu)
4048     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4049   *-*-openbsd*)
4050     llvm_cv_target_os_type="OpenBSD" ;;
4051   *-*-netbsd*)
4052     llvm_cv_target_os_type="NetBSD" ;;
4053   *-*-dragonfly*)
4054     llvm_cv_target_os_type="DragonFly" ;;
4055   *-*-hpux*)
4056     llvm_cv_target_os_type="HP-UX" ;;
4057   *-*-interix*)
4058     llvm_cv_target_os_type="Interix" ;;
4059   *-*-linux*)
4060     llvm_cv_target_os_type="Linux" ;;
4061   *-*-gnu*)
4062     llvm_cv_target_os_type="GNU" ;;
4063   *-*-solaris*)
4064     llvm_cv_target_os_type="SunOS" ;;
4065   *-*-win32*)
4066     llvm_cv_target_os_type="Win32" ;;
4067   *-*-mingw*)
4068     llvm_cv_target_os_type="MingW" ;;
4069   *-*-haiku*)
4070     llvm_cv_target_os_type="Haiku" ;;
4071   *-*-rtems*)
4072     llvm_cv_target_os_type="RTEMS" ;;
4073   *-*-nacl*)
4074     llvm_cv_target_os_type="NativeClient" ;;
4075   *-unknown-eabi*)
4076     llvm_cv_target_os_type="Freestanding" ;;
4077   *-*-ps4)
4078     llvm_cv_target_os_type="PS4" ;;
4079   *)
4080     llvm_cv_target_os_type="Unknown" ;;
4081 esac
4082 fi
4083 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4084 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4085
4086 if test "$llvm_cv_os_type" = "Unknown" ; then
4087   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4088 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4089    { (exit 1); exit 1; }; }
4090 fi
4091
4092 OS=$llvm_cv_os_type
4093
4094 HOST_OS=$llvm_cv_os_type
4095
4096 TARGET_OS=$llvm_cv_target_os_type
4097
4098
4099 LINKALL=$llvm_cv_link_all_option
4100
4101 NOLINKALL=$llvm_cv_no_link_all_option
4102
4103
4104 case $llvm_cv_platform_type in
4105   Unix)
4106
4107 cat >>confdefs.h <<\_ACEOF
4108 #define LLVM_ON_UNIX 1
4109 _ACEOF
4110
4111     LLVM_ON_UNIX=1
4112
4113     LLVM_ON_WIN32=0
4114
4115     ;;
4116   Win32)
4117
4118 cat >>confdefs.h <<\_ACEOF
4119 #define LLVM_ON_WIN32 1
4120 _ACEOF
4121
4122     LLVM_ON_UNIX=0
4123
4124     LLVM_ON_WIN32=1
4125
4126     ;;
4127 esac
4128
4129 { echo "$as_me:$LINENO: checking target architecture" >&5
4130 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4131 if test "${llvm_cv_target_arch+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   case $target in
4135   i?86-*)                 llvm_cv_target_arch="x86" ;;
4136   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4137   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4138   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4139   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4140   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4141   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4142   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4143   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4144   xcore-*)                llvm_cv_target_arch="XCore" ;;
4145   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4146   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4147   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4148   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4149   *)                      llvm_cv_target_arch="Unknown" ;;
4150 esac
4151 fi
4152 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4153 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4154
4155 if test "$llvm_cv_target_arch" = "Unknown" ; then
4156   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4157 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4158 fi
4159
4160 case "$llvm_cv_target_arch" in
4161     x86)     LLVM_NATIVE_ARCH="X86" ;;
4162     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4163     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4164 esac
4165
4166 ARCH=$llvm_cv_target_arch
4167
4168 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4169
4170
4171 case $host in
4172   i?86-*)                 host_arch="x86" ;;
4173   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4174   sparc*-*)               host_arch="Sparc" ;;
4175   powerpc*-*)             host_arch="PowerPC" ;;
4176   arm64*-*)               host_arch="AArch64" ;;
4177   arm*-*)                 host_arch="ARM" ;;
4178   aarch64*-*)             host_arch="AArch64" ;;
4179   mips-* | mips64-*)      host_arch="Mips" ;;
4180   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4181   xcore-*)                host_arch="XCore" ;;
4182   msp430-*)               host_arch="MSP430" ;;
4183   hexagon-*)              host_arch="Hexagon" ;;
4184   s390x-*)                host_arch="SystemZ" ;;
4185   *)                      host_arch="Unknown" ;;
4186 esac
4187
4188 if test "$host_arch" = "Unknown" ; then
4189   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4190 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4191 fi
4192
4193 HOST_ARCH=$host_arch
4194
4195
4196 if test "$cross_compiling" = yes; then
4197   LLVM_CROSS_COMPILING=1
4198
4199
4200 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4201 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4202 if test "${ac_cv_build_exeext+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4206   ac_cv_build_exeext=.exe
4207 else
4208   ac_build_prefix=${build_alias}-
4209
4210   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4211 set dummy ${ac_build_prefix}gcc; ac_word=$2
4212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4214 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   if test -n "$BUILD_CC"; then
4218   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225   for ac_exec_ext in '' $ac_executable_extensions; do
4226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4227     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229     break 2
4230   fi
4231 done
4232 done
4233 IFS=$as_save_IFS
4234
4235 fi
4236 fi
4237 BUILD_CC=$ac_cv_prog_BUILD_CC
4238 if test -n "$BUILD_CC"; then
4239   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4240 echo "${ECHO_T}$BUILD_CC" >&6; }
4241 else
4242   { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4244 fi
4245
4246
4247   if test -z "$BUILD_CC"; then
4248      # Extract the first word of "gcc", so it can be a program name with args.
4249 set dummy gcc; ac_word=$2
4250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4252 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255   if test -n "$BUILD_CC"; then
4256   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263   for ac_exec_ext in '' $ac_executable_extensions; do
4264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4265     ac_cv_prog_BUILD_CC="gcc"
4266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267     break 2
4268   fi
4269 done
4270 done
4271 IFS=$as_save_IFS
4272
4273 fi
4274 fi
4275 BUILD_CC=$ac_cv_prog_BUILD_CC
4276 if test -n "$BUILD_CC"; then
4277   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4278 echo "${ECHO_T}$BUILD_CC" >&6; }
4279 else
4280   { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4282 fi
4283
4284
4285      if test -z "$BUILD_CC"; then
4286        # Extract the first word of "cc", so it can be a program name with args.
4287 set dummy cc; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   if test -n "$BUILD_CC"; then
4294   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4295 else
4296   ac_prog_rejected=no
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300   IFS=$as_save_IFS
4301   test -z "$as_dir" && as_dir=.
4302   for ac_exec_ext in '' $ac_executable_extensions; do
4303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4304     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4305        ac_prog_rejected=yes
4306        continue
4307      fi
4308     ac_cv_prog_BUILD_CC="cc"
4309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310     break 2
4311   fi
4312 done
4313 done
4314 IFS=$as_save_IFS
4315
4316 if test $ac_prog_rejected = yes; then
4317   # We found a bogon in the path, so make sure we never use it.
4318   set dummy $ac_cv_prog_BUILD_CC
4319   shift
4320   if test $# != 0; then
4321     # We chose a different compiler from the bogus one.
4322     # However, it has the same basename, so the bogon will be chosen
4323     # first if we set BUILD_CC to just the basename; use the full file name.
4324     shift
4325     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4326   fi
4327 fi
4328 fi
4329 fi
4330 BUILD_CC=$ac_cv_prog_BUILD_CC
4331 if test -n "$BUILD_CC"; then
4332   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4333 echo "${ECHO_T}$BUILD_CC" >&6; }
4334 else
4335   { echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6; }
4337 fi
4338
4339
4340      fi
4341   fi
4342   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4343 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4344    { (exit 1); exit 1; }; }
4345   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4346   rm -f conftest*
4347   echo 'int main () { return 0; }' > conftest.$ac_ext
4348   ac_cv_build_exeext=
4349   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4350   (eval $ac_build_link) 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; then
4354     for file in conftest.*; do
4355       case $file in
4356       *.c | *.o | *.obj | *.dSYM) ;;
4357       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4358       esac
4359     done
4360   else
4361     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4362 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4363    { (exit 1); exit 1; }; }
4364   fi
4365   rm -f conftest*
4366   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4367 fi
4368 fi
4369
4370 BUILD_EXEEXT=""
4371 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4372 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4373 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4374 ac_build_exeext=$BUILD_EXEEXT
4375
4376   ac_build_prefix=${build_alias}-
4377   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4378 set dummy ${ac_build_prefix}g++; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   if test -n "$BUILD_CXX"; then
4385   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392   for ac_exec_ext in '' $ac_executable_extensions; do
4393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4394     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396     break 2
4397   fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4405 if test -n "$BUILD_CXX"; then
4406   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4407 echo "${ECHO_T}$BUILD_CXX" >&6; }
4408 else
4409   { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4411 fi
4412
4413
4414   if test -z "$BUILD_CXX"; then
4415      # Extract the first word of "g++", so it can be a program name with args.
4416 set dummy g++; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   if test -n "$BUILD_CXX"; then
4423   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4427 do
4428   IFS=$as_save_IFS
4429   test -z "$as_dir" && as_dir=.
4430   for ac_exec_ext in '' $ac_executable_extensions; do
4431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4432     ac_cv_prog_BUILD_CXX="g++"
4433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434     break 2
4435   fi
4436 done
4437 done
4438 IFS=$as_save_IFS
4439
4440 fi
4441 fi
4442 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4443 if test -n "$BUILD_CXX"; then
4444   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4445 echo "${ECHO_T}$BUILD_CXX" >&6; }
4446 else
4447   { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4449 fi
4450
4451
4452      if test -z "$BUILD_CXX"; then
4453        # Extract the first word of "c++", so it can be a program name with args.
4454 set dummy c++; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4458   echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460   if test -n "$BUILD_CXX"; then
4461   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4462 else
4463   ac_prog_rejected=no
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469   for ac_exec_ext in '' $ac_executable_extensions; do
4470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4471     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4472        ac_prog_rejected=yes
4473        continue
4474      fi
4475     ac_cv_prog_BUILD_CXX="c++"
4476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477     break 2
4478   fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 if test $ac_prog_rejected = yes; then
4484   # We found a bogon in the path, so make sure we never use it.
4485   set dummy $ac_cv_prog_BUILD_CXX
4486   shift
4487   if test $# != 0; then
4488     # We chose a different compiler from the bogus one.
4489     # However, it has the same basename, so the bogon will be chosen
4490     # first if we set BUILD_CXX to just the basename; use the full file name.
4491     shift
4492     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4493   fi
4494 fi
4495 fi
4496 fi
4497 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4498 if test -n "$BUILD_CXX"; then
4499   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4500 echo "${ECHO_T}$BUILD_CXX" >&6; }
4501 else
4502   { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4504 fi
4505
4506
4507      fi
4508   fi
4509 else
4510   LLVM_CROSS_COMPILING=0
4511
4512 fi
4513
4514 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4515   cvsbuild="yes"
4516   optimize="no"
4517   CVSBUILD=CVSBUILD=1
4518
4519 else
4520   cvsbuild="no"
4521   optimize="yes"
4522 fi
4523
4524
4525 # Check whether --enable-libcpp was given.
4526 if test "${enable_libcpp+set}" = set; then
4527   enableval=$enable_libcpp;
4528 else
4529   enableval=default
4530 fi
4531
4532 case "$enableval" in
4533   yes) ENABLE_LIBCPP=1
4534  ;;
4535   no)  ENABLE_LIBCPP=0
4536  ;;
4537   default) ENABLE_LIBCPP=0
4538 ;;
4539   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4540 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4541    { (exit 1); exit 1; }; } ;;
4542 esac
4543
4544 # Check whether --enable-compiler-version-checks was given.
4545 if test "${enable_compiler_version_checks+set}" = set; then
4546   enableval=$enable_compiler_version_checks;
4547 else
4548   enableval=default
4549 fi
4550
4551 case "$enableval" in
4552   no)
4553     ;;
4554   yes|default)
4555     ac_ext=cpp
4556 ac_cpp='$CXXCPP $CPPFLAGS'
4557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4560
4561     case "$llvm_cv_cxx_compiler" in
4562     clang)
4563       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4564 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4565       cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571
4572 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4573 #error This version of Clang is too old to build LLVM
4574 #endif
4575
4576 _ACEOF
4577 rm -f conftest.$ac_objext
4578 if { (ac_try="$ac_compile"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_compile") 2>conftest.er1
4585   ac_status=$?
4586   grep -v '^ *+' conftest.er1 >conftest.err
4587   rm -f conftest.er1
4588   cat conftest.err >&5
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); } &&
4591          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4592   { (case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_try") 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; } &&
4601          { ac_try='test -s conftest.$ac_objext'
4602   { (case "(($ac_try" in
4603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604   *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607   (eval "$ac_try") 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; }; then
4611   { echo "$as_me:$LINENO: result: yes" >&5
4612 echo "${ECHO_T}yes" >&6; }
4613 else
4614   echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617         { echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6; }
4619            { { echo "$as_me:$LINENO: error:
4620 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4621 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4622 bypass these sanity checks." >&5
4623 echo "$as_me: error:
4624 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4625 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4626 bypass these sanity checks." >&2;}
4627    { (exit 1); exit 1; }; }
4628 fi
4629
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631
4632                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4633         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4634 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4635         llvm_cv_old_cxxflags="$CXXFLAGS"
4636         CXXFLAGS="$CXXFLAGS -std=c++0x"
4637         cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643
4644 #include <atomic>
4645 std::atomic<float> x(0.0f);
4646 int main() { return (float)x; }
4647
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (ac_try="$ac_link"
4651 case "(($ac_try" in
4652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653   *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656   (eval "$ac_link") 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4664   { (case "(($ac_try" in
4665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666   *) ac_try_echo=$ac_try;;
4667 esac
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669   (eval "$ac_try") 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; } &&
4673          { ac_try='test -s conftest$ac_exeext'
4674   { (case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679   (eval "$ac_try") 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; }; then
4683   { echo "$as_me:$LINENO: result: yes" >&5
4684 echo "${ECHO_T}yes" >&6; }
4685 else
4686   echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689         { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4691              { { echo "$as_me:$LINENO: error:
4692 We detected a missing feature in the standard C++ library that was known to be
4693 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4694 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4695 than 4.7. You will need to update your system and ensure Clang uses the newer
4696 standard library.
4697
4698 If this error is incorrect or you need to force things to work, you may pass
4699 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4700 echo "$as_me: error:
4701 We detected a missing feature in the standard C++ library that was known to be
4702 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4703 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4704 than 4.7. You will need to update your system and ensure Clang uses the newer
4705 standard library.
4706
4707 If this error is incorrect or you need to force things to work, you may pass
4708 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4709    { (exit 1); exit 1; }; }
4710 fi
4711
4712 rm -f core conftest.err conftest.$ac_objext \
4713       conftest$ac_exeext conftest.$ac_ext
4714         CXXFLAGS="$llvm_cv_old_cxxflags"
4715       fi
4716       ;;
4717     gcc)
4718       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4719 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4720       cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726
4727 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4728 #error This version of GCC is too old to build LLVM
4729 #endif
4730
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (ac_try="$ac_compile"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739   (eval "$ac_compile") 2>conftest.er1
4740   ac_status=$?
4741   grep -v '^ *+' conftest.er1 >conftest.err
4742   rm -f conftest.er1
4743   cat conftest.err >&5
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } &&
4746          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4747   { (case "(($ac_try" in
4748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749   *) ac_try_echo=$ac_try;;
4750 esac
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752   (eval "$ac_try") 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }; } &&
4756          { ac_try='test -s conftest.$ac_objext'
4757   { (case "(($ac_try" in
4758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759   *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762   (eval "$ac_try") 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; }; then
4766   { echo "$as_me:$LINENO: result: yes" >&5
4767 echo "${ECHO_T}yes" >&6; }
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772         { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4774            { { echo "$as_me:$LINENO: error:
4775 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4776 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4777 bypass these sanity checks." >&5
4778 echo "$as_me: error:
4779 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4780 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4781 bypass these sanity checks." >&2;}
4782    { (exit 1); exit 1; }; }
4783 fi
4784
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786       ;;
4787     unknown)
4788       ;;
4789     esac
4790     ac_ext=c
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796     ;;
4797   *)
4798     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4799 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4800    { (exit 1); exit 1; }; }
4801     ;;
4802 esac
4803
4804 # Check whether --enable-cxx1y was given.
4805 if test "${enable_cxx1y+set}" = set; then
4806   enableval=$enable_cxx1y;
4807 else
4808   enableval=default
4809 fi
4810
4811 case "$enableval" in
4812   yes) ENABLE_CXX1Y=1
4813  ;;
4814   no)  ENABLE_CXX1Y=0
4815  ;;
4816   default) ENABLE_CXX1Y=0
4817 ;;
4818   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4819 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4820    { (exit 1); exit 1; }; } ;;
4821 esac
4822
4823 # Check whether --enable-split-dwarf was given.
4824 if test "${enable_split_dwarf+set}" = set; then
4825   enableval=$enable_split_dwarf;
4826 else
4827   enableval=default
4828 fi
4829
4830 case "$enableval" in
4831   yes) ENABLE_SPLIT_DWARF=1
4832  ;;
4833   no)  ENABLE_SPLIT_DWARF=0
4834  ;;
4835   default) ENABLE_SPLIT_DWARF=0
4836 ;;
4837   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4838 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4839    { (exit 1); exit 1; }; } ;;
4840 esac
4841
4842 clang_arcmt="yes"
4843 # Check whether --enable-clang-arcmt was given.
4844 if test "${enable_clang_arcmt+set}" = set; then
4845   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4846 else
4847   enableval="yes"
4848 fi
4849
4850 case "$enableval" in
4851   yes) ENABLE_CLANG_ARCMT=1
4852  ;;
4853   no)  ENABLE_CLANG_ARCMT=0
4854  ;;
4855   default) ENABLE_CLANG_ARCMT=1
4856 ;;
4857   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4858 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4859    { (exit 1); exit 1; }; } ;;
4860 esac
4861
4862 clang_plugin_support="yes"
4863 # Check whether --enable-clang-plugin-support was given.
4864 if test "${enable_clang_plugin_support+set}" = set; then
4865   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4866 else
4867   enableval="yes"
4868 fi
4869
4870 case "$enableval" in
4871   yes) CLANG_PLUGIN_SUPPORT=1
4872  ;;
4873   no)  CLANG_PLUGIN_SUPPORT=0
4874  ;;
4875   default) CLANG_PLUGIN_SUPPORT=1
4876 ;;
4877   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4878 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4879    { (exit 1); exit 1; }; } ;;
4880 esac
4881
4882 clang_static_analyzer="yes"
4883 # Check whether --enable-clang-static-analyzer was given.
4884 if test "${enable_clang_static_analyzer+set}" = set; then
4885   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4886 else
4887   enableval="yes"
4888 fi
4889
4890 case "$enableval" in
4891   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4892  ;;
4893   no)
4894     if test ${clang_arcmt} != "no" ; then
4895       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4896 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4897    { (exit 1); exit 1; }; }
4898     fi
4899     ENABLE_CLANG_STATIC_ANALYZER=0
4900
4901     ;;
4902   default) ENABLE_CLANG_STATIC_ANALYZER=1
4903 ;;
4904   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4905 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4906    { (exit 1); exit 1; }; } ;;
4907 esac
4908
4909 # Check whether --enable-optimized was given.
4910 if test "${enable_optimized+set}" = set; then
4911   enableval=$enable_optimized;
4912 else
4913   enableval=$optimize
4914 fi
4915
4916 if test ${enableval} = "no" ; then
4917   ENABLE_OPTIMIZED=
4918
4919 else
4920   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4921
4922 fi
4923
4924 # Check whether --enable-profiling was given.
4925 if test "${enable_profiling+set}" = set; then
4926   enableval=$enable_profiling;
4927 else
4928   enableval="no"
4929 fi
4930
4931 if test ${enableval} = "no" ; then
4932   ENABLE_PROFILING=
4933
4934 else
4935   ENABLE_PROFILING=ENABLE_PROFILING=1
4936
4937 fi
4938
4939 # Check whether --enable-assertions was given.
4940 if test "${enable_assertions+set}" = set; then
4941   enableval=$enable_assertions;
4942 else
4943   enableval="yes"
4944 fi
4945
4946 if test ${enableval} = "yes" ; then
4947   DISABLE_ASSERTIONS=
4948
4949 else
4950   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4951
4952 fi
4953
4954 # Check whether --enable-werror was given.
4955 if test "${enable_werror+set}" = set; then
4956   enableval=$enable_werror;
4957 else
4958   enableval="no"
4959 fi
4960
4961 case "$enableval" in
4962   yes) ENABLE_WERROR=1
4963  ;;
4964   no)  ENABLE_WERROR=0
4965  ;;
4966   default) ENABLE_WERROR=0
4967 ;;
4968   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4969 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4970    { (exit 1); exit 1; }; } ;;
4971 esac
4972
4973 # Check whether --enable-expensive-checks was given.
4974 if test "${enable_expensive_checks+set}" = set; then
4975   enableval=$enable_expensive_checks;
4976 else
4977   enableval="no"
4978 fi
4979
4980 if test ${enableval} = "yes" ; then
4981   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4982
4983   EXPENSIVE_CHECKS=yes
4984
4985 else
4986   ENABLE_EXPENSIVE_CHECKS=
4987
4988   EXPENSIVE_CHECKS=no
4989
4990 fi
4991
4992 # Check whether --enable-debug-runtime was given.
4993 if test "${enable_debug_runtime+set}" = set; then
4994   enableval=$enable_debug_runtime;
4995 else
4996   enableval=no
4997 fi
4998
4999 if test ${enableval} = "no" ; then
5000   DEBUG_RUNTIME=
5001
5002 else
5003   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5004
5005 fi
5006
5007 # Check whether --enable-debug-symbols was given.
5008 if test "${enable_debug_symbols+set}" = set; then
5009   enableval=$enable_debug_symbols;
5010 else
5011   enableval=no
5012 fi
5013
5014 if test ${enableval} = "no" ; then
5015   DEBUG_SYMBOLS=
5016
5017 else
5018   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5019
5020 fi
5021
5022 # Check whether --enable-keep-symbols was given.
5023 if test "${enable_keep_symbols+set}" = set; then
5024   enableval=$enable_keep_symbols;
5025 else
5026   enableval=no
5027 fi
5028
5029 if test ${enableval} = "no" ; then
5030   KEEP_SYMBOLS=
5031
5032 else
5033   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5034
5035 fi
5036
5037 # Check whether --enable-jit was given.
5038 if test "${enable_jit+set}" = set; then
5039   enableval=$enable_jit;
5040 else
5041   enableval=default
5042 fi
5043
5044 if test ${enableval} = "no"
5045 then
5046   JIT=
5047
5048 else
5049   case "$llvm_cv_target_arch" in
5050     x86)         TARGET_HAS_JIT=1
5051  ;;
5052     Sparc)       TARGET_HAS_JIT=0
5053  ;;
5054     PowerPC)     TARGET_HAS_JIT=1
5055  ;;
5056     x86_64)      TARGET_HAS_JIT=1
5057  ;;
5058     ARM)         TARGET_HAS_JIT=1
5059  ;;
5060     Mips)        TARGET_HAS_JIT=1
5061  ;;
5062     XCore)       TARGET_HAS_JIT=0
5063  ;;
5064     MSP430)      TARGET_HAS_JIT=0
5065  ;;
5066     Hexagon)     TARGET_HAS_JIT=0
5067  ;;
5068     NVPTX)       TARGET_HAS_JIT=0
5069  ;;
5070     SystemZ)     TARGET_HAS_JIT=1
5071  ;;
5072     *)           TARGET_HAS_JIT=0
5073  ;;
5074   esac
5075 fi
5076
5077 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5078 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5079
5080
5081 # Check whether --enable-docs was given.
5082 if test "${enable_docs+set}" = set; then
5083   enableval=$enable_docs;
5084 else
5085   enableval=default
5086 fi
5087
5088 case "$enableval" in
5089   yes) ENABLE_DOCS=1
5090  ;;
5091   no)  ENABLE_DOCS=0
5092  ;;
5093   default) ENABLE_DOCS=1
5094  ;;
5095   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5096 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5097    { (exit 1); exit 1; }; } ;;
5098 esac
5099
5100 # Check whether --enable-doxygen was given.
5101 if test "${enable_doxygen+set}" = set; then
5102   enableval=$enable_doxygen;
5103 else
5104   enableval=default
5105 fi
5106
5107 case "$enableval" in
5108   yes) ENABLE_DOXYGEN=1
5109  ;;
5110   no)  ENABLE_DOXYGEN=0
5111  ;;
5112   default) ENABLE_DOXYGEN=0
5113  ;;
5114   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5115 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5116    { (exit 1); exit 1; }; } ;;
5117 esac
5118
5119 # Check whether --enable-threads was given.
5120 if test "${enable_threads+set}" = set; then
5121   enableval=$enable_threads;
5122 else
5123   enableval=default
5124 fi
5125
5126 case "$enableval" in
5127   yes) LLVM_ENABLE_THREADS=1
5128  ;;
5129   no)  LLVM_ENABLE_THREADS=0
5130  ;;
5131   default) LLVM_ENABLE_THREADS=1
5132  ;;
5133   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5134 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5135    { (exit 1); exit 1; }; } ;;
5136 esac
5137
5138 cat >>confdefs.h <<_ACEOF
5139 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5140 _ACEOF
5141
5142
5143 # Check whether --enable-pthreads was given.
5144 if test "${enable_pthreads+set}" = set; then
5145   enableval=$enable_pthreads;
5146 else
5147   enableval=default
5148 fi
5149
5150 case "$enableval" in
5151   yes) ENABLE_PTHREADS=1
5152  ;;
5153   no)  ENABLE_PTHREADS=0
5154  ;;
5155   default) ENABLE_PTHREADS=1
5156  ;;
5157   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5158 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5159    { (exit 1); exit 1; }; } ;;
5160 esac
5161
5162 # Check whether --enable-zlib was given.
5163 if test "${enable_zlib+set}" = set; then
5164   enableval=$enable_zlib;
5165 else
5166   enableval=default
5167 fi
5168
5169 case "$enableval" in
5170   yes) LLVM_ENABLE_ZLIB=1
5171  ;;
5172   no)  LLVM_ENABLE_ZLIB=0
5173  ;;
5174   default) LLVM_ENABLE_ZLIB=1
5175  ;;
5176   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5177 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5178    { (exit 1); exit 1; }; } ;;
5179 esac
5180
5181 cat >>confdefs.h <<_ACEOF
5182 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5183 _ACEOF
5184
5185
5186 # Check whether --enable-pic was given.
5187 if test "${enable_pic+set}" = set; then
5188   enableval=$enable_pic;
5189 else
5190   enableval=default
5191 fi
5192
5193 case "$enableval" in
5194   yes) ENABLE_PIC=1
5195  ;;
5196   no)  ENABLE_PIC=0
5197  ;;
5198   default) ENABLE_PIC=1
5199  ;;
5200   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5201 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5202    { (exit 1); exit 1; }; } ;;
5203 esac
5204
5205 cat >>confdefs.h <<_ACEOF
5206 #define ENABLE_PIC $ENABLE_PIC
5207 _ACEOF
5208
5209
5210 # Check whether --enable-shared was given.
5211 if test "${enable_shared+set}" = set; then
5212   enableval=$enable_shared;
5213 else
5214   enableval=default
5215 fi
5216
5217 case "$enableval" in
5218   yes) ENABLE_SHARED=1
5219  ;;
5220   no)  ENABLE_SHARED=0
5221  ;;
5222   default) ENABLE_SHARED=0
5223  ;;
5224   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5226    { (exit 1); exit 1; }; } ;;
5227 esac
5228
5229 # Check whether --enable-embed-stdcxx was given.
5230 if test "${enable_embed_stdcxx+set}" = set; then
5231   enableval=$enable_embed_stdcxx;
5232 else
5233   enableval=default
5234 fi
5235
5236 case "$enableval" in
5237   yes) ENABLE_EMBED_STDCXX=1
5238  ;;
5239   no)  ENABLE_EMBED_STDCXX=0
5240  ;;
5241   default) ENABLE_EMBED_STDCXX=0
5242  ;;
5243   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5244 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5245    { (exit 1); exit 1; }; } ;;
5246 esac
5247
5248 # Check whether --enable-timestamps was given.
5249 if test "${enable_timestamps+set}" = set; then
5250   enableval=$enable_timestamps;
5251 else
5252   enableval=default
5253 fi
5254
5255 case "$enableval" in
5256   yes) ENABLE_TIMESTAMPS=1
5257  ;;
5258   no)  ENABLE_TIMESTAMPS=0
5259  ;;
5260   default) ENABLE_TIMESTAMPS=1
5261  ;;
5262   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265 esac
5266
5267 cat >>confdefs.h <<_ACEOF
5268 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5269 _ACEOF
5270
5271
5272 # Check whether --enable-backtraces was given.
5273 if test "${enable_backtraces+set}" = set; then
5274   enableval=$enable_backtraces; case "$enableval" in
5275     yes) llvm_cv_enable_backtraces="yes" ;;
5276     no)  llvm_cv_enable_backtraces="no"  ;;
5277     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5278 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5279    { (exit 1); exit 1; }; } ;;
5280   esac
5281 else
5282   llvm_cv_enable_backtraces="yes"
5283 fi
5284
5285 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5286
5287 cat >>confdefs.h <<\_ACEOF
5288 #define ENABLE_BACKTRACES 1
5289 _ACEOF
5290
5291 fi
5292
5293 # Check whether --enable-crash-overrides was given.
5294 if test "${enable_crash_overrides+set}" = set; then
5295   enableval=$enable_crash_overrides; case "$enableval" in
5296     yes) llvm_cv_enable_crash_overrides="yes" ;;
5297     no)  llvm_cv_enable_crash_overrides="no"  ;;
5298     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5299 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5300    { (exit 1); exit 1; }; } ;;
5301   esac
5302 else
5303   llvm_cv_enable_crash_overrides="yes"
5304 fi
5305
5306 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5307
5308 cat >>confdefs.h <<\_ACEOF
5309 #define ENABLE_CRASH_OVERRIDES 1
5310 _ACEOF
5311
5312 fi
5313
5314 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5315 ALL_TARGETS=$ALL_TARGETS
5316
5317
5318 TARGETS_TO_BUILD=""
5319 # Check whether --enable-targets was given.
5320 if test "${enable_targets+set}" = set; then
5321   enableval=$enable_targets;
5322 else
5323   enableval=all
5324 fi
5325
5326 if test "$enableval" = host-only ; then
5327   enableval=host
5328 fi
5329 case "$enableval" in
5330   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5331   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5332       case "$a_target" in
5333         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5334         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5335         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5336         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5337         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5338         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5339         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5343         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5345         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5346         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5347         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5348         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5349         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5350         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5351         host) case "$llvm_cv_target_arch" in
5352             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5353             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5354             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5355             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5356             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5357             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5358             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5359             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5360             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5361             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5362             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5363             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5364             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5365 echo "$as_me: error: Can not set target to build" >&2;}
5366    { (exit 1); exit 1; }; } ;;
5367           esac ;;
5368         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5369 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5370    { (exit 1); exit 1; }; } ;;
5371       esac
5372   done
5373   ;;
5374 esac
5375
5376 # Check whether --enable-experimental-targets was given.
5377 if test "${enable_experimental_targets+set}" = set; then
5378   enableval=$enable_experimental_targets;
5379 else
5380   enableval=disable
5381 fi
5382
5383
5384 if test ${enableval} != "disable"
5385 then
5386   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5387 fi
5388
5389 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5390
5391
5392 for a_target in $TARGETS_TO_BUILD; do
5393   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5397 _ACEOF
5398
5399     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5400     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5401     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5402     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5403     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5404       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5405     fi
5406     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5407       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5408     fi
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5412 _ACEOF
5413
5414
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5417 _ACEOF
5418
5419
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5422 _ACEOF
5423
5424
5425 cat >>confdefs.h <<_ACEOF
5426 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5427 _ACEOF
5428
5429     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5433 _ACEOF
5434
5435     fi
5436     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5437
5438 cat >>confdefs.h <<_ACEOF
5439 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5440 _ACEOF
5441
5442     fi
5443   fi
5444 done
5445
5446 LLVM_ENUM_TARGETS=""
5447 LLVM_ENUM_ASM_PRINTERS=""
5448 LLVM_ENUM_ASM_PARSERS=""
5449 LLVM_ENUM_DISASSEMBLERS=""
5450 for target_to_build in $TARGETS_TO_BUILD; do
5451   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5452   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5453     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5454   fi
5455   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5456     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5457   fi
5458   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5459     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5460   fi
5461 done
5462
5463
5464
5465
5466
5467
5468 # Check whether --with-optimize-option was given.
5469 if test "${with_optimize_option+set}" = set; then
5470   withval=$with_optimize_option;
5471 else
5472   withval=default
5473 fi
5474
5475 { echo "$as_me:$LINENO: checking optimization flags" >&5
5476 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5477 case "$withval" in
5478   default)
5479     case "$llvm_cv_os_type" in
5480     FreeBSD) optimize_option=-O2 ;;
5481     MingW) optimize_option=-O2 ;;
5482     *)     optimize_option=-O3 ;;
5483     esac ;;
5484   *) optimize_option="$withval" ;;
5485 esac
5486 OPTIMIZE_OPTION=$optimize_option
5487
5488 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5489 echo "${ECHO_T}$optimize_option" >&6; }
5490
5491
5492 # Check whether --with-extra-options was given.
5493 if test "${with_extra_options+set}" = set; then
5494   withval=$with_extra_options;
5495 else
5496   withval=default
5497 fi
5498
5499 case "$withval" in
5500   default) EXTRA_OPTIONS= ;;
5501   *) EXTRA_OPTIONS=$withval ;;
5502 esac
5503 EXTRA_OPTIONS=$EXTRA_OPTIONS
5504
5505
5506
5507 # Check whether --with-extra-ld-options was given.
5508 if test "${with_extra_ld_options+set}" = set; then
5509   withval=$with_extra_ld_options;
5510 else
5511   withval=default
5512 fi
5513
5514 case "$withval" in
5515   default) EXTRA_LD_OPTIONS= ;;
5516   *) EXTRA_LD_OPTIONS=$withval ;;
5517 esac
5518 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5519
5520
5521 # Check whether --enable-bindings was given.
5522 if test "${enable_bindings+set}" = set; then
5523   enableval=$enable_bindings;
5524 else
5525   enableval=default
5526 fi
5527
5528 BINDINGS_TO_BUILD=""
5529 case "$enableval" in
5530   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5531   all ) BINDINGS_TO_BUILD="ocaml" ;;
5532   none | no) BINDINGS_TO_BUILD="" ;;
5533   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5534       case "$a_binding" in
5535         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5536         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5537 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5538    { (exit 1); exit 1; }; } ;;
5539       esac
5540   done
5541   ;;
5542 esac
5543
5544
5545 # Check whether --with-ocaml-libdir was given.
5546 if test "${with_ocaml_libdir+set}" = set; then
5547   withval=$with_ocaml_libdir;
5548 else
5549   withval=auto
5550 fi
5551
5552 case "$withval" in
5553   auto) with_ocaml_libdir="$withval" ;;
5554   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5555   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5556 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5557    { (exit 1); exit 1; }; } ;;
5558 esac
5559
5560
5561 # Check whether --with-clang-srcdir was given.
5562 if test "${with_clang_srcdir+set}" = set; then
5563   withval=$with_clang_srcdir;
5564 else
5565   withval="-"
5566 fi
5567
5568 case "$withval" in
5569   -) clang_src_root="" ;;
5570   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5571   *) clang_src_root="$ac_pwd/$withval" ;;
5572 esac
5573 CLANG_SRC_ROOT=$clang_src_root
5574
5575
5576
5577 # Check whether --with-clang-resource-dir was given.
5578 if test "${with_clang_resource_dir+set}" = set; then
5579   withval=$with_clang_resource_dir;
5580 else
5581   withval=""
5582 fi
5583
5584
5585 cat >>confdefs.h <<_ACEOF
5586 #define CLANG_RESOURCE_DIR "$withval"
5587 _ACEOF
5588
5589
5590
5591 # Check whether --with-c-include-dirs was given.
5592 if test "${with_c_include_dirs+set}" = set; then
5593   withval=$with_c_include_dirs;
5594 else
5595   withval=""
5596 fi
5597
5598
5599 cat >>confdefs.h <<_ACEOF
5600 #define C_INCLUDE_DIRS "$withval"
5601 _ACEOF
5602
5603
5604 # Clang normally uses the system c++ headers and libraries. With this option,
5605 # clang will use the ones provided by a gcc installation instead. This option should
5606 # be passed the same value that was used with --prefix when configuring gcc.
5607
5608 # Check whether --with-gcc-toolchain was given.
5609 if test "${with_gcc_toolchain+set}" = set; then
5610   withval=$with_gcc_toolchain;
5611 else
5612   withval=""
5613 fi
5614
5615
5616 cat >>confdefs.h <<_ACEOF
5617 #define GCC_INSTALL_PREFIX "$withval"
5618 _ACEOF
5619
5620
5621
5622 # Check whether --with-default-sysroot was given.
5623 if test "${with_default_sysroot+set}" = set; then
5624   withval=$with_default_sysroot;
5625 else
5626   withval=""
5627 fi
5628
5629
5630 cat >>confdefs.h <<_ACEOF
5631 #define DEFAULT_SYSROOT "$withval"
5632 _ACEOF
5633
5634
5635
5636 # Check whether --with-binutils-include was given.
5637 if test "${with_binutils_include+set}" = set; then
5638   withval=$with_binutils_include;
5639 else
5640   withval=default
5641 fi
5642
5643 case "$withval" in
5644   default) WITH_BINUTILS_INCDIR=default ;;
5645   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5646   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5647 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5648    { (exit 1); exit 1; }; } ;;
5649 esac
5650 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5651   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5652
5653   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5654      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5655      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5656 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5657    { (exit 1); exit 1; }; };
5658   fi
5659 fi
5660
5661
5662 # Check whether --with-bug-report-url was given.
5663 if test "${with_bug_report_url+set}" = set; then
5664   withval=$with_bug_report_url;
5665 else
5666   withval="http://llvm.org/bugs/"
5667 fi
5668
5669
5670 cat >>confdefs.h <<_ACEOF
5671 #define BUG_REPORT_URL "$withval"
5672 _ACEOF
5673
5674
5675 # Check whether --enable-terminfo was given.
5676 if test "${enable_terminfo+set}" = set; then
5677   enableval=$enable_terminfo; case "$enableval" in
5678     yes) llvm_cv_enable_terminfo="yes" ;;
5679     no)  llvm_cv_enable_terminfo="no"  ;;
5680     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5681 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5682    { (exit 1); exit 1; }; } ;;
5683   esac
5684 else
5685   llvm_cv_enable_terminfo="yes"
5686 fi
5687
5688 case "$llvm_cv_enable_terminfo" in
5689   yes) ENABLE_TERMINFO=1
5690  ;;
5691   no)  ENABLE_TERMINFO=0
5692  ;;
5693 esac
5694
5695 # Check whether --enable-libedit was given.
5696 if test "${enable_libedit+set}" = set; then
5697   enableval=$enable_libedit; case "$enableval" in
5698     yes) llvm_cv_enable_libedit="yes" ;;
5699     no)  llvm_cv_enable_libedit="no"  ;;
5700     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5701 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5702    { (exit 1); exit 1; }; } ;;
5703   esac
5704 else
5705   llvm_cv_enable_libedit="yes"
5706 fi
5707
5708
5709 # Check whether --enable-libffi was given.
5710 if test "${enable_libffi+set}" = set; then
5711   enableval=$enable_libffi; case "$enableval" in
5712     yes) llvm_cv_enable_libffi="yes" ;;
5713     no)  llvm_cv_enable_libffi="no"  ;;
5714     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5715 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5716    { (exit 1); exit 1; }; } ;;
5717   esac
5718 else
5719   llvm_cv_enable_libffi=no
5720 fi
5721
5722
5723
5724 # Check whether --with-internal-prefix was given.
5725 if test "${with_internal_prefix+set}" = set; then
5726   withval=$with_internal_prefix;
5727 else
5728   withval=""
5729 fi
5730
5731 INTERNAL_PREFIX=$withval
5732
5733
5734
5735 { echo "$as_me:$LINENO: checking for GNU make" >&5
5736 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5737 if test "${llvm_cv_gnu_make_command+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   llvm_cv_gnu_make_command=''
5741  for a in "$MAKE" make gmake gnumake ; do
5742   if test -z "$a" ; then continue ; fi ;
5743   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5744   then
5745    llvm_cv_gnu_make_command=$a ;
5746    break;
5747   fi
5748  done
5749 fi
5750 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5751 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5752  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5753    ifGNUmake='' ;
5754  else
5755    ifGNUmake='#' ;
5756    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5757 echo "${ECHO_T}\"Not found\"" >&6; };
5758  fi
5759
5760
5761 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5762 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5763 LN_S=$as_ln_s
5764 if test "$LN_S" = "ln -s"; then
5765   { echo "$as_me:$LINENO: result: yes" >&5
5766 echo "${ECHO_T}yes" >&6; }
5767 else
5768   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5769 echo "${ECHO_T}no, using $LN_S" >&6; }
5770 fi
5771
5772 # Extract the first word of "nm", so it can be a program name with args.
5773 set dummy nm; ac_word=$2
5774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5776 if test "${ac_cv_path_NM+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   case $NM in
5780   [\\/]* | ?:[\\/]*)
5781   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5782   ;;
5783   *)
5784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789   for ac_exec_ext in '' $ac_executable_extensions; do
5790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5791     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5800   ;;
5801 esac
5802 fi
5803 NM=$ac_cv_path_NM
5804 if test -n "$NM"; then
5805   { echo "$as_me:$LINENO: result: $NM" >&5
5806 echo "${ECHO_T}$NM" >&6; }
5807 else
5808   { echo "$as_me:$LINENO: result: no" >&5
5809 echo "${ECHO_T}no" >&6; }
5810 fi
5811
5812
5813 # Extract the first word of "cmp", so it can be a program name with args.
5814 set dummy cmp; ac_word=$2
5815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817 if test "${ac_cv_path_CMP+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   case $CMP in
5821   [\\/]* | ?:[\\/]*)
5822   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5823   ;;
5824   *)
5825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828   IFS=$as_save_IFS
5829   test -z "$as_dir" && as_dir=.
5830   for ac_exec_ext in '' $ac_executable_extensions; do
5831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5832     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834     break 2
5835   fi
5836 done
5837 done
5838 IFS=$as_save_IFS
5839
5840   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5841   ;;
5842 esac
5843 fi
5844 CMP=$ac_cv_path_CMP
5845 if test -n "$CMP"; then
5846   { echo "$as_me:$LINENO: result: $CMP" >&5
5847 echo "${ECHO_T}$CMP" >&6; }
5848 else
5849   { echo "$as_me:$LINENO: result: no" >&5
5850 echo "${ECHO_T}no" >&6; }
5851 fi
5852
5853
5854 # Extract the first word of "cp", so it can be a program name with args.
5855 set dummy cp; ac_word=$2
5856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5858 if test "${ac_cv_path_CP+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   case $CP in
5862   [\\/]* | ?:[\\/]*)
5863   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5864   ;;
5865   *)
5866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869   IFS=$as_save_IFS
5870   test -z "$as_dir" && as_dir=.
5871   for ac_exec_ext in '' $ac_executable_extensions; do
5872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5873     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875     break 2
5876   fi
5877 done
5878 done
5879 IFS=$as_save_IFS
5880
5881   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5882   ;;
5883 esac
5884 fi
5885 CP=$ac_cv_path_CP
5886 if test -n "$CP"; then
5887   { echo "$as_me:$LINENO: result: $CP" >&5
5888 echo "${ECHO_T}$CP" >&6; }
5889 else
5890   { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5892 fi
5893
5894
5895 # Extract the first word of "date", so it can be a program name with args.
5896 set dummy date; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_path_DATE+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   case $DATE in
5903   [\\/]* | ?:[\\/]*)
5904   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5905   ;;
5906   *)
5907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912   for ac_exec_ext in '' $ac_executable_extensions; do
5913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5914     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916     break 2
5917   fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5923   ;;
5924 esac
5925 fi
5926 DATE=$ac_cv_path_DATE
5927 if test -n "$DATE"; then
5928   { echo "$as_me:$LINENO: result: $DATE" >&5
5929 echo "${ECHO_T}$DATE" >&6; }
5930 else
5931   { echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6; }
5933 fi
5934
5935
5936 # Extract the first word of "find", so it can be a program name with args.
5937 set dummy find; ac_word=$2
5938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5940 if test "${ac_cv_path_FIND+set}" = set; then
5941   echo $ECHO_N "(cached) $ECHO_C" >&6
5942 else
5943   case $FIND in
5944   [\\/]* | ?:[\\/]*)
5945   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5946   ;;
5947   *)
5948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953   for ac_exec_ext in '' $ac_executable_extensions; do
5954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5955     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960 done
5961 IFS=$as_save_IFS
5962
5963   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5964   ;;
5965 esac
5966 fi
5967 FIND=$ac_cv_path_FIND
5968 if test -n "$FIND"; then
5969   { echo "$as_me:$LINENO: result: $FIND" >&5
5970 echo "${ECHO_T}$FIND" >&6; }
5971 else
5972   { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5974 fi
5975
5976
5977 # Extract the first word of "grep", so it can be a program name with args.
5978 set dummy grep; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_path_GREP+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   case $GREP in
5985   [\\/]* | ?:[\\/]*)
5986   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5987   ;;
5988   *)
5989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5991 do
5992   IFS=$as_save_IFS
5993   test -z "$as_dir" && as_dir=.
5994   for ac_exec_ext in '' $ac_executable_extensions; do
5995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5996     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998     break 2
5999   fi
6000 done
6001 done
6002 IFS=$as_save_IFS
6003
6004   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6005   ;;
6006 esac
6007 fi
6008 GREP=$ac_cv_path_GREP
6009 if test -n "$GREP"; then
6010   { echo "$as_me:$LINENO: result: $GREP" >&5
6011 echo "${ECHO_T}$GREP" >&6; }
6012 else
6013   { echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6; }
6015 fi
6016
6017
6018 # Extract the first word of "mkdir", so it can be a program name with args.
6019 set dummy mkdir; ac_word=$2
6020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6022 if test "${ac_cv_path_MKDIR+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   case $MKDIR in
6026   [\\/]* | ?:[\\/]*)
6027   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6028   ;;
6029   *)
6030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035   for ac_exec_ext in '' $ac_executable_extensions; do
6036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6037     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042 done
6043 IFS=$as_save_IFS
6044
6045   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6046   ;;
6047 esac
6048 fi
6049 MKDIR=$ac_cv_path_MKDIR
6050 if test -n "$MKDIR"; then
6051   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6052 echo "${ECHO_T}$MKDIR" >&6; }
6053 else
6054   { echo "$as_me:$LINENO: result: no" >&5
6055 echo "${ECHO_T}no" >&6; }
6056 fi
6057
6058
6059 # Extract the first word of "mv", so it can be a program name with args.
6060 set dummy mv; ac_word=$2
6061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063 if test "${ac_cv_path_MV+set}" = set; then
6064   echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066   case $MV in
6067   [\\/]* | ?:[\\/]*)
6068   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6069   ;;
6070   *)
6071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074   IFS=$as_save_IFS
6075   test -z "$as_dir" && as_dir=.
6076   for ac_exec_ext in '' $ac_executable_extensions; do
6077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6078     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080     break 2
6081   fi
6082 done
6083 done
6084 IFS=$as_save_IFS
6085
6086   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6087   ;;
6088 esac
6089 fi
6090 MV=$ac_cv_path_MV
6091 if test -n "$MV"; then
6092   { echo "$as_me:$LINENO: result: $MV" >&5
6093 echo "${ECHO_T}$MV" >&6; }
6094 else
6095   { echo "$as_me:$LINENO: result: no" >&5
6096 echo "${ECHO_T}no" >&6; }
6097 fi
6098
6099
6100 if test -n "$ac_tool_prefix"; then
6101   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6105 if test "${ac_cv_prog_RANLIB+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   if test -n "$RANLIB"; then
6109   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   test -z "$as_dir" && as_dir=.
6116   for ac_exec_ext in '' $ac_executable_extensions; do
6117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6118     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120     break 2
6121   fi
6122 done
6123 done
6124 IFS=$as_save_IFS
6125
6126 fi
6127 fi
6128 RANLIB=$ac_cv_prog_RANLIB
6129 if test -n "$RANLIB"; then
6130   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6131 echo "${ECHO_T}$RANLIB" >&6; }
6132 else
6133   { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6135 fi
6136
6137
6138 fi
6139 if test -z "$ac_cv_prog_RANLIB"; then
6140   ac_ct_RANLIB=$RANLIB
6141   # Extract the first word of "ranlib", so it can be a program name with args.
6142 set dummy ranlib; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   if test -n "$ac_ct_RANLIB"; then
6149   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156   for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_ac_ct_RANLIB="ranlib"
6159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6169 if test -n "$ac_ct_RANLIB"; then
6170   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6171 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6172 else
6173   { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6175 fi
6176
6177   if test "x$ac_ct_RANLIB" = x; then
6178     RANLIB=":"
6179   else
6180     case $cross_compiling:$ac_tool_warned in
6181 yes:)
6182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6183 whose name does not start with the host triplet.  If you think this
6184 configuration is useful to you, please write to autoconf@gnu.org." >&5
6185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6186 whose name does not start with the host triplet.  If you think this
6187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6188 ac_tool_warned=yes ;;
6189 esac
6190     RANLIB=$ac_ct_RANLIB
6191   fi
6192 else
6193   RANLIB="$ac_cv_prog_RANLIB"
6194 fi
6195
6196 if test -n "$ac_tool_prefix"; then
6197   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6198 set dummy ${ac_tool_prefix}ar; ac_word=$2
6199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6201 if test "${ac_cv_prog_AR+set}" = set; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204   if test -n "$AR"; then
6205   ac_cv_prog_AR="$AR" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210   IFS=$as_save_IFS
6211   test -z "$as_dir" && as_dir=.
6212   for ac_exec_ext in '' $ac_executable_extensions; do
6213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6214     ac_cv_prog_AR="${ac_tool_prefix}ar"
6215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216     break 2
6217   fi
6218 done
6219 done
6220 IFS=$as_save_IFS
6221
6222 fi
6223 fi
6224 AR=$ac_cv_prog_AR
6225 if test -n "$AR"; then
6226   { echo "$as_me:$LINENO: result: $AR" >&5
6227 echo "${ECHO_T}$AR" >&6; }
6228 else
6229   { echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6; }
6231 fi
6232
6233
6234 fi
6235 if test -z "$ac_cv_prog_AR"; then
6236   ac_ct_AR=$AR
6237   # Extract the first word of "ar", so it can be a program name with args.
6238 set dummy ar; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   if test -n "$ac_ct_AR"; then
6245   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252   for ac_exec_ext in '' $ac_executable_extensions; do
6253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6254     ac_cv_prog_ac_ct_AR="ar"
6255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6265 if test -n "$ac_ct_AR"; then
6266   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6267 echo "${ECHO_T}$ac_ct_AR" >&6; }
6268 else
6269   { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6271 fi
6272
6273   if test "x$ac_ct_AR" = x; then
6274     AR="false"
6275   else
6276     case $cross_compiling:$ac_tool_warned in
6277 yes:)
6278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6279 whose name does not start with the host triplet.  If you think this
6280 configuration is useful to you, please write to autoconf@gnu.org." >&5
6281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6282 whose name does not start with the host triplet.  If you think this
6283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6284 ac_tool_warned=yes ;;
6285 esac
6286     AR=$ac_ct_AR
6287   fi
6288 else
6289   AR="$ac_cv_prog_AR"
6290 fi
6291
6292 # Extract the first word of "rm", so it can be a program name with args.
6293 set dummy rm; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_path_RM+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   case $RM in
6300   [\\/]* | ?:[\\/]*)
6301   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6302   ;;
6303   *)
6304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307   IFS=$as_save_IFS
6308   test -z "$as_dir" && as_dir=.
6309   for ac_exec_ext in '' $ac_executable_extensions; do
6310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6311     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313     break 2
6314   fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6318
6319   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6320   ;;
6321 esac
6322 fi
6323 RM=$ac_cv_path_RM
6324 if test -n "$RM"; then
6325   { echo "$as_me:$LINENO: result: $RM" >&5
6326 echo "${ECHO_T}$RM" >&6; }
6327 else
6328   { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6330 fi
6331
6332
6333 # Extract the first word of "sed", so it can be a program name with args.
6334 set dummy sed; ac_word=$2
6335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337 if test "${ac_cv_path_SED+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   case $SED in
6341   [\\/]* | ?:[\\/]*)
6342   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6343   ;;
6344   *)
6345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350   for ac_exec_ext in '' $ac_executable_extensions; do
6351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6352     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357 done
6358 IFS=$as_save_IFS
6359
6360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6361   ;;
6362 esac
6363 fi
6364 SED=$ac_cv_path_SED
6365 if test -n "$SED"; then
6366   { echo "$as_me:$LINENO: result: $SED" >&5
6367 echo "${ECHO_T}$SED" >&6; }
6368 else
6369   { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6371 fi
6372
6373
6374 # Extract the first word of "tar", so it can be a program name with args.
6375 set dummy tar; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_path_TAR+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   case $TAR in
6382   [\\/]* | ?:[\\/]*)
6383   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6384   ;;
6385   *)
6386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391   for ac_exec_ext in '' $ac_executable_extensions; do
6392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6393     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6402   ;;
6403 esac
6404 fi
6405 TAR=$ac_cv_path_TAR
6406 if test -n "$TAR"; then
6407   { echo "$as_me:$LINENO: result: $TAR" >&5
6408 echo "${ECHO_T}$TAR" >&6; }
6409 else
6410   { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6412 fi
6413
6414
6415 # Extract the first word of "pwd", so it can be a program name with args.
6416 set dummy pwd; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_path_BINPWD+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   case $BINPWD in
6423   [\\/]* | ?:[\\/]*)
6424   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6425   ;;
6426   *)
6427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432   for ac_exec_ext in '' $ac_executable_extensions; do
6433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6434     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6443   ;;
6444 esac
6445 fi
6446 BINPWD=$ac_cv_path_BINPWD
6447 if test -n "$BINPWD"; then
6448   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6449 echo "${ECHO_T}$BINPWD" >&6; }
6450 else
6451   { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6453 fi
6454
6455
6456
6457 # Extract the first word of "dot", so it can be a program name with args.
6458 set dummy dot; ac_word=$2
6459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6461 if test "${ac_cv_path_DOT+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   case $DOT in
6465   [\\/]* | ?:[\\/]*)
6466   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6467   ;;
6468   *)
6469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474   for ac_exec_ext in '' $ac_executable_extensions; do
6475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6476     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6483
6484   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6485   ;;
6486 esac
6487 fi
6488 DOT=$ac_cv_path_DOT
6489 if test -n "$DOT"; then
6490   { echo "$as_me:$LINENO: result: $DOT" >&5
6491 echo "${ECHO_T}$DOT" >&6; }
6492 else
6493   { echo "$as_me:$LINENO: result: no" >&5
6494 echo "${ECHO_T}no" >&6; }
6495 fi
6496
6497
6498 if test "$DOT" != "echo dot" ; then
6499
6500 cat >>confdefs.h <<\_ACEOF
6501 #define HAVE_DOT 1
6502 _ACEOF
6503
6504     if test "$llvm_cv_os_type" = "MingW" ; then
6505     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6506   fi
6507
6508 cat >>confdefs.h <<_ACEOF
6509 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6510 _ACEOF
6511
6512 fi
6513
6514 # Find a good install program.  We prefer a C program (faster),
6515 # so one script is as good as another.  But avoid the broken or
6516 # incompatible versions:
6517 # SysV /etc/install, /usr/sbin/install
6518 # SunOS /usr/etc/install
6519 # IRIX /sbin/install
6520 # AIX /bin/install
6521 # AmigaOS /C/install, which installs bootblocks on floppy discs
6522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6525 # OS/2's system install, which has a completely different semantic
6526 # ./install, which can be erroneously created by make from ./install.sh.
6527 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6528 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6529 if test -z "$INSTALL"; then
6530 if test "${ac_cv_path_install+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536   IFS=$as_save_IFS
6537   test -z "$as_dir" && as_dir=.
6538   # Account for people who put trailing slashes in PATH elements.
6539 case $as_dir/ in
6540   ./ | .// | /cC/* | \
6541   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6542   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6543   /usr/ucb/* ) ;;
6544   *)
6545     # OSF1 and SCO ODT 3.0 have their own names for install.
6546     # Don't use installbsd from OSF since it installs stuff as root
6547     # by default.
6548     for ac_prog in ginstall scoinst install; do
6549       for ac_exec_ext in '' $ac_executable_extensions; do
6550         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6551           if test $ac_prog = install &&
6552             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6553             # AIX install.  It has an incompatible calling convention.
6554             :
6555           elif test $ac_prog = install &&
6556             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6557             # program-specific install script used by HP pwplus--don't use.
6558             :
6559           else
6560             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6561             break 3
6562           fi
6563         fi
6564       done
6565     done
6566     ;;
6567 esac
6568 done
6569 IFS=$as_save_IFS
6570
6571
6572 fi
6573   if test "${ac_cv_path_install+set}" = set; then
6574     INSTALL=$ac_cv_path_install
6575   else
6576     # As a last resort, use the slow shell script.  Don't cache a
6577     # value for INSTALL within a source directory, because that will
6578     # break other packages using the cache if that directory is
6579     # removed, or if the value is a relative name.
6580     INSTALL=$ac_install_sh
6581   fi
6582 fi
6583 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6584 echo "${ECHO_T}$INSTALL" >&6; }
6585
6586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6587 # It thinks the first close brace ends the variable substitution.
6588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6589
6590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6591
6592 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6593
6594 case "$INSTALL" in
6595  [\\/$]* | ?:[\\/]* ) ;;
6596  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6597 esac
6598
6599 # Extract the first word of "bzip2", so it can be a program name with args.
6600 set dummy bzip2; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_path_BZIP2+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606   case $BZIP2 in
6607   [\\/]* | ?:[\\/]*)
6608   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6609   ;;
6610   *)
6611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616   for ac_exec_ext in '' $ac_executable_extensions; do
6617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6618     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626   ;;
6627 esac
6628 fi
6629 BZIP2=$ac_cv_path_BZIP2
6630 if test -n "$BZIP2"; then
6631   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6632 echo "${ECHO_T}$BZIP2" >&6; }
6633 else
6634   { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6636 fi
6637
6638
6639 # Extract the first word of "cat", so it can be a program name with args.
6640 set dummy cat; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_CAT+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   case $CAT in
6647   [\\/]* | ?:[\\/]*)
6648   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6649   ;;
6650   *)
6651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656   for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666   ;;
6667 esac
6668 fi
6669 CAT=$ac_cv_path_CAT
6670 if test -n "$CAT"; then
6671   { echo "$as_me:$LINENO: result: $CAT" >&5
6672 echo "${ECHO_T}$CAT" >&6; }
6673 else
6674   { echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6; }
6676 fi
6677
6678
6679 # Extract the first word of "doxygen", so it can be a program name with args.
6680 set dummy doxygen; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   case $DOXYGEN in
6687   [\\/]* | ?:[\\/]*)
6688   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6689   ;;
6690   *)
6691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696   for ac_exec_ext in '' $ac_executable_extensions; do
6697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6698     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6705
6706   ;;
6707 esac
6708 fi
6709 DOXYGEN=$ac_cv_path_DOXYGEN
6710 if test -n "$DOXYGEN"; then
6711   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6712 echo "${ECHO_T}$DOXYGEN" >&6; }
6713 else
6714   { echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6; }
6716 fi
6717
6718
6719 # Extract the first word of "groff", so it can be a program name with args.
6720 set dummy groff; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_path_GROFF+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   case $GROFF in
6727   [\\/]* | ?:[\\/]*)
6728   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6729   ;;
6730   *)
6731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736   for ac_exec_ext in '' $ac_executable_extensions; do
6737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6738     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746   ;;
6747 esac
6748 fi
6749 GROFF=$ac_cv_path_GROFF
6750 if test -n "$GROFF"; then
6751   { echo "$as_me:$LINENO: result: $GROFF" >&5
6752 echo "${ECHO_T}$GROFF" >&6; }
6753 else
6754   { echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6; }
6756 fi
6757
6758
6759 # Extract the first word of "gzip", so it can be a program name with args.
6760 set dummy gzip; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   case $GZIPBIN in
6767   [\\/]* | ?:[\\/]*)
6768   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6769   ;;
6770   *)
6771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774   IFS=$as_save_IFS
6775   test -z "$as_dir" && as_dir=.
6776   for ac_exec_ext in '' $ac_executable_extensions; do
6777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6778     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780     break 2
6781   fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786   ;;
6787 esac
6788 fi
6789 GZIPBIN=$ac_cv_path_GZIPBIN
6790 if test -n "$GZIPBIN"; then
6791   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6792 echo "${ECHO_T}$GZIPBIN" >&6; }
6793 else
6794   { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6796 fi
6797
6798
6799 # Extract the first word of "pdfroff", so it can be a program name with args.
6800 set dummy pdfroff; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_path_PDFROFF+set}" = set; then
6804   echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806   case $PDFROFF in
6807   [\\/]* | ?:[\\/]*)
6808   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6809   ;;
6810   *)
6811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816   for ac_exec_ext in '' $ac_executable_extensions; do
6817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6818     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826   ;;
6827 esac
6828 fi
6829 PDFROFF=$ac_cv_path_PDFROFF
6830 if test -n "$PDFROFF"; then
6831   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6832 echo "${ECHO_T}$PDFROFF" >&6; }
6833 else
6834   { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6836 fi
6837
6838
6839 # Extract the first word of "zip", so it can be a program name with args.
6840 set dummy zip; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_ZIP+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   case $ZIP in
6847   [\\/]* | ?:[\\/]*)
6848   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6849   ;;
6850   *)
6851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856   for ac_exec_ext in '' $ac_executable_extensions; do
6857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866   ;;
6867 esac
6868 fi
6869 ZIP=$ac_cv_path_ZIP
6870 if test -n "$ZIP"; then
6871   { echo "$as_me:$LINENO: result: $ZIP" >&5
6872 echo "${ECHO_T}$ZIP" >&6; }
6873 else
6874   { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6876 fi
6877
6878
6879 # Extract the first word of "go", so it can be a program name with args.
6880 set dummy go; ac_word=$2
6881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883 if test "${ac_cv_path_GO+set}" = set; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886   case $GO in
6887   [\\/]* | ?:[\\/]*)
6888   ac_cv_path_GO="$GO" # Let the user override the test with a path.
6889   ;;
6890   *)
6891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894   IFS=$as_save_IFS
6895   test -z "$as_dir" && as_dir=.
6896   for ac_exec_ext in '' $ac_executable_extensions; do
6897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6898     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900     break 2
6901   fi
6902 done
6903 done
6904 IFS=$as_save_IFS
6905
6906   ;;
6907 esac
6908 fi
6909 GO=$ac_cv_path_GO
6910 if test -n "$GO"; then
6911   { echo "$as_me:$LINENO: result: $GO" >&5
6912 echo "${ECHO_T}$GO" >&6; }
6913 else
6914   { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6916 fi
6917
6918
6919 for ac_prog in ocamlfind
6920 do
6921   # Extract the first word of "$ac_prog", so it can be a program name with args.
6922 set dummy $ac_prog; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   case $OCAMLFIND in
6929   [\\/]* | ?:[\\/]*)
6930   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6931   ;;
6932   *)
6933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938   for ac_exec_ext in '' $ac_executable_extensions; do
6939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948   ;;
6949 esac
6950 fi
6951 OCAMLFIND=$ac_cv_path_OCAMLFIND
6952 if test -n "$OCAMLFIND"; then
6953   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6954 echo "${ECHO_T}$OCAMLFIND" >&6; }
6955 else
6956   { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6958 fi
6959
6960
6961   test -n "$OCAMLFIND" && break
6962 done
6963
6964 for ac_prog in gas as
6965 do
6966   # Extract the first word of "$ac_prog", so it can be a program name with args.
6967 set dummy $ac_prog; ac_word=$2
6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970 if test "${ac_cv_path_GAS+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973   case $GAS in
6974   [\\/]* | ?:[\\/]*)
6975   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6976   ;;
6977   *)
6978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983   for ac_exec_ext in '' $ac_executable_extensions; do
6984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6985     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987     break 2
6988   fi
6989 done
6990 done
6991 IFS=$as_save_IFS
6992
6993   ;;
6994 esac
6995 fi
6996 GAS=$ac_cv_path_GAS
6997 if test -n "$GAS"; then
6998   { echo "$as_me:$LINENO: result: $GAS" >&5
6999 echo "${ECHO_T}$GAS" >&6; }
7000 else
7001   { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7003 fi
7004
7005
7006   test -n "$GAS" && break
7007 done
7008
7009
7010 { echo "$as_me:$LINENO: checking for linker version" >&5
7011 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7012 if test "${llvm_cv_link_version+set}" = set; then
7013   echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015
7016    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7017
7018    # Check for ld64.
7019    if (echo "$version_string" | grep -q "ld64"); then
7020      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7021    else
7022      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7023    fi
7024
7025 fi
7026 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7027 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7028
7029 cat >>confdefs.h <<_ACEOF
7030 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7031 _ACEOF
7032
7033
7034
7035
7036 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7037 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7038 if test "${llvm_cv_link_use_r+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041    ac_ext=c
7042 ac_cpp='$CPP $CPPFLAGS'
7043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7046
7047   oldcflags="$CFLAGS"
7048   CFLAGS="$CFLAGS -Wl,-R."
7049   cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055
7056 int
7057 main ()
7058 {
7059
7060   ;
7061   return 0;
7062 }
7063 _ACEOF
7064 rm -f conftest.$ac_objext conftest$ac_exeext
7065 if { (ac_try="$ac_link"
7066 case "(($ac_try" in
7067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068   *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071   (eval "$ac_link") 2>conftest.er1
7072   ac_status=$?
7073   grep -v '^ *+' conftest.er1 >conftest.err
7074   rm -f conftest.er1
7075   cat conftest.err >&5
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } &&
7078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7079   { (case "(($ac_try" in
7080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081   *) ac_try_echo=$ac_try;;
7082 esac
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084   (eval "$ac_try") 2>&5
7085   ac_status=$?
7086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); }; } &&
7088          { ac_try='test -s conftest$ac_exeext'
7089   { (case "(($ac_try" in
7090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091   *) ac_try_echo=$ac_try;;
7092 esac
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094   (eval "$ac_try") 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098   llvm_cv_link_use_r=yes
7099 else
7100   echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103         llvm_cv_link_use_r=no
7104 fi
7105
7106 rm -f core conftest.err conftest.$ac_objext \
7107       conftest$ac_exeext conftest.$ac_ext
7108   CFLAGS="$oldcflags"
7109   ac_ext=c
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114
7115
7116 fi
7117 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7118 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7119 if test "$llvm_cv_link_use_r" = yes ; then
7120
7121 cat >>confdefs.h <<\_ACEOF
7122 #define HAVE_LINK_R 1
7123 _ACEOF
7124
7125   fi
7126
7127
7128 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7129 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7130 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133    ac_ext=c
7134 ac_cpp='$CPP $CPPFLAGS'
7135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138
7139   oldcflags="$CFLAGS"
7140   CFLAGS="$CFLAGS -rdynamic"
7141   cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147
7148 int
7149 main ()
7150 {
7151
7152   ;
7153   return 0;
7154 }
7155 _ACEOF
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (ac_try="$ac_link"
7158 case "(($ac_try" in
7159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160   *) ac_try_echo=$ac_try;;
7161 esac
7162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7163   (eval "$ac_link") 2>conftest.er1
7164   ac_status=$?
7165   grep -v '^ *+' conftest.er1 >conftest.err
7166   rm -f conftest.er1
7167   cat conftest.err >&5
7168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169   (exit $ac_status); } &&
7170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7171   { (case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176   (eval "$ac_try") 2>&5
7177   ac_status=$?
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); }; } &&
7180          { ac_try='test -s conftest$ac_exeext'
7181   { (case "(($ac_try" in
7182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183   *) ac_try_echo=$ac_try;;
7184 esac
7185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186   (eval "$ac_try") 2>&5
7187   ac_status=$?
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); }; }; then
7190   llvm_cv_link_use_export_dynamic=yes
7191 else
7192   echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195         llvm_cv_link_use_export_dynamic=no
7196 fi
7197
7198 rm -f core conftest.err conftest.$ac_objext \
7199       conftest$ac_exeext conftest.$ac_ext
7200   CFLAGS="$oldcflags"
7201   ac_ext=c
7202 ac_cpp='$CPP $CPPFLAGS'
7203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206
7207
7208 fi
7209 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7210 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7211 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7212
7213 cat >>confdefs.h <<\_ACEOF
7214 #define HAVE_LINK_EXPORT_DYNAMIC 1
7215 _ACEOF
7216
7217   fi
7218
7219
7220 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7221 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7222 if test "${llvm_cv_link_use_version_script+set}" = set; then
7223   echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225    ac_ext=c
7226 ac_cpp='$CPP $CPPFLAGS'
7227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7230
7231   oldcflags="$CFLAGS"
7232
7233   # The following code is from the autoconf manual,
7234   # "11.13: Limitations of Usual Tools".
7235   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7236   # Use mktemp if possible; otherwise fall back on mkdir,
7237   # with $RANDOM to make collisions less likely.
7238   : ${TMPDIR=/tmp}
7239   {
7240     tmp=`
7241       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7242     ` &&
7243     test -n "$tmp" && test -d "$tmp"
7244   } || {
7245     tmp=$TMPDIR/foo$$-$RANDOM
7246     (umask 077 && mkdir "$tmp")
7247   } || exit $?
7248
7249   echo "{" > "$tmp/export.map"
7250   echo "  global: main;" >> "$tmp/export.map"
7251   echo "  local: *;" >> "$tmp/export.map"
7252   echo "};" >> "$tmp/export.map"
7253
7254   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7255   cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261
7262 int
7263 main ()
7264 {
7265
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7272 case "(($ac_try" in
7273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274   *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277   (eval "$ac_link") 2>conftest.er1
7278   ac_status=$?
7279   grep -v '^ *+' conftest.er1 >conftest.err
7280   rm -f conftest.er1
7281   cat conftest.err >&5
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } &&
7284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7285   { (case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290   (eval "$ac_try") 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; } &&
7294          { ac_try='test -s conftest$ac_exeext'
7295   { (case "(($ac_try" in
7296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297   *) ac_try_echo=$ac_try;;
7298 esac
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300   (eval "$ac_try") 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); }; }; then
7304   llvm_cv_link_use_version_script=yes
7305 else
7306   echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309         llvm_cv_link_use_version_script=no
7310 fi
7311
7312 rm -f core conftest.err conftest.$ac_objext \
7313       conftest$ac_exeext conftest.$ac_ext
7314   rm "$tmp/export.map"
7315   rmdir "$tmp"
7316   CFLAGS="$oldcflags"
7317   ac_ext=c
7318 ac_cpp='$CPP $CPPFLAGS'
7319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7322
7323
7324 fi
7325 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7326 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7327 if test "$llvm_cv_link_use_version_script" = yes ; then
7328   HAVE_LINK_VERSION_SCRIPT=1
7329
7330   fi
7331
7332
7333
7334 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7335 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_GREP+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   # Extract the first word of "grep ggrep" to use in msg output
7340 if test -z "$GREP"; then
7341 set dummy grep ggrep; ac_prog_name=$2
7342 if test "${ac_cv_path_GREP+set}" = set; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   ac_path_GREP_found=false
7346 # Loop through the user's path and test for each of PROGNAME-LIST
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352   for ac_prog in grep ggrep; do
7353   for ac_exec_ext in '' $ac_executable_extensions; do
7354     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7355     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7356     # Check for GNU ac_path_GREP and select it if it is found.
7357   # Check for GNU $ac_path_GREP
7358 case `"$ac_path_GREP" --version 2>&1` in
7359 *GNU*)
7360   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7361 *)
7362   ac_count=0
7363   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7364   while :
7365   do
7366     cat "conftest.in" "conftest.in" >"conftest.tmp"
7367     mv "conftest.tmp" "conftest.in"
7368     cp "conftest.in" "conftest.nl"
7369     echo 'GREP' >> "conftest.nl"
7370     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7371     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7372     ac_count=`expr $ac_count + 1`
7373     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7374       # Best one so far, save it but keep looking for a better one
7375       ac_cv_path_GREP="$ac_path_GREP"
7376       ac_path_GREP_max=$ac_count
7377     fi
7378     # 10*(2^10) chars as input seems more than enough
7379     test $ac_count -gt 10 && break
7380   done
7381   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7382 esac
7383
7384
7385     $ac_path_GREP_found && break 3
7386   done
7387 done
7388
7389 done
7390 IFS=$as_save_IFS
7391
7392
7393 fi
7394
7395 GREP="$ac_cv_path_GREP"
7396 if test -z "$GREP"; then
7397   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7398 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7399    { (exit 1); exit 1; }; }
7400 fi
7401
7402 else
7403   ac_cv_path_GREP=$GREP
7404 fi
7405
7406
7407 fi
7408 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7409 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7410  GREP="$ac_cv_path_GREP"
7411
7412
7413 { echo "$as_me:$LINENO: checking for egrep" >&5
7414 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7415 if test "${ac_cv_path_EGREP+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7419    then ac_cv_path_EGREP="$GREP -E"
7420    else
7421      # Extract the first word of "egrep" to use in msg output
7422 if test -z "$EGREP"; then
7423 set dummy egrep; ac_prog_name=$2
7424 if test "${ac_cv_path_EGREP+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   ac_path_EGREP_found=false
7428 # Loop through the user's path and test for each of PROGNAME-LIST
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7431 do
7432   IFS=$as_save_IFS
7433   test -z "$as_dir" && as_dir=.
7434   for ac_prog in egrep; do
7435   for ac_exec_ext in '' $ac_executable_extensions; do
7436     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7437     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7438     # Check for GNU ac_path_EGREP and select it if it is found.
7439   # Check for GNU $ac_path_EGREP
7440 case `"$ac_path_EGREP" --version 2>&1` in
7441 *GNU*)
7442   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7443 *)
7444   ac_count=0
7445   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7446   while :
7447   do
7448     cat "conftest.in" "conftest.in" >"conftest.tmp"
7449     mv "conftest.tmp" "conftest.in"
7450     cp "conftest.in" "conftest.nl"
7451     echo 'EGREP' >> "conftest.nl"
7452     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7453     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7454     ac_count=`expr $ac_count + 1`
7455     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7456       # Best one so far, save it but keep looking for a better one
7457       ac_cv_path_EGREP="$ac_path_EGREP"
7458       ac_path_EGREP_max=$ac_count
7459     fi
7460     # 10*(2^10) chars as input seems more than enough
7461     test $ac_count -gt 10 && break
7462   done
7463   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7464 esac
7465
7466
7467     $ac_path_EGREP_found && break 3
7468   done
7469 done
7470
7471 done
7472 IFS=$as_save_IFS
7473
7474
7475 fi
7476
7477 EGREP="$ac_cv_path_EGREP"
7478 if test -z "$EGREP"; then
7479   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7480 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7481    { (exit 1); exit 1; }; }
7482 fi
7483
7484 else
7485   ac_cv_path_EGREP=$EGREP
7486 fi
7487
7488
7489    fi
7490 fi
7491 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7492 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7493  EGREP="$ac_cv_path_EGREP"
7494
7495
7496 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7497 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7498 if test "${ac_cv_header_stdc+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507 #include <stdlib.h>
7508 #include <stdarg.h>
7509 #include <string.h>
7510 #include <float.h>
7511
7512 int
7513 main ()
7514 {
7515
7516   ;
7517   return 0;
7518 }
7519 _ACEOF
7520 rm -f conftest.$ac_objext
7521 if { (ac_try="$ac_compile"
7522 case "(($ac_try" in
7523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524   *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527   (eval "$ac_compile") 2>conftest.er1
7528   ac_status=$?
7529   grep -v '^ *+' conftest.er1 >conftest.err
7530   rm -f conftest.er1
7531   cat conftest.err >&5
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); } &&
7534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7535   { (case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540   (eval "$ac_try") 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); }; } &&
7544          { ac_try='test -s conftest.$ac_objext'
7545   { (case "(($ac_try" in
7546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547   *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550   (eval "$ac_try") 2>&5
7551   ac_status=$?
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); }; }; then
7554   ac_cv_header_stdc=yes
7555 else
7556   echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559         ac_cv_header_stdc=no
7560 fi
7561
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563
7564 if test $ac_cv_header_stdc = yes; then
7565   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7566   cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h.  */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h.  */
7572 #include <string.h>
7573
7574 _ACEOF
7575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576   $EGREP "memchr" >/dev/null 2>&1; then
7577   :
7578 else
7579   ac_cv_header_stdc=no
7580 fi
7581 rm -f conftest*
7582
7583 fi
7584
7585 if test $ac_cv_header_stdc = yes; then
7586   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7587   cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h.  */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h.  */
7593 #include <stdlib.h>
7594
7595 _ACEOF
7596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7597   $EGREP "free" >/dev/null 2>&1; then
7598   :
7599 else
7600   ac_cv_header_stdc=no
7601 fi
7602 rm -f conftest*
7603
7604 fi
7605
7606 if test $ac_cv_header_stdc = yes; then
7607   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7608   if test "$cross_compiling" = yes; then
7609   :
7610 else
7611   cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617 #include <ctype.h>
7618 #include <stdlib.h>
7619 #if ((' ' & 0x0FF) == 0x020)
7620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7622 #else
7623 # define ISLOWER(c) \
7624                    (('a' <= (c) && (c) <= 'i') \
7625                      || ('j' <= (c) && (c) <= 'r') \
7626                      || ('s' <= (c) && (c) <= 'z'))
7627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7628 #endif
7629
7630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7631 int
7632 main ()
7633 {
7634   int i;
7635   for (i = 0; i < 256; i++)
7636     if (XOR (islower (i), ISLOWER (i))
7637         || toupper (i) != TOUPPER (i))
7638       return 2;
7639   return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7644 case "(($ac_try" in
7645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646   *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649   (eval "$ac_link") 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7653   { (case "(($ac_try" in
7654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655   *) ac_try_echo=$ac_try;;
7656 esac
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658   (eval "$ac_try") 2>&5
7659   ac_status=$?
7660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661   (exit $ac_status); }; }; then
7662   :
7663 else
7664   echo "$as_me: program exited with status $ac_status" >&5
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668 ( exit $ac_status )
7669 ac_cv_header_stdc=no
7670 fi
7671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7672 fi
7673
7674
7675 fi
7676 fi
7677 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7678 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7679 if test $ac_cv_header_stdc = yes; then
7680
7681 cat >>confdefs.h <<\_ACEOF
7682 #define STDC_HEADERS 1
7683 _ACEOF
7684
7685 fi
7686
7687 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7698                   inttypes.h stdint.h unistd.h
7699 do
7700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h.  */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h.  */
7712 $ac_includes_default
7713
7714 #include <$ac_header>
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7718 case "(($ac_try" in
7719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720   *) ac_try_echo=$ac_try;;
7721 esac
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723   (eval "$ac_compile") 2>conftest.er1
7724   ac_status=$?
7725   grep -v '^ *+' conftest.er1 >conftest.err
7726   rm -f conftest.er1
7727   cat conftest.err >&5
7728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); } &&
7730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7731   { (case "(($ac_try" in
7732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733   *) ac_try_echo=$ac_try;;
7734 esac
7735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7736   (eval "$ac_try") 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; } &&
7740          { ac_try='test -s conftest.$ac_objext'
7741   { (case "(($ac_try" in
7742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743   *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746   (eval "$ac_try") 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); }; }; then
7750   eval "$as_ac_Header=yes"
7751 else
7752   echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755         eval "$as_ac_Header=no"
7756 fi
7757
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 fi
7760 ac_res=`eval echo '${'$as_ac_Header'}'`
7761                { echo "$as_me:$LINENO: result: $ac_res" >&5
7762 echo "${ECHO_T}$ac_res" >&6; }
7763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7764   cat >>confdefs.h <<_ACEOF
7765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7766 _ACEOF
7767
7768 fi
7769
7770 done
7771
7772
7773
7774 for ac_header in errno.h
7775 do
7776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7778   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781   echo $ECHO_N "(cached) $ECHO_C" >&6
7782 fi
7783 ac_res=`eval echo '${'$as_ac_Header'}'`
7784                { echo "$as_me:$LINENO: result: $ac_res" >&5
7785 echo "${ECHO_T}$ac_res" >&6; }
7786 else
7787   # Is the header compilable?
7788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7790 cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h.  */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h.  */
7796 $ac_includes_default
7797 #include <$ac_header>
7798 _ACEOF
7799 rm -f conftest.$ac_objext
7800 if { (ac_try="$ac_compile"
7801 case "(($ac_try" in
7802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803   *) ac_try_echo=$ac_try;;
7804 esac
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806   (eval "$ac_compile") 2>conftest.er1
7807   ac_status=$?
7808   grep -v '^ *+' conftest.er1 >conftest.err
7809   rm -f conftest.er1
7810   cat conftest.err >&5
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } &&
7813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7814   { (case "(($ac_try" in
7815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816   *) ac_try_echo=$ac_try;;
7817 esac
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819   (eval "$ac_try") 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; } &&
7823          { ac_try='test -s conftest.$ac_objext'
7824   { (case "(($ac_try" in
7825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826   *) ac_try_echo=$ac_try;;
7827 esac
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829   (eval "$ac_try") 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   ac_header_compiler=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838         ac_header_compiler=no
7839 fi
7840
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7843 echo "${ECHO_T}$ac_header_compiler" >&6; }
7844
7845 # Is the header present?
7846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h.  */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h.  */
7854 #include <$ac_header>
7855 _ACEOF
7856 if { (ac_try="$ac_cpp conftest.$ac_ext"
7857 case "(($ac_try" in
7858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859   *) ac_try_echo=$ac_try;;
7860 esac
7861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7863   ac_status=$?
7864   grep -v '^ *+' conftest.er1 >conftest.err
7865   rm -f conftest.er1
7866   cat conftest.err >&5
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); } >/dev/null; then
7869   if test -s conftest.err; then
7870     ac_cpp_err=$ac_c_preproc_warn_flag
7871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7872   else
7873     ac_cpp_err=
7874   fi
7875 else
7876   ac_cpp_err=yes
7877 fi
7878 if test -z "$ac_cpp_err"; then
7879   ac_header_preproc=yes
7880 else
7881   echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7883
7884   ac_header_preproc=no
7885 fi
7886
7887 rm -f conftest.err conftest.$ac_ext
7888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7889 echo "${ECHO_T}$ac_header_preproc" >&6; }
7890
7891 # So?  What about this header?
7892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7893   yes:no: )
7894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7898     ac_header_preproc=yes
7899     ;;
7900   no:yes:* )
7901     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7903     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7904 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7905     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7907     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7908 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7911     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7913     ( cat <<\_ASBOX
7914 ## ------------------------------------ ##
7915 ## Report this to http://llvm.org/bugs/ ##
7916 ## ------------------------------------ ##
7917 _ASBOX
7918      ) | sed "s/^/$as_me: WARNING:     /" >&2
7919     ;;
7920 esac
7921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   eval "$as_ac_Header=\$ac_header_preproc"
7927 fi
7928 ac_res=`eval echo '${'$as_ac_Header'}'`
7929                { echo "$as_me:$LINENO: result: $ac_res" >&5
7930 echo "${ECHO_T}$ac_res" >&6; }
7931
7932 fi
7933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7934   cat >>confdefs.h <<_ACEOF
7935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7936 _ACEOF
7937
7938 fi
7939
7940 done
7941
7942
7943 case "$llvm_cv_os_type" in
7944   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7945   Darwin) llvm_shlib_ext=.dylib ;;
7946   *) llvm_shlib_ext=.so ;;
7947 esac
7948
7949
7950 cat >>confdefs.h <<_ACEOF
7951 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7952 _ACEOF
7953
7954
7955 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7956 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7957
7958 ICC=no
7959 IXX=no
7960 case $CC in
7961   icc*|icpc*)
7962     ICC=yes
7963     IXX=yes
7964     ;;
7965    *)
7966     ;;
7967 esac
7968
7969 if test "$GCC" != "yes" && test "$ICC" != "yes"
7970 then
7971   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7972 echo "$as_me: error: gcc|icc required but not found" >&2;}
7973    { (exit 1); exit 1; }; }
7974 fi
7975
7976 if test "$GXX" != "yes" && test "$IXX" != "yes"
7977 then
7978   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7979 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7980    { (exit 1); exit 1; }; }
7981 fi
7982
7983 if test "$GCC" = "yes"
7984 then
7985   cat >conftest.$ac_ext <<_ACEOF
7986
7987   /* confdefs.h.  */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h.  */
7992
7993     #if !defined(__GNUC__) || __GNUC__ < 3
7994     #error Unsupported GCC version
7995     #endif
7996
7997
7998 _ACEOF
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8001 case "(($ac_try" in
8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003   *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006   (eval "$ac_compile") 2>conftest.er1
8007   ac_status=$?
8008   grep -v '^ *+' conftest.er1 >conftest.err
8009   rm -f conftest.er1
8010   cat conftest.err >&5
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } &&
8013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8014   { (case "(($ac_try" in
8015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016   *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019   (eval "$ac_try") 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); }; } &&
8023          { ac_try='test -s conftest.$ac_objext'
8024   { (case "(($ac_try" in
8025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026   *) ac_try_echo=$ac_try;;
8027 esac
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029   (eval "$ac_try") 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); }; }; then
8033   :
8034 else
8035   echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8037
8038         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8039 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8040    { (exit 1); exit 1; }; }
8041 fi
8042
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 fi
8045
8046 if test -z "$llvm_cv_gnu_make_command"
8047 then
8048   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8049 echo "$as_me: error: GNU Make required but not found" >&2;}
8050    { (exit 1); exit 1; }; }
8051 fi
8052
8053 { echo "$as_me:$LINENO: result: ok" >&5
8054 echo "${ECHO_T}ok" >&6; }
8055
8056 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8057 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8058 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8059
8060 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8061
8062 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8063
8064
8065 NO_UNINITIALIZED=
8066 NO_MAYBE_UNINITIALIZED=
8067 if test "$GXX" = "yes"
8068 then
8069   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8070
8071         if test -z "$NO_MAYBE_UNINITIALIZED"
8072   then
8073     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8074
8075   fi
8076 fi
8077
8078 no_comment=
8079 llvm_cv_old_cxxflags="$CXXFLAGS"
8080 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8081 cat >conftest.$ac_ext <<_ACEOF
8082
8083   /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088 // Comment \o\
8089 // Another comment
8090 int main() { return 0; }
8091
8092
8093 _ACEOF
8094 rm -f conftest.$ac_objext
8095 if { (ac_try="$ac_compile"
8096 case "(($ac_try" in
8097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098   *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101   (eval "$ac_compile") 2>conftest.er1
8102   ac_status=$?
8103   grep -v '^ *+' conftest.er1 >conftest.err
8104   rm -f conftest.er1
8105   cat conftest.err >&5
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } &&
8108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8109   { (case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_try") 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; } &&
8118          { ac_try='test -s conftest.$ac_objext'
8119   { (case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124   (eval "$ac_try") 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128
8129   no_comment=-Wno-comment
8130
8131 else
8132   echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135
8136 fi
8137
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 NO_COMMENT=$no_comment
8140
8141 CXXFLAGS="$llvm_cv_old_cxxflags"
8142
8143 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8144 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8145
8146
8147 # Check whether --with-python was given.
8148 if test "${with_python+set}" = set; then
8149   withval=$with_python; PYTHON="$withval"
8150 fi
8151
8152
8153 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8154   { echo "$as_me:$LINENO: checking for python" >&5
8155 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8156   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8157 echo "${ECHO_T}user defined: $with_python" >&6; }
8158 else
8159   if test -n "$PYTHON" ; then
8160     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8161 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8162   fi
8163
8164   # Extract the first word of "python python2 python27", so it can be a program name with args.
8165 set dummy python python2 python27; ac_word=$2
8166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168 if test "${ac_cv_path_PYTHON+set}" = set; then
8169   echo $ECHO_N "(cached) $ECHO_C" >&6
8170 else
8171   case $PYTHON in
8172   [\\/]* | ?:[\\/]*)
8173   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8174   ;;
8175   *)
8176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179   IFS=$as_save_IFS
8180   test -z "$as_dir" && as_dir=.
8181   for ac_exec_ext in '' $ac_executable_extensions; do
8182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8183     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8185     break 2
8186   fi
8187 done
8188 done
8189 IFS=$as_save_IFS
8190
8191   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8192 echo "${ECHO_T}not found" >&6; }
8193                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8194 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8195    { (exit 1); exit 1; }; }"
8196   ;;
8197 esac
8198 fi
8199 PYTHON=$ac_cv_path_PYTHON
8200 if test -n "$PYTHON"; then
8201   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8202 echo "${ECHO_T}$PYTHON" >&6; }
8203 else
8204   { echo "$as_me:$LINENO: result: no" >&5
8205 echo "${ECHO_T}no" >&6; }
8206 fi
8207
8208
8209 fi
8210
8211 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8212 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8213 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8214 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8215 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8216 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8217 if test "$ac_python_version_major" -gt "2" || \
8218    (test "$ac_python_version_major" -eq "2" && \
8219     test "$ac_python_version_minor" -ge "7") ; then
8220   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8221 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8222 else
8223   { echo "$as_me:$LINENO: result: not found" >&5
8224 echo "${ECHO_T}not found" >&6; }
8225   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8226 See \`config.log' for more details." >&5
8227 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8228 See \`config.log' for more details." >&2;}
8229    { (exit 1); exit 1; }; }
8230 fi
8231
8232
8233
8234 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8235 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8236 if test "${ac_cv_lib_m_sin+set}" = set; then
8237   echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239   ac_check_lib_save_LIBS=$LIBS
8240 LIBS="-lm  $LIBS"
8241 cat >conftest.$ac_ext <<_ACEOF
8242 /* confdefs.h.  */
8243 _ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h.  */
8247
8248 /* Override any GCC internal prototype to avoid an error.
8249    Use char because int might match the return type of a GCC
8250    builtin and then its argument prototype would still apply.  */
8251 #ifdef __cplusplus
8252 extern "C"
8253 #endif
8254 char sin ();
8255 int
8256 main ()
8257 {
8258 return sin ();
8259   ;
8260   return 0;
8261 }
8262 _ACEOF
8263 rm -f conftest.$ac_objext conftest$ac_exeext
8264 if { (ac_try="$ac_link"
8265 case "(($ac_try" in
8266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267   *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270   (eval "$ac_link") 2>conftest.er1
8271   ac_status=$?
8272   grep -v '^ *+' conftest.er1 >conftest.err
8273   rm -f conftest.er1
8274   cat conftest.err >&5
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } &&
8277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8278   { (case "(($ac_try" in
8279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280   *) ac_try_echo=$ac_try;;
8281 esac
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283   (eval "$ac_try") 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); }; } &&
8287          { ac_try='test -s conftest$ac_exeext'
8288   { (case "(($ac_try" in
8289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290   *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293   (eval "$ac_try") 2>&5
8294   ac_status=$?
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); }; }; then
8297   ac_cv_lib_m_sin=yes
8298 else
8299   echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8301
8302         ac_cv_lib_m_sin=no
8303 fi
8304
8305 rm -f core conftest.err conftest.$ac_objext \
8306       conftest$ac_exeext conftest.$ac_ext
8307 LIBS=$ac_check_lib_save_LIBS
8308 fi
8309 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8310 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8311 if test $ac_cv_lib_m_sin = yes; then
8312   cat >>confdefs.h <<_ACEOF
8313 #define HAVE_LIBM 1
8314 _ACEOF
8315
8316   LIBS="-lm $LIBS"
8317
8318 fi
8319
8320 if test "$llvm_cv_os_type" = "MingW" ; then
8321
8322 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8323 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8324 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-limagehlp  $LIBS"
8329 cat >conftest.$ac_ext <<_ACEOF
8330 /* confdefs.h.  */
8331 _ACEOF
8332 cat confdefs.h >>conftest.$ac_ext
8333 cat >>conftest.$ac_ext <<_ACEOF
8334 /* end confdefs.h.  */
8335
8336
8337 int
8338 main ()
8339 {
8340 return main ();
8341   ;
8342   return 0;
8343 }
8344 _ACEOF
8345 rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8353   ac_status=$?
8354   grep -v '^ *+' conftest.er1 >conftest.err
8355   rm -f conftest.er1
8356   cat conftest.err >&5
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } &&
8359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360   { (case "(($ac_try" in
8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362   *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365   (eval "$ac_try") 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; } &&
8369          { ac_try='test -s conftest$ac_exeext'
8370   { (case "(($ac_try" in
8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372   *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375   (eval "$ac_try") 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; }; then
8379   ac_cv_lib_imagehlp_main=yes
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384         ac_cv_lib_imagehlp_main=no
8385 fi
8386
8387 rm -f core conftest.err conftest.$ac_objext \
8388       conftest$ac_exeext conftest.$ac_ext
8389 LIBS=$ac_check_lib_save_LIBS
8390 fi
8391 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8392 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8393 if test $ac_cv_lib_imagehlp_main = yes; then
8394   cat >>confdefs.h <<_ACEOF
8395 #define HAVE_LIBIMAGEHLP 1
8396 _ACEOF
8397
8398   LIBS="-limagehlp $LIBS"
8399
8400 fi
8401
8402
8403 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8404 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8405 if test "${ac_cv_lib_psapi_main+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   ac_check_lib_save_LIBS=$LIBS
8409 LIBS="-lpsapi  $LIBS"
8410 cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h.  */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h.  */
8416
8417
8418 int
8419 main ()
8420 {
8421 return main ();
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8428 case "(($ac_try" in
8429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430   *) ac_try_echo=$ac_try;;
8431 esac
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433   (eval "$ac_link") 2>conftest.er1
8434   ac_status=$?
8435   grep -v '^ *+' conftest.er1 >conftest.err
8436   rm -f conftest.er1
8437   cat conftest.err >&5
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441   { (case "(($ac_try" in
8442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443   *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446   (eval "$ac_try") 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); }; } &&
8450          { ac_try='test -s conftest$ac_exeext'
8451   { (case "(($ac_try" in
8452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453   *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456   (eval "$ac_try") 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460   ac_cv_lib_psapi_main=yes
8461 else
8462   echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465         ac_cv_lib_psapi_main=no
8466 fi
8467
8468 rm -f core conftest.err conftest.$ac_objext \
8469       conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS
8471 fi
8472 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8473 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8474 if test $ac_cv_lib_psapi_main = yes; then
8475   cat >>confdefs.h <<_ACEOF
8476 #define HAVE_LIBPSAPI 1
8477 _ACEOF
8478
8479   LIBS="-lpsapi $LIBS"
8480
8481 fi
8482
8483
8484 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8485 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8486 if test "${ac_cv_lib_shell32_main+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   ac_check_lib_save_LIBS=$LIBS
8490 LIBS="-lshell32  $LIBS"
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h.  */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h.  */
8497
8498
8499 int
8500 main ()
8501 {
8502 return main ();
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext conftest$ac_exeext
8508 if { (ac_try="$ac_link"
8509 case "(($ac_try" in
8510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511   *) ac_try_echo=$ac_try;;
8512 esac
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514   (eval "$ac_link") 2>conftest.er1
8515   ac_status=$?
8516   grep -v '^ *+' conftest.er1 >conftest.err
8517   rm -f conftest.er1
8518   cat conftest.err >&5
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); } &&
8521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8522   { (case "(($ac_try" in
8523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524   *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527   (eval "$ac_try") 2>&5
8528   ac_status=$?
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); }; } &&
8531          { ac_try='test -s conftest$ac_exeext'
8532   { (case "(($ac_try" in
8533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534   *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537   (eval "$ac_try") 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); }; }; then
8541   ac_cv_lib_shell32_main=yes
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546         ac_cv_lib_shell32_main=no
8547 fi
8548
8549 rm -f core conftest.err conftest.$ac_objext \
8550       conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8552 fi
8553 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8554 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8555 if test $ac_cv_lib_shell32_main = yes; then
8556   cat >>confdefs.h <<_ACEOF
8557 #define HAVE_LIBSHELL32 1
8558 _ACEOF
8559
8560   LIBS="-lshell32 $LIBS"
8561
8562 fi
8563
8564 fi
8565
8566 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8567 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8568 if test "${ac_cv_search_dlopen+set}" = set; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571   ac_func_search_save_LIBS=$LIBS
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h.  */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h.  */
8578
8579 /* Override any GCC internal prototype to avoid an error.
8580    Use char because int might match the return type of a GCC
8581    builtin and then its argument prototype would still apply.  */
8582 #ifdef __cplusplus
8583 extern "C"
8584 #endif
8585 char dlopen ();
8586 int
8587 main ()
8588 {
8589 return dlopen ();
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 for ac_lib in '' dl; do
8595   if test -z "$ac_lib"; then
8596     ac_res="none required"
8597   else
8598     ac_res=-l$ac_lib
8599     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8600   fi
8601   rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (ac_try="$ac_link"
8603 case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_link") 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616   { (case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_try") 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; } &&
8625          { ac_try='test -s conftest$ac_exeext'
8626   { (case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_try") 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; }; then
8635   ac_cv_search_dlopen=$ac_res
8636 else
8637   echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640
8641 fi
8642
8643 rm -f core conftest.err conftest.$ac_objext \
8644       conftest$ac_exeext
8645   if test "${ac_cv_search_dlopen+set}" = set; then
8646   break
8647 fi
8648 done
8649 if test "${ac_cv_search_dlopen+set}" = set; then
8650   :
8651 else
8652   ac_cv_search_dlopen=no
8653 fi
8654 rm conftest.$ac_ext
8655 LIBS=$ac_func_search_save_LIBS
8656 fi
8657 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8658 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8659 ac_res=$ac_cv_search_dlopen
8660 if test "$ac_res" != no; then
8661   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8662
8663
8664 cat >>confdefs.h <<\_ACEOF
8665 #define HAVE_DLOPEN 1
8666 _ACEOF
8667
8668 HAVE_DLOPEN='1'
8669
8670
8671 else
8672   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8673 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8674 fi
8675
8676
8677 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8678 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8679 if test "${ac_cv_search_clock_gettime+set}" = set; then
8680   echo $ECHO_N "(cached) $ECHO_C" >&6
8681 else
8682   ac_func_search_save_LIBS=$LIBS
8683 cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h.  */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h.  */
8689
8690 /* Override any GCC internal prototype to avoid an error.
8691    Use char because int might match the return type of a GCC
8692    builtin and then its argument prototype would still apply.  */
8693 #ifdef __cplusplus
8694 extern "C"
8695 #endif
8696 char clock_gettime ();
8697 int
8698 main ()
8699 {
8700 return clock_gettime ();
8701   ;
8702   return 0;
8703 }
8704 _ACEOF
8705 for ac_lib in '' rt; do
8706   if test -z "$ac_lib"; then
8707     ac_res="none required"
8708   else
8709     ac_res=-l$ac_lib
8710     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8711   fi
8712   rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (ac_try="$ac_link"
8714 case "(($ac_try" in
8715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716   *) ac_try_echo=$ac_try;;
8717 esac
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719   (eval "$ac_link") 2>conftest.er1
8720   ac_status=$?
8721   grep -v '^ *+' conftest.er1 >conftest.err
8722   rm -f conftest.er1
8723   cat conftest.err >&5
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } &&
8726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8727   { (case "(($ac_try" in
8728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729   *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732   (eval "$ac_try") 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; } &&
8736          { ac_try='test -s conftest$ac_exeext'
8737   { (case "(($ac_try" in
8738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739   *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742   (eval "$ac_try") 2>&5
8743   ac_status=$?
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); }; }; then
8746   ac_cv_search_clock_gettime=$ac_res
8747 else
8748   echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751
8752 fi
8753
8754 rm -f core conftest.err conftest.$ac_objext \
8755       conftest$ac_exeext
8756   if test "${ac_cv_search_clock_gettime+set}" = set; then
8757   break
8758 fi
8759 done
8760 if test "${ac_cv_search_clock_gettime+set}" = set; then
8761   :
8762 else
8763   ac_cv_search_clock_gettime=no
8764 fi
8765 rm conftest.$ac_ext
8766 LIBS=$ac_func_search_save_LIBS
8767 fi
8768 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8769 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8770 ac_res=$ac_cv_search_clock_gettime
8771 if test "$ac_res" != no; then
8772   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8773
8774 fi
8775
8776
8777 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8778     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8779 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8780 if test "${ac_cv_search_setupterm+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783   ac_func_search_save_LIBS=$LIBS
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h.  */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h.  */
8790
8791 /* Override any GCC internal prototype to avoid an error.
8792    Use char because int might match the return type of a GCC
8793    builtin and then its argument prototype would still apply.  */
8794 #ifdef __cplusplus
8795 extern "C"
8796 #endif
8797 char setupterm ();
8798 int
8799 main ()
8800 {
8801 return setupterm ();
8802   ;
8803   return 0;
8804 }
8805 _ACEOF
8806 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8807   if test -z "$ac_lib"; then
8808     ac_res="none required"
8809   else
8810     ac_res=-l$ac_lib
8811     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8812   fi
8813   rm -f conftest.$ac_objext conftest$ac_exeext
8814 if { (ac_try="$ac_link"
8815 case "(($ac_try" in
8816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817   *) ac_try_echo=$ac_try;;
8818 esac
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820   (eval "$ac_link") 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } &&
8827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8828   { (case "(($ac_try" in
8829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830   *) ac_try_echo=$ac_try;;
8831 esac
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833   (eval "$ac_try") 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; } &&
8837          { ac_try='test -s conftest$ac_exeext'
8838   { (case "(($ac_try" in
8839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840   *) ac_try_echo=$ac_try;;
8841 esac
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843   (eval "$ac_try") 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; }; then
8847   ac_cv_search_setupterm=$ac_res
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852
8853 fi
8854
8855 rm -f core conftest.err conftest.$ac_objext \
8856       conftest$ac_exeext
8857   if test "${ac_cv_search_setupterm+set}" = set; then
8858   break
8859 fi
8860 done
8861 if test "${ac_cv_search_setupterm+set}" = set; then
8862   :
8863 else
8864   ac_cv_search_setupterm=no
8865 fi
8866 rm conftest.$ac_ext
8867 LIBS=$ac_func_search_save_LIBS
8868 fi
8869 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8870 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8871 ac_res=$ac_cv_search_setupterm
8872 if test "$ac_res" != no; then
8873   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8874
8875
8876 cat >>confdefs.h <<\_ACEOF
8877 #define HAVE_TERMINFO 1
8878 _ACEOF
8879
8880 HAVE_TERMINFO='1'
8881
8882
8883 fi
8884
8885 fi
8886
8887 if test "$llvm_cv_enable_libedit" = "yes" ; then
8888   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8889 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8890 if test "${ac_cv_search_el_init+set}" = set; then
8891   echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893   ac_func_search_save_LIBS=$LIBS
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 /* Override any GCC internal prototype to avoid an error.
8902    Use char because int might match the return type of a GCC
8903    builtin and then its argument prototype would still apply.  */
8904 #ifdef __cplusplus
8905 extern "C"
8906 #endif
8907 char el_init ();
8908 int
8909 main ()
8910 {
8911 return el_init ();
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 for ac_lib in '' edit; do
8917   if test -z "$ac_lib"; then
8918     ac_res="none required"
8919   else
8920     ac_res=-l$ac_lib
8921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8922   fi
8923   rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (ac_try="$ac_link"
8925 case "(($ac_try" in
8926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927   *) ac_try_echo=$ac_try;;
8928 esac
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930   (eval "$ac_link") 2>conftest.er1
8931   ac_status=$?
8932   grep -v '^ *+' conftest.er1 >conftest.err
8933   rm -f conftest.er1
8934   cat conftest.err >&5
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); } &&
8937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8938   { (case "(($ac_try" in
8939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940   *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943   (eval "$ac_try") 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; } &&
8947          { ac_try='test -s conftest$ac_exeext'
8948   { (case "(($ac_try" in
8949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950   *) ac_try_echo=$ac_try;;
8951 esac
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953   (eval "$ac_try") 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; }; then
8957   ac_cv_search_el_init=$ac_res
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962
8963 fi
8964
8965 rm -f core conftest.err conftest.$ac_objext \
8966       conftest$ac_exeext
8967   if test "${ac_cv_search_el_init+set}" = set; then
8968   break
8969 fi
8970 done
8971 if test "${ac_cv_search_el_init+set}" = set; then
8972   :
8973 else
8974   ac_cv_search_el_init=no
8975 fi
8976 rm conftest.$ac_ext
8977 LIBS=$ac_func_search_save_LIBS
8978 fi
8979 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8980 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8981 ac_res=$ac_cv_search_el_init
8982 if test "$ac_res" != no; then
8983   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8984
8985 cat >>confdefs.h <<\_ACEOF
8986 #define HAVE_LIBEDIT 1
8987 _ACEOF
8988
8989 fi
8990
8991 fi
8992
8993 if test "$llvm_cv_enable_libffi" = "yes" ; then
8994   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8995 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8996 if test "${ac_cv_search_ffi_call+set}" = set; then
8997   echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999   ac_func_search_save_LIBS=$LIBS
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h.  */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h.  */
9006
9007 /* Override any GCC internal prototype to avoid an error.
9008    Use char because int might match the return type of a GCC
9009    builtin and then its argument prototype would still apply.  */
9010 #ifdef __cplusplus
9011 extern "C"
9012 #endif
9013 char ffi_call ();
9014 int
9015 main ()
9016 {
9017 return ffi_call ();
9018   ;
9019   return 0;
9020 }
9021 _ACEOF
9022 for ac_lib in '' ffi; do
9023   if test -z "$ac_lib"; then
9024     ac_res="none required"
9025   else
9026     ac_res=-l$ac_lib
9027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9028   fi
9029   rm -f conftest.$ac_objext conftest$ac_exeext
9030 if { (ac_try="$ac_link"
9031 case "(($ac_try" in
9032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033   *) ac_try_echo=$ac_try;;
9034 esac
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036   (eval "$ac_link") 2>conftest.er1
9037   ac_status=$?
9038   grep -v '^ *+' conftest.er1 >conftest.err
9039   rm -f conftest.er1
9040   cat conftest.err >&5
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); } &&
9043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9044   { (case "(($ac_try" in
9045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046   *) ac_try_echo=$ac_try;;
9047 esac
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049   (eval "$ac_try") 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; } &&
9053          { ac_try='test -s conftest$ac_exeext'
9054   { (case "(($ac_try" in
9055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056   *) ac_try_echo=$ac_try;;
9057 esac
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059   (eval "$ac_try") 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }; }; then
9063   ac_cv_search_ffi_call=$ac_res
9064 else
9065   echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068
9069 fi
9070
9071 rm -f core conftest.err conftest.$ac_objext \
9072       conftest$ac_exeext
9073   if test "${ac_cv_search_ffi_call+set}" = set; then
9074   break
9075 fi
9076 done
9077 if test "${ac_cv_search_ffi_call+set}" = set; then
9078   :
9079 else
9080   ac_cv_search_ffi_call=no
9081 fi
9082 rm conftest.$ac_ext
9083 LIBS=$ac_func_search_save_LIBS
9084 fi
9085 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9086 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9087 ac_res=$ac_cv_search_ffi_call
9088 if test "$ac_res" != no; then
9089   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9090
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_FFI_CALL 1
9093 _ACEOF
9094
9095 else
9096   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9097 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9098    { (exit 1); exit 1; }; }
9099 fi
9100
9101 fi
9102
9103 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9104 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9105 if test "${ac_cv_search_mallinfo+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   ac_func_search_save_LIBS=$LIBS
9109 cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115
9116 /* Override any GCC internal prototype to avoid an error.
9117    Use char because int might match the return type of a GCC
9118    builtin and then its argument prototype would still apply.  */
9119 #ifdef __cplusplus
9120 extern "C"
9121 #endif
9122 char mallinfo ();
9123 int
9124 main ()
9125 {
9126 return mallinfo ();
9127   ;
9128   return 0;
9129 }
9130 _ACEOF
9131 for ac_lib in '' malloc; do
9132   if test -z "$ac_lib"; then
9133     ac_res="none required"
9134   else
9135     ac_res=-l$ac_lib
9136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9137   fi
9138   rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (ac_try="$ac_link"
9140 case "(($ac_try" in
9141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142   *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145   (eval "$ac_link") 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } &&
9152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9153   { (case "(($ac_try" in
9154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155   *) ac_try_echo=$ac_try;;
9156 esac
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158   (eval "$ac_try") 2>&5
9159   ac_status=$?
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); }; } &&
9162          { ac_try='test -s conftest$ac_exeext'
9163   { (case "(($ac_try" in
9164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165   *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168   (eval "$ac_try") 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; }; then
9172   ac_cv_search_mallinfo=$ac_res
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177
9178 fi
9179
9180 rm -f core conftest.err conftest.$ac_objext \
9181       conftest$ac_exeext
9182   if test "${ac_cv_search_mallinfo+set}" = set; then
9183   break
9184 fi
9185 done
9186 if test "${ac_cv_search_mallinfo+set}" = set; then
9187   :
9188 else
9189   ac_cv_search_mallinfo=no
9190 fi
9191 rm conftest.$ac_ext
9192 LIBS=$ac_func_search_save_LIBS
9193 fi
9194 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9195 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9196 ac_res=$ac_cv_search_mallinfo
9197 if test "$ac_res" != no; then
9198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9199
9200 cat >>confdefs.h <<\_ACEOF
9201 #define HAVE_MALLINFO 1
9202 _ACEOF
9203
9204 fi
9205
9206
9207 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9208
9209 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9210 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9211 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   ac_check_lib_save_LIBS=$LIBS
9215 LIBS="-lpthread  $LIBS"
9216 cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h.  */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h.  */
9222
9223 /* Override any GCC internal prototype to avoid an error.
9224    Use char because int might match the return type of a GCC
9225    builtin and then its argument prototype would still apply.  */
9226 #ifdef __cplusplus
9227 extern "C"
9228 #endif
9229 char pthread_mutex_init ();
9230 int
9231 main ()
9232 {
9233 return pthread_mutex_init ();
9234   ;
9235   return 0;
9236 }
9237 _ACEOF
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (ac_try="$ac_link"
9240 case "(($ac_try" in
9241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242   *) ac_try_echo=$ac_try;;
9243 esac
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245   (eval "$ac_link") 2>conftest.er1
9246   ac_status=$?
9247   grep -v '^ *+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } &&
9252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253   { (case "(($ac_try" in
9254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255   *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258   (eval "$ac_try") 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; } &&
9262          { ac_try='test -s conftest$ac_exeext'
9263   { (case "(($ac_try" in
9264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265   *) ac_try_echo=$ac_try;;
9266 esac
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268   (eval "$ac_try") 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   ac_cv_lib_pthread_pthread_mutex_init=yes
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277         ac_cv_lib_pthread_pthread_mutex_init=no
9278 fi
9279
9280 rm -f core conftest.err conftest.$ac_objext \
9281       conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9283 fi
9284 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9285 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9286 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9287   cat >>confdefs.h <<_ACEOF
9288 #define HAVE_LIBPTHREAD 1
9289 _ACEOF
9290
9291   LIBS="-lpthread $LIBS"
9292
9293 fi
9294
9295   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9296 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9297 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9298   echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300   ac_func_search_save_LIBS=$LIBS
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h.  */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h.  */
9307
9308 /* Override any GCC internal prototype to avoid an error.
9309    Use char because int might match the return type of a GCC
9310    builtin and then its argument prototype would still apply.  */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 char pthread_mutex_lock ();
9315 int
9316 main ()
9317 {
9318 return pthread_mutex_lock ();
9319   ;
9320   return 0;
9321 }
9322 _ACEOF
9323 for ac_lib in '' pthread; do
9324   if test -z "$ac_lib"; then
9325     ac_res="none required"
9326   else
9327     ac_res=-l$ac_lib
9328     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9329   fi
9330   rm -f conftest.$ac_objext conftest$ac_exeext
9331 if { (ac_try="$ac_link"
9332 case "(($ac_try" in
9333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334   *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337   (eval "$ac_link") 2>conftest.er1
9338   ac_status=$?
9339   grep -v '^ *+' conftest.er1 >conftest.err
9340   rm -f conftest.er1
9341   cat conftest.err >&5
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } &&
9344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9345   { (case "(($ac_try" in
9346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347   *) ac_try_echo=$ac_try;;
9348 esac
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350   (eval "$ac_try") 2>&5
9351   ac_status=$?
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); }; } &&
9354          { ac_try='test -s conftest$ac_exeext'
9355   { (case "(($ac_try" in
9356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357   *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360   (eval "$ac_try") 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); }; }; then
9364   ac_cv_search_pthread_mutex_lock=$ac_res
9365 else
9366   echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369
9370 fi
9371
9372 rm -f core conftest.err conftest.$ac_objext \
9373       conftest$ac_exeext
9374   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9375   break
9376 fi
9377 done
9378 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9379   :
9380 else
9381   ac_cv_search_pthread_mutex_lock=no
9382 fi
9383 rm conftest.$ac_ext
9384 LIBS=$ac_func_search_save_LIBS
9385 fi
9386 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9387 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9388 ac_res=$ac_cv_search_pthread_mutex_lock
9389 if test "$ac_res" != no; then
9390   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9391
9392 cat >>confdefs.h <<\_ACEOF
9393 #define HAVE_PTHREAD_MUTEX_LOCK 1
9394 _ACEOF
9395
9396 fi
9397
9398   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9399 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9400 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   ac_func_search_save_LIBS=$LIBS
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410
9411 /* Override any GCC internal prototype to avoid an error.
9412    Use char because int might match the return type of a GCC
9413    builtin and then its argument prototype would still apply.  */
9414 #ifdef __cplusplus
9415 extern "C"
9416 #endif
9417 char pthread_rwlock_init ();
9418 int
9419 main ()
9420 {
9421 return pthread_rwlock_init ();
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 for ac_lib in '' pthread; do
9427   if test -z "$ac_lib"; then
9428     ac_res="none required"
9429   else
9430     ac_res=-l$ac_lib
9431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9432   fi
9433   rm -f conftest.$ac_objext conftest$ac_exeext
9434 if { (ac_try="$ac_link"
9435 case "(($ac_try" in
9436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437   *) ac_try_echo=$ac_try;;
9438 esac
9439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9440   (eval "$ac_link") 2>conftest.er1
9441   ac_status=$?
9442   grep -v '^ *+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } &&
9447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9448   { (case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453   (eval "$ac_try") 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; } &&
9457          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9467   ac_cv_search_pthread_rwlock_init=$ac_res
9468 else
9469   echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9471
9472
9473 fi
9474
9475 rm -f core conftest.err conftest.$ac_objext \
9476       conftest$ac_exeext
9477   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9478   break
9479 fi
9480 done
9481 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9482   :
9483 else
9484   ac_cv_search_pthread_rwlock_init=no
9485 fi
9486 rm conftest.$ac_ext
9487 LIBS=$ac_func_search_save_LIBS
9488 fi
9489 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9490 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9491 ac_res=$ac_cv_search_pthread_rwlock_init
9492 if test "$ac_res" != no; then
9493   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9494
9495 cat >>confdefs.h <<\_ACEOF
9496 #define HAVE_PTHREAD_RWLOCK_INIT 1
9497 _ACEOF
9498
9499 fi
9500
9501   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9502 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9503 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9504   echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506   ac_func_search_save_LIBS=$LIBS
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513
9514 /* Override any GCC internal prototype to avoid an error.
9515    Use char because int might match the return type of a GCC
9516    builtin and then its argument prototype would still apply.  */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 char pthread_getspecific ();
9521 int
9522 main ()
9523 {
9524 return pthread_getspecific ();
9525   ;
9526   return 0;
9527 }
9528 _ACEOF
9529 for ac_lib in '' pthread; do
9530   if test -z "$ac_lib"; then
9531     ac_res="none required"
9532   else
9533     ac_res=-l$ac_lib
9534     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9535   fi
9536   rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (ac_try="$ac_link"
9538 case "(($ac_try" in
9539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540   *) ac_try_echo=$ac_try;;
9541 esac
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543   (eval "$ac_link") 2>conftest.er1
9544   ac_status=$?
9545   grep -v '^ *+' conftest.er1 >conftest.err
9546   rm -f conftest.er1
9547   cat conftest.err >&5
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); } &&
9550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9551   { (case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_try") 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; } &&
9560          { ac_try='test -s conftest$ac_exeext'
9561   { (case "(($ac_try" in
9562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563   *) ac_try_echo=$ac_try;;
9564 esac
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566   (eval "$ac_try") 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); }; }; then
9570   ac_cv_search_pthread_getspecific=$ac_res
9571 else
9572   echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9574
9575
9576 fi
9577
9578 rm -f core conftest.err conftest.$ac_objext \
9579       conftest$ac_exeext
9580   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9581   break
9582 fi
9583 done
9584 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9585   :
9586 else
9587   ac_cv_search_pthread_getspecific=no
9588 fi
9589 rm conftest.$ac_ext
9590 LIBS=$ac_func_search_save_LIBS
9591 fi
9592 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9593 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9594 ac_res=$ac_cv_search_pthread_getspecific
9595 if test "$ac_res" != no; then
9596   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9597
9598 cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_PTHREAD_GETSPECIFIC 1
9600 _ACEOF
9601
9602 fi
9603
9604 fi
9605
9606 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9607
9608 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9609 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9610 if test "${ac_cv_lib_z_compress2+set}" = set; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613   ac_check_lib_save_LIBS=$LIBS
9614 LIBS="-lz  $LIBS"
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h.  */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h.  */
9621
9622 /* Override any GCC internal prototype to avoid an error.
9623    Use char because int might match the return type of a GCC
9624    builtin and then its argument prototype would still apply.  */
9625 #ifdef __cplusplus
9626 extern "C"
9627 #endif
9628 char compress2 ();
9629 int
9630 main ()
9631 {
9632 return compress2 ();
9633   ;
9634   return 0;
9635 }
9636 _ACEOF
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9639 case "(($ac_try" in
9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641   *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644   (eval "$ac_link") 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652   { (case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657   (eval "$ac_try") 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); }; } &&
9661          { ac_try='test -s conftest$ac_exeext'
9662   { (case "(($ac_try" in
9663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664   *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667   (eval "$ac_try") 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); }; }; then
9671   ac_cv_lib_z_compress2=yes
9672 else
9673   echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676         ac_cv_lib_z_compress2=no
9677 fi
9678
9679 rm -f core conftest.err conftest.$ac_objext \
9680       conftest$ac_exeext conftest.$ac_ext
9681 LIBS=$ac_check_lib_save_LIBS
9682 fi
9683 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9684 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9685 if test $ac_cv_lib_z_compress2 = yes; then
9686   cat >>confdefs.h <<_ACEOF
9687 #define HAVE_LIBZ 1
9688 _ACEOF
9689
9690   LIBS="-lz $LIBS"
9691
9692 fi
9693
9694 fi
9695
9696
9697 # Check whether --with-oprofile was given.
9698 if test "${with_oprofile+set}" = set; then
9699   withval=$with_oprofile;
9700       USE_OPROFILE=1
9701
9702       case "$withval" in
9703         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9704         no) llvm_cv_oppath=
9705             USE_OPROFILE=0
9706  ;;
9707         *) llvm_cv_oppath="${withval}/lib/oprofile"
9708            CPPFLAGS="-I${withval}/include";;
9709       esac
9710       case $llvm_cv_os_type in
9711         Linux)
9712           if test -n "$llvm_cv_oppath" ; then
9713             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9714                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9715 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9716 if test "${ac_cv_search_bfd_init+set}" = set; then
9717   echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719   ac_func_search_save_LIBS=$LIBS
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726
9727 /* Override any GCC internal prototype to avoid an error.
9728    Use char because int might match the return type of a GCC
9729    builtin and then its argument prototype would still apply.  */
9730 #ifdef __cplusplus
9731 extern "C"
9732 #endif
9733 char bfd_init ();
9734 int
9735 main ()
9736 {
9737 return bfd_init ();
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 for ac_lib in '' bfd; do
9743   if test -z "$ac_lib"; then
9744     ac_res="none required"
9745   else
9746     ac_res=-l$ac_lib
9747     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9748   fi
9749   rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9751 case "(($ac_try" in
9752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753   *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756   (eval "$ac_link") 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764   { (case "(($ac_try" in
9765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766   *) ac_try_echo=$ac_try;;
9767 esac
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769   (eval "$ac_try") 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); }; } &&
9773          { ac_try='test -s conftest$ac_exeext'
9774   { (case "(($ac_try" in
9775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776   *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779   (eval "$ac_try") 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); }; }; then
9783   ac_cv_search_bfd_init=$ac_res
9784 else
9785   echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788
9789 fi
9790
9791 rm -f core conftest.err conftest.$ac_objext \
9792       conftest$ac_exeext
9793   if test "${ac_cv_search_bfd_init+set}" = set; then
9794   break
9795 fi
9796 done
9797 if test "${ac_cv_search_bfd_init+set}" = set; then
9798   :
9799 else
9800   ac_cv_search_bfd_init=no
9801 fi
9802 rm conftest.$ac_ext
9803 LIBS=$ac_func_search_save_LIBS
9804 fi
9805 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9806 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9807 ac_res=$ac_cv_search_bfd_init
9808 if test "$ac_res" != no; then
9809   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9810
9811 fi
9812
9813             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9814 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9815 if test "${ac_cv_search_op_open_agent+set}" = set; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   ac_func_search_save_LIBS=$LIBS
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h.  */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h.  */
9825
9826 /* Override any GCC internal prototype to avoid an error.
9827    Use char because int might match the return type of a GCC
9828    builtin and then its argument prototype would still apply.  */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 char op_open_agent ();
9833 int
9834 main ()
9835 {
9836 return op_open_agent ();
9837   ;
9838   return 0;
9839 }
9840 _ACEOF
9841 for ac_lib in '' opagent; do
9842   if test -z "$ac_lib"; then
9843     ac_res="none required"
9844   else
9845     ac_res=-l$ac_lib
9846     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9847   fi
9848   rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9850 case "(($ac_try" in
9851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852   *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855   (eval "$ac_link") 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } &&
9862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9863   { (case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_try") 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; } &&
9872          { ac_try='test -s conftest$ac_exeext'
9873   { (case "(($ac_try" in
9874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875   *) ac_try_echo=$ac_try;;
9876 esac
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878   (eval "$ac_try") 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); }; }; then
9882   ac_cv_search_op_open_agent=$ac_res
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887
9888 fi
9889
9890 rm -f core conftest.err conftest.$ac_objext \
9891       conftest$ac_exeext
9892   if test "${ac_cv_search_op_open_agent+set}" = set; then
9893   break
9894 fi
9895 done
9896 if test "${ac_cv_search_op_open_agent+set}" = set; then
9897   :
9898 else
9899   ac_cv_search_op_open_agent=no
9900 fi
9901 rm conftest.$ac_ext
9902 LIBS=$ac_func_search_save_LIBS
9903 fi
9904 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9905 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9906 ac_res=$ac_cv_search_op_open_agent
9907 if test "$ac_res" != no; then
9908   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9909
9910 else
9911
9912               echo "Error! You need to have libopagent around."
9913               exit 1
9914
9915 fi
9916
9917             if test "${ac_cv_header_opagent_h+set}" = set; then
9918   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9919 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9920 if test "${ac_cv_header_opagent_h+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 fi
9923 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9924 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9925 else
9926   # Is the header compilable?
9927 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9928 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 $ac_includes_default
9936 #include <opagent.h>
9937 _ACEOF
9938 rm -f conftest.$ac_objext
9939 if { (ac_try="$ac_compile"
9940 case "(($ac_try" in
9941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942   *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945   (eval "$ac_compile") 2>conftest.er1
9946   ac_status=$?
9947   grep -v '^ *+' conftest.er1 >conftest.err
9948   rm -f conftest.er1
9949   cat conftest.err >&5
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } &&
9952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9953   { (case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_try") 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; } &&
9962          { ac_try='test -s conftest.$ac_objext'
9963   { (case "(($ac_try" in
9964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965   *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968   (eval "$ac_try") 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; }; then
9972   ac_header_compiler=yes
9973 else
9974   echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977         ac_header_compiler=no
9978 fi
9979
9980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9982 echo "${ECHO_T}$ac_header_compiler" >&6; }
9983
9984 # Is the header present?
9985 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9986 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993 #include <opagent.h>
9994 _ACEOF
9995 if { (ac_try="$ac_cpp conftest.$ac_ext"
9996 case "(($ac_try" in
9997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998   *) ac_try_echo=$ac_try;;
9999 esac
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10002   ac_status=$?
10003   grep -v '^ *+' conftest.er1 >conftest.err
10004   rm -f conftest.er1
10005   cat conftest.err >&5
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); } >/dev/null; then
10008   if test -s conftest.err; then
10009     ac_cpp_err=$ac_c_preproc_warn_flag
10010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10011   else
10012     ac_cpp_err=
10013   fi
10014 else
10015   ac_cpp_err=yes
10016 fi
10017 if test -z "$ac_cpp_err"; then
10018   ac_header_preproc=yes
10019 else
10020   echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10022
10023   ac_header_preproc=no
10024 fi
10025
10026 rm -f conftest.err conftest.$ac_ext
10027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10028 echo "${ECHO_T}$ac_header_preproc" >&6; }
10029
10030 # So?  What about this header?
10031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10032   yes:no: )
10033     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10034 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10035     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10036 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10037     ac_header_preproc=yes
10038     ;;
10039   no:yes:* )
10040     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10041 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10042     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10043 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10044     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10045 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10046     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10047 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10048     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10050     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10051 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10052     ( cat <<\_ASBOX
10053 ## ------------------------------------ ##
10054 ## Report this to http://llvm.org/bugs/ ##
10055 ## ------------------------------------ ##
10056 _ASBOX
10057      ) | sed "s/^/$as_me: WARNING:     /" >&2
10058     ;;
10059 esac
10060 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10061 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10062 if test "${ac_cv_header_opagent_h+set}" = set; then
10063   echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065   ac_cv_header_opagent_h=$ac_header_preproc
10066 fi
10067 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10068 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10069
10070 fi
10071 if test $ac_cv_header_opagent_h = yes; then
10072   :
10073 else
10074
10075               echo "Error! You need to have opagent.h around."
10076               exit 1
10077
10078 fi
10079
10080
10081           fi ;;
10082         *)
10083           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10084 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10085    { (exit 1); exit 1; }; } ;;
10086       esac
10087
10088 else
10089
10090       USE_OPROFILE=0
10091
10092
10093 fi
10094
10095
10096 cat >>confdefs.h <<_ACEOF
10097 #define LLVM_USE_OPROFILE $USE_OPROFILE
10098 _ACEOF
10099
10100
10101
10102 # Check whether --with-intel-jitevents was given.
10103 if test "${with_intel_jitevents+set}" = set; then
10104   withval=$with_intel_jitevents;
10105        case "$withval" in
10106           yes) USE_INTEL_JITEVENTS=1
10107 ;;
10108           no)  USE_INTEL_JITEVENTS=0
10109 ;;
10110           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10111 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10112    { (exit 1); exit 1; }; };;
10113        esac
10114
10115       case $llvm_cv_os_type in
10116         Linux|Win32|Cygwin|MingW) ;;
10117         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10118 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10119    { (exit 1); exit 1; }; };;
10120       esac
10121
10122       case "$llvm_cv_target_arch" in
10123         x86|x86_64) ;;
10124         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10125 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10126    { (exit 1); exit 1; }; };;
10127       esac
10128
10129 else
10130
10131       USE_INTEL_JITEVENTS=0
10132
10133
10134 fi
10135
10136
10137 cat >>confdefs.h <<_ACEOF
10138 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10139 _ACEOF
10140
10141
10142 for ac_prog in xml2-config
10143 do
10144   # Extract the first word of "$ac_prog", so it can be a program name with args.
10145 set dummy $ac_prog; ac_word=$2
10146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10148 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   if test -n "$XML2CONFIG"; then
10152   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10153 else
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10156 do
10157   IFS=$as_save_IFS
10158   test -z "$as_dir" && as_dir=.
10159   for ac_exec_ext in '' $ac_executable_extensions; do
10160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10161     ac_cv_prog_XML2CONFIG="$ac_prog"
10162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10163     break 2
10164   fi
10165 done
10166 done
10167 IFS=$as_save_IFS
10168
10169 fi
10170 fi
10171 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10172 if test -n "$XML2CONFIG"; then
10173   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10174 echo "${ECHO_T}$XML2CONFIG" >&6; }
10175 else
10176   { echo "$as_me:$LINENO: result: no" >&5
10177 echo "${ECHO_T}no" >&6; }
10178 fi
10179
10180
10181   test -n "$XML2CONFIG" && break
10182 done
10183
10184
10185 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10186 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10187 if test "x$XML2CONFIG" = "x"; then
10188  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10189 echo "${ECHO_T}xml2-config not found" >&6; }
10190 else
10191  LIBXML2_INC=`$XML2CONFIG --cflags`
10192  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10193 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10194  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10195 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10196 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199   ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-lxml2  $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h.  */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h.  */
10207
10208 /* Override any GCC internal prototype to avoid an error.
10209    Use char because int might match the return type of a GCC
10210    builtin and then its argument prototype would still apply.  */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 char xmlReadFile ();
10215 int
10216 main ()
10217 {
10218 return xmlReadFile ();
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227   *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230   (eval "$ac_link") 2>conftest.er1
10231   ac_status=$?
10232   grep -v '^ *+' conftest.er1 >conftest.err
10233   rm -f conftest.er1
10234   cat conftest.err >&5
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } &&
10237          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238   { (case "(($ac_try" in
10239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240   *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243   (eval "$ac_try") 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; } &&
10247          { ac_try='test -s conftest$ac_exeext'
10248   { (case "(($ac_try" in
10249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250   *) ac_try_echo=$ac_try;;
10251 esac
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253   (eval "$ac_try") 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; }; then
10257   ac_cv_lib_xml2_xmlReadFile=yes
10258 else
10259   echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262         ac_cv_lib_xml2_xmlReadFile=no
10263 fi
10264
10265 rm -f core conftest.err conftest.$ac_objext \
10266       conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10268 fi
10269 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10270 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10271 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10272
10273 cat >>confdefs.h <<\_ACEOF
10274 #define CLANG_HAVE_LIBXML 1
10275 _ACEOF
10276
10277                                 LIBXML2_LIBS="-lxml2"
10278 fi
10279
10280 fi
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290 ac_header_dirent=no
10291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10292   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10293 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10294 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298   cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h.  */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h.  */
10304 #include <sys/types.h>
10305 #include <$ac_hdr>
10306
10307 int
10308 main ()
10309 {
10310 if ((DIR *) 0)
10311 return 0;
10312   ;
10313   return 0;
10314 }
10315 _ACEOF
10316 rm -f conftest.$ac_objext
10317 if { (ac_try="$ac_compile"
10318 case "(($ac_try" in
10319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320   *) ac_try_echo=$ac_try;;
10321 esac
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323   (eval "$ac_compile") 2>conftest.er1
10324   ac_status=$?
10325   grep -v '^ *+' conftest.er1 >conftest.err
10326   rm -f conftest.er1
10327   cat conftest.err >&5
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); } &&
10330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10331   { (case "(($ac_try" in
10332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333   *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336   (eval "$ac_try") 2>&5
10337   ac_status=$?
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); }; } &&
10340          { ac_try='test -s conftest.$ac_objext'
10341   { (case "(($ac_try" in
10342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343   *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346   (eval "$ac_try") 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); }; }; then
10350   eval "$as_ac_Header=yes"
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355         eval "$as_ac_Header=no"
10356 fi
10357
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10359 fi
10360 ac_res=`eval echo '${'$as_ac_Header'}'`
10361                { echo "$as_me:$LINENO: result: $ac_res" >&5
10362 echo "${ECHO_T}$ac_res" >&6; }
10363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10364   cat >>confdefs.h <<_ACEOF
10365 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10366 _ACEOF
10367
10368 ac_header_dirent=$ac_hdr; break
10369 fi
10370
10371 done
10372 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10373 if test $ac_header_dirent = dirent.h; then
10374   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10376 if test "${ac_cv_search_opendir+set}" = set; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   ac_func_search_save_LIBS=$LIBS
10380 cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386
10387 /* Override any GCC internal prototype to avoid an error.
10388    Use char because int might match the return type of a GCC
10389    builtin and then its argument prototype would still apply.  */
10390 #ifdef __cplusplus
10391 extern "C"
10392 #endif
10393 char opendir ();
10394 int
10395 main ()
10396 {
10397 return opendir ();
10398   ;
10399   return 0;
10400 }
10401 _ACEOF
10402 for ac_lib in '' dir; do
10403   if test -z "$ac_lib"; then
10404     ac_res="none required"
10405   else
10406     ac_res=-l$ac_lib
10407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10408   fi
10409   rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413   *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416   (eval "$ac_link") 2>conftest.er1
10417   ac_status=$?
10418   grep -v '^ *+' conftest.er1 >conftest.err
10419   rm -f conftest.er1
10420   cat conftest.err >&5
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); } &&
10423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10424   { (case "(($ac_try" in
10425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426   *) ac_try_echo=$ac_try;;
10427 esac
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429   (eval "$ac_try") 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; } &&
10433          { ac_try='test -s conftest$ac_exeext'
10434   { (case "(($ac_try" in
10435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436   *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439   (eval "$ac_try") 2>&5
10440   ac_status=$?
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); }; }; then
10443   ac_cv_search_opendir=$ac_res
10444 else
10445   echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448
10449 fi
10450
10451 rm -f core conftest.err conftest.$ac_objext \
10452       conftest$ac_exeext
10453   if test "${ac_cv_search_opendir+set}" = set; then
10454   break
10455 fi
10456 done
10457 if test "${ac_cv_search_opendir+set}" = set; then
10458   :
10459 else
10460   ac_cv_search_opendir=no
10461 fi
10462 rm conftest.$ac_ext
10463 LIBS=$ac_func_search_save_LIBS
10464 fi
10465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10467 ac_res=$ac_cv_search_opendir
10468 if test "$ac_res" != no; then
10469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10470
10471 fi
10472
10473 else
10474   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10475 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10476 if test "${ac_cv_search_opendir+set}" = set; then
10477   echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479   ac_func_search_save_LIBS=$LIBS
10480 cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h.  */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h.  */
10486
10487 /* Override any GCC internal prototype to avoid an error.
10488    Use char because int might match the return type of a GCC
10489    builtin and then its argument prototype would still apply.  */
10490 #ifdef __cplusplus
10491 extern "C"
10492 #endif
10493 char opendir ();
10494 int
10495 main ()
10496 {
10497 return opendir ();
10498   ;
10499   return 0;
10500 }
10501 _ACEOF
10502 for ac_lib in '' x; do
10503   if test -z "$ac_lib"; then
10504     ac_res="none required"
10505   else
10506     ac_res=-l$ac_lib
10507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10508   fi
10509   rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516   (eval "$ac_link") 2>conftest.er1
10517   ac_status=$?
10518   grep -v '^ *+' conftest.er1 >conftest.err
10519   rm -f conftest.er1
10520   cat conftest.err >&5
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); } &&
10523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524   { (case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529   (eval "$ac_try") 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; } &&
10533          { ac_try='test -s conftest$ac_exeext'
10534   { (case "(($ac_try" in
10535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536   *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539   (eval "$ac_try") 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; }; then
10543   ac_cv_search_opendir=$ac_res
10544 else
10545   echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548
10549 fi
10550
10551 rm -f core conftest.err conftest.$ac_objext \
10552       conftest$ac_exeext
10553   if test "${ac_cv_search_opendir+set}" = set; then
10554   break
10555 fi
10556 done
10557 if test "${ac_cv_search_opendir+set}" = set; then
10558   :
10559 else
10560   ac_cv_search_opendir=no
10561 fi
10562 rm conftest.$ac_ext
10563 LIBS=$ac_func_search_save_LIBS
10564 fi
10565 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10566 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10567 ac_res=$ac_cv_search_opendir
10568 if test "$ac_res" != no; then
10569   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10570
10571 fi
10572
10573 fi
10574
10575 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10576 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10577 if test "${ac_cv_header_mmap_anon+set}" = set; then
10578   echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580    ac_ext=c
10581 ac_cpp='$CPP $CPPFLAGS'
10582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10585
10586   cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h.  */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h.  */
10592 #include <sys/mman.h>
10593 #include <unistd.h>
10594 #include <fcntl.h>
10595 int
10596 main ()
10597 {
10598 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext
10604 if { (ac_try="$ac_compile"
10605 case "(($ac_try" in
10606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607   *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610   (eval "$ac_compile") 2>conftest.er1
10611   ac_status=$?
10612   grep -v '^ *+' conftest.er1 >conftest.err
10613   rm -f conftest.er1
10614   cat conftest.err >&5
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } &&
10617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10618   { (case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_try") 2>&5
10624   ac_status=$?
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); }; } &&
10627          { ac_try='test -s conftest.$ac_objext'
10628   { (case "(($ac_try" in
10629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630   *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633   (eval "$ac_try") 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; }; then
10637   ac_cv_header_mmap_anon=yes
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642         ac_cv_header_mmap_anon=no
10643 fi
10644
10645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646   ac_ext=c
10647 ac_cpp='$CPP $CPPFLAGS'
10648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10651
10652
10653 fi
10654 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10655 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10656 if test "$ac_cv_header_mmap_anon" = yes; then
10657
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_MMAP_ANONYMOUS 1
10660 _ACEOF
10661
10662 fi
10663
10664 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10665 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10666 if test "${ac_cv_header_stat_broken+set}" = set; then
10667   echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669   cat >conftest.$ac_ext <<_ACEOF
10670 /* confdefs.h.  */
10671 _ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h.  */
10675 #include <sys/types.h>
10676 #include <sys/stat.h>
10677
10678 #if defined S_ISBLK && defined S_IFDIR
10679 # if S_ISBLK (S_IFDIR)
10680 You lose.
10681 # endif
10682 #endif
10683
10684 #if defined S_ISBLK && defined S_IFCHR
10685 # if S_ISBLK (S_IFCHR)
10686 You lose.
10687 # endif
10688 #endif
10689
10690 #if defined S_ISLNK && defined S_IFREG
10691 # if S_ISLNK (S_IFREG)
10692 You lose.
10693 # endif
10694 #endif
10695
10696 #if defined S_ISSOCK && defined S_IFREG
10697 # if S_ISSOCK (S_IFREG)
10698 You lose.
10699 # endif
10700 #endif
10701
10702 _ACEOF
10703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10704   $EGREP "You lose" >/dev/null 2>&1; then
10705   ac_cv_header_stat_broken=yes
10706 else
10707   ac_cv_header_stat_broken=no
10708 fi
10709 rm -f conftest*
10710
10711 fi
10712 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10713 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10714 if test $ac_cv_header_stat_broken = yes; then
10715
10716 cat >>confdefs.h <<\_ACEOF
10717 #define STAT_MACROS_BROKEN 1
10718 _ACEOF
10719
10720 fi
10721
10722 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10723 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10724 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10725   echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727   cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h.  */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h.  */
10733 #include <sys/types.h>
10734 #include <sys/wait.h>
10735 #ifndef WEXITSTATUS
10736 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10737 #endif
10738 #ifndef WIFEXITED
10739 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10740 #endif
10741
10742 int
10743 main ()
10744 {
10745   int s;
10746   wait (&s);
10747   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext
10753 if { (ac_try="$ac_compile"
10754 case "(($ac_try" in
10755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756   *) ac_try_echo=$ac_try;;
10757 esac
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759   (eval "$ac_compile") 2>conftest.er1
10760   ac_status=$?
10761   grep -v '^ *+' conftest.er1 >conftest.err
10762   rm -f conftest.er1
10763   cat conftest.err >&5
10764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765   (exit $ac_status); } &&
10766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10767   { (case "(($ac_try" in
10768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769   *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772   (eval "$ac_try") 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; } &&
10776          { ac_try='test -s conftest.$ac_objext'
10777   { (case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782   (eval "$ac_try") 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; }; then
10786   ac_cv_header_sys_wait_h=yes
10787 else
10788   echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791         ac_cv_header_sys_wait_h=no
10792 fi
10793
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 fi
10796 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10797 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10798 if test $ac_cv_header_sys_wait_h = yes; then
10799
10800 cat >>confdefs.h <<\_ACEOF
10801 #define HAVE_SYS_WAIT_H 1
10802 _ACEOF
10803
10804 fi
10805
10806 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10807 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10808 if test "${ac_cv_header_time+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817 #include <sys/types.h>
10818 #include <sys/time.h>
10819 #include <time.h>
10820
10821 int
10822 main ()
10823 {
10824 if ((struct tm *) 0)
10825 return 0;
10826   ;
10827   return 0;
10828 }
10829 _ACEOF
10830 rm -f conftest.$ac_objext
10831 if { (ac_try="$ac_compile"
10832 case "(($ac_try" in
10833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834   *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837   (eval "$ac_compile") 2>conftest.er1
10838   ac_status=$?
10839   grep -v '^ *+' conftest.er1 >conftest.err
10840   rm -f conftest.er1
10841   cat conftest.err >&5
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } &&
10844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10845   { (case "(($ac_try" in
10846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847   *) ac_try_echo=$ac_try;;
10848 esac
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850   (eval "$ac_try") 2>&5
10851   ac_status=$?
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); }; } &&
10854          { ac_try='test -s conftest.$ac_objext'
10855   { (case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_try") 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   ac_cv_header_time=yes
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869         ac_cv_header_time=no
10870 fi
10871
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 fi
10874 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10875 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10876 if test $ac_cv_header_time = yes; then
10877
10878 cat >>confdefs.h <<\_ACEOF
10879 #define TIME_WITH_SYS_TIME 1
10880 _ACEOF
10881
10882 fi
10883
10884
10885 ac_ext=cpp
10886 ac_cpp='$CXXCPP $CPPFLAGS'
10887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10890
10891
10892 for ac_header in cxxabi.h
10893 do
10894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10898   echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900   cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906 #include <stddef.h>
10907
10908
10909 #include <$ac_header>
10910 _ACEOF
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915   *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918   (eval "$ac_compile") 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
10922   cat conftest.err >&5
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); } &&
10925          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10926   { (case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931   (eval "$ac_try") 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); }; } &&
10935          { ac_try='test -s conftest.$ac_objext'
10936   { (case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941   (eval "$ac_try") 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); }; }; then
10945   eval "$as_ac_Header=yes"
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950         eval "$as_ac_Header=no"
10951 fi
10952
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954 fi
10955 ac_res=`eval echo '${'$as_ac_Header'}'`
10956                { echo "$as_me:$LINENO: result: $ac_res" >&5
10957 echo "${ECHO_T}$ac_res" >&6; }
10958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10959   cat >>confdefs.h <<_ACEOF
10960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10961 _ACEOF
10962
10963 fi
10964
10965 done
10966
10967 ac_ext=c
10968 ac_cpp='$CPP $CPPFLAGS'
10969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10972
10973
10974
10975
10976
10977
10978
10979 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10980 do
10981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10986   echo $ECHO_N "(cached) $ECHO_C" >&6
10987 fi
10988 ac_res=`eval echo '${'$as_ac_Header'}'`
10989                { echo "$as_me:$LINENO: result: $ac_res" >&5
10990 echo "${ECHO_T}$ac_res" >&6; }
10991 else
10992   # Is the header compilable?
10993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h.  */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h.  */
11001 $ac_includes_default
11002 #include <$ac_header>
11003 _ACEOF
11004 rm -f conftest.$ac_objext
11005 if { (ac_try="$ac_compile"
11006 case "(($ac_try" in
11007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008   *) ac_try_echo=$ac_try;;
11009 esac
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011   (eval "$ac_compile") 2>conftest.er1
11012   ac_status=$?
11013   grep -v '^ *+' conftest.er1 >conftest.err
11014   rm -f conftest.er1
11015   cat conftest.err >&5
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); } &&
11018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; } &&
11028          { ac_try='test -s conftest.$ac_objext'
11029   { (case "(($ac_try" in
11030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031   *) ac_try_echo=$ac_try;;
11032 esac
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034   (eval "$ac_try") 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; }; then
11038   ac_header_compiler=yes
11039 else
11040   echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11042
11043         ac_header_compiler=no
11044 fi
11045
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11048 echo "${ECHO_T}$ac_header_compiler" >&6; }
11049
11050 # Is the header present?
11051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059 #include <$ac_header>
11060 _ACEOF
11061 if { (ac_try="$ac_cpp conftest.$ac_ext"
11062 case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11068   ac_status=$?
11069   grep -v '^ *+' conftest.er1 >conftest.err
11070   rm -f conftest.er1
11071   cat conftest.err >&5
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } >/dev/null; then
11074   if test -s conftest.err; then
11075     ac_cpp_err=$ac_c_preproc_warn_flag
11076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11077   else
11078     ac_cpp_err=
11079   fi
11080 else
11081   ac_cpp_err=yes
11082 fi
11083 if test -z "$ac_cpp_err"; then
11084   ac_header_preproc=yes
11085 else
11086   echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089   ac_header_preproc=no
11090 fi
11091
11092 rm -f conftest.err conftest.$ac_ext
11093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11094 echo "${ECHO_T}$ac_header_preproc" >&6; }
11095
11096 # So?  What about this header?
11097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11098   yes:no: )
11099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11103     ac_header_preproc=yes
11104     ;;
11105   no:yes:* )
11106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11118     ( cat <<\_ASBOX
11119 ## ------------------------------------ ##
11120 ## Report this to http://llvm.org/bugs/ ##
11121 ## ------------------------------------ ##
11122 _ASBOX
11123      ) | sed "s/^/$as_me: WARNING:     /" >&2
11124     ;;
11125 esac
11126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11129   echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131   eval "$as_ac_Header=\$ac_header_preproc"
11132 fi
11133 ac_res=`eval echo '${'$as_ac_Header'}'`
11134                { echo "$as_me:$LINENO: result: $ac_res" >&5
11135 echo "${ECHO_T}$ac_res" >&6; }
11136
11137 fi
11138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11139   cat >>confdefs.h <<_ACEOF
11140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11141 _ACEOF
11142
11143 fi
11144
11145 done
11146
11147
11148
11149
11150
11151
11152
11153 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11154 do
11155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11157   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11160   echo $ECHO_N "(cached) $ECHO_C" >&6
11161 fi
11162 ac_res=`eval echo '${'$as_ac_Header'}'`
11163                { echo "$as_me:$LINENO: result: $ac_res" >&5
11164 echo "${ECHO_T}$ac_res" >&6; }
11165 else
11166   # Is the header compilable?
11167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11169 cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h.  */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h.  */
11175 $ac_includes_default
11176 #include <$ac_header>
11177 _ACEOF
11178 rm -f conftest.$ac_objext
11179 if { (ac_try="$ac_compile"
11180 case "(($ac_try" in
11181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182   *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185   (eval "$ac_compile") 2>conftest.er1
11186   ac_status=$?
11187   grep -v '^ *+' conftest.er1 >conftest.err
11188   rm -f conftest.er1
11189   cat conftest.err >&5
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } &&
11192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11193   { (case "(($ac_try" in
11194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195   *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198   (eval "$ac_try") 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; } &&
11202          { ac_try='test -s conftest.$ac_objext'
11203   { (case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_try") 2>&5
11209   ac_status=$?
11210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211   (exit $ac_status); }; }; then
11212   ac_header_compiler=yes
11213 else
11214   echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217         ac_header_compiler=no
11218 fi
11219
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11222 echo "${ECHO_T}$ac_header_compiler" >&6; }
11223
11224 # Is the header present?
11225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h.  */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h.  */
11233 #include <$ac_header>
11234 _ACEOF
11235 if { (ac_try="$ac_cpp conftest.$ac_ext"
11236 case "(($ac_try" in
11237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238   *) ac_try_echo=$ac_try;;
11239 esac
11240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11242   ac_status=$?
11243   grep -v '^ *+' conftest.er1 >conftest.err
11244   rm -f conftest.er1
11245   cat conftest.err >&5
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); } >/dev/null; then
11248   if test -s conftest.err; then
11249     ac_cpp_err=$ac_c_preproc_warn_flag
11250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11251   else
11252     ac_cpp_err=
11253   fi
11254 else
11255   ac_cpp_err=yes
11256 fi
11257 if test -z "$ac_cpp_err"; then
11258   ac_header_preproc=yes
11259 else
11260   echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11262
11263   ac_header_preproc=no
11264 fi
11265
11266 rm -f conftest.err conftest.$ac_ext
11267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11268 echo "${ECHO_T}$ac_header_preproc" >&6; }
11269
11270 # So?  What about this header?
11271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11272   yes:no: )
11273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11277     ac_header_preproc=yes
11278     ;;
11279   no:yes:* )
11280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11292     ( cat <<\_ASBOX
11293 ## ------------------------------------ ##
11294 ## Report this to http://llvm.org/bugs/ ##
11295 ## ------------------------------------ ##
11296 _ASBOX
11297      ) | sed "s/^/$as_me: WARNING:     /" >&2
11298     ;;
11299 esac
11300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11303   echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305   eval "$as_ac_Header=\$ac_header_preproc"
11306 fi
11307 ac_res=`eval echo '${'$as_ac_Header'}'`
11308                { echo "$as_me:$LINENO: result: $ac_res" >&5
11309 echo "${ECHO_T}$ac_res" >&6; }
11310
11311 fi
11312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11313   cat >>confdefs.h <<_ACEOF
11314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11315 _ACEOF
11316
11317 fi
11318
11319 done
11320
11321
11322 for ac_header in utime.h
11323 do
11324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11326   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 fi
11331 ac_res=`eval echo '${'$as_ac_Header'}'`
11332                { echo "$as_me:$LINENO: result: $ac_res" >&5
11333 echo "${ECHO_T}$ac_res" >&6; }
11334 else
11335   # Is the header compilable?
11336 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11338 cat >conftest.$ac_ext <<_ACEOF
11339 /* confdefs.h.  */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h.  */
11344 $ac_includes_default
11345 #include <$ac_header>
11346 _ACEOF
11347 rm -f conftest.$ac_objext
11348 if { (ac_try="$ac_compile"
11349 case "(($ac_try" in
11350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351   *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354   (eval "$ac_compile") 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11362   { (case "(($ac_try" in
11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364   *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367   (eval "$ac_try") 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); }; } &&
11371          { ac_try='test -s conftest.$ac_objext'
11372   { (case "(($ac_try" in
11373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374   *) ac_try_echo=$ac_try;;
11375 esac
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377   (eval "$ac_try") 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); }; }; then
11381   ac_header_compiler=yes
11382 else
11383   echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11385
11386         ac_header_compiler=no
11387 fi
11388
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11391 echo "${ECHO_T}$ac_header_compiler" >&6; }
11392
11393 # Is the header present?
11394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 #include <$ac_header>
11403 _ACEOF
11404 if { (ac_try="$ac_cpp conftest.$ac_ext"
11405 case "(($ac_try" in
11406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407   *) ac_try_echo=$ac_try;;
11408 esac
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11411   ac_status=$?
11412   grep -v '^ *+' conftest.er1 >conftest.err
11413   rm -f conftest.er1
11414   cat conftest.err >&5
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } >/dev/null; then
11417   if test -s conftest.err; then
11418     ac_cpp_err=$ac_c_preproc_warn_flag
11419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11420   else
11421     ac_cpp_err=
11422   fi
11423 else
11424   ac_cpp_err=yes
11425 fi
11426 if test -z "$ac_cpp_err"; then
11427   ac_header_preproc=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432   ac_header_preproc=no
11433 fi
11434
11435 rm -f conftest.err conftest.$ac_ext
11436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 echo "${ECHO_T}$ac_header_preproc" >&6; }
11438
11439 # So?  What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441   yes:no: )
11442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446     ac_header_preproc=yes
11447     ;;
11448   no:yes:* )
11449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11461     ( cat <<\_ASBOX
11462 ## ------------------------------------ ##
11463 ## Report this to http://llvm.org/bugs/ ##
11464 ## ------------------------------------ ##
11465 _ASBOX
11466      ) | sed "s/^/$as_me: WARNING:     /" >&2
11467     ;;
11468 esac
11469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474   eval "$as_ac_Header=\$ac_header_preproc"
11475 fi
11476 ac_res=`eval echo '${'$as_ac_Header'}'`
11477                { echo "$as_me:$LINENO: result: $ac_res" >&5
11478 echo "${ECHO_T}$ac_res" >&6; }
11479
11480 fi
11481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11482   cat >>confdefs.h <<_ACEOF
11483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11484 _ACEOF
11485
11486 fi
11487
11488 done
11489
11490
11491
11492
11493
11494
11495 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11496 do
11497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11499   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 fi
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505                { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11507 else
11508   # Is the header compilable?
11509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h.  */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h.  */
11517 $ac_includes_default
11518 #include <$ac_header>
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524   *) ac_try_echo=$ac_try;;
11525 esac
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527   (eval "$ac_compile") 2>conftest.er1
11528   ac_status=$?
11529   grep -v '^ *+' conftest.er1 >conftest.err
11530   rm -f conftest.er1
11531   cat conftest.err >&5
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); } &&
11534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11535   { (case "(($ac_try" in
11536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537   *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540   (eval "$ac_try") 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; } &&
11544          { ac_try='test -s conftest.$ac_objext'
11545   { (case "(($ac_try" in
11546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547   *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550   (eval "$ac_try") 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; }; then
11554   ac_header_compiler=yes
11555 else
11556   echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559         ac_header_compiler=no
11560 fi
11561
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11564 echo "${ECHO_T}$ac_header_compiler" >&6; }
11565
11566 # Is the header present?
11567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 #include <$ac_header>
11576 _ACEOF
11577 if { (ac_try="$ac_cpp conftest.$ac_ext"
11578 case "(($ac_try" in
11579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580   *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11584   ac_status=$?
11585   grep -v '^ *+' conftest.er1 >conftest.err
11586   rm -f conftest.er1
11587   cat conftest.err >&5
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); } >/dev/null; then
11590   if test -s conftest.err; then
11591     ac_cpp_err=$ac_c_preproc_warn_flag
11592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11593   else
11594     ac_cpp_err=
11595   fi
11596 else
11597   ac_cpp_err=yes
11598 fi
11599 if test -z "$ac_cpp_err"; then
11600   ac_header_preproc=yes
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605   ac_header_preproc=no
11606 fi
11607
11608 rm -f conftest.err conftest.$ac_ext
11609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11610 echo "${ECHO_T}$ac_header_preproc" >&6; }
11611
11612 # So?  What about this header?
11613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11614   yes:no: )
11615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11619     ac_header_preproc=yes
11620     ;;
11621   no:yes:* )
11622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11634     ( cat <<\_ASBOX
11635 ## ------------------------------------ ##
11636 ## Report this to http://llvm.org/bugs/ ##
11637 ## ------------------------------------ ##
11638 _ASBOX
11639      ) | sed "s/^/$as_me: WARNING:     /" >&2
11640     ;;
11641 esac
11642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11645   echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647   eval "$as_ac_Header=\$ac_header_preproc"
11648 fi
11649 ac_res=`eval echo '${'$as_ac_Header'}'`
11650                { echo "$as_me:$LINENO: result: $ac_res" >&5
11651 echo "${ECHO_T}$ac_res" >&6; }
11652
11653 fi
11654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11655   cat >>confdefs.h <<_ACEOF
11656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11657 _ACEOF
11658
11659 fi
11660
11661 done
11662
11663
11664
11665
11666 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11667 do
11668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11673   echo $ECHO_N "(cached) $ECHO_C" >&6
11674 fi
11675 ac_res=`eval echo '${'$as_ac_Header'}'`
11676                { echo "$as_me:$LINENO: result: $ac_res" >&5
11677 echo "${ECHO_T}$ac_res" >&6; }
11678 else
11679   # Is the header compilable?
11680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11682 cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h.  */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h.  */
11688 $ac_includes_default
11689 #include <$ac_header>
11690 _ACEOF
11691 rm -f conftest.$ac_objext
11692 if { (ac_try="$ac_compile"
11693 case "(($ac_try" in
11694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695   *) ac_try_echo=$ac_try;;
11696 esac
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698   (eval "$ac_compile") 2>conftest.er1
11699   ac_status=$?
11700   grep -v '^ *+' conftest.er1 >conftest.err
11701   rm -f conftest.er1
11702   cat conftest.err >&5
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); } &&
11705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11706   { (case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_try") 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; } &&
11715          { ac_try='test -s conftest.$ac_objext'
11716   { (case "(($ac_try" in
11717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718   *) ac_try_echo=$ac_try;;
11719 esac
11720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721   (eval "$ac_try") 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; }; then
11725   ac_header_compiler=yes
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730         ac_header_compiler=no
11731 fi
11732
11733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11735 echo "${ECHO_T}$ac_header_compiler" >&6; }
11736
11737 # Is the header present?
11738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11740 cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 #include <$ac_header>
11747 _ACEOF
11748 if { (ac_try="$ac_cpp conftest.$ac_ext"
11749 case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } >/dev/null; then
11761   if test -s conftest.err; then
11762     ac_cpp_err=$ac_c_preproc_warn_flag
11763     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11764   else
11765     ac_cpp_err=
11766   fi
11767 else
11768   ac_cpp_err=yes
11769 fi
11770 if test -z "$ac_cpp_err"; then
11771   ac_header_preproc=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776   ac_header_preproc=no
11777 fi
11778
11779 rm -f conftest.err conftest.$ac_ext
11780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11781 echo "${ECHO_T}$ac_header_preproc" >&6; }
11782
11783 # So?  What about this header?
11784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11785   yes:no: )
11786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11790     ac_header_preproc=yes
11791     ;;
11792   no:yes:* )
11793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11805     ( cat <<\_ASBOX
11806 ## ------------------------------------ ##
11807 ## Report this to http://llvm.org/bugs/ ##
11808 ## ------------------------------------ ##
11809 _ASBOX
11810      ) | sed "s/^/$as_me: WARNING:     /" >&2
11811     ;;
11812 esac
11813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11816   echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818   eval "$as_ac_Header=\$ac_header_preproc"
11819 fi
11820 ac_res=`eval echo '${'$as_ac_Header'}'`
11821                { echo "$as_me:$LINENO: result: $ac_res" >&5
11822 echo "${ECHO_T}$ac_res" >&6; }
11823
11824 fi
11825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11826   cat >>confdefs.h <<_ACEOF
11827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11828 _ACEOF
11829
11830 fi
11831
11832 done
11833
11834
11835 for ac_header in valgrind/valgrind.h
11836 do
11837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 fi
11844 ac_res=`eval echo '${'$as_ac_Header'}'`
11845                { echo "$as_me:$LINENO: result: $ac_res" >&5
11846 echo "${ECHO_T}$ac_res" >&6; }
11847 else
11848   # Is the header compilable?
11849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h.  */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h.  */
11857 $ac_includes_default
11858 #include <$ac_header>
11859 _ACEOF
11860 rm -f conftest.$ac_objext
11861 if { (ac_try="$ac_compile"
11862 case "(($ac_try" in
11863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864   *) ac_try_echo=$ac_try;;
11865 esac
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867   (eval "$ac_compile") 2>conftest.er1
11868   ac_status=$?
11869   grep -v '^ *+' conftest.er1 >conftest.err
11870   rm -f conftest.er1
11871   cat conftest.err >&5
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } &&
11874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11875   { (case "(($ac_try" in
11876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877   *) ac_try_echo=$ac_try;;
11878 esac
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880   (eval "$ac_try") 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; } &&
11884          { ac_try='test -s conftest.$ac_objext'
11885   { (case "(($ac_try" in
11886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887   *) ac_try_echo=$ac_try;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890   (eval "$ac_try") 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; }; then
11894   ac_header_compiler=yes
11895 else
11896   echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899         ac_header_compiler=no
11900 fi
11901
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11904 echo "${ECHO_T}$ac_header_compiler" >&6; }
11905
11906 # Is the header present?
11907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 #include <$ac_header>
11916 _ACEOF
11917 if { (ac_try="$ac_cpp conftest.$ac_ext"
11918 case "(($ac_try" in
11919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920   *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11924   ac_status=$?
11925   grep -v '^ *+' conftest.er1 >conftest.err
11926   rm -f conftest.er1
11927   cat conftest.err >&5
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } >/dev/null; then
11930   if test -s conftest.err; then
11931     ac_cpp_err=$ac_c_preproc_warn_flag
11932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11933   else
11934     ac_cpp_err=
11935   fi
11936 else
11937   ac_cpp_err=yes
11938 fi
11939 if test -z "$ac_cpp_err"; then
11940   ac_header_preproc=yes
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945   ac_header_preproc=no
11946 fi
11947
11948 rm -f conftest.err conftest.$ac_ext
11949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11950 echo "${ECHO_T}$ac_header_preproc" >&6; }
11951
11952 # So?  What about this header?
11953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11954   yes:no: )
11955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11959     ac_header_preproc=yes
11960     ;;
11961   no:yes:* )
11962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11974     ( cat <<\_ASBOX
11975 ## ------------------------------------ ##
11976 ## Report this to http://llvm.org/bugs/ ##
11977 ## ------------------------------------ ##
11978 _ASBOX
11979      ) | sed "s/^/$as_me: WARNING:     /" >&2
11980     ;;
11981 esac
11982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   eval "$as_ac_Header=\$ac_header_preproc"
11988 fi
11989 ac_res=`eval echo '${'$as_ac_Header'}'`
11990                { echo "$as_me:$LINENO: result: $ac_res" >&5
11991 echo "${ECHO_T}$ac_res" >&6; }
11992
11993 fi
11994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11995   cat >>confdefs.h <<_ACEOF
11996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11997 _ACEOF
11998
11999 fi
12000
12001 done
12002
12003
12004 for ac_header in fenv.h
12005 do
12006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12008   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 fi
12013 ac_res=`eval echo '${'$as_ac_Header'}'`
12014                { echo "$as_me:$LINENO: result: $ac_res" >&5
12015 echo "${ECHO_T}$ac_res" >&6; }
12016 else
12017   # Is the header compilable?
12018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h.  */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h.  */
12026 $ac_includes_default
12027 #include <$ac_header>
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (ac_try="$ac_compile"
12031 case "(($ac_try" in
12032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033   *) ac_try_echo=$ac_try;;
12034 esac
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036   (eval "$ac_compile") 2>conftest.er1
12037   ac_status=$?
12038   grep -v '^ *+' conftest.er1 >conftest.err
12039   rm -f conftest.er1
12040   cat conftest.err >&5
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); } &&
12043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044   { (case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049   (eval "$ac_try") 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; } &&
12053          { ac_try='test -s conftest.$ac_objext'
12054   { (case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_try") 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; }; then
12063   ac_header_compiler=yes
12064 else
12065   echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068         ac_header_compiler=no
12069 fi
12070
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12073 echo "${ECHO_T}$ac_header_compiler" >&6; }
12074
12075 # Is the header present?
12076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h.  */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h.  */
12084 #include <$ac_header>
12085 _ACEOF
12086 if { (ac_try="$ac_cpp conftest.$ac_ext"
12087 case "(($ac_try" in
12088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089   *) ac_try_echo=$ac_try;;
12090 esac
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12093   ac_status=$?
12094   grep -v '^ *+' conftest.er1 >conftest.err
12095   rm -f conftest.er1
12096   cat conftest.err >&5
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); } >/dev/null; then
12099   if test -s conftest.err; then
12100     ac_cpp_err=$ac_c_preproc_warn_flag
12101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12102   else
12103     ac_cpp_err=
12104   fi
12105 else
12106   ac_cpp_err=yes
12107 fi
12108 if test -z "$ac_cpp_err"; then
12109   ac_header_preproc=yes
12110 else
12111   echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12113
12114   ac_header_preproc=no
12115 fi
12116
12117 rm -f conftest.err conftest.$ac_ext
12118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12119 echo "${ECHO_T}$ac_header_preproc" >&6; }
12120
12121 # So?  What about this header?
12122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12123   yes:no: )
12124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12128     ac_header_preproc=yes
12129     ;;
12130   no:yes:* )
12131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12143     ( cat <<\_ASBOX
12144 ## ------------------------------------ ##
12145 ## Report this to http://llvm.org/bugs/ ##
12146 ## ------------------------------------ ##
12147 _ASBOX
12148      ) | sed "s/^/$as_me: WARNING:     /" >&2
12149     ;;
12150 esac
12151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   eval "$as_ac_Header=\$ac_header_preproc"
12157 fi
12158 ac_res=`eval echo '${'$as_ac_Header'}'`
12159                { echo "$as_me:$LINENO: result: $ac_res" >&5
12160 echo "${ECHO_T}$ac_res" >&6; }
12161
12162 fi
12163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12164   cat >>confdefs.h <<_ACEOF
12165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12166 _ACEOF
12167
12168 fi
12169
12170 done
12171
12172 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12173 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12174 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183 #include <fenv.h>
12184
12185 int
12186 main ()
12187 {
12188 #ifndef FE_ALL_EXCEPT
12189   char *p = (char *) FE_ALL_EXCEPT;
12190   return !p;
12191 #endif
12192
12193   ;
12194   return 0;
12195 }
12196 _ACEOF
12197 rm -f conftest.$ac_objext
12198 if { (ac_try="$ac_compile"
12199 case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_compile") 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } &&
12211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12212   { (case "(($ac_try" in
12213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214   *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217   (eval "$ac_try") 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }; } &&
12221          { ac_try='test -s conftest.$ac_objext'
12222   { (case "(($ac_try" in
12223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224   *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227   (eval "$ac_try") 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236         ac_cv_have_decl_FE_ALL_EXCEPT=no
12237 fi
12238
12239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240 fi
12241 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12242 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12243 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12244
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_DECL_FE_ALL_EXCEPT 1
12247 _ACEOF
12248
12249
12250 else
12251   cat >>confdefs.h <<_ACEOF
12252 #define HAVE_DECL_FE_ALL_EXCEPT 0
12253 _ACEOF
12254
12255
12256 fi
12257 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12258 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12259 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12260   echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262   cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268 #include <fenv.h>
12269
12270 int
12271 main ()
12272 {
12273 #ifndef FE_INEXACT
12274   char *p = (char *) FE_INEXACT;
12275   return !p;
12276 #endif
12277
12278   ;
12279   return 0;
12280 }
12281 _ACEOF
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
12284 case "(($ac_try" in
12285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286   *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289   (eval "$ac_compile") 2>conftest.er1
12290   ac_status=$?
12291   grep -v '^ *+' conftest.er1 >conftest.err
12292   rm -f conftest.er1
12293   cat conftest.err >&5
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); } &&
12296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12297   { (case "(($ac_try" in
12298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299   *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302   (eval "$ac_try") 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); }; } &&
12306          { ac_try='test -s conftest.$ac_objext'
12307   { (case "(($ac_try" in
12308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309   *) ac_try_echo=$ac_try;;
12310 esac
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312   (eval "$ac_try") 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; }; then
12316   ac_cv_have_decl_FE_INEXACT=yes
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321         ac_cv_have_decl_FE_INEXACT=no
12322 fi
12323
12324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325 fi
12326 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12327 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12328 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12329
12330 cat >>confdefs.h <<_ACEOF
12331 #define HAVE_DECL_FE_INEXACT 1
12332 _ACEOF
12333
12334
12335 else
12336   cat >>confdefs.h <<_ACEOF
12337 #define HAVE_DECL_FE_INEXACT 0
12338 _ACEOF
12339
12340
12341 fi
12342
12343
12344 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12345
12346 for ac_header in pthread.h
12347 do
12348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12353   echo $ECHO_N "(cached) $ECHO_C" >&6
12354 fi
12355 ac_res=`eval echo '${'$as_ac_Header'}'`
12356                { echo "$as_me:$LINENO: result: $ac_res" >&5
12357 echo "${ECHO_T}$ac_res" >&6; }
12358 else
12359   # Is the header compilable?
12360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 $ac_includes_default
12369 #include <$ac_header>
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (ac_try="$ac_compile"
12373 case "(($ac_try" in
12374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375   *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378   (eval "$ac_compile") 2>conftest.er1
12379   ac_status=$?
12380   grep -v '^ *+' conftest.er1 >conftest.err
12381   rm -f conftest.er1
12382   cat conftest.err >&5
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); } &&
12385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12386   { (case "(($ac_try" in
12387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388   *) ac_try_echo=$ac_try;;
12389 esac
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391   (eval "$ac_try") 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; } &&
12395          { ac_try='test -s conftest.$ac_objext'
12396   { (case "(($ac_try" in
12397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398   *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401   (eval "$ac_try") 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); }; }; then
12405   ac_header_compiler=yes
12406 else
12407   echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410         ac_header_compiler=no
12411 fi
12412
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12415 echo "${ECHO_T}$ac_header_compiler" >&6; }
12416
12417 # Is the header present?
12418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12420 cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h.  */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h.  */
12426 #include <$ac_header>
12427 _ACEOF
12428 if { (ac_try="$ac_cpp conftest.$ac_ext"
12429 case "(($ac_try" in
12430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431   *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12435   ac_status=$?
12436   grep -v '^ *+' conftest.er1 >conftest.err
12437   rm -f conftest.er1
12438   cat conftest.err >&5
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); } >/dev/null; then
12441   if test -s conftest.err; then
12442     ac_cpp_err=$ac_c_preproc_warn_flag
12443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12444   else
12445     ac_cpp_err=
12446   fi
12447 else
12448   ac_cpp_err=yes
12449 fi
12450 if test -z "$ac_cpp_err"; then
12451   ac_header_preproc=yes
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456   ac_header_preproc=no
12457 fi
12458
12459 rm -f conftest.err conftest.$ac_ext
12460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12461 echo "${ECHO_T}$ac_header_preproc" >&6; }
12462
12463 # So?  What about this header?
12464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12465   yes:no: )
12466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12470     ac_header_preproc=yes
12471     ;;
12472   no:yes:* )
12473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12485     ( cat <<\_ASBOX
12486 ## ------------------------------------ ##
12487 ## Report this to http://llvm.org/bugs/ ##
12488 ## ------------------------------------ ##
12489 _ASBOX
12490      ) | sed "s/^/$as_me: WARNING:     /" >&2
12491     ;;
12492 esac
12493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   eval "$as_ac_Header=\$ac_header_preproc"
12499 fi
12500 ac_res=`eval echo '${'$as_ac_Header'}'`
12501                { echo "$as_me:$LINENO: result: $ac_res" >&5
12502 echo "${ECHO_T}$ac_res" >&6; }
12503
12504 fi
12505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12506   cat >>confdefs.h <<_ACEOF
12507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12508 _ACEOF
12509  HAVE_PTHREAD=1
12510
12511 else
12512   HAVE_PTHREAD=0
12513
12514 fi
12515
12516 done
12517
12518 else
12519   HAVE_PTHREAD=0
12520
12521 fi
12522 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12523
12524 for ac_header in zlib.h
12525 do
12526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531   echo $ECHO_N "(cached) $ECHO_C" >&6
12532 fi
12533 ac_res=`eval echo '${'$as_ac_Header'}'`
12534                { echo "$as_me:$LINENO: result: $ac_res" >&5
12535 echo "${ECHO_T}$ac_res" >&6; }
12536 else
12537   # Is the header compilable?
12538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h.  */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h.  */
12546 $ac_includes_default
12547 #include <$ac_header>
12548 _ACEOF
12549 rm -f conftest.$ac_objext
12550 if { (ac_try="$ac_compile"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_compile") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } &&
12563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564   { (case "(($ac_try" in
12565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566   *) ac_try_echo=$ac_try;;
12567 esac
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569   (eval "$ac_try") 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; } &&
12573          { ac_try='test -s conftest.$ac_objext'
12574   { (case "(($ac_try" in
12575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576   *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579   (eval "$ac_try") 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); }; }; then
12583   ac_header_compiler=yes
12584 else
12585   echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12587
12588         ac_header_compiler=no
12589 fi
12590
12591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12593 echo "${ECHO_T}$ac_header_compiler" >&6; }
12594
12595 # Is the header present?
12596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604 #include <$ac_header>
12605 _ACEOF
12606 if { (ac_try="$ac_cpp conftest.$ac_ext"
12607 case "(($ac_try" in
12608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609   *) ac_try_echo=$ac_try;;
12610 esac
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12613   ac_status=$?
12614   grep -v '^ *+' conftest.er1 >conftest.err
12615   rm -f conftest.er1
12616   cat conftest.err >&5
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); } >/dev/null; then
12619   if test -s conftest.err; then
12620     ac_cpp_err=$ac_c_preproc_warn_flag
12621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12622   else
12623     ac_cpp_err=
12624   fi
12625 else
12626   ac_cpp_err=yes
12627 fi
12628 if test -z "$ac_cpp_err"; then
12629   ac_header_preproc=yes
12630 else
12631   echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634   ac_header_preproc=no
12635 fi
12636
12637 rm -f conftest.err conftest.$ac_ext
12638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12639 echo "${ECHO_T}$ac_header_preproc" >&6; }
12640
12641 # So?  What about this header?
12642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12643   yes:no: )
12644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12648     ac_header_preproc=yes
12649     ;;
12650   no:yes:* )
12651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12663     ( cat <<\_ASBOX
12664 ## ------------------------------------ ##
12665 ## Report this to http://llvm.org/bugs/ ##
12666 ## ------------------------------------ ##
12667 _ASBOX
12668      ) | sed "s/^/$as_me: WARNING:     /" >&2
12669     ;;
12670 esac
12671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12674   echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676   eval "$as_ac_Header=\$ac_header_preproc"
12677 fi
12678 ac_res=`eval echo '${'$as_ac_Header'}'`
12679                { echo "$as_me:$LINENO: result: $ac_res" >&5
12680 echo "${ECHO_T}$ac_res" >&6; }
12681
12682 fi
12683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12684   cat >>confdefs.h <<_ACEOF
12685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12686 _ACEOF
12687  HAVE_LIBZ=1
12688
12689 else
12690   HAVE_LIBZ=0
12691
12692 fi
12693
12694 done
12695
12696 else
12697   HAVE_LIBZ=0
12698
12699 fi
12700
12701 if test "$llvm_cv_enable_libffi" = "yes" ; then
12702
12703
12704 for ac_header in ffi.h ffi/ffi.h
12705 do
12706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12708   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12711   echo $ECHO_N "(cached) $ECHO_C" >&6
12712 fi
12713 ac_res=`eval echo '${'$as_ac_Header'}'`
12714                { echo "$as_me:$LINENO: result: $ac_res" >&5
12715 echo "${ECHO_T}$ac_res" >&6; }
12716 else
12717   # Is the header compilable?
12718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12720 cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726 $ac_includes_default
12727 #include <$ac_header>
12728 _ACEOF
12729 rm -f conftest.$ac_objext
12730 if { (ac_try="$ac_compile"
12731 case "(($ac_try" in
12732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733   *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736   (eval "$ac_compile") 2>conftest.er1
12737   ac_status=$?
12738   grep -v '^ *+' conftest.er1 >conftest.err
12739   rm -f conftest.er1
12740   cat conftest.err >&5
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); } &&
12743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12744   { (case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_try") 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); }; } &&
12753          { ac_try='test -s conftest.$ac_objext'
12754   { (case "(($ac_try" in
12755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756   *) ac_try_echo=$ac_try;;
12757 esac
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759   (eval "$ac_try") 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); }; }; then
12763   ac_header_compiler=yes
12764 else
12765   echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12767
12768         ac_header_compiler=no
12769 fi
12770
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12773 echo "${ECHO_T}$ac_header_compiler" >&6; }
12774
12775 # Is the header present?
12776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h.  */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h.  */
12784 #include <$ac_header>
12785 _ACEOF
12786 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12799   if test -s conftest.err; then
12800     ac_cpp_err=$ac_c_preproc_warn_flag
12801     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12802   else
12803     ac_cpp_err=
12804   fi
12805 else
12806   ac_cpp_err=yes
12807 fi
12808 if test -z "$ac_cpp_err"; then
12809   ac_header_preproc=yes
12810 else
12811   echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814   ac_header_preproc=no
12815 fi
12816
12817 rm -f conftest.err conftest.$ac_ext
12818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12819 echo "${ECHO_T}$ac_header_preproc" >&6; }
12820
12821 # So?  What about this header?
12822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12823   yes:no: )
12824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12828     ac_header_preproc=yes
12829     ;;
12830   no:yes:* )
12831     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12833     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12834 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12835     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12837     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12838 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12841     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12843     ( cat <<\_ASBOX
12844 ## ------------------------------------ ##
12845 ## Report this to http://llvm.org/bugs/ ##
12846 ## ------------------------------------ ##
12847 _ASBOX
12848      ) | sed "s/^/$as_me: WARNING:     /" >&2
12849     ;;
12850 esac
12851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856   eval "$as_ac_Header=\$ac_header_preproc"
12857 fi
12858 ac_res=`eval echo '${'$as_ac_Header'}'`
12859                { echo "$as_me:$LINENO: result: $ac_res" >&5
12860 echo "${ECHO_T}$ac_res" >&6; }
12861
12862 fi
12863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12864   cat >>confdefs.h <<_ACEOF
12865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12866 _ACEOF
12867
12868 fi
12869
12870 done
12871
12872 fi
12873
12874
12875 for ac_header in CrashReporterClient.h
12876 do
12877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12879   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12882   echo $ECHO_N "(cached) $ECHO_C" >&6
12883 fi
12884 ac_res=`eval echo '${'$as_ac_Header'}'`
12885                { echo "$as_me:$LINENO: result: $ac_res" >&5
12886 echo "${ECHO_T}$ac_res" >&6; }
12887 else
12888   # Is the header compilable?
12889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12891 cat >conftest.$ac_ext <<_ACEOF
12892 /* confdefs.h.  */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h.  */
12897 $ac_includes_default
12898 #include <$ac_header>
12899 _ACEOF
12900 rm -f conftest.$ac_objext
12901 if { (ac_try="$ac_compile"
12902 case "(($ac_try" in
12903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904   *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907   (eval "$ac_compile") 2>conftest.er1
12908   ac_status=$?
12909   grep -v '^ *+' conftest.er1 >conftest.err
12910   rm -f conftest.er1
12911   cat conftest.err >&5
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); } &&
12914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12915   { (case "(($ac_try" in
12916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917   *) ac_try_echo=$ac_try;;
12918 esac
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920   (eval "$ac_try") 2>&5
12921   ac_status=$?
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); }; } &&
12924          { ac_try='test -s conftest.$ac_objext'
12925   { (case "(($ac_try" in
12926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927   *) ac_try_echo=$ac_try;;
12928 esac
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930   (eval "$ac_try") 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; }; then
12934   ac_header_compiler=yes
12935 else
12936   echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12938
12939         ac_header_compiler=no
12940 fi
12941
12942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12944 echo "${ECHO_T}$ac_header_compiler" >&6; }
12945
12946 # Is the header present?
12947 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12949 cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h.  */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h.  */
12955 #include <$ac_header>
12956 _ACEOF
12957 if { (ac_try="$ac_cpp conftest.$ac_ext"
12958 case "(($ac_try" in
12959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960   *) ac_try_echo=$ac_try;;
12961 esac
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12964   ac_status=$?
12965   grep -v '^ *+' conftest.er1 >conftest.err
12966   rm -f conftest.er1
12967   cat conftest.err >&5
12968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969   (exit $ac_status); } >/dev/null; then
12970   if test -s conftest.err; then
12971     ac_cpp_err=$ac_c_preproc_warn_flag
12972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12973   else
12974     ac_cpp_err=
12975   fi
12976 else
12977   ac_cpp_err=yes
12978 fi
12979 if test -z "$ac_cpp_err"; then
12980   ac_header_preproc=yes
12981 else
12982   echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12984
12985   ac_header_preproc=no
12986 fi
12987
12988 rm -f conftest.err conftest.$ac_ext
12989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12990 echo "${ECHO_T}$ac_header_preproc" >&6; }
12991
12992 # So?  What about this header?
12993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12994   yes:no: )
12995     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12999     ac_header_preproc=yes
13000     ;;
13001   no:yes:* )
13002     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13004     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13005 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13006     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13008     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13009 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13012     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13014     ( cat <<\_ASBOX
13015 ## ------------------------------------ ##
13016 ## Report this to http://llvm.org/bugs/ ##
13017 ## ------------------------------------ ##
13018 _ASBOX
13019      ) | sed "s/^/$as_me: WARNING:     /" >&2
13020     ;;
13021 esac
13022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13025   echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027   eval "$as_ac_Header=\$ac_header_preproc"
13028 fi
13029 ac_res=`eval echo '${'$as_ac_Header'}'`
13030                { echo "$as_me:$LINENO: result: $ac_res" >&5
13031 echo "${ECHO_T}$ac_res" >&6; }
13032
13033 fi
13034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13035   cat >>confdefs.h <<_ACEOF
13036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13037 _ACEOF
13038
13039 fi
13040
13041 done
13042
13043
13044 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13045 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13046 cat >conftest.$ac_ext <<_ACEOF
13047
13048   /* confdefs.h.  */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h.  */
13053
13054     extern const char *__crashreporter_info__;
13055     int main() {
13056       __crashreporter_info__ = "test";
13057       return 0;
13058     }
13059
13060
13061 _ACEOF
13062 rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (ac_try="$ac_link"
13064 case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_link") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } &&
13076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077   { (case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082   (eval "$ac_try") 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; } &&
13086          { ac_try='test -s conftest$ac_exeext'
13087   { (case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_try") 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096
13097   { echo "$as_me:$LINENO: result: yes" >&5
13098 echo "${ECHO_T}yes" >&6; }
13099
13100 cat >>confdefs.h <<\_ACEOF
13101 #define HAVE_CRASHREPORTER_INFO 1
13102 _ACEOF
13103
13104
13105 else
13106   echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109
13110   { echo "$as_me:$LINENO: result: no" >&5
13111 echo "${ECHO_T}no" >&6; }
13112
13113 cat >>confdefs.h <<\_ACEOF
13114 #define HAVE_CRASHREPORTER_INFO 0
13115 _ACEOF
13116
13117
13118 fi
13119
13120 rm -f core conftest.err conftest.$ac_objext \
13121       conftest$ac_exeext conftest.$ac_ext
13122
13123
13124
13125   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13126 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13127 if test "${ac_cv_huge_val_sanity+set}" = set; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130
13131     ac_ext=cpp
13132 ac_cpp='$CXXCPP $CPPFLAGS'
13133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13136
13137     ac_save_CXXFLAGS=$CXXFLAGS
13138     CXXFLAGS="$CXXFLAGS -pedantic"
13139     if test "$cross_compiling" = yes; then
13140   ac_cv_huge_val_sanity=yes
13141 else
13142   cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h.  */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h.  */
13148 #include <math.h>
13149 int
13150 main ()
13151 {
13152 double x = HUGE_VAL; return x != x;
13153   ;
13154   return 0;
13155 }
13156 _ACEOF
13157 rm -f conftest$ac_exeext
13158 if { (ac_try="$ac_link"
13159 case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_link") 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_huge_val_sanity=yes
13178 else
13179   echo "$as_me: program exited with status $ac_status" >&5
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13182
13183 ( exit $ac_status )
13184 ac_cv_huge_val_sanity=no
13185 fi
13186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13187 fi
13188
13189
13190     CXXFLAGS=$ac_save_CXXFLAGS
13191     ac_ext=c
13192 ac_cpp='$CPP $CPPFLAGS'
13193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13196
13197
13198 fi
13199 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13200 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13201   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13202
13203
13204 { echo "$as_me:$LINENO: checking for pid_t" >&5
13205 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13206 if test "${ac_cv_type_pid_t+set}" = set; then
13207   echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209   cat >conftest.$ac_ext <<_ACEOF
13210 /* confdefs.h.  */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h.  */
13215 $ac_includes_default
13216 typedef pid_t ac__type_new_;
13217 int
13218 main ()
13219 {
13220 if ((ac__type_new_ *) 0)
13221   return 0;
13222 if (sizeof (ac__type_new_))
13223   return 0;
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 rm -f conftest.$ac_objext
13229 if { (ac_try="$ac_compile"
13230 case "(($ac_try" in
13231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232   *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235   (eval "$ac_compile") 2>conftest.er1
13236   ac_status=$?
13237   grep -v '^ *+' conftest.er1 >conftest.err
13238   rm -f conftest.er1
13239   cat conftest.err >&5
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } &&
13242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13243   { (case "(($ac_try" in
13244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245   *) ac_try_echo=$ac_try;;
13246 esac
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248   (eval "$ac_try") 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; } &&
13252          { ac_try='test -s conftest.$ac_objext'
13253   { (case "(($ac_try" in
13254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255   *) ac_try_echo=$ac_try;;
13256 esac
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258   (eval "$ac_try") 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; }; then
13262   ac_cv_type_pid_t=yes
13263 else
13264   echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267         ac_cv_type_pid_t=no
13268 fi
13269
13270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13271 fi
13272 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13273 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13274 if test $ac_cv_type_pid_t = yes; then
13275   :
13276 else
13277
13278 cat >>confdefs.h <<_ACEOF
13279 #define pid_t int
13280 _ACEOF
13281
13282 fi
13283
13284 { echo "$as_me:$LINENO: checking for size_t" >&5
13285 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13286 if test "${ac_cv_type_size_t+set}" = set; then
13287   echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289   cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295 $ac_includes_default
13296 typedef size_t ac__type_new_;
13297 int
13298 main ()
13299 {
13300 if ((ac__type_new_ *) 0)
13301   return 0;
13302 if (sizeof (ac__type_new_))
13303   return 0;
13304   ;
13305   return 0;
13306 }
13307 _ACEOF
13308 rm -f conftest.$ac_objext
13309 if { (ac_try="$ac_compile"
13310 case "(($ac_try" in
13311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312   *) ac_try_echo=$ac_try;;
13313 esac
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315   (eval "$ac_compile") 2>conftest.er1
13316   ac_status=$?
13317   grep -v '^ *+' conftest.er1 >conftest.err
13318   rm -f conftest.er1
13319   cat conftest.err >&5
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } &&
13322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13323   { (case "(($ac_try" in
13324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325   *) ac_try_echo=$ac_try;;
13326 esac
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328   (eval "$ac_try") 2>&5
13329   ac_status=$?
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); }; } &&
13332          { ac_try='test -s conftest.$ac_objext'
13333   { (case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_try") 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; }; then
13342   ac_cv_type_size_t=yes
13343 else
13344   echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13346
13347         ac_cv_type_size_t=no
13348 fi
13349
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 fi
13352 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13353 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13354 if test $ac_cv_type_size_t = yes; then
13355   :
13356 else
13357
13358 cat >>confdefs.h <<_ACEOF
13359 #define size_t unsigned int
13360 _ACEOF
13361
13362 fi
13363
13364
13365 cat >>confdefs.h <<_ACEOF
13366 #define RETSIGTYPE void
13367 _ACEOF
13368
13369 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13370 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13371 if test "${ac_cv_struct_tm+set}" = set; then
13372   echo $ECHO_N "(cached) $ECHO_C" >&6
13373 else
13374   cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380 #include <sys/types.h>
13381 #include <time.h>
13382
13383 int
13384 main ()
13385 {
13386 struct tm *tp; tp->tm_sec;
13387   ;
13388   return 0;
13389 }
13390 _ACEOF
13391 rm -f conftest.$ac_objext
13392 if { (ac_try="$ac_compile"
13393 case "(($ac_try" in
13394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395   *) ac_try_echo=$ac_try;;
13396 esac
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398   (eval "$ac_compile") 2>conftest.er1
13399   ac_status=$?
13400   grep -v '^ *+' conftest.er1 >conftest.err
13401   rm -f conftest.er1
13402   cat conftest.err >&5
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); } &&
13405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13406   { (case "(($ac_try" in
13407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408   *) ac_try_echo=$ac_try;;
13409 esac
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411   (eval "$ac_try") 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); }; } &&
13415          { ac_try='test -s conftest.$ac_objext'
13416   { (case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421   (eval "$ac_try") 2>&5
13422   ac_status=$?
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); }; }; then
13425   ac_cv_struct_tm=time.h
13426 else
13427   echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430         ac_cv_struct_tm=sys/time.h
13431 fi
13432
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 fi
13435 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13436 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13437 if test $ac_cv_struct_tm = sys/time.h; then
13438
13439 cat >>confdefs.h <<\_ACEOF
13440 #define TM_IN_SYS_TIME 1
13441 _ACEOF
13442
13443 fi
13444
13445 { echo "$as_me:$LINENO: checking for int64_t" >&5
13446 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13447 if test "${ac_cv_type_int64_t+set}" = set; then
13448   echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450   cat >conftest.$ac_ext <<_ACEOF
13451 /* confdefs.h.  */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h.  */
13456 $ac_includes_default
13457 typedef int64_t ac__type_new_;
13458 int
13459 main ()
13460 {
13461 if ((ac__type_new_ *) 0)
13462   return 0;
13463 if (sizeof (ac__type_new_))
13464   return 0;
13465   ;
13466   return 0;
13467 }
13468 _ACEOF
13469 rm -f conftest.$ac_objext
13470 if { (ac_try="$ac_compile"
13471 case "(($ac_try" in
13472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473   *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476   (eval "$ac_compile") 2>conftest.er1
13477   ac_status=$?
13478   grep -v '^ *+' conftest.er1 >conftest.err
13479   rm -f conftest.er1
13480   cat conftest.err >&5
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } &&
13483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13484   { (case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489   (eval "$ac_try") 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); }; } &&
13493          { ac_try='test -s conftest.$ac_objext'
13494   { (case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499   (eval "$ac_try") 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; }; then
13503   ac_cv_type_int64_t=yes
13504 else
13505   echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508         ac_cv_type_int64_t=no
13509 fi
13510
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512 fi
13513 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13514 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13515 if test $ac_cv_type_int64_t = yes; then
13516
13517 cat >>confdefs.h <<_ACEOF
13518 #define HAVE_INT64_T 1
13519 _ACEOF
13520
13521
13522 else
13523   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13524 echo "$as_me: error: Type int64_t required but not found" >&2;}
13525    { (exit 1); exit 1; }; }
13526 fi
13527
13528 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13529 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13530 if test "${ac_cv_type_uint64_t+set}" = set; then
13531   echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533   cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h.  */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h.  */
13539 $ac_includes_default
13540 typedef uint64_t ac__type_new_;
13541 int
13542 main ()
13543 {
13544 if ((ac__type_new_ *) 0)
13545   return 0;
13546 if (sizeof (ac__type_new_))
13547   return 0;
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556   *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559   (eval "$ac_compile") 2>conftest.er1
13560   ac_status=$?
13561   grep -v '^ *+' conftest.er1 >conftest.err
13562   rm -f conftest.er1
13563   cat conftest.err >&5
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); } &&
13566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13567   { (case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572   (eval "$ac_try") 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; } &&
13576          { ac_try='test -s conftest.$ac_objext'
13577   { (case "(($ac_try" in
13578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579   *) ac_try_echo=$ac_try;;
13580 esac
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582   (eval "$ac_try") 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; }; then
13586   ac_cv_type_uint64_t=yes
13587 else
13588   echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591         ac_cv_type_uint64_t=no
13592 fi
13593
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 fi
13596 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13597 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13598 if test $ac_cv_type_uint64_t = yes; then
13599
13600 cat >>confdefs.h <<_ACEOF
13601 #define HAVE_UINT64_T 1
13602 _ACEOF
13603
13604
13605 else
13606   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13607 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13608 if test "${ac_cv_type_u_int64_t+set}" = set; then
13609   echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611   cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h.  */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h.  */
13617 $ac_includes_default
13618 typedef u_int64_t ac__type_new_;
13619 int
13620 main ()
13621 {
13622 if ((ac__type_new_ *) 0)
13623   return 0;
13624 if (sizeof (ac__type_new_))
13625   return 0;
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 rm -f conftest.$ac_objext
13631 if { (ac_try="$ac_compile"
13632 case "(($ac_try" in
13633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634   *) ac_try_echo=$ac_try;;
13635 esac
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637   (eval "$ac_compile") 2>conftest.er1
13638   ac_status=$?
13639   grep -v '^ *+' conftest.er1 >conftest.err
13640   rm -f conftest.er1
13641   cat conftest.err >&5
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } &&
13644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645   { (case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_try") 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; } &&
13654          { ac_try='test -s conftest.$ac_objext'
13655   { (case "(($ac_try" in
13656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657   *) ac_try_echo=$ac_try;;
13658 esac
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660   (eval "$ac_try") 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }; }; then
13664   ac_cv_type_u_int64_t=yes
13665 else
13666   echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13668
13669         ac_cv_type_u_int64_t=no
13670 fi
13671
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 fi
13674 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13675 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13676 if test $ac_cv_type_u_int64_t = yes; then
13677
13678 cat >>confdefs.h <<_ACEOF
13679 #define HAVE_U_INT64_T 1
13680 _ACEOF
13681
13682
13683 else
13684   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13685 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13686    { (exit 1); exit 1; }; }
13687 fi
13688
13689 fi
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13701 do
13702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h.  */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h.  */
13714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13716 #define $ac_func innocuous_$ac_func
13717
13718 /* System header to define __stub macros and hopefully few prototypes,
13719     which can conflict with char $ac_func (); below.
13720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13721     <limits.h> exists even on freestanding compilers.  */
13722
13723 #ifdef __STDC__
13724 # include <limits.h>
13725 #else
13726 # include <assert.h>
13727 #endif
13728
13729 #undef $ac_func
13730
13731 /* Override any GCC internal prototype to avoid an error.
13732    Use char because int might match the return type of a GCC
13733    builtin and then its argument prototype would still apply.  */
13734 #ifdef __cplusplus
13735 extern "C"
13736 #endif
13737 char $ac_func ();
13738 /* The GNU C library defines this for functions which it implements
13739     to always fail with ENOSYS.  Some functions are actually named
13740     something starting with __ and the normal name is an alias.  */
13741 #if defined __stub_$ac_func || defined __stub___$ac_func
13742 choke me
13743 #endif
13744
13745 int
13746 main ()
13747 {
13748 return $ac_func ();
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (ac_try="$ac_link"
13755 case "(($ac_try" in
13756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757   *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760   (eval "$ac_link") 2>conftest.er1
13761   ac_status=$?
13762   grep -v '^ *+' conftest.er1 >conftest.err
13763   rm -f conftest.er1
13764   cat conftest.err >&5
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); } &&
13767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768   { (case "(($ac_try" in
13769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770   *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773   (eval "$ac_try") 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; } &&
13777          { ac_try='test -s conftest$ac_exeext'
13778   { (case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783   (eval "$ac_try") 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); }; }; then
13787   eval "$as_ac_var=yes"
13788 else
13789   echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13791
13792         eval "$as_ac_var=no"
13793 fi
13794
13795 rm -f core conftest.err conftest.$ac_objext \
13796       conftest$ac_exeext conftest.$ac_ext
13797 fi
13798 ac_res=`eval echo '${'$as_ac_var'}'`
13799                { echo "$as_me:$LINENO: result: $ac_res" >&5
13800 echo "${ECHO_T}$ac_res" >&6; }
13801 if test `eval echo '${'$as_ac_var'}'` = yes; then
13802   cat >>confdefs.h <<_ACEOF
13803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13804 _ACEOF
13805
13806 fi
13807 done
13808
13809
13810
13811
13812
13813 for ac_func in powf fmodf strtof round
13814 do
13815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821   cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h.  */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h.  */
13827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13829 #define $ac_func innocuous_$ac_func
13830
13831 /* System header to define __stub macros and hopefully few prototypes,
13832     which can conflict with char $ac_func (); below.
13833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13834     <limits.h> exists even on freestanding compilers.  */
13835
13836 #ifdef __STDC__
13837 # include <limits.h>
13838 #else
13839 # include <assert.h>
13840 #endif
13841
13842 #undef $ac_func
13843
13844 /* Override any GCC internal prototype to avoid an error.
13845    Use char because int might match the return type of a GCC
13846    builtin and then its argument prototype would still apply.  */
13847 #ifdef __cplusplus
13848 extern "C"
13849 #endif
13850 char $ac_func ();
13851 /* The GNU C library defines this for functions which it implements
13852     to always fail with ENOSYS.  Some functions are actually named
13853     something starting with __ and the normal name is an alias.  */
13854 #if defined __stub_$ac_func || defined __stub___$ac_func
13855 choke me
13856 #endif
13857
13858 int
13859 main ()
13860 {
13861 return $ac_func ();
13862   ;
13863   return 0;
13864 }
13865 _ACEOF
13866 rm -f conftest.$ac_objext conftest$ac_exeext
13867 if { (ac_try="$ac_link"
13868 case "(($ac_try" in
13869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870   *) ac_try_echo=$ac_try;;
13871 esac
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873   (eval "$ac_link") 2>conftest.er1
13874   ac_status=$?
13875   grep -v '^ *+' conftest.er1 >conftest.err
13876   rm -f conftest.er1
13877   cat conftest.err >&5
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } &&
13880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13881   { (case "(($ac_try" in
13882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883   *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886   (eval "$ac_try") 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; } &&
13890          { ac_try='test -s conftest$ac_exeext'
13891   { (case "(($ac_try" in
13892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893   *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896   (eval "$ac_try") 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   eval "$as_ac_var=yes"
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905         eval "$as_ac_var=no"
13906 fi
13907
13908 rm -f core conftest.err conftest.$ac_objext \
13909       conftest$ac_exeext conftest.$ac_ext
13910 fi
13911 ac_res=`eval echo '${'$as_ac_var'}'`
13912                { echo "$as_me:$LINENO: result: $ac_res" >&5
13913 echo "${ECHO_T}$ac_res" >&6; }
13914 if test `eval echo '${'$as_ac_var'}'` = yes; then
13915   cat >>confdefs.h <<_ACEOF
13916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13917 _ACEOF
13918
13919 fi
13920 done
13921
13922
13923
13924
13925
13926
13927 for ac_func in log log2 log10 exp exp2
13928 do
13929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935   cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h.  */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h.  */
13941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13943 #define $ac_func innocuous_$ac_func
13944
13945 /* System header to define __stub macros and hopefully few prototypes,
13946     which can conflict with char $ac_func (); below.
13947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13948     <limits.h> exists even on freestanding compilers.  */
13949
13950 #ifdef __STDC__
13951 # include <limits.h>
13952 #else
13953 # include <assert.h>
13954 #endif
13955
13956 #undef $ac_func
13957
13958 /* Override any GCC internal prototype to avoid an error.
13959    Use char because int might match the return type of a GCC
13960    builtin and then its argument prototype would still apply.  */
13961 #ifdef __cplusplus
13962 extern "C"
13963 #endif
13964 char $ac_func ();
13965 /* The GNU C library defines this for functions which it implements
13966     to always fail with ENOSYS.  Some functions are actually named
13967     something starting with __ and the normal name is an alias.  */
13968 #if defined __stub_$ac_func || defined __stub___$ac_func
13969 choke me
13970 #endif
13971
13972 int
13973 main ()
13974 {
13975 return $ac_func ();
13976   ;
13977   return 0;
13978 }
13979 _ACEOF
13980 rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (ac_try="$ac_link"
13982 case "(($ac_try" in
13983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984   *) ac_try_echo=$ac_try;;
13985 esac
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987   (eval "$ac_link") 2>conftest.er1
13988   ac_status=$?
13989   grep -v '^ *+' conftest.er1 >conftest.err
13990   rm -f conftest.er1
13991   cat conftest.err >&5
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } &&
13994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995   { (case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000   (eval "$ac_try") 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; } &&
14004          { ac_try='test -s conftest$ac_exeext'
14005   { (case "(($ac_try" in
14006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007   *) ac_try_echo=$ac_try;;
14008 esac
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010   (eval "$ac_try") 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   eval "$as_ac_var=yes"
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019         eval "$as_ac_var=no"
14020 fi
14021
14022 rm -f core conftest.err conftest.$ac_objext \
14023       conftest$ac_exeext conftest.$ac_ext
14024 fi
14025 ac_res=`eval echo '${'$as_ac_var'}'`
14026                { echo "$as_me:$LINENO: result: $ac_res" >&5
14027 echo "${ECHO_T}$ac_res" >&6; }
14028 if test `eval echo '${'$as_ac_var'}'` = yes; then
14029   cat >>confdefs.h <<_ACEOF
14030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14031 _ACEOF
14032
14033 fi
14034 done
14035
14036
14037
14038
14039
14040
14041 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14042 do
14043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14047   echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049   cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h.  */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h.  */
14055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14057 #define $ac_func innocuous_$ac_func
14058
14059 /* System header to define __stub macros and hopefully few prototypes,
14060     which can conflict with char $ac_func (); below.
14061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14062     <limits.h> exists even on freestanding compilers.  */
14063
14064 #ifdef __STDC__
14065 # include <limits.h>
14066 #else
14067 # include <assert.h>
14068 #endif
14069
14070 #undef $ac_func
14071
14072 /* Override any GCC internal prototype to avoid an error.
14073    Use char because int might match the return type of a GCC
14074    builtin and then its argument prototype would still apply.  */
14075 #ifdef __cplusplus
14076 extern "C"
14077 #endif
14078 char $ac_func ();
14079 /* The GNU C library defines this for functions which it implements
14080     to always fail with ENOSYS.  Some functions are actually named
14081     something starting with __ and the normal name is an alias.  */
14082 #if defined __stub_$ac_func || defined __stub___$ac_func
14083 choke me
14084 #endif
14085
14086 int
14087 main ()
14088 {
14089 return $ac_func ();
14090   ;
14091   return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098   *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101   (eval "$ac_link") 2>conftest.er1
14102   ac_status=$?
14103   grep -v '^ *+' conftest.er1 >conftest.err
14104   rm -f conftest.er1
14105   cat conftest.err >&5
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); } &&
14108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14109   { (case "(($ac_try" in
14110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111   *) ac_try_echo=$ac_try;;
14112 esac
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114   (eval "$ac_try") 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }; } &&
14118          { ac_try='test -s conftest$ac_exeext'
14119   { (case "(($ac_try" in
14120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121   *) ac_try_echo=$ac_try;;
14122 esac
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124   (eval "$ac_try") 2>&5
14125   ac_status=$?
14126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); }; }; then
14128   eval "$as_ac_var=yes"
14129 else
14130   echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133         eval "$as_ac_var=no"
14134 fi
14135
14136 rm -f core conftest.err conftest.$ac_objext \
14137       conftest$ac_exeext conftest.$ac_ext
14138 fi
14139 ac_res=`eval echo '${'$as_ac_var'}'`
14140                { echo "$as_me:$LINENO: result: $ac_res" >&5
14141 echo "${ECHO_T}$ac_res" >&6; }
14142 if test `eval echo '${'$as_ac_var'}'` = yes; then
14143   cat >>confdefs.h <<_ACEOF
14144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14145 _ACEOF
14146
14147 fi
14148 done
14149
14150
14151
14152
14153 for ac_func in isatty mkdtemp mkstemp
14154 do
14155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14159   echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161   cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h.  */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h.  */
14167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14169 #define $ac_func innocuous_$ac_func
14170
14171 /* System header to define __stub macros and hopefully few prototypes,
14172     which can conflict with char $ac_func (); below.
14173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14174     <limits.h> exists even on freestanding compilers.  */
14175
14176 #ifdef __STDC__
14177 # include <limits.h>
14178 #else
14179 # include <assert.h>
14180 #endif
14181
14182 #undef $ac_func
14183
14184 /* Override any GCC internal prototype to avoid an error.
14185    Use char because int might match the return type of a GCC
14186    builtin and then its argument prototype would still apply.  */
14187 #ifdef __cplusplus
14188 extern "C"
14189 #endif
14190 char $ac_func ();
14191 /* The GNU C library defines this for functions which it implements
14192     to always fail with ENOSYS.  Some functions are actually named
14193     something starting with __ and the normal name is an alias.  */
14194 #if defined __stub_$ac_func || defined __stub___$ac_func
14195 choke me
14196 #endif
14197
14198 int
14199 main ()
14200 {
14201 return $ac_func ();
14202   ;
14203   return 0;
14204 }
14205 _ACEOF
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_link") 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221   { (case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_try") 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest$ac_exeext'
14231   { (case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236   (eval "$ac_try") 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   eval "$as_ac_var=yes"
14241 else
14242   echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14244
14245         eval "$as_ac_var=no"
14246 fi
14247
14248 rm -f core conftest.err conftest.$ac_objext \
14249       conftest$ac_exeext conftest.$ac_ext
14250 fi
14251 ac_res=`eval echo '${'$as_ac_var'}'`
14252                { echo "$as_me:$LINENO: result: $ac_res" >&5
14253 echo "${ECHO_T}$ac_res" >&6; }
14254 if test `eval echo '${'$as_ac_var'}'` = yes; then
14255   cat >>confdefs.h <<_ACEOF
14256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14257 _ACEOF
14258
14259 fi
14260 done
14261
14262
14263
14264
14265
14266
14267
14268 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14269 do
14270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h.  */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h.  */
14282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14284 #define $ac_func innocuous_$ac_func
14285
14286 /* System header to define __stub macros and hopefully few prototypes,
14287     which can conflict with char $ac_func (); below.
14288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14289     <limits.h> exists even on freestanding compilers.  */
14290
14291 #ifdef __STDC__
14292 # include <limits.h>
14293 #else
14294 # include <assert.h>
14295 #endif
14296
14297 #undef $ac_func
14298
14299 /* Override any GCC internal prototype to avoid an error.
14300    Use char because int might match the return type of a GCC
14301    builtin and then its argument prototype would still apply.  */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 char $ac_func ();
14306 /* The GNU C library defines this for functions which it implements
14307     to always fail with ENOSYS.  Some functions are actually named
14308     something starting with __ and the normal name is an alias.  */
14309 #if defined __stub_$ac_func || defined __stub___$ac_func
14310 choke me
14311 #endif
14312
14313 int
14314 main ()
14315 {
14316 return $ac_func ();
14317   ;
14318   return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325   *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328   (eval "$ac_link") 2>conftest.er1
14329   ac_status=$?
14330   grep -v '^ *+' conftest.er1 >conftest.err
14331   rm -f conftest.er1
14332   cat conftest.err >&5
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } &&
14335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14336   { (case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_try") 2>&5
14342   ac_status=$?
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; } &&
14345          { ac_try='test -s conftest$ac_exeext'
14346   { (case "(($ac_try" in
14347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348   *) ac_try_echo=$ac_try;;
14349 esac
14350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14351   (eval "$ac_try") 2>&5
14352   ac_status=$?
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); }; }; then
14355   eval "$as_ac_var=yes"
14356 else
14357   echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14359
14360         eval "$as_ac_var=no"
14361 fi
14362
14363 rm -f core conftest.err conftest.$ac_objext \
14364       conftest$ac_exeext conftest.$ac_ext
14365 fi
14366 ac_res=`eval echo '${'$as_ac_var'}'`
14367                { echo "$as_me:$LINENO: result: $ac_res" >&5
14368 echo "${ECHO_T}$ac_res" >&6; }
14369 if test `eval echo '${'$as_ac_var'}'` = yes; then
14370   cat >>confdefs.h <<_ACEOF
14371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14372 _ACEOF
14373
14374 fi
14375 done
14376
14377
14378
14379
14380 for ac_func in strerror strerror_r setenv
14381 do
14382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14386   echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388   cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h.  */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h.  */
14394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14396 #define $ac_func innocuous_$ac_func
14397
14398 /* System header to define __stub macros and hopefully few prototypes,
14399     which can conflict with char $ac_func (); below.
14400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14401     <limits.h> exists even on freestanding compilers.  */
14402
14403 #ifdef __STDC__
14404 # include <limits.h>
14405 #else
14406 # include <assert.h>
14407 #endif
14408
14409 #undef $ac_func
14410
14411 /* Override any GCC internal prototype to avoid an error.
14412    Use char because int might match the return type of a GCC
14413    builtin and then its argument prototype would still apply.  */
14414 #ifdef __cplusplus
14415 extern "C"
14416 #endif
14417 char $ac_func ();
14418 /* The GNU C library defines this for functions which it implements
14419     to always fail with ENOSYS.  Some functions are actually named
14420     something starting with __ and the normal name is an alias.  */
14421 #if defined __stub_$ac_func || defined __stub___$ac_func
14422 choke me
14423 #endif
14424
14425 int
14426 main ()
14427 {
14428 return $ac_func ();
14429   ;
14430   return 0;
14431 }
14432 _ACEOF
14433 rm -f conftest.$ac_objext conftest$ac_exeext
14434 if { (ac_try="$ac_link"
14435 case "(($ac_try" in
14436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437   *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440   (eval "$ac_link") 2>conftest.er1
14441   ac_status=$?
14442   grep -v '^ *+' conftest.er1 >conftest.err
14443   rm -f conftest.er1
14444   cat conftest.err >&5
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14448   { (case "(($ac_try" in
14449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450   *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453   (eval "$ac_try") 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); }; } &&
14457          { ac_try='test -s conftest$ac_exeext'
14458   { (case "(($ac_try" in
14459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460   *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463   (eval "$ac_try") 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; }; then
14467   eval "$as_ac_var=yes"
14468 else
14469   echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472         eval "$as_ac_var=no"
14473 fi
14474
14475 rm -f core conftest.err conftest.$ac_objext \
14476       conftest$ac_exeext conftest.$ac_ext
14477 fi
14478 ac_res=`eval echo '${'$as_ac_var'}'`
14479                { echo "$as_me:$LINENO: result: $ac_res" >&5
14480 echo "${ECHO_T}$ac_res" >&6; }
14481 if test `eval echo '${'$as_ac_var'}'` = yes; then
14482   cat >>confdefs.h <<_ACEOF
14483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14484 _ACEOF
14485
14486 fi
14487 done
14488
14489
14490
14491
14492
14493 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14494 do
14495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501   cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14509 #define $ac_func innocuous_$ac_func
14510
14511 /* System header to define __stub macros and hopefully few prototypes,
14512     which can conflict with char $ac_func (); below.
14513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514     <limits.h> exists even on freestanding compilers.  */
14515
14516 #ifdef __STDC__
14517 # include <limits.h>
14518 #else
14519 # include <assert.h>
14520 #endif
14521
14522 #undef $ac_func
14523
14524 /* Override any GCC internal prototype to avoid an error.
14525    Use char because int might match the return type of a GCC
14526    builtin and then its argument prototype would still apply.  */
14527 #ifdef __cplusplus
14528 extern "C"
14529 #endif
14530 char $ac_func ();
14531 /* The GNU C library defines this for functions which it implements
14532     to always fail with ENOSYS.  Some functions are actually named
14533     something starting with __ and the normal name is an alias.  */
14534 #if defined __stub_$ac_func || defined __stub___$ac_func
14535 choke me
14536 #endif
14537
14538 int
14539 main ()
14540 {
14541 return $ac_func ();
14542   ;
14543   return 0;
14544 }
14545 _ACEOF
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550   *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553   (eval "$ac_link") 2>conftest.er1
14554   ac_status=$?
14555   grep -v '^ *+' conftest.er1 >conftest.err
14556   rm -f conftest.er1
14557   cat conftest.err >&5
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } &&
14560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561   { (case "(($ac_try" in
14562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563   *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566   (eval "$ac_try") 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; } &&
14570          { ac_try='test -s conftest$ac_exeext'
14571   { (case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_try") 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; }; then
14580   eval "$as_ac_var=yes"
14581 else
14582   echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585         eval "$as_ac_var=no"
14586 fi
14587
14588 rm -f core conftest.err conftest.$ac_objext \
14589       conftest$ac_exeext conftest.$ac_ext
14590 fi
14591 ac_res=`eval echo '${'$as_ac_var'}'`
14592                { echo "$as_me:$LINENO: result: $ac_res" >&5
14593 echo "${ECHO_T}$ac_res" >&6; }
14594 if test `eval echo '${'$as_ac_var'}'` = yes; then
14595   cat >>confdefs.h <<_ACEOF
14596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14597 _ACEOF
14598
14599 fi
14600 done
14601
14602
14603
14604
14605
14606
14607 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14608 do
14609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14613   echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615   cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h.  */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h.  */
14621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14623 #define $ac_func innocuous_$ac_func
14624
14625 /* System header to define __stub macros and hopefully few prototypes,
14626     which can conflict with char $ac_func (); below.
14627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14628     <limits.h> exists even on freestanding compilers.  */
14629
14630 #ifdef __STDC__
14631 # include <limits.h>
14632 #else
14633 # include <assert.h>
14634 #endif
14635
14636 #undef $ac_func
14637
14638 /* Override any GCC internal prototype to avoid an error.
14639    Use char because int might match the return type of a GCC
14640    builtin and then its argument prototype would still apply.  */
14641 #ifdef __cplusplus
14642 extern "C"
14643 #endif
14644 char $ac_func ();
14645 /* The GNU C library defines this for functions which it implements
14646     to always fail with ENOSYS.  Some functions are actually named
14647     something starting with __ and the normal name is an alias.  */
14648 #if defined __stub_$ac_func || defined __stub___$ac_func
14649 choke me
14650 #endif
14651
14652 int
14653 main ()
14654 {
14655 return $ac_func ();
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 rm -f conftest.$ac_objext conftest$ac_exeext
14661 if { (ac_try="$ac_link"
14662 case "(($ac_try" in
14663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664   *) ac_try_echo=$ac_try;;
14665 esac
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667   (eval "$ac_link") 2>conftest.er1
14668   ac_status=$?
14669   grep -v '^ *+' conftest.er1 >conftest.err
14670   rm -f conftest.er1
14671   cat conftest.err >&5
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); } &&
14674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14675   { (case "(($ac_try" in
14676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677   *) ac_try_echo=$ac_try;;
14678 esac
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680   (eval "$ac_try") 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; } &&
14684          { ac_try='test -s conftest$ac_exeext'
14685   { (case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_try") 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; }; then
14694   eval "$as_ac_var=yes"
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699         eval "$as_ac_var=no"
14700 fi
14701
14702 rm -f core conftest.err conftest.$ac_objext \
14703       conftest$ac_exeext conftest.$ac_ext
14704 fi
14705 ac_res=`eval echo '${'$as_ac_var'}'`
14706                { echo "$as_me:$LINENO: result: $ac_res" >&5
14707 echo "${ECHO_T}$ac_res" >&6; }
14708 if test `eval echo '${'$as_ac_var'}'` = yes; then
14709   cat >>confdefs.h <<_ACEOF
14710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14711 _ACEOF
14712
14713 fi
14714 done
14715
14716
14717
14718 for ac_func in futimes futimens
14719 do
14720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726   cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14734 #define $ac_func innocuous_$ac_func
14735
14736 /* System header to define __stub macros and hopefully few prototypes,
14737     which can conflict with char $ac_func (); below.
14738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14739     <limits.h> exists even on freestanding compilers.  */
14740
14741 #ifdef __STDC__
14742 # include <limits.h>
14743 #else
14744 # include <assert.h>
14745 #endif
14746
14747 #undef $ac_func
14748
14749 /* Override any GCC internal prototype to avoid an error.
14750    Use char because int might match the return type of a GCC
14751    builtin and then its argument prototype would still apply.  */
14752 #ifdef __cplusplus
14753 extern "C"
14754 #endif
14755 char $ac_func ();
14756 /* The GNU C library defines this for functions which it implements
14757     to always fail with ENOSYS.  Some functions are actually named
14758     something starting with __ and the normal name is an alias.  */
14759 #if defined __stub_$ac_func || defined __stub___$ac_func
14760 choke me
14761 #endif
14762
14763 int
14764 main ()
14765 {
14766 return $ac_func ();
14767   ;
14768   return 0;
14769 }
14770 _ACEOF
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (ac_try="$ac_link"
14773 case "(($ac_try" in
14774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775   *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778   (eval "$ac_link") 2>conftest.er1
14779   ac_status=$?
14780   grep -v '^ *+' conftest.er1 >conftest.err
14781   rm -f conftest.er1
14782   cat conftest.err >&5
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } &&
14785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786   { (case "(($ac_try" in
14787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788   *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791   (eval "$ac_try") 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); }; } &&
14795          { ac_try='test -s conftest$ac_exeext'
14796   { (case "(($ac_try" in
14797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798   *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801   (eval "$ac_try") 2>&5
14802   ac_status=$?
14803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804   (exit $ac_status); }; }; then
14805   eval "$as_ac_var=yes"
14806 else
14807   echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810         eval "$as_ac_var=no"
14811 fi
14812
14813 rm -f core conftest.err conftest.$ac_objext \
14814       conftest$ac_exeext conftest.$ac_ext
14815 fi
14816 ac_res=`eval echo '${'$as_ac_var'}'`
14817                { echo "$as_me:$LINENO: result: $ac_res" >&5
14818 echo "${ECHO_T}$ac_res" >&6; }
14819 if test `eval echo '${'$as_ac_var'}'` = yes; then
14820   cat >>confdefs.h <<_ACEOF
14821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14822 _ACEOF
14823
14824 fi
14825 done
14826
14827 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14828 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14829 if test "${llvm_cv_c_printf_a+set}" = set; then
14830   echo $ECHO_N "(cached) $ECHO_C" >&6
14831 else
14832   ac_ext=c
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14837
14838  if test "$cross_compiling" = yes; then
14839   llvmac_cv_c_printf_a=no
14840 else
14841   cat >conftest.$ac_ext <<_ACEOF
14842
14843   /* confdefs.h.  */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h.  */
14848
14849 #include <stdio.h>
14850 #include <stdlib.h>
14851
14852 int
14853 main ()
14854 {
14855
14856 volatile double A, B;
14857 char Buffer[100];
14858 A = 1;
14859 A /= 10.0;
14860 sprintf(Buffer, "%a", A);
14861 B = atof(Buffer);
14862 if (A != B)
14863   return (1);
14864 if (A != 0x1.999999999999ap-4)
14865   return (1);
14866 return (0);
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 rm -f conftest$ac_exeext
14872 if { (ac_try="$ac_link"
14873 case "(($ac_try" in
14874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875   *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878   (eval "$ac_link") 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14882   { (case "(($ac_try" in
14883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884   *) ac_try_echo=$ac_try;;
14885 esac
14886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14887   (eval "$ac_try") 2>&5
14888   ac_status=$?
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); }; }; then
14891   llvm_cv_c_printf_a=yes
14892 else
14893   echo "$as_me: program exited with status $ac_status" >&5
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897 ( exit $ac_status )
14898 llvmac_cv_c_printf_a=no
14899 fi
14900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14901 fi
14902
14903
14904  ac_ext=c
14905 ac_cpp='$CPP $CPPFLAGS'
14906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14909
14910 fi
14911 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14912 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14913  if test "$llvm_cv_c_printf_a" = "yes"; then
14914
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_PRINTF_A 1
14917 _ACEOF
14918
14919  fi
14920
14921
14922
14923   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14924 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14925 if test "${ac_cv_func_rand48+set}" = set; then
14926   echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928
14929     ac_ext=cpp
14930 ac_cpp='$CXXCPP $CPPFLAGS'
14931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14934
14935     cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h.  */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h.  */
14941 #include <stdlib.h>
14942 int
14943 main ()
14944 {
14945 srand48(0);lrand48();drand48();
14946   ;
14947   return 0;
14948 }
14949 _ACEOF
14950 rm -f conftest.$ac_objext
14951 if { (ac_try="$ac_compile"
14952 case "(($ac_try" in
14953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954   *) ac_try_echo=$ac_try;;
14955 esac
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957   (eval "$ac_compile") 2>conftest.er1
14958   ac_status=$?
14959   grep -v '^ *+' conftest.er1 >conftest.err
14960   rm -f conftest.er1
14961   cat conftest.err >&5
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); } &&
14964          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14965   { (case "(($ac_try" in
14966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967   *) ac_try_echo=$ac_try;;
14968 esac
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970   (eval "$ac_try") 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); }; } &&
14974          { ac_try='test -s conftest.$ac_objext'
14975   { (case "(($ac_try" in
14976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977   *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980   (eval "$ac_try") 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; }; then
14984   ac_cv_func_rand48=yes
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989         ac_cv_func_rand48=no
14990 fi
14991
14992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14993     ac_ext=c
14994 ac_cpp='$CPP $CPPFLAGS'
14995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14998
14999
15000 fi
15001 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15002 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15003
15004 if test "$ac_cv_func_rand48" = "yes" ; then
15005
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_RAND48 1
15008 _ACEOF
15009
15010 fi
15011
15012
15013 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15014 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15015 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018   cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 $ac_includes_default
15025 int
15026 main ()
15027 {
15028 #ifndef arc4random
15029   char *p = (char *) arc4random;
15030   return !p;
15031 #endif
15032
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext
15038 if { (ac_try="$ac_compile"
15039 case "(($ac_try" in
15040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041   *) ac_try_echo=$ac_try;;
15042 esac
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044   (eval "$ac_compile") 2>conftest.er1
15045   ac_status=$?
15046   grep -v '^ *+' conftest.er1 >conftest.err
15047   rm -f conftest.er1
15048   cat conftest.err >&5
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } &&
15051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052   { (case "(($ac_try" in
15053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054   *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057   (eval "$ac_try") 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; } &&
15061          { ac_try='test -s conftest.$ac_objext'
15062   { (case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067   (eval "$ac_try") 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; }; then
15071   ac_cv_have_decl_arc4random=yes
15072 else
15073   echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076         ac_cv_have_decl_arc4random=no
15077 fi
15078
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 fi
15081 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15082 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15083 if test $ac_cv_have_decl_arc4random = yes; then
15084
15085 cat >>confdefs.h <<_ACEOF
15086 #define HAVE_DECL_ARC4RANDOM 1
15087 _ACEOF
15088
15089
15090 else
15091   cat >>confdefs.h <<_ACEOF
15092 #define HAVE_DECL_ARC4RANDOM 0
15093 _ACEOF
15094
15095
15096 fi
15097
15098
15099
15100 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15101 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15102 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h.  */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h.  */
15111 $ac_includes_default
15112 int
15113 main ()
15114 {
15115 #ifndef strerror_s
15116   char *p = (char *) strerror_s;
15117   return !p;
15118 #endif
15119
15120   ;
15121   return 0;
15122 }
15123 _ACEOF
15124 rm -f conftest.$ac_objext
15125 if { (ac_try="$ac_compile"
15126 case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131   (eval "$ac_compile") 2>conftest.er1
15132   ac_status=$?
15133   grep -v '^ *+' conftest.er1 >conftest.err
15134   rm -f conftest.er1
15135   cat conftest.err >&5
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); } &&
15138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139   { (case "(($ac_try" in
15140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141   *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144   (eval "$ac_try") 2>&5
15145   ac_status=$?
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); }; } &&
15148          { ac_try='test -s conftest.$ac_objext'
15149   { (case "(($ac_try" in
15150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151   *) ac_try_echo=$ac_try;;
15152 esac
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154   (eval "$ac_try") 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; }; then
15158   ac_cv_have_decl_strerror_s=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163         ac_cv_have_decl_strerror_s=no
15164 fi
15165
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167 fi
15168 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15169 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15170 if test $ac_cv_have_decl_strerror_s = yes; then
15171
15172 cat >>confdefs.h <<_ACEOF
15173 #define HAVE_DECL_STRERROR_S 1
15174 _ACEOF
15175
15176
15177 else
15178   cat >>confdefs.h <<_ACEOF
15179 #define HAVE_DECL_STRERROR_S 0
15180 _ACEOF
15181
15182
15183 fi
15184
15185
15186
15187 if test "$llvm_cv_os_type" = "MingW" ; then
15188   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15189 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15190 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   ac_check_lib_save_LIBS=$LIBS
15194 LIBS="-lgcc  $LIBS"
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h.  */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h.  */
15201
15202 /* Override any GCC internal prototype to avoid an error.
15203    Use char because int might match the return type of a GCC
15204    builtin and then its argument prototype would still apply.  */
15205 #ifdef __cplusplus
15206 extern "C"
15207 #endif
15208 char _alloca ();
15209 int
15210 main ()
15211 {
15212 return _alloca ();
15213   ;
15214   return 0;
15215 }
15216 _ACEOF
15217 rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (ac_try="$ac_link"
15219 case "(($ac_try" in
15220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221   *) ac_try_echo=$ac_try;;
15222 esac
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224   (eval "$ac_link") 2>conftest.er1
15225   ac_status=$?
15226   grep -v '^ *+' conftest.er1 >conftest.err
15227   rm -f conftest.er1
15228   cat conftest.err >&5
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); } &&
15231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232   { (case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_try") 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; } &&
15241          { ac_try='test -s conftest$ac_exeext'
15242   { (case "(($ac_try" in
15243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244   *) ac_try_echo=$ac_try;;
15245 esac
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247   (eval "$ac_try") 2>&5
15248   ac_status=$?
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); }; }; then
15251   ac_cv_lib_gcc__alloca=yes
15252 else
15253   echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256         ac_cv_lib_gcc__alloca=no
15257 fi
15258
15259 rm -f core conftest.err conftest.$ac_objext \
15260       conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$ac_check_lib_save_LIBS
15262 fi
15263 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15264 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15265 if test $ac_cv_lib_gcc__alloca = yes; then
15266
15267 cat >>confdefs.h <<\_ACEOF
15268 #define HAVE__ALLOCA 1
15269 _ACEOF
15270
15271 fi
15272
15273   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15274 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15275 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278   ac_check_lib_save_LIBS=$LIBS
15279 LIBS="-lgcc  $LIBS"
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h.  */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h.  */
15286
15287 /* Override any GCC internal prototype to avoid an error.
15288    Use char because int might match the return type of a GCC
15289    builtin and then its argument prototype would still apply.  */
15290 #ifdef __cplusplus
15291 extern "C"
15292 #endif
15293 char __alloca ();
15294 int
15295 main ()
15296 {
15297 return __alloca ();
15298   ;
15299   return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
15304 case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_link") 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317   { (case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_try") 2>&5
15323   ac_status=$?
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); }; } &&
15326          { ac_try='test -s conftest$ac_exeext'
15327   { (case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_try") 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; }; then
15336   ac_cv_lib_gcc___alloca=yes
15337 else
15338   echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15340
15341         ac_cv_lib_gcc___alloca=no
15342 fi
15343
15344 rm -f core conftest.err conftest.$ac_objext \
15345       conftest$ac_exeext conftest.$ac_ext
15346 LIBS=$ac_check_lib_save_LIBS
15347 fi
15348 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15349 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15350 if test $ac_cv_lib_gcc___alloca = yes; then
15351
15352 cat >>confdefs.h <<\_ACEOF
15353 #define HAVE___ALLOCA 1
15354 _ACEOF
15355
15356 fi
15357
15358   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15359 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15360 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15361   echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363   ac_check_lib_save_LIBS=$LIBS
15364 LIBS="-lgcc  $LIBS"
15365 cat >conftest.$ac_ext <<_ACEOF
15366 /* confdefs.h.  */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h.  */
15371
15372 /* Override any GCC internal prototype to avoid an error.
15373    Use char because int might match the return type of a GCC
15374    builtin and then its argument prototype would still apply.  */
15375 #ifdef __cplusplus
15376 extern "C"
15377 #endif
15378 char __chkstk ();
15379 int
15380 main ()
15381 {
15382 return __chkstk ();
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 rm -f conftest.$ac_objext conftest$ac_exeext
15388 if { (ac_try="$ac_link"
15389 case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394   (eval "$ac_link") 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } &&
15401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15402   { (case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407   (eval "$ac_try") 2>&5
15408   ac_status=$?
15409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); }; } &&
15411          { ac_try='test -s conftest$ac_exeext'
15412   { (case "(($ac_try" in
15413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414   *) ac_try_echo=$ac_try;;
15415 esac
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417   (eval "$ac_try") 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); }; }; then
15421   ac_cv_lib_gcc___chkstk=yes
15422 else
15423   echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15425
15426         ac_cv_lib_gcc___chkstk=no
15427 fi
15428
15429 rm -f core conftest.err conftest.$ac_objext \
15430       conftest$ac_exeext conftest.$ac_ext
15431 LIBS=$ac_check_lib_save_LIBS
15432 fi
15433 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15434 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15435 if test $ac_cv_lib_gcc___chkstk = yes; then
15436
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE___CHKSTK 1
15439 _ACEOF
15440
15441 fi
15442
15443   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15444 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15445 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15446   echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448   ac_check_lib_save_LIBS=$LIBS
15449 LIBS="-lgcc  $LIBS"
15450 cat >conftest.$ac_ext <<_ACEOF
15451 /* confdefs.h.  */
15452 _ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h.  */
15456
15457 /* Override any GCC internal prototype to avoid an error.
15458    Use char because int might match the return type of a GCC
15459    builtin and then its argument prototype would still apply.  */
15460 #ifdef __cplusplus
15461 extern "C"
15462 #endif
15463 char __chkstk_ms ();
15464 int
15465 main ()
15466 {
15467 return __chkstk_ms ();
15468   ;
15469   return 0;
15470 }
15471 _ACEOF
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476   *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479   (eval "$ac_link") 2>conftest.er1
15480   ac_status=$?
15481   grep -v '^ *+' conftest.er1 >conftest.err
15482   rm -f conftest.er1
15483   cat conftest.err >&5
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); } &&
15486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15487   { (case "(($ac_try" in
15488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489   *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492   (eval "$ac_try") 2>&5
15493   ac_status=$?
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); }; } &&
15496          { ac_try='test -s conftest$ac_exeext'
15497   { (case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502   (eval "$ac_try") 2>&5
15503   ac_status=$?
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); }; }; then
15506   ac_cv_lib_gcc___chkstk_ms=yes
15507 else
15508   echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15510
15511         ac_cv_lib_gcc___chkstk_ms=no
15512 fi
15513
15514 rm -f core conftest.err conftest.$ac_objext \
15515       conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15517 fi
15518 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15519 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15520 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15521
15522 cat >>confdefs.h <<\_ACEOF
15523 #define HAVE___CHKSTK_MS 1
15524 _ACEOF
15525
15526 fi
15527
15528   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15529 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15530 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15531   echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533   ac_check_lib_save_LIBS=$LIBS
15534 LIBS="-lgcc  $LIBS"
15535 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h.  */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h.  */
15541
15542 /* Override any GCC internal prototype to avoid an error.
15543    Use char because int might match the return type of a GCC
15544    builtin and then its argument prototype would still apply.  */
15545 #ifdef __cplusplus
15546 extern "C"
15547 #endif
15548 char ___chkstk ();
15549 int
15550 main ()
15551 {
15552 return ___chkstk ();
15553   ;
15554   return 0;
15555 }
15556 _ACEOF
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (ac_try="$ac_link"
15559 case "(($ac_try" in
15560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561   *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564   (eval "$ac_link") 2>conftest.er1
15565   ac_status=$?
15566   grep -v '^ *+' conftest.er1 >conftest.err
15567   rm -f conftest.er1
15568   cat conftest.err >&5
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } &&
15571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15572   { (case "(($ac_try" in
15573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574   *) ac_try_echo=$ac_try;;
15575 esac
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577   (eval "$ac_try") 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; } &&
15581          { ac_try='test -s conftest$ac_exeext'
15582   { (case "(($ac_try" in
15583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584   *) ac_try_echo=$ac_try;;
15585 esac
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587   (eval "$ac_try") 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; }; then
15591   ac_cv_lib_gcc____chkstk=yes
15592 else
15593   echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15595
15596         ac_cv_lib_gcc____chkstk=no
15597 fi
15598
15599 rm -f core conftest.err conftest.$ac_objext \
15600       conftest$ac_exeext conftest.$ac_ext
15601 LIBS=$ac_check_lib_save_LIBS
15602 fi
15603 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15604 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15605 if test $ac_cv_lib_gcc____chkstk = yes; then
15606
15607 cat >>confdefs.h <<\_ACEOF
15608 #define HAVE____CHKSTK 1
15609 _ACEOF
15610
15611 fi
15612
15613   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15614 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15615 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15616   echo $ECHO_N "(cached) $ECHO_C" >&6
15617 else
15618   ac_check_lib_save_LIBS=$LIBS
15619 LIBS="-lgcc  $LIBS"
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h.  */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h.  */
15626
15627 /* Override any GCC internal prototype to avoid an error.
15628    Use char because int might match the return type of a GCC
15629    builtin and then its argument prototype would still apply.  */
15630 #ifdef __cplusplus
15631 extern "C"
15632 #endif
15633 char ___chkstk_ms ();
15634 int
15635 main ()
15636 {
15637 return ___chkstk_ms ();
15638   ;
15639   return 0;
15640 }
15641 _ACEOF
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (ac_try="$ac_link"
15644 case "(($ac_try" in
15645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646   *) ac_try_echo=$ac_try;;
15647 esac
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649   (eval "$ac_link") 2>conftest.er1
15650   ac_status=$?
15651   grep -v '^ *+' conftest.er1 >conftest.err
15652   rm -f conftest.er1
15653   cat conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } &&
15656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15657   { (case "(($ac_try" in
15658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659   *) ac_try_echo=$ac_try;;
15660 esac
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662   (eval "$ac_try") 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); }; } &&
15666          { ac_try='test -s conftest$ac_exeext'
15667   { (case "(($ac_try" in
15668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669   *) ac_try_echo=$ac_try;;
15670 esac
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672   (eval "$ac_try") 2>&5
15673   ac_status=$?
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); }; }; then
15676   ac_cv_lib_gcc____chkstk_ms=yes
15677 else
15678   echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15680
15681         ac_cv_lib_gcc____chkstk_ms=no
15682 fi
15683
15684 rm -f core conftest.err conftest.$ac_objext \
15685       conftest$ac_exeext conftest.$ac_ext
15686 LIBS=$ac_check_lib_save_LIBS
15687 fi
15688 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15689 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15690 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15691
15692 cat >>confdefs.h <<\_ACEOF
15693 #define HAVE____CHKSTK_MS 1
15694 _ACEOF
15695
15696 fi
15697
15698
15699   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15700 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15701 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15702   echo $ECHO_N "(cached) $ECHO_C" >&6
15703 else
15704   ac_check_lib_save_LIBS=$LIBS
15705 LIBS="-lgcc  $LIBS"
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712
15713 /* Override any GCC internal prototype to avoid an error.
15714    Use char because int might match the return type of a GCC
15715    builtin and then its argument prototype would still apply.  */
15716 #ifdef __cplusplus
15717 extern "C"
15718 #endif
15719 char __ashldi3 ();
15720 int
15721 main ()
15722 {
15723 return __ashldi3 ();
15724   ;
15725   return 0;
15726 }
15727 _ACEOF
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (ac_try="$ac_link"
15730 case "(($ac_try" in
15731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732   *) ac_try_echo=$ac_try;;
15733 esac
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735   (eval "$ac_link") 2>conftest.er1
15736   ac_status=$?
15737   grep -v '^ *+' conftest.er1 >conftest.err
15738   rm -f conftest.er1
15739   cat conftest.err >&5
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); } &&
15742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15743   { (case "(($ac_try" in
15744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745   *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748   (eval "$ac_try") 2>&5
15749   ac_status=$?
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); }; } &&
15752          { ac_try='test -s conftest$ac_exeext'
15753   { (case "(($ac_try" in
15754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755   *) ac_try_echo=$ac_try;;
15756 esac
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758   (eval "$ac_try") 2>&5
15759   ac_status=$?
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); }; }; then
15762   ac_cv_lib_gcc___ashldi3=yes
15763 else
15764   echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15766
15767         ac_cv_lib_gcc___ashldi3=no
15768 fi
15769
15770 rm -f core conftest.err conftest.$ac_objext \
15771       conftest$ac_exeext conftest.$ac_ext
15772 LIBS=$ac_check_lib_save_LIBS
15773 fi
15774 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15775 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15776 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15777
15778 cat >>confdefs.h <<\_ACEOF
15779 #define HAVE___ASHLDI3 1
15780 _ACEOF
15781
15782 fi
15783
15784   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15785 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15786 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15787   echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789   ac_check_lib_save_LIBS=$LIBS
15790 LIBS="-lgcc  $LIBS"
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797
15798 /* Override any GCC internal prototype to avoid an error.
15799    Use char because int might match the return type of a GCC
15800    builtin and then its argument prototype would still apply.  */
15801 #ifdef __cplusplus
15802 extern "C"
15803 #endif
15804 char __ashrdi3 ();
15805 int
15806 main ()
15807 {
15808 return __ashrdi3 ();
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (ac_try="$ac_link"
15815 case "(($ac_try" in
15816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817   *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820   (eval "$ac_link") 2>conftest.er1
15821   ac_status=$?
15822   grep -v '^ *+' conftest.er1 >conftest.err
15823   rm -f conftest.er1
15824   cat conftest.err >&5
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } &&
15827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15828   { (case "(($ac_try" in
15829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830   *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833   (eval "$ac_try") 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; } &&
15837          { ac_try='test -s conftest$ac_exeext'
15838   { (case "(($ac_try" in
15839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840   *) ac_try_echo=$ac_try;;
15841 esac
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843   (eval "$ac_try") 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; }; then
15847   ac_cv_lib_gcc___ashrdi3=yes
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852         ac_cv_lib_gcc___ashrdi3=no
15853 fi
15854
15855 rm -f core conftest.err conftest.$ac_objext \
15856       conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15858 fi
15859 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15860 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15861 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15862
15863 cat >>confdefs.h <<\_ACEOF
15864 #define HAVE___ASHRDI3 1
15865 _ACEOF
15866
15867 fi
15868
15869   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15870 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15871 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15872   echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874   ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-lgcc  $LIBS"
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882
15883 /* Override any GCC internal prototype to avoid an error.
15884    Use char because int might match the return type of a GCC
15885    builtin and then its argument prototype would still apply.  */
15886 #ifdef __cplusplus
15887 extern "C"
15888 #endif
15889 char __divdi3 ();
15890 int
15891 main ()
15892 {
15893 return __divdi3 ();
15894   ;
15895   return 0;
15896 }
15897 _ACEOF
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902   *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905   (eval "$ac_link") 2>conftest.er1
15906   ac_status=$?
15907   grep -v '^ *+' conftest.er1 >conftest.err
15908   rm -f conftest.er1
15909   cat conftest.err >&5
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); } &&
15912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15913   { (case "(($ac_try" in
15914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915   *) ac_try_echo=$ac_try;;
15916 esac
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918   (eval "$ac_try") 2>&5
15919   ac_status=$?
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); }; } &&
15922          { ac_try='test -s conftest$ac_exeext'
15923   { (case "(($ac_try" in
15924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925   *) ac_try_echo=$ac_try;;
15926 esac
15927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928   (eval "$ac_try") 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; }; then
15932   ac_cv_lib_gcc___divdi3=yes
15933 else
15934   echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937         ac_cv_lib_gcc___divdi3=no
15938 fi
15939
15940 rm -f core conftest.err conftest.$ac_objext \
15941       conftest$ac_exeext conftest.$ac_ext
15942 LIBS=$ac_check_lib_save_LIBS
15943 fi
15944 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15945 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15946 if test $ac_cv_lib_gcc___divdi3 = yes; then
15947
15948 cat >>confdefs.h <<\_ACEOF
15949 #define HAVE___DIVDI3 1
15950 _ACEOF
15951
15952 fi
15953
15954   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15955 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15956 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15957   echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959   ac_check_lib_save_LIBS=$LIBS
15960 LIBS="-lgcc  $LIBS"
15961 cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967
15968 /* Override any GCC internal prototype to avoid an error.
15969    Use char because int might match the return type of a GCC
15970    builtin and then its argument prototype would still apply.  */
15971 #ifdef __cplusplus
15972 extern "C"
15973 #endif
15974 char __fixdfdi ();
15975 int
15976 main ()
15977 {
15978 return __fixdfdi ();
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 rm -f conftest.$ac_objext conftest$ac_exeext
15984 if { (ac_try="$ac_link"
15985 case "(($ac_try" in
15986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987   *) ac_try_echo=$ac_try;;
15988 esac
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990   (eval "$ac_link") 2>conftest.er1
15991   ac_status=$?
15992   grep -v '^ *+' conftest.er1 >conftest.err
15993   rm -f conftest.er1
15994   cat conftest.err >&5
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } &&
15997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15998   { (case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_try") 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; } &&
16007          { ac_try='test -s conftest$ac_exeext'
16008   { (case "(($ac_try" in
16009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010   *) ac_try_echo=$ac_try;;
16011 esac
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013   (eval "$ac_try") 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); }; }; then
16017   ac_cv_lib_gcc___fixdfdi=yes
16018 else
16019   echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022         ac_cv_lib_gcc___fixdfdi=no
16023 fi
16024
16025 rm -f core conftest.err conftest.$ac_objext \
16026       conftest$ac_exeext conftest.$ac_ext
16027 LIBS=$ac_check_lib_save_LIBS
16028 fi
16029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16030 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16031 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16032
16033 cat >>confdefs.h <<\_ACEOF
16034 #define HAVE___FIXDFDI 1
16035 _ACEOF
16036
16037 fi
16038
16039   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16040 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16041 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16042   echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044   ac_check_lib_save_LIBS=$LIBS
16045 LIBS="-lgcc  $LIBS"
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h.  */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h.  */
16052
16053 /* Override any GCC internal prototype to avoid an error.
16054    Use char because int might match the return type of a GCC
16055    builtin and then its argument prototype would still apply.  */
16056 #ifdef __cplusplus
16057 extern "C"
16058 #endif
16059 char __fixsfdi ();
16060 int
16061 main ()
16062 {
16063 return __fixsfdi ();
16064   ;
16065   return 0;
16066 }
16067 _ACEOF
16068 rm -f conftest.$ac_objext conftest$ac_exeext
16069 if { (ac_try="$ac_link"
16070 case "(($ac_try" in
16071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072   *) ac_try_echo=$ac_try;;
16073 esac
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075   (eval "$ac_link") 2>conftest.er1
16076   ac_status=$?
16077   grep -v '^ *+' conftest.er1 >conftest.err
16078   rm -f conftest.er1
16079   cat conftest.err >&5
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   (exit $ac_status); } &&
16082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16083   { (case "(($ac_try" in
16084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085   *) ac_try_echo=$ac_try;;
16086 esac
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088   (eval "$ac_try") 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; } &&
16092          { ac_try='test -s conftest$ac_exeext'
16093   { (case "(($ac_try" in
16094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095   *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098   (eval "$ac_try") 2>&5
16099   ac_status=$?
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); }; }; then
16102   ac_cv_lib_gcc___fixsfdi=yes
16103 else
16104   echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107         ac_cv_lib_gcc___fixsfdi=no
16108 fi
16109
16110 rm -f core conftest.err conftest.$ac_objext \
16111       conftest$ac_exeext conftest.$ac_ext
16112 LIBS=$ac_check_lib_save_LIBS
16113 fi
16114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16115 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16116 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16117
16118 cat >>confdefs.h <<\_ACEOF
16119 #define HAVE___FIXSFDI 1
16120 _ACEOF
16121
16122 fi
16123
16124   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16125 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16126 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16127   echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129   ac_check_lib_save_LIBS=$LIBS
16130 LIBS="-lgcc  $LIBS"
16131 cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137
16138 /* Override any GCC internal prototype to avoid an error.
16139    Use char because int might match the return type of a GCC
16140    builtin and then its argument prototype would still apply.  */
16141 #ifdef __cplusplus
16142 extern "C"
16143 #endif
16144 char __floatdidf ();
16145 int
16146 main ()
16147 {
16148 return __floatdidf ();
16149   ;
16150   return 0;
16151 }
16152 _ACEOF
16153 rm -f conftest.$ac_objext conftest$ac_exeext
16154 if { (ac_try="$ac_link"
16155 case "(($ac_try" in
16156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157   *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160   (eval "$ac_link") 2>conftest.er1
16161   ac_status=$?
16162   grep -v '^ *+' conftest.er1 >conftest.err
16163   rm -f conftest.er1
16164   cat conftest.err >&5
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } &&
16167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16168   { (case "(($ac_try" in
16169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170   *) ac_try_echo=$ac_try;;
16171 esac
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173   (eval "$ac_try") 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; } &&
16177          { ac_try='test -s conftest$ac_exeext'
16178   { (case "(($ac_try" in
16179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180   *) ac_try_echo=$ac_try;;
16181 esac
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183   (eval "$ac_try") 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; }; then
16187   ac_cv_lib_gcc___floatdidf=yes
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192         ac_cv_lib_gcc___floatdidf=no
16193 fi
16194
16195 rm -f core conftest.err conftest.$ac_objext \
16196       conftest$ac_exeext conftest.$ac_ext
16197 LIBS=$ac_check_lib_save_LIBS
16198 fi
16199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16200 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16201 if test $ac_cv_lib_gcc___floatdidf = yes; then
16202
16203 cat >>confdefs.h <<\_ACEOF
16204 #define HAVE___FLOATDIDF 1
16205 _ACEOF
16206
16207 fi
16208
16209   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16210 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16211 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16212   echo $ECHO_N "(cached) $ECHO_C" >&6
16213 else
16214   ac_check_lib_save_LIBS=$LIBS
16215 LIBS="-lgcc  $LIBS"
16216 cat >conftest.$ac_ext <<_ACEOF
16217 /* confdefs.h.  */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h.  */
16222
16223 /* Override any GCC internal prototype to avoid an error.
16224    Use char because int might match the return type of a GCC
16225    builtin and then its argument prototype would still apply.  */
16226 #ifdef __cplusplus
16227 extern "C"
16228 #endif
16229 char __lshrdi3 ();
16230 int
16231 main ()
16232 {
16233 return __lshrdi3 ();
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext conftest$ac_exeext
16239 if { (ac_try="$ac_link"
16240 case "(($ac_try" in
16241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242   *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245   (eval "$ac_link") 2>conftest.er1
16246   ac_status=$?
16247   grep -v '^ *+' conftest.er1 >conftest.err
16248   rm -f conftest.er1
16249   cat conftest.err >&5
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); } &&
16252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16253   { (case "(($ac_try" in
16254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255   *) ac_try_echo=$ac_try;;
16256 esac
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258   (eval "$ac_try") 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); }; } &&
16262          { ac_try='test -s conftest$ac_exeext'
16263   { (case "(($ac_try" in
16264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265   *) ac_try_echo=$ac_try;;
16266 esac
16267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16268   (eval "$ac_try") 2>&5
16269   ac_status=$?
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); }; }; then
16272   ac_cv_lib_gcc___lshrdi3=yes
16273 else
16274   echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277         ac_cv_lib_gcc___lshrdi3=no
16278 fi
16279
16280 rm -f core conftest.err conftest.$ac_objext \
16281       conftest$ac_exeext conftest.$ac_ext
16282 LIBS=$ac_check_lib_save_LIBS
16283 fi
16284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16285 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16286 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16287
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE___LSHRDI3 1
16290 _ACEOF
16291
16292 fi
16293
16294   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16295 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16296 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16297   echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299   ac_check_lib_save_LIBS=$LIBS
16300 LIBS="-lgcc  $LIBS"
16301 cat >conftest.$ac_ext <<_ACEOF
16302 /* confdefs.h.  */
16303 _ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h.  */
16307
16308 /* Override any GCC internal prototype to avoid an error.
16309    Use char because int might match the return type of a GCC
16310    builtin and then its argument prototype would still apply.  */
16311 #ifdef __cplusplus
16312 extern "C"
16313 #endif
16314 char __moddi3 ();
16315 int
16316 main ()
16317 {
16318 return __moddi3 ();
16319   ;
16320   return 0;
16321 }
16322 _ACEOF
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (ac_try="$ac_link"
16325 case "(($ac_try" in
16326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327   *) ac_try_echo=$ac_try;;
16328 esac
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330   (eval "$ac_link") 2>conftest.er1
16331   ac_status=$?
16332   grep -v '^ *+' conftest.er1 >conftest.err
16333   rm -f conftest.er1
16334   cat conftest.err >&5
16335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336   (exit $ac_status); } &&
16337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16338   { (case "(($ac_try" in
16339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340   *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343   (eval "$ac_try") 2>&5
16344   ac_status=$?
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); }; } &&
16347          { ac_try='test -s conftest$ac_exeext'
16348   { (case "(($ac_try" in
16349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350   *) ac_try_echo=$ac_try;;
16351 esac
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353   (eval "$ac_try") 2>&5
16354   ac_status=$?
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); }; }; then
16357   ac_cv_lib_gcc___moddi3=yes
16358 else
16359   echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16361
16362         ac_cv_lib_gcc___moddi3=no
16363 fi
16364
16365 rm -f core conftest.err conftest.$ac_objext \
16366       conftest$ac_exeext conftest.$ac_ext
16367 LIBS=$ac_check_lib_save_LIBS
16368 fi
16369 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16370 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16371 if test $ac_cv_lib_gcc___moddi3 = yes; then
16372
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE___MODDI3 1
16375 _ACEOF
16376
16377 fi
16378
16379   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16380 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16381 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16382   echo $ECHO_N "(cached) $ECHO_C" >&6
16383 else
16384   ac_check_lib_save_LIBS=$LIBS
16385 LIBS="-lgcc  $LIBS"
16386 cat >conftest.$ac_ext <<_ACEOF
16387 /* confdefs.h.  */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h.  */
16392
16393 /* Override any GCC internal prototype to avoid an error.
16394    Use char because int might match the return type of a GCC
16395    builtin and then its argument prototype would still apply.  */
16396 #ifdef __cplusplus
16397 extern "C"
16398 #endif
16399 char __udivdi3 ();
16400 int
16401 main ()
16402 {
16403 return __udivdi3 ();
16404   ;
16405   return 0;
16406 }
16407 _ACEOF
16408 rm -f conftest.$ac_objext conftest$ac_exeext
16409 if { (ac_try="$ac_link"
16410 case "(($ac_try" in
16411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412   *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415   (eval "$ac_link") 2>conftest.er1
16416   ac_status=$?
16417   grep -v '^ *+' conftest.er1 >conftest.err
16418   rm -f conftest.er1
16419   cat conftest.err >&5
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); } &&
16422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16423   { (case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_try") 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; } &&
16432          { ac_try='test -s conftest$ac_exeext'
16433   { (case "(($ac_try" in
16434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435   *) ac_try_echo=$ac_try;;
16436 esac
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438   (eval "$ac_try") 2>&5
16439   ac_status=$?
16440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441   (exit $ac_status); }; }; then
16442   ac_cv_lib_gcc___udivdi3=yes
16443 else
16444   echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16446
16447         ac_cv_lib_gcc___udivdi3=no
16448 fi
16449
16450 rm -f core conftest.err conftest.$ac_objext \
16451       conftest$ac_exeext conftest.$ac_ext
16452 LIBS=$ac_check_lib_save_LIBS
16453 fi
16454 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16455 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16456 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16457
16458 cat >>confdefs.h <<\_ACEOF
16459 #define HAVE___UDIVDI3 1
16460 _ACEOF
16461
16462 fi
16463
16464   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16465 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16466 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16467   echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469   ac_check_lib_save_LIBS=$LIBS
16470 LIBS="-lgcc  $LIBS"
16471 cat >conftest.$ac_ext <<_ACEOF
16472 /* confdefs.h.  */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h.  */
16477
16478 /* Override any GCC internal prototype to avoid an error.
16479    Use char because int might match the return type of a GCC
16480    builtin and then its argument prototype would still apply.  */
16481 #ifdef __cplusplus
16482 extern "C"
16483 #endif
16484 char __umoddi3 ();
16485 int
16486 main ()
16487 {
16488 return __umoddi3 ();
16489   ;
16490   return 0;
16491 }
16492 _ACEOF
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (ac_try="$ac_link"
16495 case "(($ac_try" in
16496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497   *) ac_try_echo=$ac_try;;
16498 esac
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500   (eval "$ac_link") 2>conftest.er1
16501   ac_status=$?
16502   grep -v '^ *+' conftest.er1 >conftest.err
16503   rm -f conftest.er1
16504   cat conftest.err >&5
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); } &&
16507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16508   { (case "(($ac_try" in
16509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510   *) ac_try_echo=$ac_try;;
16511 esac
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513   (eval "$ac_try") 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; } &&
16517          { ac_try='test -s conftest$ac_exeext'
16518   { (case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_try") 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); }; }; then
16527   ac_cv_lib_gcc___umoddi3=yes
16528 else
16529   echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16531
16532         ac_cv_lib_gcc___umoddi3=no
16533 fi
16534
16535 rm -f core conftest.err conftest.$ac_objext \
16536       conftest$ac_exeext conftest.$ac_ext
16537 LIBS=$ac_check_lib_save_LIBS
16538 fi
16539 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16540 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16541 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16542
16543 cat >>confdefs.h <<\_ACEOF
16544 #define HAVE___UMODDI3 1
16545 _ACEOF
16546
16547 fi
16548
16549
16550   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16551 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16552 if test "${ac_cv_lib_gcc___main+set}" = set; then
16553   echo $ECHO_N "(cached) $ECHO_C" >&6
16554 else
16555   ac_check_lib_save_LIBS=$LIBS
16556 LIBS="-lgcc  $LIBS"
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563
16564 /* Override any GCC internal prototype to avoid an error.
16565    Use char because int might match the return type of a GCC
16566    builtin and then its argument prototype would still apply.  */
16567 #ifdef __cplusplus
16568 extern "C"
16569 #endif
16570 char __main ();
16571 int
16572 main ()
16573 {
16574 return __main ();
16575   ;
16576   return 0;
16577 }
16578 _ACEOF
16579 rm -f conftest.$ac_objext conftest$ac_exeext
16580 if { (ac_try="$ac_link"
16581 case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586   (eval "$ac_link") 2>conftest.er1
16587   ac_status=$?
16588   grep -v '^ *+' conftest.er1 >conftest.err
16589   rm -f conftest.er1
16590   cat conftest.err >&5
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); } &&
16593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16594   { (case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_try") 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); }; } &&
16603          { ac_try='test -s conftest$ac_exeext'
16604   { (case "(($ac_try" in
16605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606   *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609   (eval "$ac_try") 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   ac_cv_lib_gcc___main=yes
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618         ac_cv_lib_gcc___main=no
16619 fi
16620
16621 rm -f core conftest.err conftest.$ac_objext \
16622       conftest$ac_exeext conftest.$ac_ext
16623 LIBS=$ac_check_lib_save_LIBS
16624 fi
16625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16626 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16627 if test $ac_cv_lib_gcc___main = yes; then
16628
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE___MAIN 1
16631 _ACEOF
16632
16633 fi
16634
16635   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16636 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16637 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   ac_check_lib_save_LIBS=$LIBS
16641 LIBS="-lgcc  $LIBS"
16642 cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648
16649 /* Override any GCC internal prototype to avoid an error.
16650    Use char because int might match the return type of a GCC
16651    builtin and then its argument prototype would still apply.  */
16652 #ifdef __cplusplus
16653 extern "C"
16654 #endif
16655 char __cmpdi2 ();
16656 int
16657 main ()
16658 {
16659 return __cmpdi2 ();
16660   ;
16661   return 0;
16662 }
16663 _ACEOF
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (ac_try="$ac_link"
16666 case "(($ac_try" in
16667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668   *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671   (eval "$ac_link") 2>conftest.er1
16672   ac_status=$?
16673   grep -v '^ *+' conftest.er1 >conftest.err
16674   rm -f conftest.er1
16675   cat conftest.err >&5
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); } &&
16678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16679   { (case "(($ac_try" in
16680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681   *) ac_try_echo=$ac_try;;
16682 esac
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684   (eval "$ac_try") 2>&5
16685   ac_status=$?
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); }; } &&
16688          { ac_try='test -s conftest$ac_exeext'
16689   { (case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_try") 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }; }; then
16698   ac_cv_lib_gcc___cmpdi2=yes
16699 else
16700   echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703         ac_cv_lib_gcc___cmpdi2=no
16704 fi
16705
16706 rm -f core conftest.err conftest.$ac_objext \
16707       conftest$ac_exeext conftest.$ac_ext
16708 LIBS=$ac_check_lib_save_LIBS
16709 fi
16710 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16711 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16712 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16713
16714 cat >>confdefs.h <<\_ACEOF
16715 #define HAVE___CMPDI2 1
16716 _ACEOF
16717
16718 fi
16719
16720 fi
16721
16722 if test "$llvm_cv_os_type" = "MingW" ; then
16723   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16724 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16725   cat >conftest.$ac_ext <<_ACEOF
16726
16727   /* confdefs.h.  */
16728 _ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h.  */
16732
16733     #include <windows.h>
16734     #include <imagehlp.h>
16735     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16736     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16737
16738
16739 _ACEOF
16740 rm -f conftest.$ac_objext
16741 if { (ac_try="$ac_compile"
16742 case "(($ac_try" in
16743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744   *) ac_try_echo=$ac_try;;
16745 esac
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747   (eval "$ac_compile") 2>conftest.er1
16748   ac_status=$?
16749   grep -v '^ *+' conftest.er1 >conftest.err
16750   rm -f conftest.er1
16751   cat conftest.err >&5
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); } &&
16754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755   { (case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760   (eval "$ac_try") 2>&5
16761   ac_status=$?
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); }; } &&
16764          { ac_try='test -s conftest.$ac_objext'
16765   { (case "(($ac_try" in
16766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767   *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770   (eval "$ac_try") 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; }; then
16774
16775   { echo "$as_me:$LINENO: result: yes" >&5
16776 echo "${ECHO_T}yes" >&6; }
16777   llvm_cv_win32_elmcb_pcstr="PCSTR"
16778
16779 else
16780   echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783
16784   { echo "$as_me:$LINENO: result: no" >&5
16785 echo "${ECHO_T}no" >&6; }
16786   llvm_cv_win32_elmcb_pcstr="PSTR"
16787
16788 fi
16789
16790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16791
16792 cat >>confdefs.h <<_ACEOF
16793 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16794 _ACEOF
16795
16796 fi
16797
16798
16799
16800   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16801 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16802 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16803   echo $ECHO_N "(cached) $ECHO_C" >&6
16804 else
16805
16806     ac_ext=cpp
16807 ac_cpp='$CXXCPP $CPPFLAGS'
16808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16811
16812     cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h.  */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h.  */
16818 #include <math.h>
16819 int
16820 main ()
16821 {
16822 float f; isnan(f);
16823   ;
16824   return 0;
16825 }
16826 _ACEOF
16827 rm -f conftest.$ac_objext
16828 if { (ac_try="$ac_compile"
16829 case "(($ac_try" in
16830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831   *) ac_try_echo=$ac_try;;
16832 esac
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834   (eval "$ac_compile") 2>conftest.er1
16835   ac_status=$?
16836   grep -v '^ *+' conftest.er1 >conftest.err
16837   rm -f conftest.er1
16838   cat conftest.err >&5
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); } &&
16841          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16842   { (case "(($ac_try" in
16843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844   *) ac_try_echo=$ac_try;;
16845 esac
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847   (eval "$ac_try") 2>&5
16848   ac_status=$?
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); }; } &&
16851          { ac_try='test -s conftest.$ac_objext'
16852   { (case "(($ac_try" in
16853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854   *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857   (eval "$ac_try") 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861   ac_cv_func_isnan_in_math_h=yes
16862 else
16863   echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16865
16866         ac_cv_func_isnan_in_math_h=no
16867 fi
16868
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870     ac_ext=c
16871 ac_cpp='$CPP $CPPFLAGS'
16872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16875
16876
16877 fi
16878 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16879 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16880
16881
16882 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16883
16884 cat >>confdefs.h <<\_ACEOF
16885 #define HAVE_ISNAN_IN_MATH_H 1
16886 _ACEOF
16887
16888 fi
16889
16890
16891   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16892 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16893 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16894   echo $ECHO_N "(cached) $ECHO_C" >&6
16895 else
16896
16897     ac_ext=cpp
16898 ac_cpp='$CXXCPP $CPPFLAGS'
16899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16902
16903     cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h.  */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h.  */
16909 #include <cmath>
16910 int
16911 main ()
16912 {
16913 float f; isnan(f);
16914   ;
16915   return 0;
16916 }
16917 _ACEOF
16918 rm -f conftest.$ac_objext
16919 if { (ac_try="$ac_compile"
16920 case "(($ac_try" in
16921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922   *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925   (eval "$ac_compile") 2>conftest.er1
16926   ac_status=$?
16927   grep -v '^ *+' conftest.er1 >conftest.err
16928   rm -f conftest.er1
16929   cat conftest.err >&5
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); } &&
16932          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16933   { (case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_try") 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; } &&
16942          { ac_try='test -s conftest.$ac_objext'
16943   { (case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_try") 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; }; then
16952   ac_cv_func_isnan_in_cmath=yes
16953 else
16954   echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957         ac_cv_func_isnan_in_cmath=no
16958 fi
16959
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961     ac_ext=c
16962 ac_cpp='$CPP $CPPFLAGS'
16963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16966
16967
16968 fi
16969 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16970 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16971
16972 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16973
16974 cat >>confdefs.h <<\_ACEOF
16975 #define HAVE_ISNAN_IN_CMATH 1
16976 _ACEOF
16977
16978 fi
16979
16980
16981   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16982 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16983 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986
16987     ac_ext=cpp
16988 ac_cpp='$CXXCPP $CPPFLAGS'
16989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16992
16993     cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999 #include <cmath>
17000 int
17001 main ()
17002 {
17003 float f; std::isnan(f);
17004   ;
17005   return 0;
17006 }
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_cxx_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_cv_func_std_isnan_in_cmath=yes
17043 else
17044   echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047         ac_cv_func_std_isnan_in_cmath=no
17048 fi
17049
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051     ac_ext=c
17052 ac_cpp='$CPP $CPPFLAGS'
17053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17056
17057
17058 fi
17059 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17060 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17061
17062 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17063
17064 cat >>confdefs.h <<\_ACEOF
17065 #define HAVE_STD_ISNAN_IN_CMATH 1
17066 _ACEOF
17067
17068 fi
17069
17070
17071
17072
17073   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17074 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17075 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17076   echo $ECHO_N "(cached) $ECHO_C" >&6
17077 else
17078
17079     ac_ext=cpp
17080 ac_cpp='$CXXCPP $CPPFLAGS'
17081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17084
17085     cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h.  */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h.  */
17091 #include <math.h>
17092 int
17093 main ()
17094 {
17095 float f; isinf(f);
17096   ;
17097   return 0;
17098 }
17099 _ACEOF
17100 rm -f conftest.$ac_objext
17101 if { (ac_try="$ac_compile"
17102 case "(($ac_try" in
17103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104   *) ac_try_echo=$ac_try;;
17105 esac
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107   (eval "$ac_compile") 2>conftest.er1
17108   ac_status=$?
17109   grep -v '^ *+' conftest.er1 >conftest.err
17110   rm -f conftest.er1
17111   cat conftest.err >&5
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); } &&
17114          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17115   { (case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120   (eval "$ac_try") 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; } &&
17124          { ac_try='test -s conftest.$ac_objext'
17125   { (case "(($ac_try" in
17126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127   *) ac_try_echo=$ac_try;;
17128 esac
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130   (eval "$ac_try") 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; }; then
17134   ac_cv_func_isinf_in_math_h=yes
17135 else
17136   echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17138
17139         ac_cv_func_isinf_in_math_h=no
17140 fi
17141
17142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17143     ac_ext=c
17144 ac_cpp='$CPP $CPPFLAGS'
17145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17148
17149
17150 fi
17151 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17152 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17153
17154 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17155
17156 cat >>confdefs.h <<\_ACEOF
17157 #define HAVE_ISINF_IN_MATH_H 1
17158 _ACEOF
17159
17160 fi
17161
17162
17163   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17164 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17165 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168
17169     ac_ext=cpp
17170 ac_cpp='$CXXCPP $CPPFLAGS'
17171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17174
17175     cat >conftest.$ac_ext <<_ACEOF
17176 /* confdefs.h.  */
17177 _ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h.  */
17181 #include <cmath>
17182 int
17183 main ()
17184 {
17185 float f; isinf(f);
17186   ;
17187   return 0;
17188 }
17189 _ACEOF
17190 rm -f conftest.$ac_objext
17191 if { (ac_try="$ac_compile"
17192 case "(($ac_try" in
17193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17194   *) ac_try_echo=$ac_try;;
17195 esac
17196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17197   (eval "$ac_compile") 2>conftest.er1
17198   ac_status=$?
17199   grep -v '^ *+' conftest.er1 >conftest.err
17200   rm -f conftest.er1
17201   cat conftest.err >&5
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } &&
17204          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17205   { (case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_try") 2>&5
17211   ac_status=$?
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); }; } &&
17214          { ac_try='test -s conftest.$ac_objext'
17215   { (case "(($ac_try" in
17216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217   *) ac_try_echo=$ac_try;;
17218 esac
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220   (eval "$ac_try") 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; }; then
17224   ac_cv_func_isinf_in_cmath=yes
17225 else
17226   echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229         ac_cv_func_isinf_in_cmath=no
17230 fi
17231
17232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17233     ac_ext=c
17234 ac_cpp='$CPP $CPPFLAGS'
17235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17238
17239
17240 fi
17241 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17242 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17243
17244 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17245
17246 cat >>confdefs.h <<\_ACEOF
17247 #define HAVE_ISINF_IN_CMATH 1
17248 _ACEOF
17249
17250 fi
17251
17252
17253   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17254 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17255 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258
17259     ac_ext=cpp
17260 ac_cpp='$CXXCPP $CPPFLAGS'
17261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17264
17265     cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h.  */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h.  */
17271 #include <cmath>
17272 int
17273 main ()
17274 {
17275 float f; std::isinf(f);
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext
17281 if { (ac_try="$ac_compile"
17282 case "(($ac_try" in
17283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284   *) ac_try_echo=$ac_try;;
17285 esac
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287   (eval "$ac_compile") 2>conftest.er1
17288   ac_status=$?
17289   grep -v '^ *+' conftest.er1 >conftest.err
17290   rm -f conftest.er1
17291   cat conftest.err >&5
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); } &&
17294          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17295   { (case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_try") 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; } &&
17304          { ac_try='test -s conftest.$ac_objext'
17305   { (case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310   (eval "$ac_try") 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); }; }; then
17314   ac_cv_func_std_isinf_in_cmath=yes
17315 else
17316   echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17318
17319         ac_cv_func_std_isinf_in_cmath=no
17320 fi
17321
17322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17323     ac_ext=c
17324 ac_cpp='$CPP $CPPFLAGS'
17325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17328
17329
17330 fi
17331 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17332 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17333
17334 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17335
17336 cat >>confdefs.h <<\_ACEOF
17337 #define HAVE_STD_ISINF_IN_CMATH 1
17338 _ACEOF
17339
17340 fi
17341
17342
17343   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17344 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17345 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348
17349     ac_ext=cpp
17350 ac_cpp='$CXXCPP $CPPFLAGS'
17351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17354
17355     cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h.  */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h.  */
17361 #include <ieeefp.h>
17362 int
17363 main ()
17364 {
17365 float f; finite(f);
17366   ;
17367   return 0;
17368 }
17369 _ACEOF
17370 rm -f conftest.$ac_objext
17371 if { (ac_try="$ac_compile"
17372 case "(($ac_try" in
17373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374   *) ac_try_echo=$ac_try;;
17375 esac
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377   (eval "$ac_compile") 2>conftest.er1
17378   ac_status=$?
17379   grep -v '^ *+' conftest.er1 >conftest.err
17380   rm -f conftest.er1
17381   cat conftest.err >&5
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); } &&
17384          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17385   { (case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_try") 2>&5
17391   ac_status=$?
17392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); }; } &&
17394          { ac_try='test -s conftest.$ac_objext'
17395   { (case "(($ac_try" in
17396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397   *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400   (eval "$ac_try") 2>&5
17401   ac_status=$?
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); }; }; then
17404   ac_cv_func_finite_in_ieeefp_h=yes
17405 else
17406   echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17408
17409         ac_cv_func_finite_in_ieeefp_h=no
17410 fi
17411
17412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17413     ac_ext=c
17414 ac_cpp='$CPP $CPPFLAGS'
17415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17418
17419
17420 fi
17421 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17422 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17423
17424 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17425
17426 cat >>confdefs.h <<\_ACEOF
17427 #define HAVE_FINITE_IN_IEEEFP_H 1
17428 _ACEOF
17429
17430 fi
17431
17432
17433
17434 if test "$llvm_cv_platform_type" = "Unix" ; then
17435
17436
17437 for ac_header in stdlib.h unistd.h
17438 do
17439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17441   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17444   echo $ECHO_N "(cached) $ECHO_C" >&6
17445 fi
17446 ac_res=`eval echo '${'$as_ac_Header'}'`
17447                { echo "$as_me:$LINENO: result: $ac_res" >&5
17448 echo "${ECHO_T}$ac_res" >&6; }
17449 else
17450   # Is the header compilable?
17451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h.  */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h.  */
17459 $ac_includes_default
17460 #include <$ac_header>
17461 _ACEOF
17462 rm -f conftest.$ac_objext
17463 if { (ac_try="$ac_compile"
17464 case "(($ac_try" in
17465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466   *) ac_try_echo=$ac_try;;
17467 esac
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469   (eval "$ac_compile") 2>conftest.er1
17470   ac_status=$?
17471   grep -v '^ *+' conftest.er1 >conftest.err
17472   rm -f conftest.er1
17473   cat conftest.err >&5
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); } &&
17476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17477   { (case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_try") 2>&5
17483   ac_status=$?
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); }; } &&
17486          { ac_try='test -s conftest.$ac_objext'
17487   { (case "(($ac_try" in
17488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489   *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492   (eval "$ac_try") 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); }; }; then
17496   ac_header_compiler=yes
17497 else
17498   echo "$as_me: failed program was:" >&5
17499 sed 's/^/| /' conftest.$ac_ext >&5
17500
17501         ac_header_compiler=no
17502 fi
17503
17504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17506 echo "${ECHO_T}$ac_header_compiler" >&6; }
17507
17508 # Is the header present?
17509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17511 cat >conftest.$ac_ext <<_ACEOF
17512 /* confdefs.h.  */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h.  */
17517 #include <$ac_header>
17518 _ACEOF
17519 if { (ac_try="$ac_cpp conftest.$ac_ext"
17520 case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } >/dev/null; then
17532   if test -s conftest.err; then
17533     ac_cpp_err=$ac_c_preproc_warn_flag
17534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17535   else
17536     ac_cpp_err=
17537   fi
17538 else
17539   ac_cpp_err=yes
17540 fi
17541 if test -z "$ac_cpp_err"; then
17542   ac_header_preproc=yes
17543 else
17544   echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547   ac_header_preproc=no
17548 fi
17549
17550 rm -f conftest.err conftest.$ac_ext
17551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17552 echo "${ECHO_T}$ac_header_preproc" >&6; }
17553
17554 # So?  What about this header?
17555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17556   yes:no: )
17557     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17561     ac_header_preproc=yes
17562     ;;
17563   no:yes:* )
17564     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17566     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17567 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17568     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17570     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17571 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17574     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17576     ( cat <<\_ASBOX
17577 ## ------------------------------------ ##
17578 ## Report this to http://llvm.org/bugs/ ##
17579 ## ------------------------------------ ##
17580 _ASBOX
17581      ) | sed "s/^/$as_me: WARNING:     /" >&2
17582     ;;
17583 esac
17584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17587   echo $ECHO_N "(cached) $ECHO_C" >&6
17588 else
17589   eval "$as_ac_Header=\$ac_header_preproc"
17590 fi
17591 ac_res=`eval echo '${'$as_ac_Header'}'`
17592                { echo "$as_me:$LINENO: result: $ac_res" >&5
17593 echo "${ECHO_T}$ac_res" >&6; }
17594
17595 fi
17596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17597   cat >>confdefs.h <<_ACEOF
17598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17599 _ACEOF
17600
17601 fi
17602
17603 done
17604
17605
17606 for ac_func in getpagesize
17607 do
17608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17612   echo $ECHO_N "(cached) $ECHO_C" >&6
17613 else
17614   cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h.  */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h.  */
17620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17622 #define $ac_func innocuous_$ac_func
17623
17624 /* System header to define __stub macros and hopefully few prototypes,
17625     which can conflict with char $ac_func (); below.
17626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17627     <limits.h> exists even on freestanding compilers.  */
17628
17629 #ifdef __STDC__
17630 # include <limits.h>
17631 #else
17632 # include <assert.h>
17633 #endif
17634
17635 #undef $ac_func
17636
17637 /* Override any GCC internal prototype to avoid an error.
17638    Use char because int might match the return type of a GCC
17639    builtin and then its argument prototype would still apply.  */
17640 #ifdef __cplusplus
17641 extern "C"
17642 #endif
17643 char $ac_func ();
17644 /* The GNU C library defines this for functions which it implements
17645     to always fail with ENOSYS.  Some functions are actually named
17646     something starting with __ and the normal name is an alias.  */
17647 #if defined __stub_$ac_func || defined __stub___$ac_func
17648 choke me
17649 #endif
17650
17651 int
17652 main ()
17653 {
17654 return $ac_func ();
17655   ;
17656   return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666   (eval "$ac_link") 2>conftest.er1
17667   ac_status=$?
17668   grep -v '^ *+' conftest.er1 >conftest.err
17669   rm -f conftest.er1
17670   cat conftest.err >&5
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } &&
17673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17674   { (case "(($ac_try" in
17675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676   *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679   (eval "$ac_try") 2>&5
17680   ac_status=$?
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); }; } &&
17683          { ac_try='test -s conftest$ac_exeext'
17684   { (case "(($ac_try" in
17685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686   *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689   (eval "$ac_try") 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; }; then
17693   eval "$as_ac_var=yes"
17694 else
17695   echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17697
17698         eval "$as_ac_var=no"
17699 fi
17700
17701 rm -f core conftest.err conftest.$ac_objext \
17702       conftest$ac_exeext conftest.$ac_ext
17703 fi
17704 ac_res=`eval echo '${'$as_ac_var'}'`
17705                { echo "$as_me:$LINENO: result: $ac_res" >&5
17706 echo "${ECHO_T}$ac_res" >&6; }
17707 if test `eval echo '${'$as_ac_var'}'` = yes; then
17708   cat >>confdefs.h <<_ACEOF
17709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17710 _ACEOF
17711
17712 fi
17713 done
17714
17715 { echo "$as_me:$LINENO: checking for working mmap" >&5
17716 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17717 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17718   echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720   if test "$cross_compiling" = yes; then
17721   ac_cv_func_mmap_fixed_mapped=no
17722 else
17723   cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h.  */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h.  */
17729 $ac_includes_default
17730 /* malloc might have been renamed as rpl_malloc. */
17731 #undef malloc
17732
17733 /* Thanks to Mike Haertel and Jim Avera for this test.
17734    Here is a matrix of mmap possibilities:
17735         mmap private not fixed
17736         mmap private fixed at somewhere currently unmapped
17737         mmap private fixed at somewhere already mapped
17738         mmap shared not fixed
17739         mmap shared fixed at somewhere currently unmapped
17740         mmap shared fixed at somewhere already mapped
17741    For private mappings, we should verify that changes cannot be read()
17742    back from the file, nor mmap's back from the file at a different
17743    address.  (There have been systems where private was not correctly
17744    implemented like the infamous i386 svr4.0, and systems where the
17745    VM page cache was not coherent with the file system buffer cache
17746    like early versions of FreeBSD and possibly contemporary NetBSD.)
17747    For shared mappings, we should conversely verify that changes get
17748    propagated back to all the places they're supposed to be.
17749
17750    Grep wants private fixed already mapped.
17751    The main things grep needs to know about mmap are:
17752    * does it exist and is it safe to write into the mmap'd area
17753    * how to use it (BSD variants)  */
17754
17755 #include <fcntl.h>
17756 #include <sys/mman.h>
17757
17758 #if !STDC_HEADERS && !HAVE_STDLIB_H
17759 char *malloc ();
17760 #endif
17761
17762 /* This mess was copied from the GNU getpagesize.h.  */
17763 #if !HAVE_GETPAGESIZE
17764 /* Assume that all systems that can run configure have sys/param.h.  */
17765 # if !HAVE_SYS_PARAM_H
17766 #  define HAVE_SYS_PARAM_H 1
17767 # endif
17768
17769 # ifdef _SC_PAGESIZE
17770 #  define getpagesize() sysconf(_SC_PAGESIZE)
17771 # else /* no _SC_PAGESIZE */
17772 #  if HAVE_SYS_PARAM_H
17773 #   include <sys/param.h>
17774 #   ifdef EXEC_PAGESIZE
17775 #    define getpagesize() EXEC_PAGESIZE
17776 #   else /* no EXEC_PAGESIZE */
17777 #    ifdef NBPG
17778 #     define getpagesize() NBPG * CLSIZE
17779 #     ifndef CLSIZE
17780 #      define CLSIZE 1
17781 #     endif /* no CLSIZE */
17782 #    else /* no NBPG */
17783 #     ifdef NBPC
17784 #      define getpagesize() NBPC
17785 #     else /* no NBPC */
17786 #      ifdef PAGESIZE
17787 #       define getpagesize() PAGESIZE
17788 #      endif /* PAGESIZE */
17789 #     endif /* no NBPC */
17790 #    endif /* no NBPG */
17791 #   endif /* no EXEC_PAGESIZE */
17792 #  else /* no HAVE_SYS_PARAM_H */
17793 #   define getpagesize() 8192   /* punt totally */
17794 #  endif /* no HAVE_SYS_PARAM_H */
17795 # endif /* no _SC_PAGESIZE */
17796
17797 #endif /* no HAVE_GETPAGESIZE */
17798
17799 int
17800 main ()
17801 {
17802   char *data, *data2, *data3;
17803   int i, pagesize;
17804   int fd;
17805
17806   pagesize = getpagesize ();
17807
17808   /* First, make a file with some known garbage in it. */
17809   data = (char *) malloc (pagesize);
17810   if (!data)
17811     return 1;
17812   for (i = 0; i < pagesize; ++i)
17813     *(data + i) = rand ();
17814   umask (0);
17815   fd = creat ("conftest.mmap", 0600);
17816   if (fd < 0)
17817     return 1;
17818   if (write (fd, data, pagesize) != pagesize)
17819     return 1;
17820   close (fd);
17821
17822   /* Next, try to mmap the file at a fixed address which already has
17823      something else allocated at it.  If we can, also make sure that
17824      we see the same garbage.  */
17825   fd = open ("conftest.mmap", O_RDWR);
17826   if (fd < 0)
17827     return 1;
17828   data2 = (char *) malloc (2 * pagesize);
17829   if (!data2)
17830     return 1;
17831   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17832   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17833                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17834     return 1;
17835   for (i = 0; i < pagesize; ++i)
17836     if (*(data + i) != *(data2 + i))
17837       return 1;
17838
17839   /* Finally, make sure that changes to the mapped area do not
17840      percolate back to the file as seen by read().  (This is a bug on
17841      some variants of i386 svr4.0.)  */
17842   for (i = 0; i < pagesize; ++i)
17843     *(data2 + i) = *(data2 + i) + 1;
17844   data3 = (char *) malloc (pagesize);
17845   if (!data3)
17846     return 1;
17847   if (read (fd, data3, pagesize) != pagesize)
17848     return 1;
17849   for (i = 0; i < pagesize; ++i)
17850     if (*(data + i) != *(data3 + i))
17851       return 1;
17852   close (fd);
17853   return 0;
17854 }
17855 _ACEOF
17856 rm -f conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860   *) ac_try_echo=$ac_try;;
17861 esac
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863   (eval "$ac_link") 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17867   { (case "(($ac_try" in
17868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869   *) ac_try_echo=$ac_try;;
17870 esac
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872   (eval "$ac_try") 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; }; then
17876   ac_cv_func_mmap_fixed_mapped=yes
17877 else
17878   echo "$as_me: program exited with status $ac_status" >&5
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 ( exit $ac_status )
17883 ac_cv_func_mmap_fixed_mapped=no
17884 fi
17885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17886 fi
17887
17888
17889 fi
17890 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17891 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17892 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17893
17894 cat >>confdefs.h <<\_ACEOF
17895 #define HAVE_MMAP 1
17896 _ACEOF
17897
17898 fi
17899 rm -f conftest.mmap
17900
17901   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17902 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17903 if test "${ac_cv_func_mmap_file+set}" = set; then
17904   echo $ECHO_N "(cached) $ECHO_C" >&6
17905 else
17906    ac_ext=c
17907 ac_cpp='$CPP $CPPFLAGS'
17908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17911
17912   if test "$cross_compiling" = yes; then
17913   ac_cv_func_mmap_file=no
17914 else
17915   cat >conftest.$ac_ext <<_ACEOF
17916
17917     /* confdefs.h.  */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h.  */
17922
17923 #include <sys/types.h>
17924 #include <sys/mman.h>
17925 #include <fcntl.h>
17926
17927 int
17928 main ()
17929 {
17930
17931   int fd;
17932   fd = creat ("foo",0777);
17933   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17934   unlink ("foo");
17935   return (fd != (int) MAP_FAILED);
17936   ;
17937   return 0;
17938 }
17939 _ACEOF
17940 rm -f conftest$ac_exeext
17941 if { (ac_try="$ac_link"
17942 case "(($ac_try" in
17943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944   *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947   (eval "$ac_link") 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17951   { (case "(($ac_try" in
17952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953   *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956   (eval "$ac_try") 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; }; then
17960   ac_cv_func_mmap_file=yes
17961 else
17962   echo "$as_me: program exited with status $ac_status" >&5
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17965
17966 ( exit $ac_status )
17967 ac_cv_func_mmap_file=no
17968 fi
17969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17970 fi
17971
17972
17973   ac_ext=c
17974 ac_cpp='$CPP $CPPFLAGS'
17975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978
17979
17980 fi
17981 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17982 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17983 if test "$ac_cv_func_mmap_file" = yes; then
17984
17985 cat >>confdefs.h <<\_ACEOF
17986 #define HAVE_MMAP_FILE
17987 _ACEOF
17988
17989    MMAP_FILE=yes
17990
17991 fi
17992
17993   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17994 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17995 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17996   echo $ECHO_N "(cached) $ECHO_C" >&6
17997 else
17998   if test "$llvm_cv_os_type" = "Interix" ; then
17999    ac_cv_need_dev_zero_for_mmap=yes
18000  else
18001    ac_cv_need_dev_zero_for_mmap=no
18002  fi
18003
18004 fi
18005 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18006 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18007 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18008
18009 cat >>confdefs.h <<\_ACEOF
18010 #define NEED_DEV_ZERO_FOR_MMAP 1
18011 _ACEOF
18012
18013 fi
18014
18015   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18016   then
18017     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18018 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18019   fi
18020   if test "$ac_cv_func_mmap_file" = "no"
18021   then
18022     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18023 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18024   fi
18025 fi
18026
18027 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18028 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18029 ac_ext=cpp
18030 ac_cpp='$CXXCPP $CPPFLAGS'
18031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18034
18035 cat >conftest.$ac_ext <<_ACEOF
18036
18037   /* confdefs.h.  */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h.  */
18042
18043     int main() {
18044       volatile unsigned long val = 1;
18045       __sync_synchronize();
18046       __sync_val_compare_and_swap(&val, 1, 0);
18047       __sync_add_and_fetch(&val, 1);
18048       __sync_sub_and_fetch(&val, 1);
18049       return 0;
18050     }
18051
18052
18053 _ACEOF
18054 rm -f conftest.$ac_objext conftest$ac_exeext
18055 if { (ac_try="$ac_link"
18056 case "(($ac_try" in
18057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058   *) ac_try_echo=$ac_try;;
18059 esac
18060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061   (eval "$ac_link") 2>conftest.er1
18062   ac_status=$?
18063   grep -v '^ *+' conftest.er1 >conftest.err
18064   rm -f conftest.er1
18065   cat conftest.err >&5
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); } &&
18068          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18069   { (case "(($ac_try" in
18070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071   *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074   (eval "$ac_try") 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); }; } &&
18078          { ac_try='test -s conftest$ac_exeext'
18079   { (case "(($ac_try" in
18080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081   *) ac_try_echo=$ac_try;;
18082 esac
18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084   (eval "$ac_try") 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); }; }; then
18088
18089   { echo "$as_me:$LINENO: result: yes" >&5
18090 echo "${ECHO_T}yes" >&6; }
18091
18092 cat >>confdefs.h <<\_ACEOF
18093 #define LLVM_HAS_ATOMICS 1
18094 _ACEOF
18095
18096
18097 else
18098   echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18100
18101
18102   { echo "$as_me:$LINENO: result: no" >&5
18103 echo "${ECHO_T}no" >&6; }
18104
18105 cat >>confdefs.h <<\_ACEOF
18106 #define LLVM_HAS_ATOMICS 0
18107 _ACEOF
18108
18109   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18110 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18111
18112 fi
18113
18114 rm -f core conftest.err conftest.$ac_objext \
18115       conftest$ac_exeext conftest.$ac_ext
18116 ac_ext=c
18117 ac_cpp='$CPP $CPPFLAGS'
18118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18121
18122
18123
18124 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18125   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18126 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18127 if test "${llvm_cv_linux_mixed+set}" = set; then
18128   echo $ECHO_N "(cached) $ECHO_C" >&6
18129 else
18130    ac_ext=c
18131 ac_cpp='$CPP $CPPFLAGS'
18132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18135
18136   cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h.  */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h.  */
18142 #ifndef __x86_64__
18143        error: Not x86-64 even if uname says so!
18144       #endif
18145
18146 int
18147 main ()
18148 {
18149
18150   ;
18151   return 0;
18152 }
18153 _ACEOF
18154 rm -f conftest.$ac_objext
18155 if { (ac_try="$ac_compile"
18156 case "(($ac_try" in
18157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158   *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161   (eval "$ac_compile") 2>conftest.er1
18162   ac_status=$?
18163   grep -v '^ *+' conftest.er1 >conftest.err
18164   rm -f conftest.er1
18165   cat conftest.err >&5
18166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167   (exit $ac_status); } &&
18168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18169   { (case "(($ac_try" in
18170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171   *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174   (eval "$ac_try") 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); }; } &&
18178          { ac_try='test -s conftest.$ac_objext'
18179   { (case "(($ac_try" in
18180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181   *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184   (eval "$ac_try") 2>&5
18185   ac_status=$?
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); }; }; then
18188   llvm_cv_linux_mixed=no
18189 else
18190   echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18192
18193         llvm_cv_linux_mixed=yes
18194 fi
18195
18196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18197   ac_ext=c
18198 ac_cpp='$CPP $CPPFLAGS'
18199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18202
18203
18204 fi
18205 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18206 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18207
18208   if test "$llvm_cv_linux_mixed" = "yes"; then
18209     llvm_cv_target_arch="x86"
18210     ARCH="x86"
18211   fi
18212 fi
18213
18214
18215 for ac_func in __dso_handle
18216 do
18217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18221   echo $ECHO_N "(cached) $ECHO_C" >&6
18222 else
18223   cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h.  */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h.  */
18229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18231 #define $ac_func innocuous_$ac_func
18232
18233 /* System header to define __stub macros and hopefully few prototypes,
18234     which can conflict with char $ac_func (); below.
18235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18236     <limits.h> exists even on freestanding compilers.  */
18237
18238 #ifdef __STDC__
18239 # include <limits.h>
18240 #else
18241 # include <assert.h>
18242 #endif
18243
18244 #undef $ac_func
18245
18246 /* Override any GCC internal prototype to avoid an error.
18247    Use char because int might match the return type of a GCC
18248    builtin and then its argument prototype would still apply.  */
18249 #ifdef __cplusplus
18250 extern "C"
18251 #endif
18252 char $ac_func ();
18253 /* The GNU C library defines this for functions which it implements
18254     to always fail with ENOSYS.  Some functions are actually named
18255     something starting with __ and the normal name is an alias.  */
18256 #if defined __stub_$ac_func || defined __stub___$ac_func
18257 choke me
18258 #endif
18259
18260 int
18261 main ()
18262 {
18263 return $ac_func ();
18264   ;
18265   return 0;
18266 }
18267 _ACEOF
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272   *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275   (eval "$ac_link") 2>conftest.er1
18276   ac_status=$?
18277   grep -v '^ *+' conftest.er1 >conftest.err
18278   rm -f conftest.er1
18279   cat conftest.err >&5
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); } &&
18282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18283   { (case "(($ac_try" in
18284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285   *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288   (eval "$ac_try") 2>&5
18289   ac_status=$?
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); }; } &&
18292          { ac_try='test -s conftest$ac_exeext'
18293   { (case "(($ac_try" in
18294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295   *) ac_try_echo=$ac_try;;
18296 esac
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298   (eval "$ac_try") 2>&5
18299   ac_status=$?
18300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); }; }; then
18302   eval "$as_ac_var=yes"
18303 else
18304   echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18306
18307         eval "$as_ac_var=no"
18308 fi
18309
18310 rm -f core conftest.err conftest.$ac_objext \
18311       conftest$ac_exeext conftest.$ac_ext
18312 fi
18313 ac_res=`eval echo '${'$as_ac_var'}'`
18314                { echo "$as_me:$LINENO: result: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18316 if test `eval echo '${'$as_ac_var'}'` = yes; then
18317   cat >>confdefs.h <<_ACEOF
18318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18319 _ACEOF
18320
18321 fi
18322 done
18323
18324
18325 SHLIBEXT=$llvm_shlib_ext
18326
18327
18328 if test "${prefix}" = "NONE" ; then
18329   prefix="/usr/local"
18330 fi
18331 eval LLVM_PREFIX="${prefix}";
18332 eval LLVM_BINDIR="${prefix}/bin";
18333 eval LLVM_DATADIR="${prefix}/share/llvm";
18334 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18335 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18336 eval LLVM_INCLUDEDIR="${prefix}/include";
18337 eval LLVM_INFODIR="${prefix}/info";
18338 eval LLVM_MANDIR="${prefix}/man";
18339 LLVM_CONFIGTIME=`date`
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18351   LLVM_CONFIGTIME="(timestamp not enabled)"
18352 fi
18353
18354
18355 cat >>confdefs.h <<_ACEOF
18356 #define LLVM_PREFIX "$LLVM_PREFIX"
18357 _ACEOF
18358
18359
18360 cat >>confdefs.h <<_ACEOF
18361 #define LLVM_BINDIR "$LLVM_BINDIR"
18362 _ACEOF
18363
18364
18365 cat >>confdefs.h <<_ACEOF
18366 #define LLVM_DATADIR "$LLVM_DATADIR"
18367 _ACEOF
18368
18369
18370 cat >>confdefs.h <<_ACEOF
18371 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18372 _ACEOF
18373
18374
18375 cat >>confdefs.h <<_ACEOF
18376 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18377 _ACEOF
18378
18379
18380 cat >>confdefs.h <<_ACEOF
18381 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18382 _ACEOF
18383
18384
18385 cat >>confdefs.h <<_ACEOF
18386 #define LLVM_INFODIR "$LLVM_INFODIR"
18387 _ACEOF
18388
18389
18390 cat >>confdefs.h <<_ACEOF
18391 #define LLVM_MANDIR "$LLVM_MANDIR"
18392 _ACEOF
18393
18394
18395 cat >>confdefs.h <<_ACEOF
18396 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18397 _ACEOF
18398
18399
18400 cat >>confdefs.h <<_ACEOF
18401 #define LLVM_HOST_TRIPLE "$host"
18402 _ACEOF
18403
18404
18405 cat >>confdefs.h <<_ACEOF
18406 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18407 _ACEOF
18408
18409
18410 if test "$BINDINGS_TO_BUILD" = auto ; then
18411   BINDINGS_TO_BUILD=""
18412   if test "x$OCAMLFIND" != x ; then
18413     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18414   fi
18415   if test "x$GO" != x ; then
18416     if $GO run ${srcdir}/bindings/go/conftest.go ; then
18417       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18418     fi
18419   fi
18420 fi
18421 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18422
18423
18424 binding_prereqs_failed=0
18425 for a_binding in $BINDINGS_TO_BUILD ; do
18426   case "$a_binding" in
18427   ocaml)
18428     if test "x$OCAMLFIND" = x ; then
18429       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18430 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18431       binding_prereqs_failed=1
18432     fi
18433
18434     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18435       HAVE_OCAMLOPT=1
18436     else
18437       HAVE_OCAMLOPT=0
18438     fi
18439
18440
18441     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18442       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18443 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18444       binding_prereqs_failed=1
18445     fi
18446
18447     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18448       HAVE_OCAML_OUNIT=1
18449     else
18450       HAVE_OCAML_OUNIT=0
18451       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18452 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18453           fi
18454
18455
18456     if test "x$with_ocaml_libdir" != xauto ; then
18457       OCAML_LIBDIR=$with_ocaml_libdir
18458
18459     else
18460       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18461       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18462       then
18463         # ocaml stdlib is beneath our prefix; use stdlib
18464         OCAML_LIBDIR=$ocaml_stdlib
18465
18466       else
18467         # ocaml stdlib is outside our prefix; use libdir/ocaml
18468         OCAML_LIBDIR=${prefix}/lib/ocaml
18469
18470       fi
18471     fi
18472     ;;
18473   go)
18474     if test "x$GO" = x ; then
18475       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18476 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18477       binding_prereqs_failed=1
18478     else
18479       if $GO run ${srcdir}/bindings/go/conftest.go ; then
18480         :
18481       else
18482         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18483 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18484         binding_prereqs_failed=1
18485       fi
18486     fi
18487     ;;
18488   esac
18489 done
18490 if test "$binding_prereqs_failed" = 1 ; then
18491   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18492 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18493    { (exit 1); exit 1; }; }
18494 fi
18495
18496 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18497 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18498 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18499   echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501    ac_ext=cpp
18502 ac_cpp='$CXXCPP $CPPFLAGS'
18503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18506
18507   oldcxxflags="$CXXFLAGS"
18508   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18509   cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h.  */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h.  */
18515 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18516 int
18517 main ()
18518 {
18519 X<int>().f();
18520   ;
18521   return 0;
18522 }
18523 _ACEOF
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528   *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531   (eval "$ac_compile") 2>conftest.er1
18532   ac_status=$?
18533   grep -v '^ *+' conftest.er1 >conftest.err
18534   rm -f conftest.er1
18535   cat conftest.err >&5
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); } &&
18538          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18539   { (case "(($ac_try" in
18540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541   *) ac_try_echo=$ac_try;;
18542 esac
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544   (eval "$ac_try") 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; } &&
18548          { ac_try='test -s conftest.$ac_objext'
18549   { (case "(($ac_try" in
18550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551   *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554   (eval "$ac_try") 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); }; }; then
18558   llvm_cv_cxx_visibility_inlines_hidden=yes
18559 else
18560   echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563         llvm_cv_cxx_visibility_inlines_hidden=no
18564 fi
18565
18566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567   CXXFLAGS="$oldcxxflags"
18568   ac_ext=c
18569 ac_cpp='$CPP $CPPFLAGS'
18570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18573
18574
18575 fi
18576 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18577 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18578 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18579   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18580
18581 else
18582   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18583
18584 fi
18585
18586
18587 if test "$llvm_cv_link_use_r" = "yes" ; then
18588   RPATH="-Wl,-R"
18589 else
18590   RPATH="-Wl,-rpath"
18591 fi
18592
18593
18594 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18595   RDYNAMIC="-rdynamic"
18596 else
18597   RDYNAMIC=""
18598 fi
18599
18600
18601
18602 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18603
18604
18605
18606
18607
18608
18609 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18610
18611 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18612
18613 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18614
18615 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18616
18617 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18618
18619
18620 ac_config_files="$ac_config_files Makefile.config"
18621
18622
18623 ac_config_files="$ac_config_files llvm.spec"
18624
18625
18626 ac_config_files="$ac_config_files docs/doxygen.cfg"
18627
18628
18629 if test "${clang_src_root}" = ""; then
18630   clang_src_root="$srcdir/tools/clang"
18631 fi
18632 if test -f ${clang_src_root}/README.txt; then
18633
18634 cat >>confdefs.h <<_ACEOF
18635 #define CLANG_LIBDIR_SUFFIX ""
18636 _ACEOF
18637
18638
18639     configh="include/clang/Config/config.h"
18640   doxy="docs/doxygen.cfg"
18641   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18642
18643   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18644
18645 fi
18646
18647 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18648
18649
18650 test "x$program_prefix" = "xNONE" && program_prefix=""
18651
18652
18653
18654 ac_config_commands="$ac_config_commands setup"
18655
18656 ac_config_commands="$ac_config_commands Makefile"
18657
18658
18659 ac_config_commands="$ac_config_commands Makefile.common"
18660
18661
18662 ac_config_commands="$ac_config_commands examples/Makefile"
18663
18664
18665 ac_config_commands="$ac_config_commands lib/Makefile"
18666
18667
18668 ac_config_commands="$ac_config_commands test/Makefile"
18669
18670
18671 ac_config_commands="$ac_config_commands test/Makefile.tests"
18672
18673
18674 ac_config_commands="$ac_config_commands unittests/Makefile"
18675
18676
18677 ac_config_commands="$ac_config_commands tools/Makefile"
18678
18679
18680 ac_config_commands="$ac_config_commands utils/Makefile"
18681
18682
18683 ac_config_commands="$ac_config_commands projects/Makefile"
18684
18685
18686 ac_config_commands="$ac_config_commands bindings/Makefile"
18687
18688
18689 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18690
18691
18692
18693 cat >confcache <<\_ACEOF
18694 # This file is a shell script that caches the results of configure
18695 # tests run on this system so they can be shared between configure
18696 # scripts and configure runs, see configure's option --config-cache.
18697 # It is not useful on other systems.  If it contains results you don't
18698 # want to keep, you may remove or edit it.
18699 #
18700 # config.status only pays attention to the cache file if you give it
18701 # the --recheck option to rerun configure.
18702 #
18703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18705 # following values.
18706
18707 _ACEOF
18708
18709 # The following way of writing the cache mishandles newlines in values,
18710 # but we know of no workaround that is simple, portable, and efficient.
18711 # So, we kill variables containing newlines.
18712 # Ultrix sh set writes to stderr and can't be redirected directly,
18713 # and sets the high bit in the cache file unless we assign to the vars.
18714 (
18715   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18716     eval ac_val=\$$ac_var
18717     case $ac_val in #(
18718     *${as_nl}*)
18719       case $ac_var in #(
18720       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18722       esac
18723       case $ac_var in #(
18724       _ | IFS | as_nl) ;; #(
18725       *) $as_unset $ac_var ;;
18726       esac ;;
18727     esac
18728   done
18729
18730   (set) 2>&1 |
18731     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18732     *${as_nl}ac_space=\ *)
18733       # `set' does not quote correctly, so add quotes (double-quote
18734       # substitution turns \\\\ into \\, and sed turns \\ into \).
18735       sed -n \
18736         "s/'/'\\\\''/g;
18737           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18738       ;; #(
18739     *)
18740       # `set' quotes correctly as required by POSIX, so do not add quotes.
18741       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18742       ;;
18743     esac |
18744     sort
18745 ) |
18746   sed '
18747      /^ac_cv_env_/b end
18748      t clear
18749      :clear
18750      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18751      t end
18752      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18753      :end' >>confcache
18754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18755   if test -w "$cache_file"; then
18756     test "x$cache_file" != "x/dev/null" &&
18757       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18758 echo "$as_me: updating cache $cache_file" >&6;}
18759     cat confcache >$cache_file
18760   else
18761     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18762 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18763   fi
18764 fi
18765 rm -f confcache
18766
18767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18768 # Let make expand exec_prefix.
18769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18770
18771 DEFS=-DHAVE_CONFIG_H
18772
18773 ac_libobjs=
18774 ac_ltlibobjs=
18775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18776   # 1. Remove the extension, and $U if already installed.
18777   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18778   ac_i=`echo "$ac_i" | sed "$ac_script"`
18779   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18780   #    will be set to the directory where LIBOBJS objects are built.
18781   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18782   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18783 done
18784 LIBOBJS=$ac_libobjs
18785
18786 LTLIBOBJS=$ac_ltlibobjs
18787
18788
18789
18790 : ${CONFIG_STATUS=./config.status}
18791 ac_clean_files_save=$ac_clean_files
18792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18795 cat >$CONFIG_STATUS <<_ACEOF
18796 #! $SHELL
18797 # Generated by $as_me.
18798 # Run this file to recreate the current configuration.
18799 # Compiler output produced by configure, useful for debugging
18800 # configure, is in config.log if it exists.
18801
18802 debug=false
18803 ac_cs_recheck=false
18804 ac_cs_silent=false
18805 SHELL=\${CONFIG_SHELL-$SHELL}
18806 _ACEOF
18807
18808 cat >>$CONFIG_STATUS <<\_ACEOF
18809 ## --------------------- ##
18810 ## M4sh Initialization.  ##
18811 ## --------------------- ##
18812
18813 # Be Bourne compatible
18814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18815   emulate sh
18816   NULLCMD=:
18817   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18818   # is contrary to our usage.  Disable this feature.
18819   alias -g '${1+"$@"}'='"$@"'
18820   setopt NO_GLOB_SUBST
18821 else
18822   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18823 fi
18824 BIN_SH=xpg4; export BIN_SH # for Tru64
18825 DUALCASE=1; export DUALCASE # for MKS sh
18826
18827
18828 # PATH needs CR
18829 # Avoid depending upon Character Ranges.
18830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18833 as_cr_digits='0123456789'
18834 as_cr_alnum=$as_cr_Letters$as_cr_digits
18835
18836 # The user is always right.
18837 if test "${PATH_SEPARATOR+set}" != set; then
18838   echo "#! /bin/sh" >conf$$.sh
18839   echo  "exit 0"   >>conf$$.sh
18840   chmod +x conf$$.sh
18841   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18842     PATH_SEPARATOR=';'
18843   else
18844     PATH_SEPARATOR=:
18845   fi
18846   rm -f conf$$.sh
18847 fi
18848
18849 # Support unset when possible.
18850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18851   as_unset=unset
18852 else
18853   as_unset=false
18854 fi
18855
18856
18857 # IFS
18858 # We need space, tab and new line, in precisely that order.  Quoting is
18859 # there to prevent editors from complaining about space-tab.
18860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18861 # splitting by setting IFS to empty value.)
18862 as_nl='
18863 '
18864 IFS=" ""        $as_nl"
18865
18866 # Find who we are.  Look in the path if we contain no directory separator.
18867 case $0 in
18868   *[\\/]* ) as_myself=$0 ;;
18869   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18870 for as_dir in $PATH
18871 do
18872   IFS=$as_save_IFS
18873   test -z "$as_dir" && as_dir=.
18874   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18875 done
18876 IFS=$as_save_IFS
18877
18878      ;;
18879 esac
18880 # We did not find ourselves, most probably we were run as `sh COMMAND'
18881 # in which case we are not to be found in the path.
18882 if test "x$as_myself" = x; then
18883   as_myself=$0
18884 fi
18885 if test ! -f "$as_myself"; then
18886   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18887   { (exit 1); exit 1; }
18888 fi
18889
18890 # Work around bugs in pre-3.0 UWIN ksh.
18891 for as_var in ENV MAIL MAILPATH
18892 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18893 done
18894 PS1='$ '
18895 PS2='> '
18896 PS4='+ '
18897
18898 # NLS nuisances.
18899 for as_var in \
18900   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18901   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18902   LC_TELEPHONE LC_TIME
18903 do
18904   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18905     eval $as_var=C; export $as_var
18906   else
18907     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18908   fi
18909 done
18910
18911 # Required to use basename.
18912 if expr a : '\(a\)' >/dev/null 2>&1 &&
18913    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18914   as_expr=expr
18915 else
18916   as_expr=false
18917 fi
18918
18919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18920   as_basename=basename
18921 else
18922   as_basename=false
18923 fi
18924
18925
18926 # Name of the executable.
18927 as_me=`$as_basename -- "$0" ||
18928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18929          X"$0" : 'X\(//\)$' \| \
18930          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18931 echo X/"$0" |
18932     sed '/^.*\/\([^/][^/]*\)\/*$/{
18933             s//\1/
18934             q
18935           }
18936           /^X\/\(\/\/\)$/{
18937             s//\1/
18938             q
18939           }
18940           /^X\/\(\/\).*/{
18941             s//\1/
18942             q
18943           }
18944           s/.*/./; q'`
18945
18946 # CDPATH.
18947 $as_unset CDPATH
18948
18949
18950
18951   as_lineno_1=$LINENO
18952   as_lineno_2=$LINENO
18953   test "x$as_lineno_1" != "x$as_lineno_2" &&
18954   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18955
18956   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18957   # uniformly replaced by the line number.  The first 'sed' inserts a
18958   # line-number line after each line using $LINENO; the second 'sed'
18959   # does the real work.  The second script uses 'N' to pair each
18960   # line-number line with the line containing $LINENO, and appends
18961   # trailing '-' during substitution so that $LINENO is not a special
18962   # case at line end.
18963   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18964   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18965   # E. McMahon (1931-1989) for sed's syntax.  :-)
18966   sed -n '
18967     p
18968     /[$]LINENO/=
18969   ' <$as_myself |
18970     sed '
18971       s/[$]LINENO.*/&-/
18972       t lineno
18973       b
18974       :lineno
18975       N
18976       :loop
18977       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18978       t loop
18979       s/-\n.*//
18980     ' >$as_me.lineno &&
18981   chmod +x "$as_me.lineno" ||
18982     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18983    { (exit 1); exit 1; }; }
18984
18985   # Don't try to exec as it changes $[0], causing all sort of problems
18986   # (the dirname of $[0] is not the place where we might find the
18987   # original and so on.  Autoconf is especially sensitive to this).
18988   . "./$as_me.lineno"
18989   # Exit status is that of the last command.
18990   exit
18991 }
18992
18993
18994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18995   as_dirname=dirname
18996 else
18997   as_dirname=false
18998 fi
18999
19000 ECHO_C= ECHO_N= ECHO_T=
19001 case `echo -n x` in
19002 -n*)
19003   case `echo 'x\c'` in
19004   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19005   *)   ECHO_C='\c';;
19006   esac;;
19007 *)
19008   ECHO_N='-n';;
19009 esac
19010
19011 if expr a : '\(a\)' >/dev/null 2>&1 &&
19012    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19013   as_expr=expr
19014 else
19015   as_expr=false
19016 fi
19017
19018 rm -f conf$$ conf$$.exe conf$$.file
19019 if test -d conf$$.dir; then
19020   rm -f conf$$.dir/conf$$.file
19021 else
19022   rm -f conf$$.dir
19023   mkdir conf$$.dir
19024 fi
19025 echo >conf$$.file
19026 if ln -s conf$$.file conf$$ 2>/dev/null; then
19027   as_ln_s='ln -s'
19028   # ... but there are two gotchas:
19029   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19030   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19031   # In both cases, we have to default to `cp -p'.
19032   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19033     as_ln_s='cp -p'
19034 elif ln conf$$.file conf$$ 2>/dev/null; then
19035   as_ln_s=ln
19036 else
19037   as_ln_s='cp -p'
19038 fi
19039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19040 rmdir conf$$.dir 2>/dev/null
19041
19042 if mkdir -p . 2>/dev/null; then
19043   as_mkdir_p=:
19044 else
19045   test -d ./-p && rmdir ./-p
19046   as_mkdir_p=false
19047 fi
19048
19049 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19050 # systems may use methods other than mode bits to determine executability.
19051 cat >conf$$.file <<_ASEOF
19052 #! /bin/sh
19053 exit 0
19054 _ASEOF
19055 chmod +x conf$$.file
19056 if test -x conf$$.file >/dev/null 2>&1; then
19057   as_executable_p="test -x"
19058 else
19059   as_executable_p=:
19060 fi
19061 rm -f conf$$.file
19062
19063 # Sed expression to map a string onto a valid CPP name.
19064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19065
19066 # Sed expression to map a string onto a valid variable name.
19067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19068
19069
19070 exec 6>&1
19071
19072 # Save the log message, to keep $[0] and so on meaningful, and to
19073 # report actual input values of CONFIG_FILES etc. instead of their
19074 # values after options handling.
19075 ac_log="
19076 This file was extended by LLVM $as_me 3.7.0svn, which was
19077 generated by GNU Autoconf 2.60.  Invocation command line was
19078
19079   CONFIG_FILES    = $CONFIG_FILES
19080   CONFIG_HEADERS  = $CONFIG_HEADERS
19081   CONFIG_LINKS    = $CONFIG_LINKS
19082   CONFIG_COMMANDS = $CONFIG_COMMANDS
19083   $ $0 $@
19084
19085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19086 "
19087
19088 _ACEOF
19089
19090 cat >>$CONFIG_STATUS <<_ACEOF
19091 # Files that config.status was made for.
19092 config_files="$ac_config_files"
19093 config_headers="$ac_config_headers"
19094 config_commands="$ac_config_commands"
19095
19096 _ACEOF
19097
19098 cat >>$CONFIG_STATUS <<\_ACEOF
19099 ac_cs_usage="\
19100 \`$as_me' instantiates files from templates according to the
19101 current configuration.
19102
19103 Usage: $0 [OPTIONS] [FILE]...
19104
19105   -h, --help       print this help, then exit
19106   -V, --version    print version number, then exit
19107   -q, --quiet      do not print progress messages
19108   -d, --debug      don't remove temporary files
19109       --recheck    update $as_me by reconfiguring in the same conditions
19110   --file=FILE[:TEMPLATE]
19111                    instantiate the configuration file FILE
19112   --header=FILE[:TEMPLATE]
19113                    instantiate the configuration header FILE
19114
19115 Configuration files:
19116 $config_files
19117
19118 Configuration headers:
19119 $config_headers
19120
19121 Configuration commands:
19122 $config_commands
19123
19124 Report bugs to <bug-autoconf@gnu.org>."
19125
19126 _ACEOF
19127 cat >>$CONFIG_STATUS <<_ACEOF
19128 ac_cs_version="\\
19129 LLVM config.status 3.7.0svn
19130 configured by $0, generated by GNU Autoconf 2.60,
19131   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19132
19133 Copyright (C) 2006 Free Software Foundation, Inc.
19134 This config.status script is free software; the Free Software Foundation
19135 gives unlimited permission to copy, distribute and modify it."
19136
19137 ac_pwd='$ac_pwd'
19138 srcdir='$srcdir'
19139 INSTALL='$INSTALL'
19140 _ACEOF
19141
19142 cat >>$CONFIG_STATUS <<\_ACEOF
19143 # If no file are specified by the user, then we need to provide default
19144 # value.  By we need to know if files were specified by the user.
19145 ac_need_defaults=:
19146 while test $# != 0
19147 do
19148   case $1 in
19149   --*=*)
19150     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19151     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19152     ac_shift=:
19153     ;;
19154   *)
19155     ac_option=$1
19156     ac_optarg=$2
19157     ac_shift=shift
19158     ;;
19159   esac
19160
19161   case $ac_option in
19162   # Handling of the options.
19163   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19164     ac_cs_recheck=: ;;
19165   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19166     echo "$ac_cs_version"; exit ;;
19167   --debug | --debu | --deb | --de | --d | -d )
19168     debug=: ;;
19169   --file | --fil | --fi | --f )
19170     $ac_shift
19171     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19172     ac_need_defaults=false;;
19173   --header | --heade | --head | --hea )
19174     $ac_shift
19175     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19176     ac_need_defaults=false;;
19177   --he | --h)
19178     # Conflict between --help and --header
19179     { echo "$as_me: error: ambiguous option: $1
19180 Try \`$0 --help' for more information." >&2
19181    { (exit 1); exit 1; }; };;
19182   --help | --hel | -h )
19183     echo "$ac_cs_usage"; exit ;;
19184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19185   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19186     ac_cs_silent=: ;;
19187
19188   # This is an error.
19189   -*) { echo "$as_me: error: unrecognized option: $1
19190 Try \`$0 --help' for more information." >&2
19191    { (exit 1); exit 1; }; } ;;
19192
19193   *) ac_config_targets="$ac_config_targets $1"
19194      ac_need_defaults=false ;;
19195
19196   esac
19197   shift
19198 done
19199
19200 ac_configure_extra_args=
19201
19202 if $ac_cs_silent; then
19203   exec 6>/dev/null
19204   ac_configure_extra_args="$ac_configure_extra_args --silent"
19205 fi
19206
19207 _ACEOF
19208 cat >>$CONFIG_STATUS <<_ACEOF
19209 if \$ac_cs_recheck; then
19210   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19211   CONFIG_SHELL=$SHELL
19212   export CONFIG_SHELL
19213   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19214 fi
19215
19216 _ACEOF
19217 cat >>$CONFIG_STATUS <<\_ACEOF
19218 exec 5>>config.log
19219 {
19220   echo
19221   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19222 ## Running $as_me. ##
19223 _ASBOX
19224   echo "$ac_log"
19225 } >&5
19226
19227 _ACEOF
19228 cat >>$CONFIG_STATUS <<_ACEOF
19229 #
19230 # INIT-COMMANDS
19231 #
19232 llvm_src="${srcdir}"
19233
19234 _ACEOF
19235
19236 cat >>$CONFIG_STATUS <<\_ACEOF
19237
19238 # Handling of arguments.
19239 for ac_config_target in $ac_config_targets
19240 do
19241   case $ac_config_target in
19242     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19243     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19244     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19245     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19246     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19247     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19248     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19249     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19250     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19251     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19252     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19253     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19254     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19255     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19256     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19257     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19258     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19259     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19260     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19261     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19262     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19263     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19264     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19265     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19266     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19267     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19268
19269   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19270 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19271    { (exit 1); exit 1; }; };;
19272   esac
19273 done
19274
19275
19276 # If the user did not use the arguments to specify the items to instantiate,
19277 # then the envvar interface is used.  Set only those that are not.
19278 # We use the long form for the default assignment because of an extremely
19279 # bizarre bug on SunOS 4.1.3.
19280 if $ac_need_defaults; then
19281   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19282   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19283   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19284 fi
19285
19286 # Have a temporary directory for convenience.  Make it in the build tree
19287 # simply because there is no reason against having it here, and in addition,
19288 # creating and moving files from /tmp can sometimes cause problems.
19289 # Hook for its removal unless debugging.
19290 # Note that there is a small window in which the directory will not be cleaned:
19291 # after its creation but before its name has been assigned to `$tmp'.
19292 $debug ||
19293 {
19294   tmp=
19295   trap 'exit_status=$?
19296   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19297 ' 0
19298   trap '{ (exit 1); exit 1; }' 1 2 13 15
19299 }
19300 # Create a (secure) tmp directory for tmp files.
19301
19302 {
19303   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19304   test -n "$tmp" && test -d "$tmp"
19305 }  ||
19306 {
19307   tmp=./conf$$-$RANDOM
19308   (umask 077 && mkdir "$tmp")
19309 } ||
19310 {
19311    echo "$me: cannot create a temporary directory in ." >&2
19312    { (exit 1); exit 1; }
19313 }
19314
19315 #
19316 # Set up the sed scripts for CONFIG_FILES section.
19317 #
19318
19319 # No need to generate the scripts if there are no CONFIG_FILES.
19320 # This happens for instance when ./config.status config.h
19321 if test -n "$CONFIG_FILES"; then
19322
19323 _ACEOF
19324
19325
19326
19327 ac_delim='%!_!# '
19328 for ac_last_try in false false false false false :; do
19329   cat >conf$$subs.sed <<_ACEOF
19330 SHELL!$SHELL$ac_delim
19331 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19332 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19333 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19334 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19335 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19336 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19337 exec_prefix!$exec_prefix$ac_delim
19338 prefix!$prefix$ac_delim
19339 program_transform_name!$program_transform_name$ac_delim
19340 bindir!$bindir$ac_delim
19341 sbindir!$sbindir$ac_delim
19342 libexecdir!$libexecdir$ac_delim
19343 datarootdir!$datarootdir$ac_delim
19344 datadir!$datadir$ac_delim
19345 sysconfdir!$sysconfdir$ac_delim
19346 sharedstatedir!$sharedstatedir$ac_delim
19347 localstatedir!$localstatedir$ac_delim
19348 includedir!$includedir$ac_delim
19349 oldincludedir!$oldincludedir$ac_delim
19350 docdir!$docdir$ac_delim
19351 infodir!$infodir$ac_delim
19352 htmldir!$htmldir$ac_delim
19353 dvidir!$dvidir$ac_delim
19354 pdfdir!$pdfdir$ac_delim
19355 psdir!$psdir$ac_delim
19356 libdir!$libdir$ac_delim
19357 localedir!$localedir$ac_delim
19358 mandir!$mandir$ac_delim
19359 DEFS!$DEFS$ac_delim
19360 ECHO_C!$ECHO_C$ac_delim
19361 ECHO_N!$ECHO_N$ac_delim
19362 ECHO_T!$ECHO_T$ac_delim
19363 LIBS!$LIBS$ac_delim
19364 build_alias!$build_alias$ac_delim
19365 host_alias!$host_alias$ac_delim
19366 target_alias!$target_alias$ac_delim
19367 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19368 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19369 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19370 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19371 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19372 CC!$CC$ac_delim
19373 CFLAGS!$CFLAGS$ac_delim
19374 LDFLAGS!$LDFLAGS$ac_delim
19375 CPPFLAGS!$CPPFLAGS$ac_delim
19376 ac_ct_CC!$ac_ct_CC$ac_delim
19377 EXEEXT!$EXEEXT$ac_delim
19378 OBJEXT!$OBJEXT$ac_delim
19379 CXX!$CXX$ac_delim
19380 CXXFLAGS!$CXXFLAGS$ac_delim
19381 ac_ct_CXX!$ac_ct_CXX$ac_delim
19382 CPP!$CPP$ac_delim
19383 subdirs!$subdirs$ac_delim
19384 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19385 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19386 build!$build$ac_delim
19387 build_cpu!$build_cpu$ac_delim
19388 build_vendor!$build_vendor$ac_delim
19389 build_os!$build_os$ac_delim
19390 host!$host$ac_delim
19391 host_cpu!$host_cpu$ac_delim
19392 host_vendor!$host_vendor$ac_delim
19393 host_os!$host_os$ac_delim
19394 target!$target$ac_delim
19395 target_cpu!$target_cpu$ac_delim
19396 target_vendor!$target_vendor$ac_delim
19397 target_os!$target_os$ac_delim
19398 OS!$OS$ac_delim
19399 HOST_OS!$HOST_OS$ac_delim
19400 TARGET_OS!$TARGET_OS$ac_delim
19401 LINKALL!$LINKALL$ac_delim
19402 NOLINKALL!$NOLINKALL$ac_delim
19403 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19404 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19405 ARCH!$ARCH$ac_delim
19406 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19407 HOST_ARCH!$HOST_ARCH$ac_delim
19408 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19409 BUILD_CC!$BUILD_CC$ac_delim
19410 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19411 BUILD_CXX!$BUILD_CXX$ac_delim
19412 CVSBUILD!$CVSBUILD$ac_delim
19413 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19414 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19415 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19416 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19417 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19418 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19419 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19420 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19421 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19422 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19423 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19424 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19425 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19426 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19427 _ACEOF
19428
19429   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19430     break
19431   elif $ac_last_try; then
19432     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19433 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19434    { (exit 1); exit 1; }; }
19435   else
19436     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19437   fi
19438 done
19439
19440 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19441 if test -n "$ac_eof"; then
19442   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19443   ac_eof=`expr $ac_eof + 1`
19444 fi
19445
19446 cat >>$CONFIG_STATUS <<_ACEOF
19447 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19449 _ACEOF
19450 sed '
19451 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19452 s/^/s,@/; s/!/@,|#_!!_#|/
19453 :n
19454 t n
19455 s/'"$ac_delim"'$/,g/; t
19456 s/$/\\/; p
19457 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19458 ' >>$CONFIG_STATUS <conf$$subs.sed
19459 rm -f conf$$subs.sed
19460 cat >>$CONFIG_STATUS <<_ACEOF
19461 CEOF$ac_eof
19462 _ACEOF
19463
19464
19465 ac_delim='%!_!# '
19466 for ac_last_try in false false false false false :; do
19467   cat >conf$$subs.sed <<_ACEOF
19468 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19469 JIT!$JIT$ac_delim
19470 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19471 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19472 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19473 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19474 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19475 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19476 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19477 ENABLE_PIC!$ENABLE_PIC$ac_delim
19478 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19479 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19480 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19481 ALL_TARGETS!$ALL_TARGETS$ac_delim
19482 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19483 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19484 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19485 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19486 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19487 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19488 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19489 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19490 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19491 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19492 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19493 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19494 ifGNUmake!$ifGNUmake$ac_delim
19495 LN_S!$LN_S$ac_delim
19496 NM!$NM$ac_delim
19497 CMP!$CMP$ac_delim
19498 CP!$CP$ac_delim
19499 DATE!$DATE$ac_delim
19500 FIND!$FIND$ac_delim
19501 GREP!$GREP$ac_delim
19502 MKDIR!$MKDIR$ac_delim
19503 MV!$MV$ac_delim
19504 RANLIB!$RANLIB$ac_delim
19505 AR!$AR$ac_delim
19506 RM!$RM$ac_delim
19507 SED!$SED$ac_delim
19508 TAR!$TAR$ac_delim
19509 BINPWD!$BINPWD$ac_delim
19510 DOT!$DOT$ac_delim
19511 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19512 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19513 INSTALL_DATA!$INSTALL_DATA$ac_delim
19514 BZIP2!$BZIP2$ac_delim
19515 CAT!$CAT$ac_delim
19516 DOXYGEN!$DOXYGEN$ac_delim
19517 GROFF!$GROFF$ac_delim
19518 GZIPBIN!$GZIPBIN$ac_delim
19519 PDFROFF!$PDFROFF$ac_delim
19520 ZIP!$ZIP$ac_delim
19521 GO!$GO$ac_delim
19522 OCAMLFIND!$OCAMLFIND$ac_delim
19523 GAS!$GAS$ac_delim
19524 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19525 EGREP!$EGREP$ac_delim
19526 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19527 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19528 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19529 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19530 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19531 NO_COMMENT!$NO_COMMENT$ac_delim
19532 PYTHON!$PYTHON$ac_delim
19533 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19534 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19535 USE_OPROFILE!$USE_OPROFILE$ac_delim
19536 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19537 XML2CONFIG!$XML2CONFIG$ac_delim
19538 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19539 LIBXML2_INC!$LIBXML2_INC$ac_delim
19540 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19541 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19542 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19543 MMAP_FILE!$MMAP_FILE$ac_delim
19544 SHLIBEXT!$SHLIBEXT$ac_delim
19545 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19546 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19547 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19548 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19549 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19550 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19551 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19552 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19553 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19554 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19555 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19556 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19557 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19558 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19559 RPATH!$RPATH$ac_delim
19560 RDYNAMIC!$RDYNAMIC$ac_delim
19561 program_prefix!$program_prefix$ac_delim
19562 LIBOBJS!$LIBOBJS$ac_delim
19563 LTLIBOBJS!$LTLIBOBJS$ac_delim
19564 _ACEOF
19565
19566   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19567     break
19568   elif $ac_last_try; then
19569     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19570 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19571    { (exit 1); exit 1; }; }
19572   else
19573     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19574   fi
19575 done
19576
19577 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19578 if test -n "$ac_eof"; then
19579   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19580   ac_eof=`expr $ac_eof + 1`
19581 fi
19582
19583 cat >>$CONFIG_STATUS <<_ACEOF
19584 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19586 _ACEOF
19587 sed '
19588 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19589 s/^/s,@/; s/!/@,|#_!!_#|/
19590 :n
19591 t n
19592 s/'"$ac_delim"'$/,g/; t
19593 s/$/\\/; p
19594 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19595 ' >>$CONFIG_STATUS <conf$$subs.sed
19596 rm -f conf$$subs.sed
19597 cat >>$CONFIG_STATUS <<_ACEOF
19598 CEOF$ac_eof
19599 _ACEOF
19600
19601
19602 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19603 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19604 # trailing colons and then remove the whole line if VPATH becomes empty
19605 # (actually we leave an empty line to preserve line numbers).
19606 if test "x$srcdir" = x.; then
19607   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19608 s/:*\$(srcdir):*/:/
19609 s/:*\${srcdir}:*/:/
19610 s/:*@srcdir@:*/:/
19611 s/^\([^=]*=[     ]*\):*/\1/
19612 s/:*$//
19613 s/^[^=]*=[       ]*$//
19614 }'
19615 fi
19616
19617 cat >>$CONFIG_STATUS <<\_ACEOF
19618 fi # test -n "$CONFIG_FILES"
19619
19620
19621 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19622 do
19623   case $ac_tag in
19624   :[FHLC]) ac_mode=$ac_tag; continue;;
19625   esac
19626   case $ac_mode$ac_tag in
19627   :[FHL]*:*);;
19628   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19629 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19630    { (exit 1); exit 1; }; };;
19631   :[FH]-) ac_tag=-:-;;
19632   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19633   esac
19634   ac_save_IFS=$IFS
19635   IFS=:
19636   set x $ac_tag
19637   IFS=$ac_save_IFS
19638   shift
19639   ac_file=$1
19640   shift
19641
19642   case $ac_mode in
19643   :L) ac_source=$1;;
19644   :[FH])
19645     ac_file_inputs=
19646     for ac_f
19647     do
19648       case $ac_f in
19649       -) ac_f="$tmp/stdin";;
19650       *) # Look for the file first in the build tree, then in the source tree
19651          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19652          # because $ac_f cannot contain `:'.
19653          test -f "$ac_f" ||
19654            case $ac_f in
19655            [\\/$]*) false;;
19656            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19657            esac ||
19658            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19659 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19660    { (exit 1); exit 1; }; };;
19661       esac
19662       ac_file_inputs="$ac_file_inputs $ac_f"
19663     done
19664
19665     # Let's still pretend it is `configure' which instantiates (i.e., don't
19666     # use $as_me), people would be surprised to read:
19667     #    /* config.h.  Generated by config.status.  */
19668     configure_input="Generated from "`IFS=:
19669           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19670     if test x"$ac_file" != x-; then
19671       configure_input="$ac_file.  $configure_input"
19672       { echo "$as_me:$LINENO: creating $ac_file" >&5
19673 echo "$as_me: creating $ac_file" >&6;}
19674     fi
19675
19676     case $ac_tag in
19677     *:-:* | *:-) cat >"$tmp/stdin";;
19678     esac
19679     ;;
19680   esac
19681
19682   ac_dir=`$as_dirname -- "$ac_file" ||
19683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19684          X"$ac_file" : 'X\(//\)[^/]' \| \
19685          X"$ac_file" : 'X\(//\)$' \| \
19686          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19687 echo X"$ac_file" |
19688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19689             s//\1/
19690             q
19691           }
19692           /^X\(\/\/\)[^/].*/{
19693             s//\1/
19694             q
19695           }
19696           /^X\(\/\/\)$/{
19697             s//\1/
19698             q
19699           }
19700           /^X\(\/\).*/{
19701             s//\1/
19702             q
19703           }
19704           s/.*/./; q'`
19705   { as_dir="$ac_dir"
19706   case $as_dir in #(
19707   -*) as_dir=./$as_dir;;
19708   esac
19709   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19710     as_dirs=
19711     while :; do
19712       case $as_dir in #(
19713       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19714       *) as_qdir=$as_dir;;
19715       esac
19716       as_dirs="'$as_qdir' $as_dirs"
19717       as_dir=`$as_dirname -- "$as_dir" ||
19718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19719          X"$as_dir" : 'X\(//\)[^/]' \| \
19720          X"$as_dir" : 'X\(//\)$' \| \
19721          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19722 echo X"$as_dir" |
19723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19724             s//\1/
19725             q
19726           }
19727           /^X\(\/\/\)[^/].*/{
19728             s//\1/
19729             q
19730           }
19731           /^X\(\/\/\)$/{
19732             s//\1/
19733             q
19734           }
19735           /^X\(\/\).*/{
19736             s//\1/
19737             q
19738           }
19739           s/.*/./; q'`
19740       test -d "$as_dir" && break
19741     done
19742     test -z "$as_dirs" || eval "mkdir $as_dirs"
19743   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19744 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19745    { (exit 1); exit 1; }; }; }
19746   ac_builddir=.
19747
19748 case "$ac_dir" in
19749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19750 *)
19751   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19752   # A ".." for each directory in $ac_dir_suffix.
19753   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19754   case $ac_top_builddir_sub in
19755   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19756   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19757   esac ;;
19758 esac
19759 ac_abs_top_builddir=$ac_pwd
19760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19761 # for backward compatibility:
19762 ac_top_builddir=$ac_top_build_prefix
19763
19764 case $srcdir in
19765   .)  # We are building in place.
19766     ac_srcdir=.
19767     ac_top_srcdir=$ac_top_builddir_sub
19768     ac_abs_top_srcdir=$ac_pwd ;;
19769   [\\/]* | ?:[\\/]* )  # Absolute name.
19770     ac_srcdir=$srcdir$ac_dir_suffix;
19771     ac_top_srcdir=$srcdir
19772     ac_abs_top_srcdir=$srcdir ;;
19773   *) # Relative name.
19774     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19775     ac_top_srcdir=$ac_top_build_prefix$srcdir
19776     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19777 esac
19778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19779
19780
19781   case $ac_mode in
19782   :F)
19783   #
19784   # CONFIG_FILE
19785   #
19786
19787   case $INSTALL in
19788   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19789   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19790   esac
19791 _ACEOF
19792
19793 cat >>$CONFIG_STATUS <<\_ACEOF
19794 # If the template does not know about datarootdir, expand it.
19795 # FIXME: This hack should be removed a few years after 2.60.
19796 ac_datarootdir_hack=; ac_datarootdir_seen=
19797
19798 case `sed -n '/datarootdir/ {
19799   p
19800   q
19801 }
19802 /@datadir@/p
19803 /@docdir@/p
19804 /@infodir@/p
19805 /@localedir@/p
19806 /@mandir@/p
19807 ' $ac_file_inputs` in
19808 *datarootdir*) ac_datarootdir_seen=yes;;
19809 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19810   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19811 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19812 _ACEOF
19813 cat >>$CONFIG_STATUS <<_ACEOF
19814   ac_datarootdir_hack='
19815   s&@datadir@&$datadir&g
19816   s&@docdir@&$docdir&g
19817   s&@infodir@&$infodir&g
19818   s&@localedir@&$localedir&g
19819   s&@mandir@&$mandir&g
19820     s&\\\${datarootdir}&$datarootdir&g' ;;
19821 esac
19822 _ACEOF
19823
19824 # Neutralize VPATH when `$srcdir' = `.'.
19825 # Shell code in configure.ac might set extrasub.
19826 # FIXME: do we really want to maintain this feature?
19827 cat >>$CONFIG_STATUS <<_ACEOF
19828   sed "$ac_vpsub
19829 $extrasub
19830 _ACEOF
19831 cat >>$CONFIG_STATUS <<\_ACEOF
19832 :t
19833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19834 s&@configure_input@&$configure_input&;t t
19835 s&@top_builddir@&$ac_top_builddir_sub&;t t
19836 s&@srcdir@&$ac_srcdir&;t t
19837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19838 s&@top_srcdir@&$ac_top_srcdir&;t t
19839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19840 s&@builddir@&$ac_builddir&;t t
19841 s&@abs_builddir@&$ac_abs_builddir&;t t
19842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19843 s&@INSTALL@&$ac_INSTALL&;t t
19844 $ac_datarootdir_hack
19845 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19846
19847 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19848   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19849   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19850   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19851 which seems to be undefined.  Please make sure it is defined." >&5
19852 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19853 which seems to be undefined.  Please make sure it is defined." >&2;}
19854
19855   rm -f "$tmp/stdin"
19856   case $ac_file in
19857   -) cat "$tmp/out"; rm -f "$tmp/out";;
19858   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19859   esac
19860  ;;
19861   :H)
19862   #
19863   # CONFIG_HEADER
19864   #
19865 _ACEOF
19866
19867 # Transform confdefs.h into a sed script `conftest.defines', that
19868 # substitutes the proper values into config.h.in to produce config.h.
19869 rm -f conftest.defines conftest.tail
19870 # First, append a space to every undef/define line, to ease matching.
19871 echo 's/$/ /' >conftest.defines
19872 # Then, protect against being on the right side of a sed subst, or in
19873 # an unquoted here document, in config.status.  If some macros were
19874 # called several times there might be several #defines for the same
19875 # symbol, which is useless.  But do not sort them, since the last
19876 # AC_DEFINE must be honored.
19877 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19878 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19879 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19880 # PARAMS is the parameter list in the macro definition--in most cases, it's
19881 # just an empty string.
19882 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19883 ac_dB='\\)[      (].*,\\1define\\2'
19884 ac_dC=' '
19885 ac_dD=' ,'
19886
19887 uniq confdefs.h |
19888   sed -n '
19889         t rset
19890         :rset
19891         s/^[     ]*#[    ]*define[       ][      ]*//
19892         t ok
19893         d
19894         :ok
19895         s/[\\&,]/\\&/g
19896         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19897         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19898   ' >>conftest.defines
19899
19900 # Remove the space that was appended to ease matching.
19901 # Then replace #undef with comments.  This is necessary, for
19902 # example, in the case of _POSIX_SOURCE, which is predefined and required
19903 # on some systems where configure will not decide to define it.
19904 # (The regexp can be short, since the line contains either #define or #undef.)
19905 echo 's/ $//
19906 s,^[     #]*u.*,/* & */,' >>conftest.defines
19907
19908 # Break up conftest.defines:
19909 ac_max_sed_lines=50
19910
19911 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19912 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19913 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19914 # et cetera.
19915 ac_in='$ac_file_inputs'
19916 ac_out='"$tmp/out1"'
19917 ac_nxt='"$tmp/out2"'
19918
19919 while :
19920 do
19921   # Write a here document:
19922     cat >>$CONFIG_STATUS <<_ACEOF
19923     # First, check the format of the line:
19924     cat >"\$tmp/defines.sed" <<\\CEOF
19925 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19926 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19927 b
19928 :def
19929 _ACEOF
19930   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19931   echo 'CEOF
19932     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19933   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19934   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19935   grep . conftest.tail >/dev/null || break
19936   rm -f conftest.defines
19937   mv conftest.tail conftest.defines
19938 done
19939 rm -f conftest.defines conftest.tail
19940
19941 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19942 cat >>$CONFIG_STATUS <<\_ACEOF
19943   if test x"$ac_file" != x-; then
19944     echo "/* $configure_input  */" >"$tmp/config.h"
19945     cat "$ac_result" >>"$tmp/config.h"
19946     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19947       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19948 echo "$as_me: $ac_file is unchanged" >&6;}
19949     else
19950       rm -f $ac_file
19951       mv "$tmp/config.h" $ac_file
19952     fi
19953   else
19954     echo "/* $configure_input  */"
19955     cat "$ac_result"
19956   fi
19957   rm -f "$tmp/out12"
19958  ;;
19959
19960   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19961 echo "$as_me: executing $ac_file commands" >&6;}
19962  ;;
19963   esac
19964
19965
19966   case $ac_file$ac_mode in
19967     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19968    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19969     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19970    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19971     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19972    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19973     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19974    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19975     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19976    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19977     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19978    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19979     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19980    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19981     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19982    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19983     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19984    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19985     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19986    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19987     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19988    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19989     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19990    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19991
19992   esac
19993 done # for ac_tag
19994
19995
19996 { (exit 0); exit 0; }
19997 _ACEOF
19998 chmod +x $CONFIG_STATUS
19999 ac_clean_files=$ac_clean_files_save
20000
20001
20002 # configure is writing to config.log, and then calls config.status.
20003 # config.status does its own redirection, appending to config.log.
20004 # Unfortunately, on DOS this fails, as config.log is still kept open
20005 # by configure, so config.status won't be able to write to it; its
20006 # output is simply discarded.  So we exec the FD to /dev/null,
20007 # effectively closing config.log, so it can be properly (re)opened and
20008 # appended to by config.status.  When coming back to configure, we
20009 # need to make the FD available again.
20010 if test "$no_create" != yes; then
20011   ac_cs_success=:
20012   ac_config_status_args=
20013   test "$silent" = yes &&
20014     ac_config_status_args="$ac_config_status_args --quiet"
20015   exec 5>/dev/null
20016   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20017   exec 5>>config.log
20018   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20019   # would make configure fail if this is the last instruction.
20020   $ac_cs_success || { (exit 1); exit 1; }
20021 fi
20022
20023 #
20024 # CONFIG_SUBDIRS section.
20025 #
20026 if test "$no_recursion" != yes; then
20027
20028   # Remove --cache-file and --srcdir arguments so they do not pile up.
20029   ac_sub_configure_args=
20030   ac_prev=
20031   eval "set x $ac_configure_args"
20032   shift
20033   for ac_arg
20034   do
20035     if test -n "$ac_prev"; then
20036       ac_prev=
20037       continue
20038     fi
20039     case $ac_arg in
20040     -cache-file | --cache-file | --cache-fil | --cache-fi \
20041     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20042       ac_prev=cache_file ;;
20043     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20044     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20045     | --c=*)
20046       ;;
20047     --config-cache | -C)
20048       ;;
20049     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20050       ac_prev=srcdir ;;
20051     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20052       ;;
20053     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20054       ac_prev=prefix ;;
20055     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20056       ;;
20057     *)
20058       case $ac_arg in
20059       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20060       esac
20061       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20062     esac
20063   done
20064
20065   # Always prepend --prefix to ensure using the same prefix
20066   # in subdir configurations.
20067   ac_arg="--prefix=$prefix"
20068   case $ac_arg in
20069   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20070   esac
20071   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20072
20073   ac_popdir=`pwd`
20074   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20075
20076     # Do not complain, so a configure script can configure whichever
20077     # parts of a large source tree are present.
20078     test -d "$srcdir/$ac_dir" || continue
20079
20080     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20081     echo "$as_me:$LINENO: $ac_msg" >&5
20082     echo "$ac_msg" >&6
20083     { as_dir="$ac_dir"
20084   case $as_dir in #(
20085   -*) as_dir=./$as_dir;;
20086   esac
20087   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20088     as_dirs=
20089     while :; do
20090       case $as_dir in #(
20091       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20092       *) as_qdir=$as_dir;;
20093       esac
20094       as_dirs="'$as_qdir' $as_dirs"
20095       as_dir=`$as_dirname -- "$as_dir" ||
20096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20097          X"$as_dir" : 'X\(//\)[^/]' \| \
20098          X"$as_dir" : 'X\(//\)$' \| \
20099          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20100 echo X"$as_dir" |
20101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20102             s//\1/
20103             q
20104           }
20105           /^X\(\/\/\)[^/].*/{
20106             s//\1/
20107             q
20108           }
20109           /^X\(\/\/\)$/{
20110             s//\1/
20111             q
20112           }
20113           /^X\(\/\).*/{
20114             s//\1/
20115             q
20116           }
20117           s/.*/./; q'`
20118       test -d "$as_dir" && break
20119     done
20120     test -z "$as_dirs" || eval "mkdir $as_dirs"
20121   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20122 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20123    { (exit 1); exit 1; }; }; }
20124     ac_builddir=.
20125
20126 case "$ac_dir" in
20127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20128 *)
20129   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20130   # A ".." for each directory in $ac_dir_suffix.
20131   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20132   case $ac_top_builddir_sub in
20133   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20134   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20135   esac ;;
20136 esac
20137 ac_abs_top_builddir=$ac_pwd
20138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20139 # for backward compatibility:
20140 ac_top_builddir=$ac_top_build_prefix
20141
20142 case $srcdir in
20143   .)  # We are building in place.
20144     ac_srcdir=.
20145     ac_top_srcdir=$ac_top_builddir_sub
20146     ac_abs_top_srcdir=$ac_pwd ;;
20147   [\\/]* | ?:[\\/]* )  # Absolute name.
20148     ac_srcdir=$srcdir$ac_dir_suffix;
20149     ac_top_srcdir=$srcdir
20150     ac_abs_top_srcdir=$srcdir ;;
20151   *) # Relative name.
20152     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20153     ac_top_srcdir=$ac_top_build_prefix$srcdir
20154     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20155 esac
20156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20157
20158
20159     cd "$ac_dir"
20160
20161     # Check for guested configure; otherwise get Cygnus style configure.
20162     if test -f "$ac_srcdir/configure.gnu"; then
20163       ac_sub_configure=$ac_srcdir/configure.gnu
20164     elif test -f "$ac_srcdir/configure"; then
20165       ac_sub_configure=$ac_srcdir/configure
20166     elif test -f "$ac_srcdir/configure.in"; then
20167       # This should be Cygnus configure.
20168       ac_sub_configure=$ac_aux_dir/configure
20169     else
20170       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20171 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20172       ac_sub_configure=
20173     fi
20174
20175     # The recursion is here.
20176     if test -n "$ac_sub_configure"; then
20177       # Make the cache file name correct relative to the subdirectory.
20178       case $cache_file in
20179       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20180       *) # Relative name.
20181         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20182       esac
20183
20184       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20185 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20186       # The eval makes quoting arguments work.
20187       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20188            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20189         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20190 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20191    { (exit 1); exit 1; }; }
20192     fi
20193
20194     cd "$ac_popdir"
20195   done
20196 fi
20197