Making the SO version major.minor instead of just major because ABI and API change...
[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   *-*-bitrig*)
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="Bitrig"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-hpux*)
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="HP-UX"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-interix*)
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="Interix"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-linux*)
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="Linux"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-gnu*)
3990     llvm_cv_link_all_option="-Wl,--whole-archive"
3991     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992     llvm_cv_os_type="GNU"
3993     llvm_cv_platform_type="Unix" ;;
3994   *-*-solaris*)
3995     llvm_cv_link_all_option="-Wl,-z,allextract"
3996     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3997     llvm_cv_os_type="SunOS"
3998     llvm_cv_platform_type="Unix" ;;
3999   *-*-win32*)
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="Win32"
4003     llvm_cv_platform_type="Win32" ;;
4004   *-*-mingw*)
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="MingW"
4008     llvm_cv_platform_type="Win32" ;;
4009   *-*-haiku*)
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="Haiku"
4013     llvm_cv_platform_type="Unix" ;;
4014   *-unknown-eabi*)
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   *-unknown-elf*)
4020     llvm_cv_link_all_option="-Wl,--whole-archive"
4021     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022     llvm_cv_os_type="Freestanding"
4023     llvm_cv_platform_type="Unix" ;;
4024   *)
4025     llvm_cv_link_all_option=""
4026     llvm_cv_no_link_all_option=""
4027     llvm_cv_os_type="Unknown"
4028     llvm_cv_platform_type="Unknown" ;;
4029 esac
4030 fi
4031 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4032 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4033
4034 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4035 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4036 if test "${llvm_cv_target_os_type+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   case $target in
4040   *-*-aix*)
4041     llvm_cv_target_os_type="AIX" ;;
4042   *-*-irix*)
4043     llvm_cv_target_os_type="IRIX" ;;
4044   *-*-cygwin*)
4045     llvm_cv_target_os_type="Cygwin" ;;
4046   *-*-darwin*)
4047     llvm_cv_target_os_type="Darwin" ;;
4048   *-*-minix*)
4049     llvm_cv_target_os_type="Minix" ;;
4050   *-*-freebsd*)
4051     llvm_cv_target_os_type="FreeBSD" ;;
4052   *-*-kfreebsd-gnu)
4053     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4054   *-*-openbsd*)
4055     llvm_cv_target_os_type="OpenBSD" ;;
4056   *-*-netbsd*)
4057     llvm_cv_target_os_type="NetBSD" ;;
4058   *-*-dragonfly*)
4059     llvm_cv_target_os_type="DragonFly" ;;
4060   *-*-bitrig*)
4061     llvm_cv_target_os_type="Bitrig" ;;
4062   *-*-hpux*)
4063     llvm_cv_target_os_type="HP-UX" ;;
4064   *-*-interix*)
4065     llvm_cv_target_os_type="Interix" ;;
4066   *-*-linux*)
4067     llvm_cv_target_os_type="Linux" ;;
4068   *-*-gnu*)
4069     llvm_cv_target_os_type="GNU" ;;
4070   *-*-solaris*)
4071     llvm_cv_target_os_type="SunOS" ;;
4072   *-*-win32*)
4073     llvm_cv_target_os_type="Win32" ;;
4074   *-*-mingw*)
4075     llvm_cv_target_os_type="MingW" ;;
4076   *-*-haiku*)
4077     llvm_cv_target_os_type="Haiku" ;;
4078   *-*-rtems*)
4079     llvm_cv_target_os_type="RTEMS" ;;
4080   *-*-nacl*)
4081     llvm_cv_target_os_type="NativeClient" ;;
4082   *-unknown-eabi*)
4083     llvm_cv_target_os_type="Freestanding" ;;
4084   *-*-ps4)
4085     llvm_cv_target_os_type="PS4" ;;
4086   *)
4087     llvm_cv_target_os_type="Unknown" ;;
4088 esac
4089 fi
4090 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4091 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4092
4093 if test "$llvm_cv_os_type" = "Unknown" ; then
4094   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4095 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4096    { (exit 1); exit 1; }; }
4097 fi
4098
4099 OS=$llvm_cv_os_type
4100
4101 HOST_OS=$llvm_cv_os_type
4102
4103 TARGET_OS=$llvm_cv_target_os_type
4104
4105
4106 LINKALL=$llvm_cv_link_all_option
4107
4108 NOLINKALL=$llvm_cv_no_link_all_option
4109
4110
4111 case $llvm_cv_platform_type in
4112   Unix)
4113
4114 cat >>confdefs.h <<\_ACEOF
4115 #define LLVM_ON_UNIX 1
4116 _ACEOF
4117
4118     LLVM_ON_UNIX=1
4119
4120     LLVM_ON_WIN32=0
4121
4122     ;;
4123   Win32)
4124
4125 cat >>confdefs.h <<\_ACEOF
4126 #define LLVM_ON_WIN32 1
4127 _ACEOF
4128
4129     LLVM_ON_UNIX=0
4130
4131     LLVM_ON_WIN32=1
4132
4133     ;;
4134 esac
4135
4136 { echo "$as_me:$LINENO: checking target architecture" >&5
4137 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4138 if test "${llvm_cv_target_arch+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   case $target in
4142   i?86-*)                 llvm_cv_target_arch="x86" ;;
4143   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4144   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4145   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4146   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4147   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4148   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4149   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4150   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4151   xcore-*)                llvm_cv_target_arch="XCore" ;;
4152   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4153   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4154   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4155   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4156   *)                      llvm_cv_target_arch="Unknown" ;;
4157 esac
4158 fi
4159 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4160 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4161
4162 if test "$llvm_cv_target_arch" = "Unknown" ; then
4163   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4164 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4165 fi
4166
4167 case "$llvm_cv_target_arch" in
4168     x86)     LLVM_NATIVE_ARCH="X86" ;;
4169     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4170     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4171 esac
4172
4173 ARCH=$llvm_cv_target_arch
4174
4175 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4176
4177
4178 case $host in
4179   i?86-*)                 host_arch="x86" ;;
4180   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4181   sparc*-*)               host_arch="Sparc" ;;
4182   powerpc*-*)             host_arch="PowerPC" ;;
4183   arm64*-*)               host_arch="AArch64" ;;
4184   arm*-*)                 host_arch="ARM" ;;
4185   aarch64*-*)             host_arch="AArch64" ;;
4186   mips-* | mips64-*)      host_arch="Mips" ;;
4187   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4188   xcore-*)                host_arch="XCore" ;;
4189   msp430-*)               host_arch="MSP430" ;;
4190   hexagon-*)              host_arch="Hexagon" ;;
4191   s390x-*)                host_arch="SystemZ" ;;
4192   *)                      host_arch="Unknown" ;;
4193 esac
4194
4195 if test "$host_arch" = "Unknown" ; then
4196   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4197 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4198 fi
4199
4200 HOST_ARCH=$host_arch
4201
4202
4203 if test "$cross_compiling" = yes; then
4204   LLVM_CROSS_COMPILING=1
4205
4206
4207 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4208 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4209 if test "${ac_cv_build_exeext+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4213   ac_cv_build_exeext=.exe
4214 else
4215   ac_build_prefix=${build_alias}-
4216
4217   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4218 set dummy ${ac_build_prefix}gcc; ac_word=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   if test -n "$BUILD_CC"; then
4225   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230   IFS=$as_save_IFS
4231   test -z "$as_dir" && as_dir=.
4232   for ac_exec_ext in '' $ac_executable_extensions; do
4233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4234     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236     break 2
4237   fi
4238 done
4239 done
4240 IFS=$as_save_IFS
4241
4242 fi
4243 fi
4244 BUILD_CC=$ac_cv_prog_BUILD_CC
4245 if test -n "$BUILD_CC"; then
4246   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4247 echo "${ECHO_T}$BUILD_CC" >&6; }
4248 else
4249   { echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6; }
4251 fi
4252
4253
4254   if test -z "$BUILD_CC"; then
4255      # Extract the first word of "gcc", so it can be a program name with args.
4256 set dummy gcc; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262   if test -n "$BUILD_CC"; then
4263   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_exec_ext in '' $ac_executable_extensions; do
4271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4272     ac_cv_prog_BUILD_CC="gcc"
4273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 BUILD_CC=$ac_cv_prog_BUILD_CC
4283 if test -n "$BUILD_CC"; then
4284   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4285 echo "${ECHO_T}$BUILD_CC" >&6; }
4286 else
4287   { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4289 fi
4290
4291
4292      if test -z "$BUILD_CC"; then
4293        # Extract the first word of "cc", so it can be a program name with args.
4294 set dummy cc; ac_word=$2
4295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   if test -n "$BUILD_CC"; then
4301   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4302 else
4303   ac_prog_rejected=no
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4311     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4312        ac_prog_rejected=yes
4313        continue
4314      fi
4315     ac_cv_prog_BUILD_CC="cc"
4316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317     break 2
4318   fi
4319 done
4320 done
4321 IFS=$as_save_IFS
4322
4323 if test $ac_prog_rejected = yes; then
4324   # We found a bogon in the path, so make sure we never use it.
4325   set dummy $ac_cv_prog_BUILD_CC
4326   shift
4327   if test $# != 0; then
4328     # We chose a different compiler from the bogus one.
4329     # However, it has the same basename, so the bogon will be chosen
4330     # first if we set BUILD_CC to just the basename; use the full file name.
4331     shift
4332     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4333   fi
4334 fi
4335 fi
4336 fi
4337 BUILD_CC=$ac_cv_prog_BUILD_CC
4338 if test -n "$BUILD_CC"; then
4339   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4340 echo "${ECHO_T}$BUILD_CC" >&6; }
4341 else
4342   { echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6; }
4344 fi
4345
4346
4347      fi
4348   fi
4349   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4350 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4351    { (exit 1); exit 1; }; }
4352   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4353   rm -f conftest*
4354   echo 'int main () { return 0; }' > conftest.$ac_ext
4355   ac_cv_build_exeext=
4356   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4357   (eval $ac_build_link) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; then
4361     for file in conftest.*; do
4362       case $file in
4363       *.c | *.o | *.obj | *.dSYM) ;;
4364       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4365       esac
4366     done
4367   else
4368     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4369 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4370    { (exit 1); exit 1; }; }
4371   fi
4372   rm -f conftest*
4373   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4374 fi
4375 fi
4376
4377 BUILD_EXEEXT=""
4378 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4379 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4380 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4381 ac_build_exeext=$BUILD_EXEEXT
4382
4383   ac_build_prefix=${build_alias}-
4384   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}g++; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   if test -n "$BUILD_CXX"; then
4392   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399   for ac_exec_ext in '' $ac_executable_extensions; do
4400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406 done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4412 if test -n "$BUILD_CXX"; then
4413   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4414 echo "${ECHO_T}$BUILD_CXX" >&6; }
4415 else
4416   { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4418 fi
4419
4420
4421   if test -z "$BUILD_CXX"; then
4422      # Extract the first word of "g++", so it can be a program name with args.
4423 set dummy g++; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if test -n "$BUILD_CXX"; then
4430   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     ac_cv_prog_BUILD_CXX="g++"
4440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444 done
4445 IFS=$as_save_IFS
4446
4447 fi
4448 fi
4449 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4450 if test -n "$BUILD_CXX"; then
4451   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4452 echo "${ECHO_T}$BUILD_CXX" >&6; }
4453 else
4454   { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4456 fi
4457
4458
4459      if test -z "$BUILD_CXX"; then
4460        # Extract the first word of "c++", so it can be a program name with args.
4461 set dummy c++; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   if test -n "$BUILD_CXX"; then
4468   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4469 else
4470   ac_prog_rejected=no
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4479        ac_prog_rejected=yes
4480        continue
4481      fi
4482     ac_cv_prog_BUILD_CXX="c++"
4483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 if test $ac_prog_rejected = yes; then
4491   # We found a bogon in the path, so make sure we never use it.
4492   set dummy $ac_cv_prog_BUILD_CXX
4493   shift
4494   if test $# != 0; then
4495     # We chose a different compiler from the bogus one.
4496     # However, it has the same basename, so the bogon will be chosen
4497     # first if we set BUILD_CXX to just the basename; use the full file name.
4498     shift
4499     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4500   fi
4501 fi
4502 fi
4503 fi
4504 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4505 if test -n "$BUILD_CXX"; then
4506   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4507 echo "${ECHO_T}$BUILD_CXX" >&6; }
4508 else
4509   { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4511 fi
4512
4513
4514      fi
4515   fi
4516 else
4517   LLVM_CROSS_COMPILING=0
4518
4519 fi
4520
4521 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4522   cvsbuild="yes"
4523   optimize="no"
4524   CVSBUILD=CVSBUILD=1
4525
4526 else
4527   cvsbuild="no"
4528   optimize="yes"
4529 fi
4530
4531
4532 # Check whether --enable-libcpp was given.
4533 if test "${enable_libcpp+set}" = set; then
4534   enableval=$enable_libcpp;
4535 else
4536   enableval=default
4537 fi
4538
4539 case "$enableval" in
4540   yes) ENABLE_LIBCPP=1
4541  ;;
4542   no)  ENABLE_LIBCPP=0
4543  ;;
4544   default) ENABLE_LIBCPP=0
4545 ;;
4546   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4547 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4548    { (exit 1); exit 1; }; } ;;
4549 esac
4550
4551 # Check whether --enable-compiler-version-checks was given.
4552 if test "${enable_compiler_version_checks+set}" = set; then
4553   enableval=$enable_compiler_version_checks;
4554 else
4555   enableval=default
4556 fi
4557
4558 case "$enableval" in
4559   no)
4560     ;;
4561   yes|default)
4562     ac_ext=cpp
4563 ac_cpp='$CXXCPP $CPPFLAGS'
4564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4567
4568     case "$llvm_cv_cxx_compiler" in
4569     clang)
4570       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4571 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4572       cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578
4579 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4580 #error This version of Clang is too old to build LLVM
4581 #endif
4582
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (ac_try="$ac_compile"
4586 case "(($ac_try" in
4587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588   *) ac_try_echo=$ac_try;;
4589 esac
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591   (eval "$ac_compile") 2>conftest.er1
4592   ac_status=$?
4593   grep -v '^ *+' conftest.er1 >conftest.err
4594   rm -f conftest.er1
4595   cat conftest.err >&5
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } &&
4598          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4599   { (case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_try") 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); }; } &&
4608          { ac_try='test -s conftest.$ac_objext'
4609   { (case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614   (eval "$ac_try") 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   { echo "$as_me:$LINENO: result: yes" >&5
4619 echo "${ECHO_T}yes" >&6; }
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624         { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4626            { { echo "$as_me:$LINENO: error:
4627 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4628 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4629 bypass these sanity checks." >&5
4630 echo "$as_me: error:
4631 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4632 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4633 bypass these sanity checks." >&2;}
4634    { (exit 1); exit 1; }; }
4635 fi
4636
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638
4639                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4640         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4641 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4642         llvm_cv_old_cxxflags="$CXXFLAGS"
4643         CXXFLAGS="$CXXFLAGS -std=c++0x"
4644         cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h.  */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h.  */
4650
4651 #include <atomic>
4652 std::atomic<float> x(0.0f);
4653 int main() { return (float)x; }
4654
4655 _ACEOF
4656 rm -f conftest.$ac_objext conftest$ac_exeext
4657 if { (ac_try="$ac_link"
4658 case "(($ac_try" in
4659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660   *) ac_try_echo=$ac_try;;
4661 esac
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663   (eval "$ac_link") 2>conftest.er1
4664   ac_status=$?
4665   grep -v '^ *+' conftest.er1 >conftest.err
4666   rm -f conftest.er1
4667   cat conftest.err >&5
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); } &&
4670          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4671   { (case "(($ac_try" in
4672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673   *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676   (eval "$ac_try") 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }; } &&
4680          { ac_try='test -s conftest$ac_exeext'
4681   { (case "(($ac_try" in
4682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683   *) ac_try_echo=$ac_try;;
4684 esac
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686   (eval "$ac_try") 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); }; }; then
4690   { echo "$as_me:$LINENO: result: yes" >&5
4691 echo "${ECHO_T}yes" >&6; }
4692 else
4693   echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696         { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698              { { echo "$as_me:$LINENO: error:
4699 We detected a missing feature in the standard C++ library that was known to be
4700 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4701 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4702 than 4.7. You will need to update your system and ensure Clang uses the newer
4703 standard library.
4704
4705 If this error is incorrect or you need to force things to work, you may pass
4706 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4707 echo "$as_me: error:
4708 We detected a missing feature in the standard C++ library that was known to be
4709 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4710 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4711 than 4.7. You will need to update your system and ensure Clang uses the newer
4712 standard library.
4713
4714 If this error is incorrect or you need to force things to work, you may pass
4715 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4716    { (exit 1); exit 1; }; }
4717 fi
4718
4719 rm -f core conftest.err conftest.$ac_objext \
4720       conftest$ac_exeext conftest.$ac_ext
4721         CXXFLAGS="$llvm_cv_old_cxxflags"
4722       fi
4723       ;;
4724     gcc)
4725       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4726 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4727       cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733
4734 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4735 #error This version of GCC is too old to build LLVM
4736 #endif
4737
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (ac_try="$ac_compile"
4741 case "(($ac_try" in
4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743   *) ac_try_echo=$ac_try;;
4744 esac
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746   (eval "$ac_compile") 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } &&
4753          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4754   { (case "(($ac_try" in
4755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756   *) ac_try_echo=$ac_try;;
4757 esac
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759   (eval "$ac_try") 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }; } &&
4763          { ac_try='test -s conftest.$ac_objext'
4764   { (case "(($ac_try" in
4765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766   *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769   (eval "$ac_try") 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; }; then
4773   { echo "$as_me:$LINENO: result: yes" >&5
4774 echo "${ECHO_T}yes" >&6; }
4775 else
4776   echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779         { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4781            { { echo "$as_me:$LINENO: error:
4782 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4783 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4784 bypass these sanity checks." >&5
4785 echo "$as_me: error:
4786 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4787 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4788 bypass these sanity checks." >&2;}
4789    { (exit 1); exit 1; }; }
4790 fi
4791
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793       ;;
4794     unknown)
4795       ;;
4796     esac
4797     ac_ext=c
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802
4803     ;;
4804   *)
4805     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4806 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4807    { (exit 1); exit 1; }; }
4808     ;;
4809 esac
4810
4811 # Check whether --enable-cxx1y was given.
4812 if test "${enable_cxx1y+set}" = set; then
4813   enableval=$enable_cxx1y;
4814 else
4815   enableval=default
4816 fi
4817
4818 case "$enableval" in
4819   yes) ENABLE_CXX1Y=1
4820  ;;
4821   no)  ENABLE_CXX1Y=0
4822  ;;
4823   default) ENABLE_CXX1Y=0
4824 ;;
4825   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4826 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4827    { (exit 1); exit 1; }; } ;;
4828 esac
4829
4830 # Check whether --enable-split-dwarf was given.
4831 if test "${enable_split_dwarf+set}" = set; then
4832   enableval=$enable_split_dwarf;
4833 else
4834   enableval=default
4835 fi
4836
4837 case "$enableval" in
4838   yes) ENABLE_SPLIT_DWARF=1
4839  ;;
4840   no)  ENABLE_SPLIT_DWARF=0
4841  ;;
4842   default) ENABLE_SPLIT_DWARF=0
4843 ;;
4844   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4845 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4846    { (exit 1); exit 1; }; } ;;
4847 esac
4848
4849 clang_arcmt="yes"
4850 # Check whether --enable-clang-arcmt was given.
4851 if test "${enable_clang_arcmt+set}" = set; then
4852   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4853 else
4854   enableval="yes"
4855 fi
4856
4857 case "$enableval" in
4858   yes) ENABLE_CLANG_ARCMT=1
4859  ;;
4860   no)  ENABLE_CLANG_ARCMT=0
4861  ;;
4862   default) ENABLE_CLANG_ARCMT=1
4863 ;;
4864   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4865 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4866    { (exit 1); exit 1; }; } ;;
4867 esac
4868
4869 clang_plugin_support="yes"
4870 # Check whether --enable-clang-plugin-support was given.
4871 if test "${enable_clang_plugin_support+set}" = set; then
4872   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4873 else
4874   enableval="yes"
4875 fi
4876
4877 case "$enableval" in
4878   yes) CLANG_PLUGIN_SUPPORT=1
4879  ;;
4880   no)  CLANG_PLUGIN_SUPPORT=0
4881  ;;
4882   default) CLANG_PLUGIN_SUPPORT=1
4883 ;;
4884   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4885 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4886    { (exit 1); exit 1; }; } ;;
4887 esac
4888
4889 clang_static_analyzer="yes"
4890 # Check whether --enable-clang-static-analyzer was given.
4891 if test "${enable_clang_static_analyzer+set}" = set; then
4892   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4893 else
4894   enableval="yes"
4895 fi
4896
4897 case "$enableval" in
4898   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4899  ;;
4900   no)
4901     if test ${clang_arcmt} != "no" ; then
4902       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4903 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4904    { (exit 1); exit 1; }; }
4905     fi
4906     ENABLE_CLANG_STATIC_ANALYZER=0
4907
4908     ;;
4909   default) ENABLE_CLANG_STATIC_ANALYZER=1
4910 ;;
4911   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4912 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4913    { (exit 1); exit 1; }; } ;;
4914 esac
4915
4916 # Check whether --enable-optimized was given.
4917 if test "${enable_optimized+set}" = set; then
4918   enableval=$enable_optimized;
4919 else
4920   enableval=$optimize
4921 fi
4922
4923 if test ${enableval} = "no" ; then
4924   ENABLE_OPTIMIZED=
4925
4926 else
4927   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4928
4929 fi
4930
4931 # Check whether --enable-profiling was given.
4932 if test "${enable_profiling+set}" = set; then
4933   enableval=$enable_profiling;
4934 else
4935   enableval="no"
4936 fi
4937
4938 if test ${enableval} = "no" ; then
4939   ENABLE_PROFILING=
4940
4941 else
4942   ENABLE_PROFILING=ENABLE_PROFILING=1
4943
4944 fi
4945
4946 # Check whether --enable-assertions was given.
4947 if test "${enable_assertions+set}" = set; then
4948   enableval=$enable_assertions;
4949 else
4950   enableval="yes"
4951 fi
4952
4953 if test ${enableval} = "yes" ; then
4954   DISABLE_ASSERTIONS=
4955
4956 else
4957   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4958
4959 fi
4960
4961 # Check whether --enable-werror was given.
4962 if test "${enable_werror+set}" = set; then
4963   enableval=$enable_werror;
4964 else
4965   enableval="no"
4966 fi
4967
4968 case "$enableval" in
4969   yes) ENABLE_WERROR=1
4970  ;;
4971   no)  ENABLE_WERROR=0
4972  ;;
4973   default) ENABLE_WERROR=0
4974 ;;
4975   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4976 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4977    { (exit 1); exit 1; }; } ;;
4978 esac
4979
4980 # Check whether --enable-expensive-checks was given.
4981 if test "${enable_expensive_checks+set}" = set; then
4982   enableval=$enable_expensive_checks;
4983 else
4984   enableval="no"
4985 fi
4986
4987 if test ${enableval} = "yes" ; then
4988   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4989
4990   EXPENSIVE_CHECKS=yes
4991
4992 else
4993   ENABLE_EXPENSIVE_CHECKS=
4994
4995   EXPENSIVE_CHECKS=no
4996
4997 fi
4998
4999 # Check whether --enable-debug-runtime was given.
5000 if test "${enable_debug_runtime+set}" = set; then
5001   enableval=$enable_debug_runtime;
5002 else
5003   enableval=no
5004 fi
5005
5006 if test ${enableval} = "no" ; then
5007   DEBUG_RUNTIME=
5008
5009 else
5010   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5011
5012 fi
5013
5014 # Check whether --enable-debug-symbols was given.
5015 if test "${enable_debug_symbols+set}" = set; then
5016   enableval=$enable_debug_symbols;
5017 else
5018   enableval=no
5019 fi
5020
5021 if test ${enableval} = "no" ; then
5022   DEBUG_SYMBOLS=
5023
5024 else
5025   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5026
5027 fi
5028
5029 # Check whether --enable-keep-symbols was given.
5030 if test "${enable_keep_symbols+set}" = set; then
5031   enableval=$enable_keep_symbols;
5032 else
5033   enableval=no
5034 fi
5035
5036 if test ${enableval} = "no" ; then
5037   KEEP_SYMBOLS=
5038
5039 else
5040   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5041
5042 fi
5043
5044 # Check whether --enable-jit was given.
5045 if test "${enable_jit+set}" = set; then
5046   enableval=$enable_jit;
5047 else
5048   enableval=default
5049 fi
5050
5051 if test ${enableval} = "no"
5052 then
5053   JIT=
5054
5055 else
5056   case "$llvm_cv_target_arch" in
5057     x86)         TARGET_HAS_JIT=1
5058  ;;
5059     Sparc)       TARGET_HAS_JIT=0
5060  ;;
5061     PowerPC)     TARGET_HAS_JIT=1
5062  ;;
5063     x86_64)      TARGET_HAS_JIT=1
5064  ;;
5065     ARM)         TARGET_HAS_JIT=1
5066  ;;
5067     Mips)        TARGET_HAS_JIT=1
5068  ;;
5069     XCore)       TARGET_HAS_JIT=0
5070  ;;
5071     MSP430)      TARGET_HAS_JIT=0
5072  ;;
5073     Hexagon)     TARGET_HAS_JIT=0
5074  ;;
5075     NVPTX)       TARGET_HAS_JIT=0
5076  ;;
5077     SystemZ)     TARGET_HAS_JIT=1
5078  ;;
5079     *)           TARGET_HAS_JIT=0
5080  ;;
5081   esac
5082 fi
5083
5084 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5085 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5086
5087
5088 # Check whether --enable-docs was given.
5089 if test "${enable_docs+set}" = set; then
5090   enableval=$enable_docs;
5091 else
5092   enableval=default
5093 fi
5094
5095 case "$enableval" in
5096   yes) ENABLE_DOCS=1
5097  ;;
5098   no)  ENABLE_DOCS=0
5099  ;;
5100   default) ENABLE_DOCS=1
5101  ;;
5102   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5103 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5104    { (exit 1); exit 1; }; } ;;
5105 esac
5106
5107 # Check whether --enable-doxygen was given.
5108 if test "${enable_doxygen+set}" = set; then
5109   enableval=$enable_doxygen;
5110 else
5111   enableval=default
5112 fi
5113
5114 case "$enableval" in
5115   yes) ENABLE_DOXYGEN=1
5116  ;;
5117   no)  ENABLE_DOXYGEN=0
5118  ;;
5119   default) ENABLE_DOXYGEN=0
5120  ;;
5121   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5122 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5123    { (exit 1); exit 1; }; } ;;
5124 esac
5125
5126 # Check whether --enable-threads was given.
5127 if test "${enable_threads+set}" = set; then
5128   enableval=$enable_threads;
5129 else
5130   enableval=default
5131 fi
5132
5133 case "$enableval" in
5134   yes) LLVM_ENABLE_THREADS=1
5135  ;;
5136   no)  LLVM_ENABLE_THREADS=0
5137  ;;
5138   default) LLVM_ENABLE_THREADS=1
5139  ;;
5140   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5142    { (exit 1); exit 1; }; } ;;
5143 esac
5144
5145 cat >>confdefs.h <<_ACEOF
5146 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5147 _ACEOF
5148
5149
5150 # Check whether --enable-pthreads was given.
5151 if test "${enable_pthreads+set}" = set; then
5152   enableval=$enable_pthreads;
5153 else
5154   enableval=default
5155 fi
5156
5157 case "$enableval" in
5158   yes) ENABLE_PTHREADS=1
5159  ;;
5160   no)  ENABLE_PTHREADS=0
5161  ;;
5162   default) ENABLE_PTHREADS=1
5163  ;;
5164   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5166    { (exit 1); exit 1; }; } ;;
5167 esac
5168
5169 # Check whether --enable-zlib was given.
5170 if test "${enable_zlib+set}" = set; then
5171   enableval=$enable_zlib;
5172 else
5173   enableval=default
5174 fi
5175
5176 case "$enableval" in
5177   yes) LLVM_ENABLE_ZLIB=1
5178  ;;
5179   no)  LLVM_ENABLE_ZLIB=0
5180  ;;
5181   default) LLVM_ENABLE_ZLIB=1
5182  ;;
5183   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5185    { (exit 1); exit 1; }; } ;;
5186 esac
5187
5188 cat >>confdefs.h <<_ACEOF
5189 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5190 _ACEOF
5191
5192
5193 # Check whether --enable-pic was given.
5194 if test "${enable_pic+set}" = set; then
5195   enableval=$enable_pic;
5196 else
5197   enableval=default
5198 fi
5199
5200 case "$enableval" in
5201   yes) ENABLE_PIC=1
5202  ;;
5203   no)  ENABLE_PIC=0
5204  ;;
5205   default) ENABLE_PIC=1
5206  ;;
5207   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5209    { (exit 1); exit 1; }; } ;;
5210 esac
5211
5212 cat >>confdefs.h <<_ACEOF
5213 #define ENABLE_PIC $ENABLE_PIC
5214 _ACEOF
5215
5216
5217 # Check whether --enable-shared was given.
5218 if test "${enable_shared+set}" = set; then
5219   enableval=$enable_shared;
5220 else
5221   enableval=default
5222 fi
5223
5224 case "$enableval" in
5225   yes) ENABLE_SHARED=1
5226  ;;
5227   no)  ENABLE_SHARED=0
5228  ;;
5229   default) ENABLE_SHARED=0
5230  ;;
5231   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5233    { (exit 1); exit 1; }; } ;;
5234 esac
5235
5236 # Check whether --enable-embed-stdcxx was given.
5237 if test "${enable_embed_stdcxx+set}" = set; then
5238   enableval=$enable_embed_stdcxx;
5239 else
5240   enableval=default
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_EMBED_STDCXX=1
5245  ;;
5246   no)  ENABLE_EMBED_STDCXX=0
5247  ;;
5248   default) ENABLE_EMBED_STDCXX=0
5249  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 # Check whether --enable-timestamps was given.
5256 if test "${enable_timestamps+set}" = set; then
5257   enableval=$enable_timestamps;
5258 else
5259   enableval=default
5260 fi
5261
5262 case "$enableval" in
5263   yes) ENABLE_TIMESTAMPS=1
5264  ;;
5265   no)  ENABLE_TIMESTAMPS=0
5266  ;;
5267   default) ENABLE_TIMESTAMPS=1
5268  ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274 cat >>confdefs.h <<_ACEOF
5275 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5276 _ACEOF
5277
5278
5279 # Check whether --enable-backtraces was given.
5280 if test "${enable_backtraces+set}" = set; then
5281   enableval=$enable_backtraces; case "$enableval" in
5282     yes) llvm_cv_enable_backtraces="yes" ;;
5283     no)  llvm_cv_enable_backtraces="no"  ;;
5284     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5286    { (exit 1); exit 1; }; } ;;
5287   esac
5288 else
5289   llvm_cv_enable_backtraces="yes"
5290 fi
5291
5292 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5293
5294 cat >>confdefs.h <<\_ACEOF
5295 #define ENABLE_BACKTRACES 1
5296 _ACEOF
5297
5298 fi
5299
5300 # Check whether --enable-crash-overrides was given.
5301 if test "${enable_crash_overrides+set}" = set; then
5302   enableval=$enable_crash_overrides; case "$enableval" in
5303     yes) llvm_cv_enable_crash_overrides="yes" ;;
5304     no)  llvm_cv_enable_crash_overrides="no"  ;;
5305     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5306 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5307    { (exit 1); exit 1; }; } ;;
5308   esac
5309 else
5310   llvm_cv_enable_crash_overrides="yes"
5311 fi
5312
5313 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5314
5315 cat >>confdefs.h <<\_ACEOF
5316 #define ENABLE_CRASH_OVERRIDES 1
5317 _ACEOF
5318
5319 fi
5320
5321 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5322 ALL_TARGETS=$ALL_TARGETS
5323
5324
5325 TARGETS_TO_BUILD=""
5326 # Check whether --enable-targets was given.
5327 if test "${enable_targets+set}" = set; then
5328   enableval=$enable_targets;
5329 else
5330   enableval=all
5331 fi
5332
5333 if test "$enableval" = host-only ; then
5334   enableval=host
5335 fi
5336 case "$enableval" in
5337   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5338   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5339       case "$a_target" in
5340         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5341         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5342         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5343         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5344         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5345         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5346         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5347         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5348         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5349         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5350         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5351         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5352         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5353         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5354         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5355         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5356         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5357         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5358         host) case "$llvm_cv_target_arch" in
5359             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5361             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5362             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5363             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5364             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5365             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5366             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5367             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5368             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5369             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5370             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5371             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5372 echo "$as_me: error: Can not set target to build" >&2;}
5373    { (exit 1); exit 1; }; } ;;
5374           esac ;;
5375         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5376 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5377    { (exit 1); exit 1; }; } ;;
5378       esac
5379   done
5380   ;;
5381 esac
5382
5383 # Check whether --enable-experimental-targets was given.
5384 if test "${enable_experimental_targets+set}" = set; then
5385   enableval=$enable_experimental_targets;
5386 else
5387   enableval=disable
5388 fi
5389
5390
5391 if test ${enableval} != "disable"
5392 then
5393   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5394 fi
5395
5396 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5397
5398
5399 for a_target in $TARGETS_TO_BUILD; do
5400   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5404 _ACEOF
5405
5406     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5407     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5408     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5409     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5410     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5411       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5412     fi
5413     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5414       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5415     fi
5416
5417 cat >>confdefs.h <<_ACEOF
5418 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5419 _ACEOF
5420
5421
5422 cat >>confdefs.h <<_ACEOF
5423 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5424 _ACEOF
5425
5426
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5429 _ACEOF
5430
5431
5432 cat >>confdefs.h <<_ACEOF
5433 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5434 _ACEOF
5435
5436     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5437
5438 cat >>confdefs.h <<_ACEOF
5439 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5440 _ACEOF
5441
5442     fi
5443     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5444
5445 cat >>confdefs.h <<_ACEOF
5446 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5447 _ACEOF
5448
5449     fi
5450   fi
5451 done
5452
5453 LLVM_ENUM_TARGETS=""
5454 LLVM_ENUM_ASM_PRINTERS=""
5455 LLVM_ENUM_ASM_PARSERS=""
5456 LLVM_ENUM_DISASSEMBLERS=""
5457 for target_to_build in $TARGETS_TO_BUILD; do
5458   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5459   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5460     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5461   fi
5462   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5463     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5464   fi
5465   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5466     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5467   fi
5468 done
5469
5470
5471
5472
5473
5474
5475 # Check whether --with-optimize-option was given.
5476 if test "${with_optimize_option+set}" = set; then
5477   withval=$with_optimize_option;
5478 else
5479   withval=default
5480 fi
5481
5482 { echo "$as_me:$LINENO: checking optimization flags" >&5
5483 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5484 case "$withval" in
5485   default)
5486     case "$llvm_cv_os_type" in
5487     FreeBSD) optimize_option=-O2 ;;
5488     MingW) optimize_option=-O2 ;;
5489     *)     optimize_option=-O3 ;;
5490     esac ;;
5491   *) optimize_option="$withval" ;;
5492 esac
5493 OPTIMIZE_OPTION=$optimize_option
5494
5495 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5496 echo "${ECHO_T}$optimize_option" >&6; }
5497
5498
5499 # Check whether --with-extra-options was given.
5500 if test "${with_extra_options+set}" = set; then
5501   withval=$with_extra_options;
5502 else
5503   withval=default
5504 fi
5505
5506 case "$withval" in
5507   default) EXTRA_OPTIONS= ;;
5508   *) EXTRA_OPTIONS=$withval ;;
5509 esac
5510 EXTRA_OPTIONS=$EXTRA_OPTIONS
5511
5512
5513
5514 # Check whether --with-extra-ld-options was given.
5515 if test "${with_extra_ld_options+set}" = set; then
5516   withval=$with_extra_ld_options;
5517 else
5518   withval=default
5519 fi
5520
5521 case "$withval" in
5522   default) EXTRA_LD_OPTIONS= ;;
5523   *) EXTRA_LD_OPTIONS=$withval ;;
5524 esac
5525 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5526
5527
5528 # Check whether --enable-bindings was given.
5529 if test "${enable_bindings+set}" = set; then
5530   enableval=$enable_bindings;
5531 else
5532   enableval=default
5533 fi
5534
5535 BINDINGS_TO_BUILD=""
5536 case "$enableval" in
5537   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5538   all ) BINDINGS_TO_BUILD="ocaml" ;;
5539   none | no) BINDINGS_TO_BUILD="" ;;
5540   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5541       case "$a_binding" in
5542         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5543         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5544 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5545    { (exit 1); exit 1; }; } ;;
5546       esac
5547   done
5548   ;;
5549 esac
5550
5551
5552 # Check whether --with-ocaml-libdir was given.
5553 if test "${with_ocaml_libdir+set}" = set; then
5554   withval=$with_ocaml_libdir;
5555 else
5556   withval=auto
5557 fi
5558
5559 case "$withval" in
5560   auto) with_ocaml_libdir="$withval" ;;
5561   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5562   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5563 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5564    { (exit 1); exit 1; }; } ;;
5565 esac
5566
5567
5568 # Check whether --with-clang-srcdir was given.
5569 if test "${with_clang_srcdir+set}" = set; then
5570   withval=$with_clang_srcdir;
5571 else
5572   withval="-"
5573 fi
5574
5575 case "$withval" in
5576   -) clang_src_root="" ;;
5577   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5578   *) clang_src_root="$ac_pwd/$withval" ;;
5579 esac
5580 CLANG_SRC_ROOT=$clang_src_root
5581
5582
5583
5584 # Check whether --with-clang-resource-dir was given.
5585 if test "${with_clang_resource_dir+set}" = set; then
5586   withval=$with_clang_resource_dir;
5587 else
5588   withval=""
5589 fi
5590
5591
5592 cat >>confdefs.h <<_ACEOF
5593 #define CLANG_RESOURCE_DIR "$withval"
5594 _ACEOF
5595
5596
5597
5598 # Check whether --with-c-include-dirs was given.
5599 if test "${with_c_include_dirs+set}" = set; then
5600   withval=$with_c_include_dirs;
5601 else
5602   withval=""
5603 fi
5604
5605
5606 cat >>confdefs.h <<_ACEOF
5607 #define C_INCLUDE_DIRS "$withval"
5608 _ACEOF
5609
5610
5611 # Clang normally uses the system c++ headers and libraries. With this option,
5612 # clang will use the ones provided by a gcc installation instead. This option should
5613 # be passed the same value that was used with --prefix when configuring gcc.
5614
5615 # Check whether --with-gcc-toolchain was given.
5616 if test "${with_gcc_toolchain+set}" = set; then
5617   withval=$with_gcc_toolchain;
5618 else
5619   withval=""
5620 fi
5621
5622
5623 cat >>confdefs.h <<_ACEOF
5624 #define GCC_INSTALL_PREFIX "$withval"
5625 _ACEOF
5626
5627
5628
5629 # Check whether --with-default-sysroot was given.
5630 if test "${with_default_sysroot+set}" = set; then
5631   withval=$with_default_sysroot;
5632 else
5633   withval=""
5634 fi
5635
5636
5637 cat >>confdefs.h <<_ACEOF
5638 #define DEFAULT_SYSROOT "$withval"
5639 _ACEOF
5640
5641
5642
5643 # Check whether --with-binutils-include was given.
5644 if test "${with_binutils_include+set}" = set; then
5645   withval=$with_binutils_include;
5646 else
5647   withval=default
5648 fi
5649
5650 case "$withval" in
5651   default) WITH_BINUTILS_INCDIR=default ;;
5652   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5653   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5654 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5655    { (exit 1); exit 1; }; } ;;
5656 esac
5657 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5658   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5659
5660   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5661      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5662      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5663 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5664    { (exit 1); exit 1; }; };
5665   fi
5666 fi
5667
5668
5669 # Check whether --with-bug-report-url was given.
5670 if test "${with_bug_report_url+set}" = set; then
5671   withval=$with_bug_report_url;
5672 else
5673   withval="http://llvm.org/bugs/"
5674 fi
5675
5676
5677 cat >>confdefs.h <<_ACEOF
5678 #define BUG_REPORT_URL "$withval"
5679 _ACEOF
5680
5681
5682 # Check whether --enable-terminfo was given.
5683 if test "${enable_terminfo+set}" = set; then
5684   enableval=$enable_terminfo; case "$enableval" in
5685     yes) llvm_cv_enable_terminfo="yes" ;;
5686     no)  llvm_cv_enable_terminfo="no"  ;;
5687     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5688 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5689    { (exit 1); exit 1; }; } ;;
5690   esac
5691 else
5692   llvm_cv_enable_terminfo="yes"
5693 fi
5694
5695 case "$llvm_cv_enable_terminfo" in
5696   yes) ENABLE_TERMINFO=1
5697  ;;
5698   no)  ENABLE_TERMINFO=0
5699  ;;
5700 esac
5701
5702 # Check whether --enable-libedit was given.
5703 if test "${enable_libedit+set}" = set; then
5704   enableval=$enable_libedit; case "$enableval" in
5705     yes) llvm_cv_enable_libedit="yes" ;;
5706     no)  llvm_cv_enable_libedit="no"  ;;
5707     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5708 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5709    { (exit 1); exit 1; }; } ;;
5710   esac
5711 else
5712   llvm_cv_enable_libedit="yes"
5713 fi
5714
5715
5716 # Check whether --enable-libffi was given.
5717 if test "${enable_libffi+set}" = set; then
5718   enableval=$enable_libffi; case "$enableval" in
5719     yes) llvm_cv_enable_libffi="yes" ;;
5720     no)  llvm_cv_enable_libffi="no"  ;;
5721     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5722 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5723    { (exit 1); exit 1; }; } ;;
5724   esac
5725 else
5726   llvm_cv_enable_libffi=no
5727 fi
5728
5729
5730
5731 # Check whether --with-internal-prefix was given.
5732 if test "${with_internal_prefix+set}" = set; then
5733   withval=$with_internal_prefix;
5734 else
5735   withval=""
5736 fi
5737
5738 INTERNAL_PREFIX=$withval
5739
5740
5741
5742 { echo "$as_me:$LINENO: checking for GNU make" >&5
5743 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5744 if test "${llvm_cv_gnu_make_command+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   llvm_cv_gnu_make_command=''
5748  for a in "$MAKE" make gmake gnumake ; do
5749   if test -z "$a" ; then continue ; fi ;
5750   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5751   then
5752    llvm_cv_gnu_make_command=$a ;
5753    break;
5754   fi
5755  done
5756 fi
5757 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5758 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5759  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5760    ifGNUmake='' ;
5761  else
5762    ifGNUmake='#' ;
5763    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5764 echo "${ECHO_T}\"Not found\"" >&6; };
5765  fi
5766
5767
5768 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5769 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5770 LN_S=$as_ln_s
5771 if test "$LN_S" = "ln -s"; then
5772   { echo "$as_me:$LINENO: result: yes" >&5
5773 echo "${ECHO_T}yes" >&6; }
5774 else
5775   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5776 echo "${ECHO_T}no, using $LN_S" >&6; }
5777 fi
5778
5779 # Extract the first word of "nm", so it can be a program name with args.
5780 set dummy nm; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_path_NM+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   case $NM in
5787   [\\/]* | ?:[\\/]*)
5788   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5789   ;;
5790   *)
5791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796   for ac_exec_ext in '' $ac_executable_extensions; do
5797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5798     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803 done
5804 IFS=$as_save_IFS
5805
5806   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5807   ;;
5808 esac
5809 fi
5810 NM=$ac_cv_path_NM
5811 if test -n "$NM"; then
5812   { echo "$as_me:$LINENO: result: $NM" >&5
5813 echo "${ECHO_T}$NM" >&6; }
5814 else
5815   { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5817 fi
5818
5819
5820 # Extract the first word of "cmp", so it can be a program name with args.
5821 set dummy cmp; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_CMP+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   case $CMP in
5828   [\\/]* | ?:[\\/]*)
5829   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5830   ;;
5831   *)
5832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5848   ;;
5849 esac
5850 fi
5851 CMP=$ac_cv_path_CMP
5852 if test -n "$CMP"; then
5853   { echo "$as_me:$LINENO: result: $CMP" >&5
5854 echo "${ECHO_T}$CMP" >&6; }
5855 else
5856   { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5858 fi
5859
5860
5861 # Extract the first word of "cp", so it can be a program name with args.
5862 set dummy cp; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_CP+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   case $CP in
5869   [\\/]* | ?:[\\/]*)
5870   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5871   ;;
5872   *)
5873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5889   ;;
5890 esac
5891 fi
5892 CP=$ac_cv_path_CP
5893 if test -n "$CP"; then
5894   { echo "$as_me:$LINENO: result: $CP" >&5
5895 echo "${ECHO_T}$CP" >&6; }
5896 else
5897   { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5899 fi
5900
5901
5902 # Extract the first word of "date", so it can be a program name with args.
5903 set dummy date; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_DATE+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   case $DATE in
5910   [\\/]* | ?:[\\/]*)
5911   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5912   ;;
5913   *)
5914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919   for ac_exec_ext in '' $ac_executable_extensions; do
5920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5930   ;;
5931 esac
5932 fi
5933 DATE=$ac_cv_path_DATE
5934 if test -n "$DATE"; then
5935   { echo "$as_me:$LINENO: result: $DATE" >&5
5936 echo "${ECHO_T}$DATE" >&6; }
5937 else
5938   { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5940 fi
5941
5942
5943 # Extract the first word of "find", so it can be a program name with args.
5944 set dummy find; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_path_FIND+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   case $FIND in
5951   [\\/]* | ?:[\\/]*)
5952   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5953   ;;
5954   *)
5955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960   for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5971   ;;
5972 esac
5973 fi
5974 FIND=$ac_cv_path_FIND
5975 if test -n "$FIND"; then
5976   { echo "$as_me:$LINENO: result: $FIND" >&5
5977 echo "${ECHO_T}$FIND" >&6; }
5978 else
5979   { echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6; }
5981 fi
5982
5983
5984 # Extract the first word of "grep", so it can be a program name with args.
5985 set dummy grep; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_path_GREP+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   case $GREP in
5992   [\\/]* | ?:[\\/]*)
5993   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5994   ;;
5995   *)
5996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001   for ac_exec_ext in '' $ac_executable_extensions; do
6002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6003     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008 done
6009 IFS=$as_save_IFS
6010
6011   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6012   ;;
6013 esac
6014 fi
6015 GREP=$ac_cv_path_GREP
6016 if test -n "$GREP"; then
6017   { echo "$as_me:$LINENO: result: $GREP" >&5
6018 echo "${ECHO_T}$GREP" >&6; }
6019 else
6020   { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6022 fi
6023
6024
6025 # Extract the first word of "mkdir", so it can be a program name with args.
6026 set dummy mkdir; ac_word=$2
6027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029 if test "${ac_cv_path_MKDIR+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   case $MKDIR in
6033   [\\/]* | ?:[\\/]*)
6034   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6035   ;;
6036   *)
6037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042   for ac_exec_ext in '' $ac_executable_extensions; do
6043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049 done
6050 IFS=$as_save_IFS
6051
6052   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6053   ;;
6054 esac
6055 fi
6056 MKDIR=$ac_cv_path_MKDIR
6057 if test -n "$MKDIR"; then
6058   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6059 echo "${ECHO_T}$MKDIR" >&6; }
6060 else
6061   { echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6; }
6063 fi
6064
6065
6066 # Extract the first word of "mv", so it can be a program name with args.
6067 set dummy mv; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_path_MV+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   case $MV in
6074   [\\/]* | ?:[\\/]*)
6075   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6076   ;;
6077   *)
6078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   test -z "$as_dir" && as_dir=.
6083   for ac_exec_ext in '' $ac_executable_extensions; do
6084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6094   ;;
6095 esac
6096 fi
6097 MV=$ac_cv_path_MV
6098 if test -n "$MV"; then
6099   { echo "$as_me:$LINENO: result: $MV" >&5
6100 echo "${ECHO_T}$MV" >&6; }
6101 else
6102   { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6104 fi
6105
6106
6107 if test -n "$ac_tool_prefix"; then
6108   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112 if test "${ac_cv_prog_RANLIB+set}" = set; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115   if test -n "$RANLIB"; then
6116   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123   for ac_exec_ext in '' $ac_executable_extensions; do
6124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6125     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 RANLIB=$ac_cv_prog_RANLIB
6136 if test -n "$RANLIB"; then
6137   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6138 echo "${ECHO_T}$RANLIB" >&6; }
6139 else
6140   { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6142 fi
6143
6144
6145 fi
6146 if test -z "$ac_cv_prog_RANLIB"; then
6147   ac_ct_RANLIB=$RANLIB
6148   # Extract the first word of "ranlib", so it can be a program name with args.
6149 set dummy ranlib; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6153   echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155   if test -n "$ac_ct_RANLIB"; then
6156   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_prog_ac_ct_RANLIB="ranlib"
6166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6176 if test -n "$ac_ct_RANLIB"; then
6177   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6178 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6179 else
6180   { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6182 fi
6183
6184   if test "x$ac_ct_RANLIB" = x; then
6185     RANLIB=":"
6186   else
6187     case $cross_compiling:$ac_tool_warned in
6188 yes:)
6189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6190 whose name does not start with the host triplet.  If you think this
6191 configuration is useful to you, please write to autoconf@gnu.org." >&5
6192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6193 whose name does not start with the host triplet.  If you think this
6194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6195 ac_tool_warned=yes ;;
6196 esac
6197     RANLIB=$ac_ct_RANLIB
6198   fi
6199 else
6200   RANLIB="$ac_cv_prog_RANLIB"
6201 fi
6202
6203 if test -n "$ac_tool_prefix"; then
6204   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}ar; ac_word=$2
6206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_AR+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   if test -n "$AR"; then
6212   ac_cv_prog_AR="$AR" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217   IFS=$as_save_IFS
6218   test -z "$as_dir" && as_dir=.
6219   for ac_exec_ext in '' $ac_executable_extensions; do
6220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6221     ac_cv_prog_AR="${ac_tool_prefix}ar"
6222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223     break 2
6224   fi
6225 done
6226 done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 AR=$ac_cv_prog_AR
6232 if test -n "$AR"; then
6233   { echo "$as_me:$LINENO: result: $AR" >&5
6234 echo "${ECHO_T}$AR" >&6; }
6235 else
6236   { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6238 fi
6239
6240
6241 fi
6242 if test -z "$ac_cv_prog_AR"; then
6243   ac_ct_AR=$AR
6244   # Extract the first word of "ar", so it can be a program name with args.
6245 set dummy ar; ac_word=$2
6246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   if test -n "$ac_ct_AR"; then
6252   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259   for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_prog_ac_ct_AR="ar"
6262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6272 if test -n "$ac_ct_AR"; then
6273   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6274 echo "${ECHO_T}$ac_ct_AR" >&6; }
6275 else
6276   { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6278 fi
6279
6280   if test "x$ac_ct_AR" = x; then
6281     AR="false"
6282   else
6283     case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6286 whose name does not start with the host triplet.  If you think this
6287 configuration is useful to you, please write to autoconf@gnu.org." >&5
6288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6289 whose name does not start with the host triplet.  If you think this
6290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6291 ac_tool_warned=yes ;;
6292 esac
6293     AR=$ac_ct_AR
6294   fi
6295 else
6296   AR="$ac_cv_prog_AR"
6297 fi
6298
6299 # Extract the first word of "rm", so it can be a program name with args.
6300 set dummy rm; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_RM+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   case $RM in
6307   [\\/]* | ?:[\\/]*)
6308   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6309   ;;
6310   *)
6311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316   for ac_exec_ext in '' $ac_executable_extensions; do
6317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6327   ;;
6328 esac
6329 fi
6330 RM=$ac_cv_path_RM
6331 if test -n "$RM"; then
6332   { echo "$as_me:$LINENO: result: $RM" >&5
6333 echo "${ECHO_T}$RM" >&6; }
6334 else
6335   { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 fi
6338
6339
6340 # Extract the first word of "sed", so it can be a program name with args.
6341 set dummy sed; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_path_SED+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   case $SED in
6348   [\\/]* | ?:[\\/]*)
6349   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6350   ;;
6351   *)
6352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357   for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6368   ;;
6369 esac
6370 fi
6371 SED=$ac_cv_path_SED
6372 if test -n "$SED"; then
6373   { echo "$as_me:$LINENO: result: $SED" >&5
6374 echo "${ECHO_T}$SED" >&6; }
6375 else
6376   { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6378 fi
6379
6380
6381 # Extract the first word of "tar", so it can be a program name with args.
6382 set dummy tar; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_path_TAR+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   case $TAR in
6389   [\\/]* | ?:[\\/]*)
6390   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6391   ;;
6392   *)
6393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
6397   test -z "$as_dir" && as_dir=.
6398   for ac_exec_ext in '' $ac_executable_extensions; do
6399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6400     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402     break 2
6403   fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6409   ;;
6410 esac
6411 fi
6412 TAR=$ac_cv_path_TAR
6413 if test -n "$TAR"; then
6414   { echo "$as_me:$LINENO: result: $TAR" >&5
6415 echo "${ECHO_T}$TAR" >&6; }
6416 else
6417   { echo "$as_me:$LINENO: result: no" >&5
6418 echo "${ECHO_T}no" >&6; }
6419 fi
6420
6421
6422 # Extract the first word of "pwd", so it can be a program name with args.
6423 set dummy pwd; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_path_BINPWD+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   case $BINPWD in
6430   [\\/]* | ?:[\\/]*)
6431   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6432   ;;
6433   *)
6434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439   for ac_exec_ext in '' $ac_executable_extensions; do
6440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6450   ;;
6451 esac
6452 fi
6453 BINPWD=$ac_cv_path_BINPWD
6454 if test -n "$BINPWD"; then
6455   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6456 echo "${ECHO_T}$BINPWD" >&6; }
6457 else
6458   { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6460 fi
6461
6462
6463
6464 # Extract the first word of "dot", so it can be a program name with args.
6465 set dummy dot; ac_word=$2
6466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6468 if test "${ac_cv_path_DOT+set}" = set; then
6469   echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471   case $DOT in
6472   [\\/]* | ?:[\\/]*)
6473   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6474   ;;
6475   *)
6476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH
6478 do
6479   IFS=$as_save_IFS
6480   test -z "$as_dir" && as_dir=.
6481   for ac_exec_ext in '' $ac_executable_extensions; do
6482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6483     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485     break 2
6486   fi
6487 done
6488 done
6489 IFS=$as_save_IFS
6490
6491   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6492   ;;
6493 esac
6494 fi
6495 DOT=$ac_cv_path_DOT
6496 if test -n "$DOT"; then
6497   { echo "$as_me:$LINENO: result: $DOT" >&5
6498 echo "${ECHO_T}$DOT" >&6; }
6499 else
6500   { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6502 fi
6503
6504
6505 if test "$DOT" != "echo dot" ; then
6506
6507 cat >>confdefs.h <<\_ACEOF
6508 #define HAVE_DOT 1
6509 _ACEOF
6510
6511     if test "$llvm_cv_os_type" = "MingW" ; then
6512     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6513   fi
6514
6515 cat >>confdefs.h <<_ACEOF
6516 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6517 _ACEOF
6518
6519 fi
6520
6521 # Find a good install program.  We prefer a C program (faster),
6522 # so one script is as good as another.  But avoid the broken or
6523 # incompatible versions:
6524 # SysV /etc/install, /usr/sbin/install
6525 # SunOS /usr/etc/install
6526 # IRIX /sbin/install
6527 # AIX /bin/install
6528 # AmigaOS /C/install, which installs bootblocks on floppy discs
6529 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6530 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6531 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6532 # OS/2's system install, which has a completely different semantic
6533 # ./install, which can be erroneously created by make from ./install.sh.
6534 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6535 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6536 if test -z "$INSTALL"; then
6537 if test "${ac_cv_path_install+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   # Account for people who put trailing slashes in PATH elements.
6546 case $as_dir/ in
6547   ./ | .// | /cC/* | \
6548   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6549   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6550   /usr/ucb/* ) ;;
6551   *)
6552     # OSF1 and SCO ODT 3.0 have their own names for install.
6553     # Don't use installbsd from OSF since it installs stuff as root
6554     # by default.
6555     for ac_prog in ginstall scoinst install; do
6556       for ac_exec_ext in '' $ac_executable_extensions; do
6557         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6558           if test $ac_prog = install &&
6559             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6560             # AIX install.  It has an incompatible calling convention.
6561             :
6562           elif test $ac_prog = install &&
6563             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6564             # program-specific install script used by HP pwplus--don't use.
6565             :
6566           else
6567             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6568             break 3
6569           fi
6570         fi
6571       done
6572     done
6573     ;;
6574 esac
6575 done
6576 IFS=$as_save_IFS
6577
6578
6579 fi
6580   if test "${ac_cv_path_install+set}" = set; then
6581     INSTALL=$ac_cv_path_install
6582   else
6583     # As a last resort, use the slow shell script.  Don't cache a
6584     # value for INSTALL within a source directory, because that will
6585     # break other packages using the cache if that directory is
6586     # removed, or if the value is a relative name.
6587     INSTALL=$ac_install_sh
6588   fi
6589 fi
6590 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6591 echo "${ECHO_T}$INSTALL" >&6; }
6592
6593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6594 # It thinks the first close brace ends the variable substitution.
6595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6596
6597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6598
6599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6600
6601 case "$INSTALL" in
6602  [\\/$]* | ?:[\\/]* ) ;;
6603  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6604 esac
6605
6606 # Extract the first word of "bzip2", so it can be a program name with args.
6607 set dummy bzip2; ac_word=$2
6608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6610 if test "${ac_cv_path_BZIP2+set}" = set; then
6611   echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613   case $BZIP2 in
6614   [\\/]* | ?:[\\/]*)
6615   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6616   ;;
6617   *)
6618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623   for ac_exec_ext in '' $ac_executable_extensions; do
6624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6625     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633   ;;
6634 esac
6635 fi
6636 BZIP2=$ac_cv_path_BZIP2
6637 if test -n "$BZIP2"; then
6638   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6639 echo "${ECHO_T}$BZIP2" >&6; }
6640 else
6641   { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6643 fi
6644
6645
6646 # Extract the first word of "cat", so it can be a program name with args.
6647 set dummy cat; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_path_CAT+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   case $CAT in
6654   [\\/]* | ?:[\\/]*)
6655   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6656   ;;
6657   *)
6658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661   IFS=$as_save_IFS
6662   test -z "$as_dir" && as_dir=.
6663   for ac_exec_ext in '' $ac_executable_extensions; do
6664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667     break 2
6668   fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673   ;;
6674 esac
6675 fi
6676 CAT=$ac_cv_path_CAT
6677 if test -n "$CAT"; then
6678   { echo "$as_me:$LINENO: result: $CAT" >&5
6679 echo "${ECHO_T}$CAT" >&6; }
6680 else
6681   { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6684
6685
6686 # Extract the first word of "doxygen", so it can be a program name with args.
6687 set dummy doxygen; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   case $DOXYGEN in
6694   [\\/]* | ?:[\\/]*)
6695   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6696   ;;
6697   *)
6698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703   for ac_exec_ext in '' $ac_executable_extensions; do
6704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710 done
6711 IFS=$as_save_IFS
6712
6713   ;;
6714 esac
6715 fi
6716 DOXYGEN=$ac_cv_path_DOXYGEN
6717 if test -n "$DOXYGEN"; then
6718   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6719 echo "${ECHO_T}$DOXYGEN" >&6; }
6720 else
6721   { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6723 fi
6724
6725
6726 # Extract the first word of "groff", so it can be a program name with args.
6727 set dummy groff; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_path_GROFF+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   case $GROFF in
6734   [\\/]* | ?:[\\/]*)
6735   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6736   ;;
6737   *)
6738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743   for ac_exec_ext in '' $ac_executable_extensions; do
6744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6752
6753   ;;
6754 esac
6755 fi
6756 GROFF=$ac_cv_path_GROFF
6757 if test -n "$GROFF"; then
6758   { echo "$as_me:$LINENO: result: $GROFF" >&5
6759 echo "${ECHO_T}$GROFF" >&6; }
6760 else
6761   { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6763 fi
6764
6765
6766 # Extract the first word of "gzip", so it can be a program name with args.
6767 set dummy gzip; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773   case $GZIPBIN in
6774   [\\/]* | ?:[\\/]*)
6775   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6776   ;;
6777   *)
6778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783   for ac_exec_ext in '' $ac_executable_extensions; do
6784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6785     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793   ;;
6794 esac
6795 fi
6796 GZIPBIN=$ac_cv_path_GZIPBIN
6797 if test -n "$GZIPBIN"; then
6798   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6799 echo "${ECHO_T}$GZIPBIN" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805
6806 # Extract the first word of "pdfroff", so it can be a program name with args.
6807 set dummy pdfroff; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_PDFROFF+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   case $PDFROFF in
6814   [\\/]* | ?:[\\/]*)
6815   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6816   ;;
6817   *)
6818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823   for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833   ;;
6834 esac
6835 fi
6836 PDFROFF=$ac_cv_path_PDFROFF
6837 if test -n "$PDFROFF"; then
6838   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6839 echo "${ECHO_T}$PDFROFF" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845
6846 # Extract the first word of "zip", so it can be a program name with args.
6847 set dummy zip; ac_word=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_path_ZIP+set}" = set; then
6851   echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853   case $ZIP in
6854   [\\/]* | ?:[\\/]*)
6855   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6856   ;;
6857   *)
6858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863   for ac_exec_ext in '' $ac_executable_extensions; do
6864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6865     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873   ;;
6874 esac
6875 fi
6876 ZIP=$ac_cv_path_ZIP
6877 if test -n "$ZIP"; then
6878   { echo "$as_me:$LINENO: result: $ZIP" >&5
6879 echo "${ECHO_T}$ZIP" >&6; }
6880 else
6881   { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6883 fi
6884
6885
6886 # Extract the first word of "go", so it can be a program name with args.
6887 set dummy go; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_path_GO+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893   case $GO in
6894   [\\/]* | ?:[\\/]*)
6895   ac_cv_path_GO="$GO" # Let the user override the test with a path.
6896   ;;
6897   *)
6898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901   IFS=$as_save_IFS
6902   test -z "$as_dir" && as_dir=.
6903   for ac_exec_ext in '' $ac_executable_extensions; do
6904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6905     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907     break 2
6908   fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913   ;;
6914 esac
6915 fi
6916 GO=$ac_cv_path_GO
6917 if test -n "$GO"; then
6918   { echo "$as_me:$LINENO: result: $GO" >&5
6919 echo "${ECHO_T}$GO" >&6; }
6920 else
6921   { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6923 fi
6924
6925
6926 for ac_prog in ocamlfind
6927 do
6928   # Extract the first word of "$ac_prog", so it can be a program name with args.
6929 set dummy $ac_prog; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   case $OCAMLFIND in
6936   [\\/]* | ?:[\\/]*)
6937   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6938   ;;
6939   *)
6940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945   for ac_exec_ext in '' $ac_executable_extensions; do
6946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6947     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952 done
6953 IFS=$as_save_IFS
6954
6955   ;;
6956 esac
6957 fi
6958 OCAMLFIND=$ac_cv_path_OCAMLFIND
6959 if test -n "$OCAMLFIND"; then
6960   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6961 echo "${ECHO_T}$OCAMLFIND" >&6; }
6962 else
6963   { echo "$as_me:$LINENO: result: no" >&5
6964 echo "${ECHO_T}no" >&6; }
6965 fi
6966
6967
6968   test -n "$OCAMLFIND" && break
6969 done
6970
6971 for ac_prog in gas as
6972 do
6973   # Extract the first word of "$ac_prog", so it can be a program name with args.
6974 set dummy $ac_prog; ac_word=$2
6975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977 if test "${ac_cv_path_GAS+set}" = set; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980   case $GAS in
6981   [\\/]* | ?:[\\/]*)
6982   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6983   ;;
6984   *)
6985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988   IFS=$as_save_IFS
6989   test -z "$as_dir" && as_dir=.
6990   for ac_exec_ext in '' $ac_executable_extensions; do
6991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6992     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994     break 2
6995   fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000   ;;
7001 esac
7002 fi
7003 GAS=$ac_cv_path_GAS
7004 if test -n "$GAS"; then
7005   { echo "$as_me:$LINENO: result: $GAS" >&5
7006 echo "${ECHO_T}$GAS" >&6; }
7007 else
7008   { echo "$as_me:$LINENO: result: no" >&5
7009 echo "${ECHO_T}no" >&6; }
7010 fi
7011
7012
7013   test -n "$GAS" && break
7014 done
7015
7016
7017 { echo "$as_me:$LINENO: checking for linker version" >&5
7018 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7019 if test "${llvm_cv_link_version+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022
7023    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7024
7025    # Check for ld64.
7026    if (echo "$version_string" | grep -q "ld64"); then
7027      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7028    else
7029      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7030    fi
7031
7032 fi
7033 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7034 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7035
7036 cat >>confdefs.h <<_ACEOF
7037 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7038 _ACEOF
7039
7040
7041
7042
7043 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7044 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7045 if test "${llvm_cv_link_use_r+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048    ac_ext=c
7049 ac_cpp='$CPP $CPPFLAGS'
7050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7053
7054   oldcflags="$CFLAGS"
7055   CFLAGS="$CFLAGS -Wl,-R."
7056   cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062
7063 int
7064 main ()
7065 {
7066
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (ac_try="$ac_link"
7073 case "(($ac_try" in
7074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075   *) ac_try_echo=$ac_try;;
7076 esac
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078   (eval "$ac_link") 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7086   { (case "(($ac_try" in
7087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088   *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091   (eval "$ac_try") 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); }; } &&
7095          { ac_try='test -s conftest$ac_exeext'
7096   { (case "(($ac_try" in
7097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098   *) ac_try_echo=$ac_try;;
7099 esac
7100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101   (eval "$ac_try") 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; }; then
7105   llvm_cv_link_use_r=yes
7106 else
7107   echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110         llvm_cv_link_use_r=no
7111 fi
7112
7113 rm -f core conftest.err conftest.$ac_objext \
7114       conftest$ac_exeext conftest.$ac_ext
7115   CFLAGS="$oldcflags"
7116   ac_ext=c
7117 ac_cpp='$CPP $CPPFLAGS'
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7121
7122
7123 fi
7124 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7125 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7126 if test "$llvm_cv_link_use_r" = yes ; then
7127
7128 cat >>confdefs.h <<\_ACEOF
7129 #define HAVE_LINK_R 1
7130 _ACEOF
7131
7132   fi
7133
7134
7135 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7136 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7137 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140    ac_ext=c
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145
7146   oldcflags="$CFLAGS"
7147   CFLAGS="$CFLAGS -rdynamic"
7148   cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154
7155 int
7156 main ()
7157 {
7158
7159   ;
7160   return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext conftest$ac_exeext
7164 if { (ac_try="$ac_link"
7165 case "(($ac_try" in
7166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167   *) ac_try_echo=$ac_try;;
7168 esac
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170   (eval "$ac_link") 2>conftest.er1
7171   ac_status=$?
7172   grep -v '^ *+' conftest.er1 >conftest.err
7173   rm -f conftest.er1
7174   cat conftest.err >&5
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); } &&
7177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7178   { (case "(($ac_try" in
7179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180   *) ac_try_echo=$ac_try;;
7181 esac
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183   (eval "$ac_try") 2>&5
7184   ac_status=$?
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); }; } &&
7187          { ac_try='test -s conftest$ac_exeext'
7188   { (case "(($ac_try" in
7189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190   *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193   (eval "$ac_try") 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197   llvm_cv_link_use_export_dynamic=yes
7198 else
7199   echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202         llvm_cv_link_use_export_dynamic=no
7203 fi
7204
7205 rm -f core conftest.err conftest.$ac_objext \
7206       conftest$ac_exeext conftest.$ac_ext
7207   CFLAGS="$oldcflags"
7208   ac_ext=c
7209 ac_cpp='$CPP $CPPFLAGS'
7210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7213
7214
7215 fi
7216 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7217 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7218 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7219
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_LINK_EXPORT_DYNAMIC 1
7222 _ACEOF
7223
7224   fi
7225
7226
7227 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7228 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7229 if test "${llvm_cv_link_use_version_script+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232    ac_ext=c
7233 ac_cpp='$CPP $CPPFLAGS'
7234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7237
7238   oldcflags="$CFLAGS"
7239
7240   # The following code is from the autoconf manual,
7241   # "11.13: Limitations of Usual Tools".
7242   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7243   # Use mktemp if possible; otherwise fall back on mkdir,
7244   # with $RANDOM to make collisions less likely.
7245   : ${TMPDIR=/tmp}
7246   {
7247     tmp=`
7248       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7249     ` &&
7250     test -n "$tmp" && test -d "$tmp"
7251   } || {
7252     tmp=$TMPDIR/foo$$-$RANDOM
7253     (umask 077 && mkdir "$tmp")
7254   } || exit $?
7255
7256   echo "{" > "$tmp/export.map"
7257   echo "  global: main;" >> "$tmp/export.map"
7258   echo "  local: *;" >> "$tmp/export.map"
7259   echo "};" >> "$tmp/export.map"
7260
7261   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7262   cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h.  */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h.  */
7268
7269 int
7270 main ()
7271 {
7272
7273   ;
7274   return 0;
7275 }
7276 _ACEOF
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7279 case "(($ac_try" in
7280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281   *) ac_try_echo=$ac_try;;
7282 esac
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284   (eval "$ac_link") 2>conftest.er1
7285   ac_status=$?
7286   grep -v '^ *+' conftest.er1 >conftest.err
7287   rm -f conftest.er1
7288   cat conftest.err >&5
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } &&
7291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7292   { (case "(($ac_try" in
7293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294   *) ac_try_echo=$ac_try;;
7295 esac
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297   (eval "$ac_try") 2>&5
7298   ac_status=$?
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); }; } &&
7301          { ac_try='test -s conftest$ac_exeext'
7302   { (case "(($ac_try" in
7303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304   *) ac_try_echo=$ac_try;;
7305 esac
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307   (eval "$ac_try") 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; }; then
7311   llvm_cv_link_use_version_script=yes
7312 else
7313   echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316         llvm_cv_link_use_version_script=no
7317 fi
7318
7319 rm -f core conftest.err conftest.$ac_objext \
7320       conftest$ac_exeext conftest.$ac_ext
7321   rm "$tmp/export.map"
7322   rmdir "$tmp"
7323   CFLAGS="$oldcflags"
7324   ac_ext=c
7325 ac_cpp='$CPP $CPPFLAGS'
7326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329
7330
7331 fi
7332 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7333 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7334 if test "$llvm_cv_link_use_version_script" = yes ; then
7335   HAVE_LINK_VERSION_SCRIPT=1
7336
7337   fi
7338
7339
7340
7341 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7342 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_GREP+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   # Extract the first word of "grep ggrep" to use in msg output
7347 if test -z "$GREP"; then
7348 set dummy grep ggrep; ac_prog_name=$2
7349 if test "${ac_cv_path_GREP+set}" = set; then
7350   echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352   ac_path_GREP_found=false
7353 # Loop through the user's path and test for each of PROGNAME-LIST
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359   for ac_prog in grep ggrep; do
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7362     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7363     # Check for GNU ac_path_GREP and select it if it is found.
7364   # Check for GNU $ac_path_GREP
7365 case `"$ac_path_GREP" --version 2>&1` in
7366 *GNU*)
7367   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7368 *)
7369   ac_count=0
7370   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7371   while :
7372   do
7373     cat "conftest.in" "conftest.in" >"conftest.tmp"
7374     mv "conftest.tmp" "conftest.in"
7375     cp "conftest.in" "conftest.nl"
7376     echo 'GREP' >> "conftest.nl"
7377     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7378     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7379     ac_count=`expr $ac_count + 1`
7380     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7381       # Best one so far, save it but keep looking for a better one
7382       ac_cv_path_GREP="$ac_path_GREP"
7383       ac_path_GREP_max=$ac_count
7384     fi
7385     # 10*(2^10) chars as input seems more than enough
7386     test $ac_count -gt 10 && break
7387   done
7388   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7389 esac
7390
7391
7392     $ac_path_GREP_found && break 3
7393   done
7394 done
7395
7396 done
7397 IFS=$as_save_IFS
7398
7399
7400 fi
7401
7402 GREP="$ac_cv_path_GREP"
7403 if test -z "$GREP"; then
7404   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7405 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7406    { (exit 1); exit 1; }; }
7407 fi
7408
7409 else
7410   ac_cv_path_GREP=$GREP
7411 fi
7412
7413
7414 fi
7415 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7416 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7417  GREP="$ac_cv_path_GREP"
7418
7419
7420 { echo "$as_me:$LINENO: checking for egrep" >&5
7421 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7422 if test "${ac_cv_path_EGREP+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7426    then ac_cv_path_EGREP="$GREP -E"
7427    else
7428      # Extract the first word of "egrep" to use in msg output
7429 if test -z "$EGREP"; then
7430 set dummy egrep; ac_prog_name=$2
7431 if test "${ac_cv_path_EGREP+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   ac_path_EGREP_found=false
7435 # Loop through the user's path and test for each of PROGNAME-LIST
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441   for ac_prog in egrep; do
7442   for ac_exec_ext in '' $ac_executable_extensions; do
7443     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7444     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7445     # Check for GNU ac_path_EGREP and select it if it is found.
7446   # Check for GNU $ac_path_EGREP
7447 case `"$ac_path_EGREP" --version 2>&1` in
7448 *GNU*)
7449   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7450 *)
7451   ac_count=0
7452   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7453   while :
7454   do
7455     cat "conftest.in" "conftest.in" >"conftest.tmp"
7456     mv "conftest.tmp" "conftest.in"
7457     cp "conftest.in" "conftest.nl"
7458     echo 'EGREP' >> "conftest.nl"
7459     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7460     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7461     ac_count=`expr $ac_count + 1`
7462     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7463       # Best one so far, save it but keep looking for a better one
7464       ac_cv_path_EGREP="$ac_path_EGREP"
7465       ac_path_EGREP_max=$ac_count
7466     fi
7467     # 10*(2^10) chars as input seems more than enough
7468     test $ac_count -gt 10 && break
7469   done
7470   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7471 esac
7472
7473
7474     $ac_path_EGREP_found && break 3
7475   done
7476 done
7477
7478 done
7479 IFS=$as_save_IFS
7480
7481
7482 fi
7483
7484 EGREP="$ac_cv_path_EGREP"
7485 if test -z "$EGREP"; then
7486   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7487 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7488    { (exit 1); exit 1; }; }
7489 fi
7490
7491 else
7492   ac_cv_path_EGREP=$EGREP
7493 fi
7494
7495
7496    fi
7497 fi
7498 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7499 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7500  EGREP="$ac_cv_path_EGREP"
7501
7502
7503 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7504 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7505 if test "${ac_cv_header_stdc+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h.  */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h.  */
7514 #include <stdlib.h>
7515 #include <stdarg.h>
7516 #include <string.h>
7517 #include <float.h>
7518
7519 int
7520 main ()
7521 {
7522
7523   ;
7524   return 0;
7525 }
7526 _ACEOF
7527 rm -f conftest.$ac_objext
7528 if { (ac_try="$ac_compile"
7529 case "(($ac_try" in
7530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531   *) ac_try_echo=$ac_try;;
7532 esac
7533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7534   (eval "$ac_compile") 2>conftest.er1
7535   ac_status=$?
7536   grep -v '^ *+' conftest.er1 >conftest.err
7537   rm -f conftest.er1
7538   cat conftest.err >&5
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); } &&
7541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7542   { (case "(($ac_try" in
7543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544   *) ac_try_echo=$ac_try;;
7545 esac
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547   (eval "$ac_try") 2>&5
7548   ac_status=$?
7549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550   (exit $ac_status); }; } &&
7551          { ac_try='test -s conftest.$ac_objext'
7552   { (case "(($ac_try" in
7553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554   *) ac_try_echo=$ac_try;;
7555 esac
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557   (eval "$ac_try") 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; }; then
7561   ac_cv_header_stdc=yes
7562 else
7563   echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566         ac_cv_header_stdc=no
7567 fi
7568
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570
7571 if test $ac_cv_header_stdc = yes; then
7572   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7573   cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h.  */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h.  */
7579 #include <string.h>
7580
7581 _ACEOF
7582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7583   $EGREP "memchr" >/dev/null 2>&1; then
7584   :
7585 else
7586   ac_cv_header_stdc=no
7587 fi
7588 rm -f conftest*
7589
7590 fi
7591
7592 if test $ac_cv_header_stdc = yes; then
7593   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7594   cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h.  */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h.  */
7600 #include <stdlib.h>
7601
7602 _ACEOF
7603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7604   $EGREP "free" >/dev/null 2>&1; then
7605   :
7606 else
7607   ac_cv_header_stdc=no
7608 fi
7609 rm -f conftest*
7610
7611 fi
7612
7613 if test $ac_cv_header_stdc = yes; then
7614   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7615   if test "$cross_compiling" = yes; then
7616   :
7617 else
7618   cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h.  */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h.  */
7624 #include <ctype.h>
7625 #include <stdlib.h>
7626 #if ((' ' & 0x0FF) == 0x020)
7627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7629 #else
7630 # define ISLOWER(c) \
7631                    (('a' <= (c) && (c) <= 'i') \
7632                      || ('j' <= (c) && (c) <= 'r') \
7633                      || ('s' <= (c) && (c) <= 'z'))
7634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7635 #endif
7636
7637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7638 int
7639 main ()
7640 {
7641   int i;
7642   for (i = 0; i < 256; i++)
7643     if (XOR (islower (i), ISLOWER (i))
7644         || toupper (i) != TOUPPER (i))
7645       return 2;
7646   return 0;
7647 }
7648 _ACEOF
7649 rm -f conftest$ac_exeext
7650 if { (ac_try="$ac_link"
7651 case "(($ac_try" in
7652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653   *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656   (eval "$ac_link") 2>&5
7657   ac_status=$?
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7660   { (case "(($ac_try" in
7661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662   *) ac_try_echo=$ac_try;;
7663 esac
7664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7665   (eval "$ac_try") 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; }; then
7669   :
7670 else
7671   echo "$as_me: program exited with status $ac_status" >&5
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 ( exit $ac_status )
7676 ac_cv_header_stdc=no
7677 fi
7678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7679 fi
7680
7681
7682 fi
7683 fi
7684 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7685 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7686 if test $ac_cv_header_stdc = yes; then
7687
7688 cat >>confdefs.h <<\_ACEOF
7689 #define STDC_HEADERS 1
7690 _ACEOF
7691
7692 fi
7693
7694 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7705                   inttypes.h stdint.h unistd.h
7706 do
7707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h.  */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h.  */
7719 $ac_includes_default
7720
7721 #include <$ac_header>
7722 _ACEOF
7723 rm -f conftest.$ac_objext
7724 if { (ac_try="$ac_compile"
7725 case "(($ac_try" in
7726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727   *) ac_try_echo=$ac_try;;
7728 esac
7729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7730   (eval "$ac_compile") 2>conftest.er1
7731   ac_status=$?
7732   grep -v '^ *+' conftest.er1 >conftest.err
7733   rm -f conftest.er1
7734   cat conftest.err >&5
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); } &&
7737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7738   { (case "(($ac_try" in
7739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740   *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743   (eval "$ac_try") 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; } &&
7747          { ac_try='test -s conftest.$ac_objext'
7748   { (case "(($ac_try" in
7749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750   *) ac_try_echo=$ac_try;;
7751 esac
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753   (eval "$ac_try") 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; }; then
7757   eval "$as_ac_Header=yes"
7758 else
7759   echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7761
7762         eval "$as_ac_Header=no"
7763 fi
7764
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 fi
7767 ac_res=`eval echo '${'$as_ac_Header'}'`
7768                { echo "$as_me:$LINENO: result: $ac_res" >&5
7769 echo "${ECHO_T}$ac_res" >&6; }
7770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7771   cat >>confdefs.h <<_ACEOF
7772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7773 _ACEOF
7774
7775 fi
7776
7777 done
7778
7779
7780
7781 for ac_header in errno.h
7782 do
7783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7785   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7788   echo $ECHO_N "(cached) $ECHO_C" >&6
7789 fi
7790 ac_res=`eval echo '${'$as_ac_Header'}'`
7791                { echo "$as_me:$LINENO: result: $ac_res" >&5
7792 echo "${ECHO_T}$ac_res" >&6; }
7793 else
7794   # Is the header compilable?
7795 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7797 cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h.  */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h.  */
7803 $ac_includes_default
7804 #include <$ac_header>
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7808 case "(($ac_try" in
7809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810   *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813   (eval "$ac_compile") 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } &&
7820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7821   { (case "(($ac_try" in
7822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823   *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826   (eval "$ac_try") 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; } &&
7830          { ac_try='test -s conftest.$ac_objext'
7831   { (case "(($ac_try" in
7832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833   *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836   (eval "$ac_try") 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   ac_header_compiler=yes
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845         ac_header_compiler=no
7846 fi
7847
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7850 echo "${ECHO_T}$ac_header_compiler" >&6; }
7851
7852 # Is the header present?
7853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861 #include <$ac_header>
7862 _ACEOF
7863 if { (ac_try="$ac_cpp conftest.$ac_ext"
7864 case "(($ac_try" in
7865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866   *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7870   ac_status=$?
7871   grep -v '^ *+' conftest.er1 >conftest.err
7872   rm -f conftest.er1
7873   cat conftest.err >&5
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } >/dev/null; then
7876   if test -s conftest.err; then
7877     ac_cpp_err=$ac_c_preproc_warn_flag
7878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7879   else
7880     ac_cpp_err=
7881   fi
7882 else
7883   ac_cpp_err=yes
7884 fi
7885 if test -z "$ac_cpp_err"; then
7886   ac_header_preproc=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891   ac_header_preproc=no
7892 fi
7893
7894 rm -f conftest.err conftest.$ac_ext
7895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7896 echo "${ECHO_T}$ac_header_preproc" >&6; }
7897
7898 # So?  What about this header?
7899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7900   yes:no: )
7901     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7905     ac_header_preproc=yes
7906     ;;
7907   no:yes:* )
7908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7910     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7911 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7912     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7914     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7915 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7918     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7920     ( cat <<\_ASBOX
7921 ## ------------------------------------ ##
7922 ## Report this to http://llvm.org/bugs/ ##
7923 ## ------------------------------------ ##
7924 _ASBOX
7925      ) | sed "s/^/$as_me: WARNING:     /" >&2
7926     ;;
7927 esac
7928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   eval "$as_ac_Header=\$ac_header_preproc"
7934 fi
7935 ac_res=`eval echo '${'$as_ac_Header'}'`
7936                { echo "$as_me:$LINENO: result: $ac_res" >&5
7937 echo "${ECHO_T}$ac_res" >&6; }
7938
7939 fi
7940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941   cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7943 _ACEOF
7944
7945 fi
7946
7947 done
7948
7949
7950 case "$llvm_cv_os_type" in
7951   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7952   Darwin) llvm_shlib_ext=.dylib ;;
7953   *) llvm_shlib_ext=.so ;;
7954 esac
7955
7956
7957 cat >>confdefs.h <<_ACEOF
7958 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7959 _ACEOF
7960
7961
7962 { echo "$as_me:$LINENO: checking tool compatibility" >&5
7963 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7964
7965 ICC=no
7966 IXX=no
7967 case $CC in
7968   icc*|icpc*)
7969     ICC=yes
7970     IXX=yes
7971     ;;
7972    *)
7973     ;;
7974 esac
7975
7976 if test "$GCC" != "yes" && test "$ICC" != "yes"
7977 then
7978   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7979 echo "$as_me: error: gcc|icc required but not found" >&2;}
7980    { (exit 1); exit 1; }; }
7981 fi
7982
7983 if test "$GXX" != "yes" && test "$IXX" != "yes"
7984 then
7985   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7986 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7987    { (exit 1); exit 1; }; }
7988 fi
7989
7990 if test "$GCC" = "yes"
7991 then
7992   cat >conftest.$ac_ext <<_ACEOF
7993
7994   /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999
8000     #if !defined(__GNUC__) || __GNUC__ < 3
8001     #error Unsupported GCC version
8002     #endif
8003
8004
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8008 case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_compile") 2>conftest.er1
8014   ac_status=$?
8015   grep -v '^ *+' conftest.er1 >conftest.err
8016   rm -f conftest.er1
8017   cat conftest.err >&5
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } &&
8020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8021   { (case "(($ac_try" in
8022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023   *) ac_try_echo=$ac_try;;
8024 esac
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026   (eval "$ac_try") 2>&5
8027   ac_status=$?
8028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029   (exit $ac_status); }; } &&
8030          { ac_try='test -s conftest.$ac_objext'
8031   { (case "(($ac_try" in
8032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033   *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036   (eval "$ac_try") 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); }; }; then
8040   :
8041 else
8042   echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8044
8045         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8046 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8047    { (exit 1); exit 1; }; }
8048 fi
8049
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051 fi
8052
8053 if test -z "$llvm_cv_gnu_make_command"
8054 then
8055   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8056 echo "$as_me: error: GNU Make required but not found" >&2;}
8057    { (exit 1); exit 1; }; }
8058 fi
8059
8060 { echo "$as_me:$LINENO: result: ok" >&5
8061 echo "${ECHO_T}ok" >&6; }
8062
8063 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8064 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8065 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8066
8067 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8068
8069 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8070
8071
8072 NO_UNINITIALIZED=
8073 NO_MAYBE_UNINITIALIZED=
8074 if test "$GXX" = "yes"
8075 then
8076   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8077
8078         if test -z "$NO_MAYBE_UNINITIALIZED"
8079   then
8080     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8081
8082   fi
8083 fi
8084
8085 no_comment=
8086 llvm_cv_old_cxxflags="$CXXFLAGS"
8087 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8088 cat >conftest.$ac_ext <<_ACEOF
8089
8090   /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095 // Comment \o\
8096 // Another comment
8097 int main() { return 0; }
8098
8099
8100 _ACEOF
8101 rm -f conftest.$ac_objext
8102 if { (ac_try="$ac_compile"
8103 case "(($ac_try" in
8104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105   *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108   (eval "$ac_compile") 2>conftest.er1
8109   ac_status=$?
8110   grep -v '^ *+' conftest.er1 >conftest.err
8111   rm -f conftest.er1
8112   cat conftest.err >&5
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } &&
8115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8116   { (case "(($ac_try" in
8117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118   *) ac_try_echo=$ac_try;;
8119 esac
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121   (eval "$ac_try") 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); }; } &&
8125          { ac_try='test -s conftest.$ac_objext'
8126   { (case "(($ac_try" in
8127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128   *) ac_try_echo=$ac_try;;
8129 esac
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131   (eval "$ac_try") 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; }; then
8135
8136   no_comment=-Wno-comment
8137
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142
8143 fi
8144
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 NO_COMMENT=$no_comment
8147
8148 CXXFLAGS="$llvm_cv_old_cxxflags"
8149
8150 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8151 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8152
8153
8154 # Check whether --with-python was given.
8155 if test "${with_python+set}" = set; then
8156   withval=$with_python; PYTHON="$withval"
8157 fi
8158
8159
8160 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8161   { echo "$as_me:$LINENO: checking for python" >&5
8162 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8163   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8164 echo "${ECHO_T}user defined: $with_python" >&6; }
8165 else
8166   if test -n "$PYTHON" ; then
8167     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8168 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8169   fi
8170
8171   # Extract the first word of "python python2 python27", so it can be a program name with args.
8172 set dummy python python2 python27; ac_word=$2
8173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8175 if test "${ac_cv_path_PYTHON+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   case $PYTHON in
8179   [\\/]* | ?:[\\/]*)
8180   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8181   ;;
8182   *)
8183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186   IFS=$as_save_IFS
8187   test -z "$as_dir" && as_dir=.
8188   for ac_exec_ext in '' $ac_executable_extensions; do
8189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8190     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192     break 2
8193   fi
8194 done
8195 done
8196 IFS=$as_save_IFS
8197
8198   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8199 echo "${ECHO_T}not found" >&6; }
8200                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8201 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8202    { (exit 1); exit 1; }; }"
8203   ;;
8204 esac
8205 fi
8206 PYTHON=$ac_cv_path_PYTHON
8207 if test -n "$PYTHON"; then
8208   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8209 echo "${ECHO_T}$PYTHON" >&6; }
8210 else
8211   { echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6; }
8213 fi
8214
8215
8216 fi
8217
8218 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8219 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8220 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8221 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8222 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8223 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8224 if test "$ac_python_version_major" -gt "2" || \
8225    (test "$ac_python_version_major" -eq "2" && \
8226     test "$ac_python_version_minor" -ge "7") ; then
8227   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8228 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8229 else
8230   { echo "$as_me:$LINENO: result: not found" >&5
8231 echo "${ECHO_T}not found" >&6; }
8232   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8233 See \`config.log' for more details." >&5
8234 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8235 See \`config.log' for more details." >&2;}
8236    { (exit 1); exit 1; }; }
8237 fi
8238
8239
8240
8241 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8242 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8243 if test "${ac_cv_lib_m_sin+set}" = set; then
8244   echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246   ac_check_lib_save_LIBS=$LIBS
8247 LIBS="-lm  $LIBS"
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h.  */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h.  */
8254
8255 /* Override any GCC internal prototype to avoid an error.
8256    Use char because int might match the return type of a GCC
8257    builtin and then its argument prototype would still apply.  */
8258 #ifdef __cplusplus
8259 extern "C"
8260 #endif
8261 char sin ();
8262 int
8263 main ()
8264 {
8265 return sin ();
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 rm -f conftest.$ac_objext conftest$ac_exeext
8271 if { (ac_try="$ac_link"
8272 case "(($ac_try" in
8273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274   *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277   (eval "$ac_link") 2>conftest.er1
8278   ac_status=$?
8279   grep -v '^ *+' conftest.er1 >conftest.err
8280   rm -f conftest.er1
8281   cat conftest.err >&5
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } &&
8284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8285   { (case "(($ac_try" in
8286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287   *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290   (eval "$ac_try") 2>&5
8291   ac_status=$?
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); }; } &&
8294          { ac_try='test -s conftest$ac_exeext'
8295   { (case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300   (eval "$ac_try") 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   ac_cv_lib_m_sin=yes
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309         ac_cv_lib_m_sin=no
8310 fi
8311
8312 rm -f core conftest.err conftest.$ac_objext \
8313       conftest$ac_exeext conftest.$ac_ext
8314 LIBS=$ac_check_lib_save_LIBS
8315 fi
8316 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8317 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8318 if test $ac_cv_lib_m_sin = yes; then
8319   cat >>confdefs.h <<_ACEOF
8320 #define HAVE_LIBM 1
8321 _ACEOF
8322
8323   LIBS="-lm $LIBS"
8324
8325 fi
8326
8327 if test "$llvm_cv_os_type" = "MingW" ; then
8328
8329 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8330 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8331 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   ac_check_lib_save_LIBS=$LIBS
8335 LIBS="-limagehlp  $LIBS"
8336 cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342
8343
8344 int
8345 main ()
8346 {
8347 return main ();
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (ac_try="$ac_link"
8354 case "(($ac_try" in
8355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8356   *) ac_try_echo=$ac_try;;
8357 esac
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359   (eval "$ac_link") 2>conftest.er1
8360   ac_status=$?
8361   grep -v '^ *+' conftest.er1 >conftest.err
8362   rm -f conftest.er1
8363   cat conftest.err >&5
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } &&
8366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367   { (case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372   (eval "$ac_try") 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; } &&
8376          { ac_try='test -s conftest$ac_exeext'
8377   { (case "(($ac_try" in
8378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379   *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382   (eval "$ac_try") 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); }; }; then
8386   ac_cv_lib_imagehlp_main=yes
8387 else
8388   echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391         ac_cv_lib_imagehlp_main=no
8392 fi
8393
8394 rm -f core conftest.err conftest.$ac_objext \
8395       conftest$ac_exeext conftest.$ac_ext
8396 LIBS=$ac_check_lib_save_LIBS
8397 fi
8398 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8399 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8400 if test $ac_cv_lib_imagehlp_main = yes; then
8401   cat >>confdefs.h <<_ACEOF
8402 #define HAVE_LIBIMAGEHLP 1
8403 _ACEOF
8404
8405   LIBS="-limagehlp $LIBS"
8406
8407 fi
8408
8409
8410 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8411 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8412 if test "${ac_cv_lib_psapi_main+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-lpsapi  $LIBS"
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424
8425 int
8426 main ()
8427 {
8428 return main ();
8429   ;
8430   return 0;
8431 }
8432 _ACEOF
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (ac_try="$ac_link"
8435 case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440   (eval "$ac_link") 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448   { (case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_try") 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; } &&
8457          { ac_try='test -s conftest$ac_exeext'
8458   { (case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_try") 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_cv_lib_psapi_main=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472         ac_cv_lib_psapi_main=no
8473 fi
8474
8475 rm -f core conftest.err conftest.$ac_objext \
8476       conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8478 fi
8479 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8480 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8481 if test $ac_cv_lib_psapi_main = yes; then
8482   cat >>confdefs.h <<_ACEOF
8483 #define HAVE_LIBPSAPI 1
8484 _ACEOF
8485
8486   LIBS="-lpsapi $LIBS"
8487
8488 fi
8489
8490
8491 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8492 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8493 if test "${ac_cv_lib_shell32_main+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-lshell32  $LIBS"
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504
8505
8506 int
8507 main ()
8508 {
8509 return main ();
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8516 case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521   (eval "$ac_link") 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529   { (case "(($ac_try" in
8530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531   *) ac_try_echo=$ac_try;;
8532 esac
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534   (eval "$ac_try") 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest$ac_exeext'
8539   { (case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_try") 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; }; then
8548   ac_cv_lib_shell32_main=yes
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553         ac_cv_lib_shell32_main=no
8554 fi
8555
8556 rm -f core conftest.err conftest.$ac_objext \
8557       conftest$ac_exeext conftest.$ac_ext
8558 LIBS=$ac_check_lib_save_LIBS
8559 fi
8560 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8561 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8562 if test $ac_cv_lib_shell32_main = yes; then
8563   cat >>confdefs.h <<_ACEOF
8564 #define HAVE_LIBSHELL32 1
8565 _ACEOF
8566
8567   LIBS="-lshell32 $LIBS"
8568
8569 fi
8570
8571 fi
8572
8573 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8574 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8575 if test "${ac_cv_search_dlopen+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   ac_func_search_save_LIBS=$LIBS
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585
8586 /* Override any GCC internal prototype to avoid an error.
8587    Use char because int might match the return type of a GCC
8588    builtin and then its argument prototype would still apply.  */
8589 #ifdef __cplusplus
8590 extern "C"
8591 #endif
8592 char dlopen ();
8593 int
8594 main ()
8595 {
8596 return dlopen ();
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 for ac_lib in '' dl; do
8602   if test -z "$ac_lib"; then
8603     ac_res="none required"
8604   else
8605     ac_res=-l$ac_lib
8606     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8607   fi
8608   rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (ac_try="$ac_link"
8610 case "(($ac_try" in
8611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612   *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615   (eval "$ac_link") 2>conftest.er1
8616   ac_status=$?
8617   grep -v '^ *+' conftest.er1 >conftest.err
8618   rm -f conftest.er1
8619   cat conftest.err >&5
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); } &&
8622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8623   { (case "(($ac_try" in
8624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625   *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628   (eval "$ac_try") 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; } &&
8632          { ac_try='test -s conftest$ac_exeext'
8633   { (case "(($ac_try" in
8634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635   *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638   (eval "$ac_try") 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); }; }; then
8642   ac_cv_search_dlopen=$ac_res
8643 else
8644   echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647
8648 fi
8649
8650 rm -f core conftest.err conftest.$ac_objext \
8651       conftest$ac_exeext
8652   if test "${ac_cv_search_dlopen+set}" = set; then
8653   break
8654 fi
8655 done
8656 if test "${ac_cv_search_dlopen+set}" = set; then
8657   :
8658 else
8659   ac_cv_search_dlopen=no
8660 fi
8661 rm conftest.$ac_ext
8662 LIBS=$ac_func_search_save_LIBS
8663 fi
8664 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8665 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8666 ac_res=$ac_cv_search_dlopen
8667 if test "$ac_res" != no; then
8668   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8669
8670
8671 cat >>confdefs.h <<\_ACEOF
8672 #define HAVE_DLOPEN 1
8673 _ACEOF
8674
8675 HAVE_DLOPEN='1'
8676
8677
8678 else
8679   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8680 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8681 fi
8682
8683
8684 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8685 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8686 if test "${ac_cv_search_clock_gettime+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689   ac_func_search_save_LIBS=$LIBS
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696
8697 /* Override any GCC internal prototype to avoid an error.
8698    Use char because int might match the return type of a GCC
8699    builtin and then its argument prototype would still apply.  */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 char clock_gettime ();
8704 int
8705 main ()
8706 {
8707 return clock_gettime ();
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 for ac_lib in '' rt; do
8713   if test -z "$ac_lib"; then
8714     ac_res="none required"
8715   else
8716     ac_res=-l$ac_lib
8717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8718   fi
8719   rm -f conftest.$ac_objext conftest$ac_exeext
8720 if { (ac_try="$ac_link"
8721 case "(($ac_try" in
8722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723   *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726   (eval "$ac_link") 2>conftest.er1
8727   ac_status=$?
8728   grep -v '^ *+' conftest.er1 >conftest.err
8729   rm -f conftest.er1
8730   cat conftest.err >&5
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); } &&
8733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8734   { (case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739   (eval "$ac_try") 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; } &&
8743          { ac_try='test -s conftest$ac_exeext'
8744   { (case "(($ac_try" in
8745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746   *) ac_try_echo=$ac_try;;
8747 esac
8748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749   (eval "$ac_try") 2>&5
8750   ac_status=$?
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); }; }; then
8753   ac_cv_search_clock_gettime=$ac_res
8754 else
8755   echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8757
8758
8759 fi
8760
8761 rm -f core conftest.err conftest.$ac_objext \
8762       conftest$ac_exeext
8763   if test "${ac_cv_search_clock_gettime+set}" = set; then
8764   break
8765 fi
8766 done
8767 if test "${ac_cv_search_clock_gettime+set}" = set; then
8768   :
8769 else
8770   ac_cv_search_clock_gettime=no
8771 fi
8772 rm conftest.$ac_ext
8773 LIBS=$ac_func_search_save_LIBS
8774 fi
8775 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8776 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8777 ac_res=$ac_cv_search_clock_gettime
8778 if test "$ac_res" != no; then
8779   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8780
8781 fi
8782
8783
8784 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8785     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8786 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8787 if test "${ac_cv_search_setupterm+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   ac_func_search_save_LIBS=$LIBS
8791 cat >conftest.$ac_ext <<_ACEOF
8792 /* confdefs.h.  */
8793 _ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h.  */
8797
8798 /* Override any GCC internal prototype to avoid an error.
8799    Use char because int might match the return type of a GCC
8800    builtin and then its argument prototype would still apply.  */
8801 #ifdef __cplusplus
8802 extern "C"
8803 #endif
8804 char setupterm ();
8805 int
8806 main ()
8807 {
8808 return setupterm ();
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8814   if test -z "$ac_lib"; then
8815     ac_res="none required"
8816   else
8817     ac_res=-l$ac_lib
8818     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8819   fi
8820   rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (ac_try="$ac_link"
8822 case "(($ac_try" in
8823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824   *) ac_try_echo=$ac_try;;
8825 esac
8826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827   (eval "$ac_link") 2>conftest.er1
8828   ac_status=$?
8829   grep -v '^ *+' conftest.er1 >conftest.err
8830   rm -f conftest.er1
8831   cat conftest.err >&5
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); } &&
8834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8835   { (case "(($ac_try" in
8836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837   *) ac_try_echo=$ac_try;;
8838 esac
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840   (eval "$ac_try") 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; } &&
8844          { ac_try='test -s conftest$ac_exeext'
8845   { (case "(($ac_try" in
8846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847   *) ac_try_echo=$ac_try;;
8848 esac
8849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850   (eval "$ac_try") 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; }; then
8854   ac_cv_search_setupterm=$ac_res
8855 else
8856   echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859
8860 fi
8861
8862 rm -f core conftest.err conftest.$ac_objext \
8863       conftest$ac_exeext
8864   if test "${ac_cv_search_setupterm+set}" = set; then
8865   break
8866 fi
8867 done
8868 if test "${ac_cv_search_setupterm+set}" = set; then
8869   :
8870 else
8871   ac_cv_search_setupterm=no
8872 fi
8873 rm conftest.$ac_ext
8874 LIBS=$ac_func_search_save_LIBS
8875 fi
8876 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8877 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8878 ac_res=$ac_cv_search_setupterm
8879 if test "$ac_res" != no; then
8880   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8881
8882
8883 cat >>confdefs.h <<\_ACEOF
8884 #define HAVE_TERMINFO 1
8885 _ACEOF
8886
8887 HAVE_TERMINFO='1'
8888
8889
8890 fi
8891
8892 fi
8893
8894 if test "$llvm_cv_enable_libedit" = "yes" ; then
8895   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8896 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8897 if test "${ac_cv_search_el_init+set}" = set; then
8898   echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900   ac_func_search_save_LIBS=$LIBS
8901 cat >conftest.$ac_ext <<_ACEOF
8902 /* confdefs.h.  */
8903 _ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h.  */
8907
8908 /* Override any GCC internal prototype to avoid an error.
8909    Use char because int might match the return type of a GCC
8910    builtin and then its argument prototype would still apply.  */
8911 #ifdef __cplusplus
8912 extern "C"
8913 #endif
8914 char el_init ();
8915 int
8916 main ()
8917 {
8918 return el_init ();
8919   ;
8920   return 0;
8921 }
8922 _ACEOF
8923 for ac_lib in '' edit; do
8924   if test -z "$ac_lib"; then
8925     ac_res="none required"
8926   else
8927     ac_res=-l$ac_lib
8928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8929   fi
8930   rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (ac_try="$ac_link"
8932 case "(($ac_try" in
8933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934   *) ac_try_echo=$ac_try;;
8935 esac
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937   (eval "$ac_link") 2>conftest.er1
8938   ac_status=$?
8939   grep -v '^ *+' conftest.er1 >conftest.err
8940   rm -f conftest.er1
8941   cat conftest.err >&5
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } &&
8944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8945   { (case "(($ac_try" in
8946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947   *) ac_try_echo=$ac_try;;
8948 esac
8949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8950   (eval "$ac_try") 2>&5
8951   ac_status=$?
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); }; } &&
8954          { ac_try='test -s conftest$ac_exeext'
8955   { (case "(($ac_try" in
8956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957   *) ac_try_echo=$ac_try;;
8958 esac
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960   (eval "$ac_try") 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; }; then
8964   ac_cv_search_el_init=$ac_res
8965 else
8966   echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969
8970 fi
8971
8972 rm -f core conftest.err conftest.$ac_objext \
8973       conftest$ac_exeext
8974   if test "${ac_cv_search_el_init+set}" = set; then
8975   break
8976 fi
8977 done
8978 if test "${ac_cv_search_el_init+set}" = set; then
8979   :
8980 else
8981   ac_cv_search_el_init=no
8982 fi
8983 rm conftest.$ac_ext
8984 LIBS=$ac_func_search_save_LIBS
8985 fi
8986 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8987 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8988 ac_res=$ac_cv_search_el_init
8989 if test "$ac_res" != no; then
8990   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8991
8992 cat >>confdefs.h <<\_ACEOF
8993 #define HAVE_LIBEDIT 1
8994 _ACEOF
8995
8996 fi
8997
8998 fi
8999
9000 if test "$llvm_cv_enable_libffi" = "yes" ; then
9001   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9002 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9003 if test "${ac_cv_search_ffi_call+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006   ac_func_search_save_LIBS=$LIBS
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h.  */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h.  */
9013
9014 /* Override any GCC internal prototype to avoid an error.
9015    Use char because int might match the return type of a GCC
9016    builtin and then its argument prototype would still apply.  */
9017 #ifdef __cplusplus
9018 extern "C"
9019 #endif
9020 char ffi_call ();
9021 int
9022 main ()
9023 {
9024 return ffi_call ();
9025   ;
9026   return 0;
9027 }
9028 _ACEOF
9029 for ac_lib in '' ffi; do
9030   if test -z "$ac_lib"; then
9031     ac_res="none required"
9032   else
9033     ac_res=-l$ac_lib
9034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9035   fi
9036   rm -f conftest.$ac_objext conftest$ac_exeext
9037 if { (ac_try="$ac_link"
9038 case "(($ac_try" in
9039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040   *) ac_try_echo=$ac_try;;
9041 esac
9042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043   (eval "$ac_link") 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } &&
9050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9051   { (case "(($ac_try" in
9052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053   *) ac_try_echo=$ac_try;;
9054 esac
9055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056   (eval "$ac_try") 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; } &&
9060          { ac_try='test -s conftest$ac_exeext'
9061   { (case "(($ac_try" in
9062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063   *) ac_try_echo=$ac_try;;
9064 esac
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066   (eval "$ac_try") 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; }; then
9070   ac_cv_search_ffi_call=$ac_res
9071 else
9072   echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075
9076 fi
9077
9078 rm -f core conftest.err conftest.$ac_objext \
9079       conftest$ac_exeext
9080   if test "${ac_cv_search_ffi_call+set}" = set; then
9081   break
9082 fi
9083 done
9084 if test "${ac_cv_search_ffi_call+set}" = set; then
9085   :
9086 else
9087   ac_cv_search_ffi_call=no
9088 fi
9089 rm conftest.$ac_ext
9090 LIBS=$ac_func_search_save_LIBS
9091 fi
9092 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9093 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9094 ac_res=$ac_cv_search_ffi_call
9095 if test "$ac_res" != no; then
9096   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9097
9098 cat >>confdefs.h <<\_ACEOF
9099 #define HAVE_FFI_CALL 1
9100 _ACEOF
9101
9102 else
9103   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9104 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9105    { (exit 1); exit 1; }; }
9106 fi
9107
9108 fi
9109
9110 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9111 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9112 if test "${ac_cv_search_mallinfo+set}" = set; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   ac_func_search_save_LIBS=$LIBS
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h.  */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h.  */
9122
9123 /* Override any GCC internal prototype to avoid an error.
9124    Use char because int might match the return type of a GCC
9125    builtin and then its argument prototype would still apply.  */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 char mallinfo ();
9130 int
9131 main ()
9132 {
9133 return mallinfo ();
9134   ;
9135   return 0;
9136 }
9137 _ACEOF
9138 for ac_lib in '' malloc; do
9139   if test -z "$ac_lib"; then
9140     ac_res="none required"
9141   else
9142     ac_res=-l$ac_lib
9143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9144   fi
9145   rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9147 case "(($ac_try" in
9148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149   *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152   (eval "$ac_link") 2>conftest.er1
9153   ac_status=$?
9154   grep -v '^ *+' conftest.er1 >conftest.err
9155   rm -f conftest.er1
9156   cat conftest.err >&5
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9160   { (case "(($ac_try" in
9161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162   *) ac_try_echo=$ac_try;;
9163 esac
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165   (eval "$ac_try") 2>&5
9166   ac_status=$?
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); }; } &&
9169          { ac_try='test -s conftest$ac_exeext'
9170   { (case "(($ac_try" in
9171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172   *) ac_try_echo=$ac_try;;
9173 esac
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175   (eval "$ac_try") 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; }; then
9179   ac_cv_search_mallinfo=$ac_res
9180 else
9181   echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9183
9184
9185 fi
9186
9187 rm -f core conftest.err conftest.$ac_objext \
9188       conftest$ac_exeext
9189   if test "${ac_cv_search_mallinfo+set}" = set; then
9190   break
9191 fi
9192 done
9193 if test "${ac_cv_search_mallinfo+set}" = set; then
9194   :
9195 else
9196   ac_cv_search_mallinfo=no
9197 fi
9198 rm conftest.$ac_ext
9199 LIBS=$ac_func_search_save_LIBS
9200 fi
9201 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9202 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9203 ac_res=$ac_cv_search_mallinfo
9204 if test "$ac_res" != no; then
9205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9206
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_MALLINFO 1
9209 _ACEOF
9210
9211 fi
9212
9213
9214 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9215
9216 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9217 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9218 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221   ac_check_lib_save_LIBS=$LIBS
9222 LIBS="-lpthread  $LIBS"
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229
9230 /* Override any GCC internal prototype to avoid an error.
9231    Use char because int might match the return type of a GCC
9232    builtin and then its argument prototype would still apply.  */
9233 #ifdef __cplusplus
9234 extern "C"
9235 #endif
9236 char pthread_mutex_init ();
9237 int
9238 main ()
9239 {
9240 return pthread_mutex_init ();
9241   ;
9242   return 0;
9243 }
9244 _ACEOF
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (ac_try="$ac_link"
9247 case "(($ac_try" in
9248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249   *) ac_try_echo=$ac_try;;
9250 esac
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252   (eval "$ac_link") 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9260   { (case "(($ac_try" in
9261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262   *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265   (eval "$ac_try") 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; } &&
9269          { ac_try='test -s conftest$ac_exeext'
9270   { (case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275   (eval "$ac_try") 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; }; then
9279   ac_cv_lib_pthread_pthread_mutex_init=yes
9280 else
9281   echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9283
9284         ac_cv_lib_pthread_pthread_mutex_init=no
9285 fi
9286
9287 rm -f core conftest.err conftest.$ac_objext \
9288       conftest$ac_exeext conftest.$ac_ext
9289 LIBS=$ac_check_lib_save_LIBS
9290 fi
9291 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9292 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9293 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9294   cat >>confdefs.h <<_ACEOF
9295 #define HAVE_LIBPTHREAD 1
9296 _ACEOF
9297
9298   LIBS="-lpthread $LIBS"
9299
9300 fi
9301
9302   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9303 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9304 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9305   echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307   ac_func_search_save_LIBS=$LIBS
9308 cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h.  */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h.  */
9314
9315 /* Override any GCC internal prototype to avoid an error.
9316    Use char because int might match the return type of a GCC
9317    builtin and then its argument prototype would still apply.  */
9318 #ifdef __cplusplus
9319 extern "C"
9320 #endif
9321 char pthread_mutex_lock ();
9322 int
9323 main ()
9324 {
9325 return pthread_mutex_lock ();
9326   ;
9327   return 0;
9328 }
9329 _ACEOF
9330 for ac_lib in '' pthread; do
9331   if test -z "$ac_lib"; then
9332     ac_res="none required"
9333   else
9334     ac_res=-l$ac_lib
9335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9336   fi
9337   rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9339 case "(($ac_try" in
9340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341   *) ac_try_echo=$ac_try;;
9342 esac
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344   (eval "$ac_link") 2>conftest.er1
9345   ac_status=$?
9346   grep -v '^ *+' conftest.er1 >conftest.err
9347   rm -f conftest.er1
9348   cat conftest.err >&5
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); } &&
9351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9352   { (case "(($ac_try" in
9353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354   *) ac_try_echo=$ac_try;;
9355 esac
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357   (eval "$ac_try") 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; } &&
9361          { ac_try='test -s conftest$ac_exeext'
9362   { (case "(($ac_try" in
9363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364   *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367   (eval "$ac_try") 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); }; }; then
9371   ac_cv_search_pthread_mutex_lock=$ac_res
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376
9377 fi
9378
9379 rm -f core conftest.err conftest.$ac_objext \
9380       conftest$ac_exeext
9381   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9382   break
9383 fi
9384 done
9385 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9386   :
9387 else
9388   ac_cv_search_pthread_mutex_lock=no
9389 fi
9390 rm conftest.$ac_ext
9391 LIBS=$ac_func_search_save_LIBS
9392 fi
9393 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9394 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9395 ac_res=$ac_cv_search_pthread_mutex_lock
9396 if test "$ac_res" != no; then
9397   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9398
9399 cat >>confdefs.h <<\_ACEOF
9400 #define HAVE_PTHREAD_MUTEX_LOCK 1
9401 _ACEOF
9402
9403 fi
9404
9405   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9406 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9407 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9408   echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410   ac_func_search_save_LIBS=$LIBS
9411 cat >conftest.$ac_ext <<_ACEOF
9412 /* confdefs.h.  */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h.  */
9417
9418 /* Override any GCC internal prototype to avoid an error.
9419    Use char because int might match the return type of a GCC
9420    builtin and then its argument prototype would still apply.  */
9421 #ifdef __cplusplus
9422 extern "C"
9423 #endif
9424 char pthread_rwlock_init ();
9425 int
9426 main ()
9427 {
9428 return pthread_rwlock_init ();
9429   ;
9430   return 0;
9431 }
9432 _ACEOF
9433 for ac_lib in '' pthread; do
9434   if test -z "$ac_lib"; then
9435     ac_res="none required"
9436   else
9437     ac_res=-l$ac_lib
9438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9439   fi
9440   rm -f conftest.$ac_objext conftest$ac_exeext
9441 if { (ac_try="$ac_link"
9442 case "(($ac_try" in
9443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444   *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447   (eval "$ac_link") 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } &&
9454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9455   { (case "(($ac_try" in
9456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457   *) ac_try_echo=$ac_try;;
9458 esac
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460   (eval "$ac_try") 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); }; } &&
9464          { ac_try='test -s conftest$ac_exeext'
9465   { (case "(($ac_try" in
9466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467   *) ac_try_echo=$ac_try;;
9468 esac
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470   (eval "$ac_try") 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }; }; then
9474   ac_cv_search_pthread_rwlock_init=$ac_res
9475 else
9476   echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9478
9479
9480 fi
9481
9482 rm -f core conftest.err conftest.$ac_objext \
9483       conftest$ac_exeext
9484   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9485   break
9486 fi
9487 done
9488 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9489   :
9490 else
9491   ac_cv_search_pthread_rwlock_init=no
9492 fi
9493 rm conftest.$ac_ext
9494 LIBS=$ac_func_search_save_LIBS
9495 fi
9496 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9497 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9498 ac_res=$ac_cv_search_pthread_rwlock_init
9499 if test "$ac_res" != no; then
9500   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9501
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_PTHREAD_RWLOCK_INIT 1
9504 _ACEOF
9505
9506 fi
9507
9508   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9509 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9510 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   ac_func_search_save_LIBS=$LIBS
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h.  */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h.  */
9520
9521 /* Override any GCC internal prototype to avoid an error.
9522    Use char because int might match the return type of a GCC
9523    builtin and then its argument prototype would still apply.  */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char pthread_getspecific ();
9528 int
9529 main ()
9530 {
9531 return pthread_getspecific ();
9532   ;
9533   return 0;
9534 }
9535 _ACEOF
9536 for ac_lib in '' pthread; do
9537   if test -z "$ac_lib"; then
9538     ac_res="none required"
9539   else
9540     ac_res=-l$ac_lib
9541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9542   fi
9543   rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9545 case "(($ac_try" in
9546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547   *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550   (eval "$ac_link") 2>conftest.er1
9551   ac_status=$?
9552   grep -v '^ *+' conftest.er1 >conftest.err
9553   rm -f conftest.er1
9554   cat conftest.err >&5
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558   { (case "(($ac_try" in
9559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560   *) ac_try_echo=$ac_try;;
9561 esac
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563   (eval "$ac_try") 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; } &&
9567          { ac_try='test -s conftest$ac_exeext'
9568   { (case "(($ac_try" in
9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570   *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573   (eval "$ac_try") 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; }; then
9577   ac_cv_search_pthread_getspecific=$ac_res
9578 else
9579   echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9581
9582
9583 fi
9584
9585 rm -f core conftest.err conftest.$ac_objext \
9586       conftest$ac_exeext
9587   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9588   break
9589 fi
9590 done
9591 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9592   :
9593 else
9594   ac_cv_search_pthread_getspecific=no
9595 fi
9596 rm conftest.$ac_ext
9597 LIBS=$ac_func_search_save_LIBS
9598 fi
9599 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9600 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9601 ac_res=$ac_cv_search_pthread_getspecific
9602 if test "$ac_res" != no; then
9603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9604
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_PTHREAD_GETSPECIFIC 1
9607 _ACEOF
9608
9609 fi
9610
9611 fi
9612
9613 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9614
9615 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9616 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9617 if test "${ac_cv_lib_z_compress2+set}" = set; then
9618   echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620   ac_check_lib_save_LIBS=$LIBS
9621 LIBS="-lz  $LIBS"
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h.  */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h.  */
9628
9629 /* Override any GCC internal prototype to avoid an error.
9630    Use char because int might match the return type of a GCC
9631    builtin and then its argument prototype would still apply.  */
9632 #ifdef __cplusplus
9633 extern "C"
9634 #endif
9635 char compress2 ();
9636 int
9637 main ()
9638 {
9639 return compress2 ();
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9646 case "(($ac_try" in
9647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648   *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651   (eval "$ac_link") 2>conftest.er1
9652   ac_status=$?
9653   grep -v '^ *+' conftest.er1 >conftest.err
9654   rm -f conftest.er1
9655   cat conftest.err >&5
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); } &&
9658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659   { (case "(($ac_try" in
9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661   *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664   (eval "$ac_try") 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674   (eval "$ac_try") 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_cv_lib_z_compress2=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683         ac_cv_lib_z_compress2=no
9684 fi
9685
9686 rm -f core conftest.err conftest.$ac_objext \
9687       conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9689 fi
9690 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9691 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9692 if test $ac_cv_lib_z_compress2 = yes; then
9693   cat >>confdefs.h <<_ACEOF
9694 #define HAVE_LIBZ 1
9695 _ACEOF
9696
9697   LIBS="-lz $LIBS"
9698
9699 fi
9700
9701 fi
9702
9703
9704 # Check whether --with-oprofile was given.
9705 if test "${with_oprofile+set}" = set; then
9706   withval=$with_oprofile;
9707       USE_OPROFILE=1
9708
9709       case "$withval" in
9710         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9711         no) llvm_cv_oppath=
9712             USE_OPROFILE=0
9713  ;;
9714         *) llvm_cv_oppath="${withval}/lib/oprofile"
9715            CPPFLAGS="-I${withval}/include";;
9716       esac
9717       case $llvm_cv_os_type in
9718         Linux)
9719           if test -n "$llvm_cv_oppath" ; then
9720             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9721                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9722 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9723 if test "${ac_cv_search_bfd_init+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   ac_func_search_save_LIBS=$LIBS
9727 cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733
9734 /* Override any GCC internal prototype to avoid an error.
9735    Use char because int might match the return type of a GCC
9736    builtin and then its argument prototype would still apply.  */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 char bfd_init ();
9741 int
9742 main ()
9743 {
9744 return bfd_init ();
9745   ;
9746   return 0;
9747 }
9748 _ACEOF
9749 for ac_lib in '' bfd; do
9750   if test -z "$ac_lib"; then
9751     ac_res="none required"
9752   else
9753     ac_res=-l$ac_lib
9754     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9755   fi
9756   rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (ac_try="$ac_link"
9758 case "(($ac_try" in
9759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760   *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763   (eval "$ac_link") 2>conftest.er1
9764   ac_status=$?
9765   grep -v '^ *+' conftest.er1 >conftest.err
9766   rm -f conftest.er1
9767   cat conftest.err >&5
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } &&
9770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771   { (case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_try") 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; } &&
9780          { ac_try='test -s conftest$ac_exeext'
9781   { (case "(($ac_try" in
9782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783   *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786   (eval "$ac_try") 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); }; }; then
9790   ac_cv_search_bfd_init=$ac_res
9791 else
9792   echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795
9796 fi
9797
9798 rm -f core conftest.err conftest.$ac_objext \
9799       conftest$ac_exeext
9800   if test "${ac_cv_search_bfd_init+set}" = set; then
9801   break
9802 fi
9803 done
9804 if test "${ac_cv_search_bfd_init+set}" = set; then
9805   :
9806 else
9807   ac_cv_search_bfd_init=no
9808 fi
9809 rm conftest.$ac_ext
9810 LIBS=$ac_func_search_save_LIBS
9811 fi
9812 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9813 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9814 ac_res=$ac_cv_search_bfd_init
9815 if test "$ac_res" != no; then
9816   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9817
9818 fi
9819
9820             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9821 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9822 if test "${ac_cv_search_op_open_agent+set}" = set; then
9823   echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825   ac_func_search_save_LIBS=$LIBS
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832
9833 /* Override any GCC internal prototype to avoid an error.
9834    Use char because int might match the return type of a GCC
9835    builtin and then its argument prototype would still apply.  */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char op_open_agent ();
9840 int
9841 main ()
9842 {
9843 return op_open_agent ();
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 for ac_lib in '' opagent; do
9849   if test -z "$ac_lib"; then
9850     ac_res="none required"
9851   else
9852     ac_res=-l$ac_lib
9853     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9854   fi
9855   rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9857 case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862   (eval "$ac_link") 2>conftest.er1
9863   ac_status=$?
9864   grep -v '^ *+' conftest.er1 >conftest.err
9865   rm -f conftest.er1
9866   cat conftest.err >&5
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); } &&
9869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9870   { (case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875   (eval "$ac_try") 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_try") 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); }; }; then
9889   ac_cv_search_op_open_agent=$ac_res
9890 else
9891   echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894
9895 fi
9896
9897 rm -f core conftest.err conftest.$ac_objext \
9898       conftest$ac_exeext
9899   if test "${ac_cv_search_op_open_agent+set}" = set; then
9900   break
9901 fi
9902 done
9903 if test "${ac_cv_search_op_open_agent+set}" = set; then
9904   :
9905 else
9906   ac_cv_search_op_open_agent=no
9907 fi
9908 rm conftest.$ac_ext
9909 LIBS=$ac_func_search_save_LIBS
9910 fi
9911 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9912 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9913 ac_res=$ac_cv_search_op_open_agent
9914 if test "$ac_res" != no; then
9915   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9916
9917 else
9918
9919               echo "Error! You need to have libopagent around."
9920               exit 1
9921
9922 fi
9923
9924             if test "${ac_cv_header_opagent_h+set}" = set; then
9925   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9926 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9927 if test "${ac_cv_header_opagent_h+set}" = set; then
9928   echo $ECHO_N "(cached) $ECHO_C" >&6
9929 fi
9930 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9931 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9932 else
9933   # Is the header compilable?
9934 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9935 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942 $ac_includes_default
9943 #include <opagent.h>
9944 _ACEOF
9945 rm -f conftest.$ac_objext
9946 if { (ac_try="$ac_compile"
9947 case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_compile") 2>conftest.er1
9953   ac_status=$?
9954   grep -v '^ *+' conftest.er1 >conftest.err
9955   rm -f conftest.er1
9956   cat conftest.err >&5
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); } &&
9959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960   { (case "(($ac_try" in
9961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962   *) ac_try_echo=$ac_try;;
9963 esac
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965   (eval "$ac_try") 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; } &&
9969          { ac_try='test -s conftest.$ac_objext'
9970   { (case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_try") 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; }; then
9979   ac_header_compiler=yes
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984         ac_header_compiler=no
9985 fi
9986
9987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989 echo "${ECHO_T}$ac_header_compiler" >&6; }
9990
9991 # Is the header present?
9992 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9993 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 #include <opagent.h>
10001 _ACEOF
10002 if { (ac_try="$ac_cpp conftest.$ac_ext"
10003 case "(($ac_try" in
10004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005   *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10009   ac_status=$?
10010   grep -v '^ *+' conftest.er1 >conftest.err
10011   rm -f conftest.er1
10012   cat conftest.err >&5
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); } >/dev/null; then
10015   if test -s conftest.err; then
10016     ac_cpp_err=$ac_c_preproc_warn_flag
10017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10018   else
10019     ac_cpp_err=
10020   fi
10021 else
10022   ac_cpp_err=yes
10023 fi
10024 if test -z "$ac_cpp_err"; then
10025   ac_header_preproc=yes
10026 else
10027   echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030   ac_header_preproc=no
10031 fi
10032
10033 rm -f conftest.err conftest.$ac_ext
10034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10035 echo "${ECHO_T}$ac_header_preproc" >&6; }
10036
10037 # So?  What about this header?
10038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10039   yes:no: )
10040     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10041 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10042     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10043 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10044     ac_header_preproc=yes
10045     ;;
10046   no:yes:* )
10047     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10048 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10049     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10050 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10051     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10052 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10053     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10054 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10055     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10056 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10057     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10058 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10059     ( cat <<\_ASBOX
10060 ## ------------------------------------ ##
10061 ## Report this to http://llvm.org/bugs/ ##
10062 ## ------------------------------------ ##
10063 _ASBOX
10064      ) | sed "s/^/$as_me: WARNING:     /" >&2
10065     ;;
10066 esac
10067 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10068 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10069 if test "${ac_cv_header_opagent_h+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   ac_cv_header_opagent_h=$ac_header_preproc
10073 fi
10074 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10075 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10076
10077 fi
10078 if test $ac_cv_header_opagent_h = yes; then
10079   :
10080 else
10081
10082               echo "Error! You need to have opagent.h around."
10083               exit 1
10084
10085 fi
10086
10087
10088           fi ;;
10089         *)
10090           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10091 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10092    { (exit 1); exit 1; }; } ;;
10093       esac
10094
10095 else
10096
10097       USE_OPROFILE=0
10098
10099
10100 fi
10101
10102
10103 cat >>confdefs.h <<_ACEOF
10104 #define LLVM_USE_OPROFILE $USE_OPROFILE
10105 _ACEOF
10106
10107
10108
10109 # Check whether --with-intel-jitevents was given.
10110 if test "${with_intel_jitevents+set}" = set; then
10111   withval=$with_intel_jitevents;
10112        case "$withval" in
10113           yes) USE_INTEL_JITEVENTS=1
10114 ;;
10115           no)  USE_INTEL_JITEVENTS=0
10116 ;;
10117           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10118 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10119    { (exit 1); exit 1; }; };;
10120        esac
10121
10122       case $llvm_cv_os_type in
10123         Linux|Win32|Cygwin|MingW) ;;
10124         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10125 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10126    { (exit 1); exit 1; }; };;
10127       esac
10128
10129       case "$llvm_cv_target_arch" in
10130         x86|x86_64) ;;
10131         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10132 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10133    { (exit 1); exit 1; }; };;
10134       esac
10135
10136 else
10137
10138       USE_INTEL_JITEVENTS=0
10139
10140
10141 fi
10142
10143
10144 cat >>confdefs.h <<_ACEOF
10145 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10146 _ACEOF
10147
10148
10149 for ac_prog in xml2-config
10150 do
10151   # Extract the first word of "$ac_prog", so it can be a program name with args.
10152 set dummy $ac_prog; ac_word=$2
10153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10155 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   if test -n "$XML2CONFIG"; then
10159   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10160 else
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10163 do
10164   IFS=$as_save_IFS
10165   test -z "$as_dir" && as_dir=.
10166   for ac_exec_ext in '' $ac_executable_extensions; do
10167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10168     ac_cv_prog_XML2CONFIG="$ac_prog"
10169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10170     break 2
10171   fi
10172 done
10173 done
10174 IFS=$as_save_IFS
10175
10176 fi
10177 fi
10178 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10179 if test -n "$XML2CONFIG"; then
10180   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10181 echo "${ECHO_T}$XML2CONFIG" >&6; }
10182 else
10183   { echo "$as_me:$LINENO: result: no" >&5
10184 echo "${ECHO_T}no" >&6; }
10185 fi
10186
10187
10188   test -n "$XML2CONFIG" && break
10189 done
10190
10191
10192 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10193 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10194 if test "x$XML2CONFIG" = "x"; then
10195  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10196 echo "${ECHO_T}xml2-config not found" >&6; }
10197 else
10198  LIBXML2_INC=`$XML2CONFIG --cflags`
10199  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10200 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10201  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10202 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10203 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10204   echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206   ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-lxml2  $LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10209 /* confdefs.h.  */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h.  */
10214
10215 /* Override any GCC internal prototype to avoid an error.
10216    Use char because int might match the return type of a GCC
10217    builtin and then its argument prototype would still apply.  */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char xmlReadFile ();
10222 int
10223 main ()
10224 {
10225 return xmlReadFile ();
10226   ;
10227   return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234   *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237   (eval "$ac_link") 2>conftest.er1
10238   ac_status=$?
10239   grep -v '^ *+' conftest.er1 >conftest.err
10240   rm -f conftest.er1
10241   cat conftest.err >&5
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); } &&
10244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245   { (case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_try") 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; } &&
10254          { ac_try='test -s conftest$ac_exeext'
10255   { (case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_try") 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   ac_cv_lib_xml2_xmlReadFile=yes
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269         ac_cv_lib_xml2_xmlReadFile=no
10270 fi
10271
10272 rm -f core conftest.err conftest.$ac_objext \
10273       conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10277 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10278 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define CLANG_HAVE_LIBXML 1
10282 _ACEOF
10283
10284                                 LIBXML2_LIBS="-lxml2"
10285 fi
10286
10287 fi
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297 ac_header_dirent=no
10298 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10299   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10300 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10301 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h.  */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h.  */
10311 #include <sys/types.h>
10312 #include <$ac_hdr>
10313
10314 int
10315 main ()
10316 {
10317 if ((DIR *) 0)
10318 return 0;
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327   *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330   (eval "$ac_compile") 2>conftest.er1
10331   ac_status=$?
10332   grep -v '^ *+' conftest.er1 >conftest.err
10333   rm -f conftest.er1
10334   cat conftest.err >&5
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); } &&
10337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10338   { (case "(($ac_try" in
10339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340   *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343   (eval "$ac_try") 2>&5
10344   ac_status=$?
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); }; } &&
10347          { ac_try='test -s conftest.$ac_objext'
10348   { (case "(($ac_try" in
10349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350   *) ac_try_echo=$ac_try;;
10351 esac
10352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10353   (eval "$ac_try") 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); }; }; then
10357   eval "$as_ac_Header=yes"
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362         eval "$as_ac_Header=no"
10363 fi
10364
10365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366 fi
10367 ac_res=`eval echo '${'$as_ac_Header'}'`
10368                { echo "$as_me:$LINENO: result: $ac_res" >&5
10369 echo "${ECHO_T}$ac_res" >&6; }
10370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10371   cat >>confdefs.h <<_ACEOF
10372 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10373 _ACEOF
10374
10375 ac_header_dirent=$ac_hdr; break
10376 fi
10377
10378 done
10379 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10380 if test $ac_header_dirent = dirent.h; then
10381   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10382 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10383 if test "${ac_cv_search_opendir+set}" = set; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386   ac_func_search_save_LIBS=$LIBS
10387 cat >conftest.$ac_ext <<_ACEOF
10388 /* confdefs.h.  */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h.  */
10393
10394 /* Override any GCC internal prototype to avoid an error.
10395    Use char because int might match the return type of a GCC
10396    builtin and then its argument prototype would still apply.  */
10397 #ifdef __cplusplus
10398 extern "C"
10399 #endif
10400 char opendir ();
10401 int
10402 main ()
10403 {
10404 return opendir ();
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 for ac_lib in '' dir; do
10410   if test -z "$ac_lib"; then
10411     ac_res="none required"
10412   else
10413     ac_res=-l$ac_lib
10414     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10415   fi
10416   rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420   *) ac_try_echo=$ac_try;;
10421 esac
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423   (eval "$ac_link") 2>conftest.er1
10424   ac_status=$?
10425   grep -v '^ *+' conftest.er1 >conftest.err
10426   rm -f conftest.er1
10427   cat conftest.err >&5
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); } &&
10430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10431   { (case "(($ac_try" in
10432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433   *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436   (eval "$ac_try") 2>&5
10437   ac_status=$?
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); }; } &&
10440          { ac_try='test -s conftest$ac_exeext'
10441   { (case "(($ac_try" in
10442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443   *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446   (eval "$ac_try") 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; }; then
10450   ac_cv_search_opendir=$ac_res
10451 else
10452   echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455
10456 fi
10457
10458 rm -f core conftest.err conftest.$ac_objext \
10459       conftest$ac_exeext
10460   if test "${ac_cv_search_opendir+set}" = set; then
10461   break
10462 fi
10463 done
10464 if test "${ac_cv_search_opendir+set}" = set; then
10465   :
10466 else
10467   ac_cv_search_opendir=no
10468 fi
10469 rm conftest.$ac_ext
10470 LIBS=$ac_func_search_save_LIBS
10471 fi
10472 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10473 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10474 ac_res=$ac_cv_search_opendir
10475 if test "$ac_res" != no; then
10476   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10477
10478 fi
10479
10480 else
10481   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10482 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10483 if test "${ac_cv_search_opendir+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   ac_func_search_save_LIBS=$LIBS
10487 cat >conftest.$ac_ext <<_ACEOF
10488 /* confdefs.h.  */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h.  */
10493
10494 /* Override any GCC internal prototype to avoid an error.
10495    Use char because int might match the return type of a GCC
10496    builtin and then its argument prototype would still apply.  */
10497 #ifdef __cplusplus
10498 extern "C"
10499 #endif
10500 char opendir ();
10501 int
10502 main ()
10503 {
10504 return opendir ();
10505   ;
10506   return 0;
10507 }
10508 _ACEOF
10509 for ac_lib in '' x; do
10510   if test -z "$ac_lib"; then
10511     ac_res="none required"
10512   else
10513     ac_res=-l$ac_lib
10514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10515   fi
10516   rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (ac_try="$ac_link"
10518 case "(($ac_try" in
10519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520   *) ac_try_echo=$ac_try;;
10521 esac
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523   (eval "$ac_link") 2>conftest.er1
10524   ac_status=$?
10525   grep -v '^ *+' conftest.er1 >conftest.err
10526   rm -f conftest.er1
10527   cat conftest.err >&5
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } &&
10530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10531   { (case "(($ac_try" in
10532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533   *) ac_try_echo=$ac_try;;
10534 esac
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536   (eval "$ac_try") 2>&5
10537   ac_status=$?
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); }; } &&
10540          { ac_try='test -s conftest$ac_exeext'
10541   { (case "(($ac_try" in
10542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543   *) ac_try_echo=$ac_try;;
10544 esac
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546   (eval "$ac_try") 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); }; }; then
10550   ac_cv_search_opendir=$ac_res
10551 else
10552   echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555
10556 fi
10557
10558 rm -f core conftest.err conftest.$ac_objext \
10559       conftest$ac_exeext
10560   if test "${ac_cv_search_opendir+set}" = set; then
10561   break
10562 fi
10563 done
10564 if test "${ac_cv_search_opendir+set}" = set; then
10565   :
10566 else
10567   ac_cv_search_opendir=no
10568 fi
10569 rm conftest.$ac_ext
10570 LIBS=$ac_func_search_save_LIBS
10571 fi
10572 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10573 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10574 ac_res=$ac_cv_search_opendir
10575 if test "$ac_res" != no; then
10576   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10577
10578 fi
10579
10580 fi
10581
10582 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10583 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10584 if test "${ac_cv_header_mmap_anon+set}" = set; then
10585   echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587    ac_ext=c
10588 ac_cpp='$CPP $CPPFLAGS'
10589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10592
10593   cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h.  */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h.  */
10599 #include <sys/mman.h>
10600 #include <unistd.h>
10601 #include <fcntl.h>
10602 int
10603 main ()
10604 {
10605 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext
10611 if { (ac_try="$ac_compile"
10612 case "(($ac_try" in
10613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614   *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617   (eval "$ac_compile") 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } &&
10624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625   { (case "(($ac_try" in
10626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627   *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630   (eval "$ac_try") 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; } &&
10634          { ac_try='test -s conftest.$ac_objext'
10635   { (case "(($ac_try" in
10636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637   *) ac_try_echo=$ac_try;;
10638 esac
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640   (eval "$ac_try") 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; }; then
10644   ac_cv_header_mmap_anon=yes
10645 else
10646   echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649         ac_cv_header_mmap_anon=no
10650 fi
10651
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653   ac_ext=c
10654 ac_cpp='$CPP $CPPFLAGS'
10655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10658
10659
10660 fi
10661 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10662 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10663 if test "$ac_cv_header_mmap_anon" = yes; then
10664
10665 cat >>confdefs.h <<\_ACEOF
10666 #define HAVE_MMAP_ANONYMOUS 1
10667 _ACEOF
10668
10669 fi
10670
10671 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10672 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10673 if test "${ac_cv_header_stat_broken+set}" = set; then
10674   echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676   cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h.  */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h.  */
10682 #include <sys/types.h>
10683 #include <sys/stat.h>
10684
10685 #if defined S_ISBLK && defined S_IFDIR
10686 # if S_ISBLK (S_IFDIR)
10687 You lose.
10688 # endif
10689 #endif
10690
10691 #if defined S_ISBLK && defined S_IFCHR
10692 # if S_ISBLK (S_IFCHR)
10693 You lose.
10694 # endif
10695 #endif
10696
10697 #if defined S_ISLNK && defined S_IFREG
10698 # if S_ISLNK (S_IFREG)
10699 You lose.
10700 # endif
10701 #endif
10702
10703 #if defined S_ISSOCK && defined S_IFREG
10704 # if S_ISSOCK (S_IFREG)
10705 You lose.
10706 # endif
10707 #endif
10708
10709 _ACEOF
10710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10711   $EGREP "You lose" >/dev/null 2>&1; then
10712   ac_cv_header_stat_broken=yes
10713 else
10714   ac_cv_header_stat_broken=no
10715 fi
10716 rm -f conftest*
10717
10718 fi
10719 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10720 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10721 if test $ac_cv_header_stat_broken = yes; then
10722
10723 cat >>confdefs.h <<\_ACEOF
10724 #define STAT_MACROS_BROKEN 1
10725 _ACEOF
10726
10727 fi
10728
10729 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10730 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10731 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 #include <sys/types.h>
10741 #include <sys/wait.h>
10742 #ifndef WEXITSTATUS
10743 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10744 #endif
10745 #ifndef WIFEXITED
10746 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10747 #endif
10748
10749 int
10750 main ()
10751 {
10752   int s;
10753   wait (&s);
10754   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext
10760 if { (ac_try="$ac_compile"
10761 case "(($ac_try" in
10762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763   *) ac_try_echo=$ac_try;;
10764 esac
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766   (eval "$ac_compile") 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } &&
10773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10774   { (case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_try") 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; } &&
10783          { ac_try='test -s conftest.$ac_objext'
10784   { (case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789   (eval "$ac_try") 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; }; then
10793   ac_cv_header_sys_wait_h=yes
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798         ac_cv_header_sys_wait_h=no
10799 fi
10800
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 fi
10803 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10804 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10805 if test $ac_cv_header_sys_wait_h = yes; then
10806
10807 cat >>confdefs.h <<\_ACEOF
10808 #define HAVE_SYS_WAIT_H 1
10809 _ACEOF
10810
10811 fi
10812
10813 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10814 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10815 if test "${ac_cv_header_time+set}" = set; then
10816   echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818   cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824 #include <sys/types.h>
10825 #include <sys/time.h>
10826 #include <time.h>
10827
10828 int
10829 main ()
10830 {
10831 if ((struct tm *) 0)
10832 return 0;
10833   ;
10834   return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext
10838 if { (ac_try="$ac_compile"
10839 case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_compile") 2>conftest.er1
10845   ac_status=$?
10846   grep -v '^ *+' conftest.er1 >conftest.err
10847   rm -f conftest.er1
10848   cat conftest.err >&5
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852   { (case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_try") 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; } &&
10861          { ac_try='test -s conftest.$ac_objext'
10862   { (case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_try") 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   ac_cv_header_time=yes
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876         ac_cv_header_time=no
10877 fi
10878
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 fi
10881 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10882 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10883 if test $ac_cv_header_time = yes; then
10884
10885 cat >>confdefs.h <<\_ACEOF
10886 #define TIME_WITH_SYS_TIME 1
10887 _ACEOF
10888
10889 fi
10890
10891
10892 ac_ext=cpp
10893 ac_cpp='$CXXCPP $CPPFLAGS'
10894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10897
10898
10899 for ac_header in cxxabi.h
10900 do
10901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905   echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907   cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #include <stddef.h>
10914
10915
10916 #include <$ac_header>
10917 _ACEOF
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922   *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925   (eval "$ac_compile") 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } &&
10932          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10933   { (case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938   (eval "$ac_try") 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; } &&
10942          { ac_try='test -s conftest.$ac_objext'
10943   { (case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948   (eval "$ac_try") 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; }; then
10952   eval "$as_ac_Header=yes"
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957         eval "$as_ac_Header=no"
10958 fi
10959
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 fi
10962 ac_res=`eval echo '${'$as_ac_Header'}'`
10963                { echo "$as_me:$LINENO: result: $ac_res" >&5
10964 echo "${ECHO_T}$ac_res" >&6; }
10965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10966   cat >>confdefs.h <<_ACEOF
10967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10968 _ACEOF
10969
10970 fi
10971
10972 done
10973
10974 ac_ext=c
10975 ac_cpp='$CPP $CPPFLAGS'
10976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10979
10980
10981
10982
10983
10984
10985
10986 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10987 do
10988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10993   echo $ECHO_N "(cached) $ECHO_C" >&6
10994 fi
10995 ac_res=`eval echo '${'$as_ac_Header'}'`
10996                { echo "$as_me:$LINENO: result: $ac_res" >&5
10997 echo "${ECHO_T}$ac_res" >&6; }
10998 else
10999   # Is the header compilable?
11000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11002 cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008 $ac_includes_default
11009 #include <$ac_header>
11010 _ACEOF
11011 rm -f conftest.$ac_objext
11012 if { (ac_try="$ac_compile"
11013 case "(($ac_try" in
11014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015   *) ac_try_echo=$ac_try;;
11016 esac
11017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11018   (eval "$ac_compile") 2>conftest.er1
11019   ac_status=$?
11020   grep -v '^ *+' conftest.er1 >conftest.err
11021   rm -f conftest.er1
11022   cat conftest.err >&5
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } &&
11025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11026   { (case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_try") 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); }; } &&
11035          { ac_try='test -s conftest.$ac_objext'
11036   { (case "(($ac_try" in
11037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038   *) ac_try_echo=$ac_try;;
11039 esac
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041   (eval "$ac_try") 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); }; }; then
11045   ac_header_compiler=yes
11046 else
11047   echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11049
11050         ac_header_compiler=no
11051 fi
11052
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11055 echo "${ECHO_T}$ac_header_compiler" >&6; }
11056
11057 # Is the header present?
11058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11060 cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h.  */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h.  */
11066 #include <$ac_header>
11067 _ACEOF
11068 if { (ac_try="$ac_cpp conftest.$ac_ext"
11069 case "(($ac_try" in
11070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071   *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11075   ac_status=$?
11076   grep -v '^ *+' conftest.er1 >conftest.err
11077   rm -f conftest.er1
11078   cat conftest.err >&5
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } >/dev/null; then
11081   if test -s conftest.err; then
11082     ac_cpp_err=$ac_c_preproc_warn_flag
11083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11084   else
11085     ac_cpp_err=
11086   fi
11087 else
11088   ac_cpp_err=yes
11089 fi
11090 if test -z "$ac_cpp_err"; then
11091   ac_header_preproc=yes
11092 else
11093   echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096   ac_header_preproc=no
11097 fi
11098
11099 rm -f conftest.err conftest.$ac_ext
11100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101 echo "${ECHO_T}$ac_header_preproc" >&6; }
11102
11103 # So?  What about this header?
11104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11105   yes:no: )
11106     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11110     ac_header_preproc=yes
11111     ;;
11112   no:yes:* )
11113     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11115     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11116 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11117     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11119     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11120 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11123     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11125     ( cat <<\_ASBOX
11126 ## ------------------------------------ ##
11127 ## Report this to http://llvm.org/bugs/ ##
11128 ## ------------------------------------ ##
11129 _ASBOX
11130      ) | sed "s/^/$as_me: WARNING:     /" >&2
11131     ;;
11132 esac
11133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136   echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138   eval "$as_ac_Header=\$ac_header_preproc"
11139 fi
11140 ac_res=`eval echo '${'$as_ac_Header'}'`
11141                { echo "$as_me:$LINENO: result: $ac_res" >&5
11142 echo "${ECHO_T}$ac_res" >&6; }
11143
11144 fi
11145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11146   cat >>confdefs.h <<_ACEOF
11147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11148 _ACEOF
11149
11150 fi
11151
11152 done
11153
11154
11155
11156
11157
11158
11159
11160 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11161 do
11162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11164   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11167   echo $ECHO_N "(cached) $ECHO_C" >&6
11168 fi
11169 ac_res=`eval echo '${'$as_ac_Header'}'`
11170                { echo "$as_me:$LINENO: result: $ac_res" >&5
11171 echo "${ECHO_T}$ac_res" >&6; }
11172 else
11173   # Is the header compilable?
11174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182 $ac_includes_default
11183 #include <$ac_header>
11184 _ACEOF
11185 rm -f conftest.$ac_objext
11186 if { (ac_try="$ac_compile"
11187 case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192   (eval "$ac_compile") 2>conftest.er1
11193   ac_status=$?
11194   grep -v '^ *+' conftest.er1 >conftest.err
11195   rm -f conftest.er1
11196   cat conftest.err >&5
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); } &&
11199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11200   { (case "(($ac_try" in
11201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202   *) ac_try_echo=$ac_try;;
11203 esac
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205   (eval "$ac_try") 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); }; } &&
11209          { ac_try='test -s conftest.$ac_objext'
11210   { (case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215   (eval "$ac_try") 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; }; then
11219   ac_header_compiler=yes
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224         ac_header_compiler=no
11225 fi
11226
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11229 echo "${ECHO_T}$ac_header_compiler" >&6; }
11230
11231 # Is the header present?
11232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240 #include <$ac_header>
11241 _ACEOF
11242 if { (ac_try="$ac_cpp conftest.$ac_ext"
11243 case "(($ac_try" in
11244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245   *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } >/dev/null; then
11255   if test -s conftest.err; then
11256     ac_cpp_err=$ac_c_preproc_warn_flag
11257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11258   else
11259     ac_cpp_err=
11260   fi
11261 else
11262   ac_cpp_err=yes
11263 fi
11264 if test -z "$ac_cpp_err"; then
11265   ac_header_preproc=yes
11266 else
11267   echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270   ac_header_preproc=no
11271 fi
11272
11273 rm -f conftest.err conftest.$ac_ext
11274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11275 echo "${ECHO_T}$ac_header_preproc" >&6; }
11276
11277 # So?  What about this header?
11278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11279   yes:no: )
11280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11284     ac_header_preproc=yes
11285     ;;
11286   no:yes:* )
11287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11299     ( cat <<\_ASBOX
11300 ## ------------------------------------ ##
11301 ## Report this to http://llvm.org/bugs/ ##
11302 ## ------------------------------------ ##
11303 _ASBOX
11304      ) | sed "s/^/$as_me: WARNING:     /" >&2
11305     ;;
11306 esac
11307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11310   echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312   eval "$as_ac_Header=\$ac_header_preproc"
11313 fi
11314 ac_res=`eval echo '${'$as_ac_Header'}'`
11315                { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11317
11318 fi
11319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11320   cat >>confdefs.h <<_ACEOF
11321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11322 _ACEOF
11323
11324 fi
11325
11326 done
11327
11328
11329 for ac_header in utime.h
11330 do
11331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336   echo $ECHO_N "(cached) $ECHO_C" >&6
11337 fi
11338 ac_res=`eval echo '${'$as_ac_Header'}'`
11339                { echo "$as_me:$LINENO: result: $ac_res" >&5
11340 echo "${ECHO_T}$ac_res" >&6; }
11341 else
11342   # Is the header compilable?
11343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11345 cat >conftest.$ac_ext <<_ACEOF
11346 /* confdefs.h.  */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h.  */
11351 $ac_includes_default
11352 #include <$ac_header>
11353 _ACEOF
11354 rm -f conftest.$ac_objext
11355 if { (ac_try="$ac_compile"
11356 case "(($ac_try" in
11357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358   *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361   (eval "$ac_compile") 2>conftest.er1
11362   ac_status=$?
11363   grep -v '^ *+' conftest.er1 >conftest.err
11364   rm -f conftest.er1
11365   cat conftest.err >&5
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); } &&
11368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11369   { (case "(($ac_try" in
11370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371   *) ac_try_echo=$ac_try;;
11372 esac
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374   (eval "$ac_try") 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); }; } &&
11378          { ac_try='test -s conftest.$ac_objext'
11379   { (case "(($ac_try" in
11380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381   *) ac_try_echo=$ac_try;;
11382 esac
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384   (eval "$ac_try") 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; }; then
11388   ac_header_compiler=yes
11389 else
11390   echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393         ac_header_compiler=no
11394 fi
11395
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398 echo "${ECHO_T}$ac_header_compiler" >&6; }
11399
11400 # Is the header present?
11401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h.  */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h.  */
11409 #include <$ac_header>
11410 _ACEOF
11411 if { (ac_try="$ac_cpp conftest.$ac_ext"
11412 case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } >/dev/null; then
11424   if test -s conftest.err; then
11425     ac_cpp_err=$ac_c_preproc_warn_flag
11426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11427   else
11428     ac_cpp_err=
11429   fi
11430 else
11431   ac_cpp_err=yes
11432 fi
11433 if test -z "$ac_cpp_err"; then
11434   ac_header_preproc=yes
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439   ac_header_preproc=no
11440 fi
11441
11442 rm -f conftest.err conftest.$ac_ext
11443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11444 echo "${ECHO_T}$ac_header_preproc" >&6; }
11445
11446 # So?  What about this header?
11447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11448   yes:no: )
11449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11453     ac_header_preproc=yes
11454     ;;
11455   no:yes:* )
11456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11468     ( cat <<\_ASBOX
11469 ## ------------------------------------ ##
11470 ## Report this to http://llvm.org/bugs/ ##
11471 ## ------------------------------------ ##
11472 _ASBOX
11473      ) | sed "s/^/$as_me: WARNING:     /" >&2
11474     ;;
11475 esac
11476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479   echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481   eval "$as_ac_Header=\$ac_header_preproc"
11482 fi
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484                { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11486
11487 fi
11488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11489   cat >>confdefs.h <<_ACEOF
11490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11491 _ACEOF
11492
11493 fi
11494
11495 done
11496
11497
11498
11499
11500
11501
11502 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11503 do
11504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11509   echo $ECHO_N "(cached) $ECHO_C" >&6
11510 fi
11511 ac_res=`eval echo '${'$as_ac_Header'}'`
11512                { echo "$as_me:$LINENO: result: $ac_res" >&5
11513 echo "${ECHO_T}$ac_res" >&6; }
11514 else
11515   # Is the header compilable?
11516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h.  */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h.  */
11524 $ac_includes_default
11525 #include <$ac_header>
11526 _ACEOF
11527 rm -f conftest.$ac_objext
11528 if { (ac_try="$ac_compile"
11529 case "(($ac_try" in
11530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531   *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534   (eval "$ac_compile") 2>conftest.er1
11535   ac_status=$?
11536   grep -v '^ *+' conftest.er1 >conftest.err
11537   rm -f conftest.er1
11538   cat conftest.err >&5
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); } &&
11541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11542   { (case "(($ac_try" in
11543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544   *) ac_try_echo=$ac_try;;
11545 esac
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547   (eval "$ac_try") 2>&5
11548   ac_status=$?
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); }; } &&
11551          { ac_try='test -s conftest.$ac_objext'
11552   { (case "(($ac_try" in
11553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554   *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557   (eval "$ac_try") 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; }; then
11561   ac_header_compiler=yes
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11565
11566         ac_header_compiler=no
11567 fi
11568
11569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571 echo "${ECHO_T}$ac_header_compiler" >&6; }
11572
11573 # Is the header present?
11574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11576 cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582 #include <$ac_header>
11583 _ACEOF
11584 if { (ac_try="$ac_cpp conftest.$ac_ext"
11585 case "(($ac_try" in
11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587   *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11591   ac_status=$?
11592   grep -v '^ *+' conftest.er1 >conftest.err
11593   rm -f conftest.er1
11594   cat conftest.err >&5
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); } >/dev/null; then
11597   if test -s conftest.err; then
11598     ac_cpp_err=$ac_c_preproc_warn_flag
11599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11600   else
11601     ac_cpp_err=
11602   fi
11603 else
11604   ac_cpp_err=yes
11605 fi
11606 if test -z "$ac_cpp_err"; then
11607   ac_header_preproc=yes
11608 else
11609   echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11611
11612   ac_header_preproc=no
11613 fi
11614
11615 rm -f conftest.err conftest.$ac_ext
11616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11617 echo "${ECHO_T}$ac_header_preproc" >&6; }
11618
11619 # So?  What about this header?
11620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11621   yes:no: )
11622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11626     ac_header_preproc=yes
11627     ;;
11628   no:yes:* )
11629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11641     ( cat <<\_ASBOX
11642 ## ------------------------------------ ##
11643 ## Report this to http://llvm.org/bugs/ ##
11644 ## ------------------------------------ ##
11645 _ASBOX
11646      ) | sed "s/^/$as_me: WARNING:     /" >&2
11647     ;;
11648 esac
11649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11652   echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654   eval "$as_ac_Header=\$ac_header_preproc"
11655 fi
11656 ac_res=`eval echo '${'$as_ac_Header'}'`
11657                { echo "$as_me:$LINENO: result: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11659
11660 fi
11661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11662   cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11664 _ACEOF
11665
11666 fi
11667
11668 done
11669
11670
11671
11672
11673 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11674 do
11675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 fi
11682 ac_res=`eval echo '${'$as_ac_Header'}'`
11683                { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11685 else
11686   # Is the header compilable?
11687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11689 cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h.  */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h.  */
11695 $ac_includes_default
11696 #include <$ac_header>
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705   (eval "$ac_compile") 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } &&
11712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713   { (case "(($ac_try" in
11714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715   *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718   (eval "$ac_try") 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; } &&
11722          { ac_try='test -s conftest.$ac_objext'
11723   { (case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_try") 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; }; then
11732   ac_header_compiler=yes
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737         ac_header_compiler=no
11738 fi
11739
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11742 echo "${ECHO_T}$ac_header_compiler" >&6; }
11743
11744 # Is the header present?
11745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11747 cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 #include <$ac_header>
11754 _ACEOF
11755 if { (ac_try="$ac_cpp conftest.$ac_ext"
11756 case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } >/dev/null; then
11768   if test -s conftest.err; then
11769     ac_cpp_err=$ac_c_preproc_warn_flag
11770     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11771   else
11772     ac_cpp_err=
11773   fi
11774 else
11775   ac_cpp_err=yes
11776 fi
11777 if test -z "$ac_cpp_err"; then
11778   ac_header_preproc=yes
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783   ac_header_preproc=no
11784 fi
11785
11786 rm -f conftest.err conftest.$ac_ext
11787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11788 echo "${ECHO_T}$ac_header_preproc" >&6; }
11789
11790 # So?  What about this header?
11791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11792   yes:no: )
11793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11797     ac_header_preproc=yes
11798     ;;
11799   no:yes:* )
11800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11812     ( cat <<\_ASBOX
11813 ## ------------------------------------ ##
11814 ## Report this to http://llvm.org/bugs/ ##
11815 ## ------------------------------------ ##
11816 _ASBOX
11817      ) | sed "s/^/$as_me: WARNING:     /" >&2
11818     ;;
11819 esac
11820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11823   echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825   eval "$as_ac_Header=\$ac_header_preproc"
11826 fi
11827 ac_res=`eval echo '${'$as_ac_Header'}'`
11828                { echo "$as_me:$LINENO: result: $ac_res" >&5
11829 echo "${ECHO_T}$ac_res" >&6; }
11830
11831 fi
11832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11833   cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11835 _ACEOF
11836
11837 fi
11838
11839 done
11840
11841
11842 for ac_header in valgrind/valgrind.h
11843 do
11844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11846   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11849   echo $ECHO_N "(cached) $ECHO_C" >&6
11850 fi
11851 ac_res=`eval echo '${'$as_ac_Header'}'`
11852                { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11854 else
11855   # Is the header compilable?
11856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11858 cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h.  */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h.  */
11864 $ac_includes_default
11865 #include <$ac_header>
11866 _ACEOF
11867 rm -f conftest.$ac_objext
11868 if { (ac_try="$ac_compile"
11869 case "(($ac_try" in
11870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871   *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874   (eval "$ac_compile") 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882   { (case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_try") 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; } &&
11891          { ac_try='test -s conftest.$ac_objext'
11892   { (case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_try") 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }; then
11901   ac_header_compiler=yes
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906         ac_header_compiler=no
11907 fi
11908
11909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11911 echo "${ECHO_T}$ac_header_compiler" >&6; }
11912
11913 # Is the header present?
11914 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922 #include <$ac_header>
11923 _ACEOF
11924 if { (ac_try="$ac_cpp conftest.$ac_ext"
11925 case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } >/dev/null; then
11937   if test -s conftest.err; then
11938     ac_cpp_err=$ac_c_preproc_warn_flag
11939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11940   else
11941     ac_cpp_err=
11942   fi
11943 else
11944   ac_cpp_err=yes
11945 fi
11946 if test -z "$ac_cpp_err"; then
11947   ac_header_preproc=yes
11948 else
11949   echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11951
11952   ac_header_preproc=no
11953 fi
11954
11955 rm -f conftest.err conftest.$ac_ext
11956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11957 echo "${ECHO_T}$ac_header_preproc" >&6; }
11958
11959 # So?  What about this header?
11960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11961   yes:no: )
11962     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11966     ac_header_preproc=yes
11967     ;;
11968   no:yes:* )
11969     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11971     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11972 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11973     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11975     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11976 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11979     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11981     ( cat <<\_ASBOX
11982 ## ------------------------------------ ##
11983 ## Report this to http://llvm.org/bugs/ ##
11984 ## ------------------------------------ ##
11985 _ASBOX
11986      ) | sed "s/^/$as_me: WARNING:     /" >&2
11987     ;;
11988 esac
11989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992   echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994   eval "$as_ac_Header=\$ac_header_preproc"
11995 fi
11996 ac_res=`eval echo '${'$as_ac_Header'}'`
11997                { echo "$as_me:$LINENO: result: $ac_res" >&5
11998 echo "${ECHO_T}$ac_res" >&6; }
11999
12000 fi
12001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12002   cat >>confdefs.h <<_ACEOF
12003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12004 _ACEOF
12005
12006 fi
12007
12008 done
12009
12010
12011 for ac_header in fenv.h
12012 do
12013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12015   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12018   echo $ECHO_N "(cached) $ECHO_C" >&6
12019 fi
12020 ac_res=`eval echo '${'$as_ac_Header'}'`
12021                { echo "$as_me:$LINENO: result: $ac_res" >&5
12022 echo "${ECHO_T}$ac_res" >&6; }
12023 else
12024   # Is the header compilable?
12025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12027 cat >conftest.$ac_ext <<_ACEOF
12028 /* confdefs.h.  */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h.  */
12033 $ac_includes_default
12034 #include <$ac_header>
12035 _ACEOF
12036 rm -f conftest.$ac_objext
12037 if { (ac_try="$ac_compile"
12038 case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_compile") 2>conftest.er1
12044   ac_status=$?
12045   grep -v '^ *+' conftest.er1 >conftest.err
12046   rm -f conftest.er1
12047   cat conftest.err >&5
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); } &&
12050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12051   { (case "(($ac_try" in
12052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053   *) ac_try_echo=$ac_try;;
12054 esac
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056   (eval "$ac_try") 2>&5
12057   ac_status=$?
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); }; } &&
12060          { ac_try='test -s conftest.$ac_objext'
12061   { (case "(($ac_try" in
12062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063   *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066   (eval "$ac_try") 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; }; then
12070   ac_header_compiler=yes
12071 else
12072   echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075         ac_header_compiler=no
12076 fi
12077
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12080 echo "${ECHO_T}$ac_header_compiler" >&6; }
12081
12082 # Is the header present?
12083 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12085 cat >conftest.$ac_ext <<_ACEOF
12086 /* confdefs.h.  */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h.  */
12091 #include <$ac_header>
12092 _ACEOF
12093 if { (ac_try="$ac_cpp conftest.$ac_ext"
12094 case "(($ac_try" in
12095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096   *) ac_try_echo=$ac_try;;
12097 esac
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12100   ac_status=$?
12101   grep -v '^ *+' conftest.er1 >conftest.err
12102   rm -f conftest.er1
12103   cat conftest.err >&5
12104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   (exit $ac_status); } >/dev/null; then
12106   if test -s conftest.err; then
12107     ac_cpp_err=$ac_c_preproc_warn_flag
12108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12109   else
12110     ac_cpp_err=
12111   fi
12112 else
12113   ac_cpp_err=yes
12114 fi
12115 if test -z "$ac_cpp_err"; then
12116   ac_header_preproc=yes
12117 else
12118   echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121   ac_header_preproc=no
12122 fi
12123
12124 rm -f conftest.err conftest.$ac_ext
12125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12126 echo "${ECHO_T}$ac_header_preproc" >&6; }
12127
12128 # So?  What about this header?
12129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12130   yes:no: )
12131     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12135     ac_header_preproc=yes
12136     ;;
12137   no:yes:* )
12138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12140     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12141 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12142     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12144     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12145 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12148     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12150     ( cat <<\_ASBOX
12151 ## ------------------------------------ ##
12152 ## Report this to http://llvm.org/bugs/ ##
12153 ## ------------------------------------ ##
12154 _ASBOX
12155      ) | sed "s/^/$as_me: WARNING:     /" >&2
12156     ;;
12157 esac
12158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12161   echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163   eval "$as_ac_Header=\$ac_header_preproc"
12164 fi
12165 ac_res=`eval echo '${'$as_ac_Header'}'`
12166                { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12168
12169 fi
12170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12171   cat >>confdefs.h <<_ACEOF
12172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12173 _ACEOF
12174
12175 fi
12176
12177 done
12178
12179 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12180 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12181 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184   cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190 #include <fenv.h>
12191
12192 int
12193 main ()
12194 {
12195 #ifndef FE_ALL_EXCEPT
12196   char *p = (char *) FE_ALL_EXCEPT;
12197   return !p;
12198 #endif
12199
12200   ;
12201   return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext
12205 if { (ac_try="$ac_compile"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_compile") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } &&
12218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219   { (case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_try") 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; } &&
12228          { ac_try='test -s conftest.$ac_objext'
12229   { (case "(($ac_try" in
12230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231   *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234   (eval "$ac_try") 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243         ac_cv_have_decl_FE_ALL_EXCEPT=no
12244 fi
12245
12246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247 fi
12248 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12249 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12250 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12251
12252 cat >>confdefs.h <<_ACEOF
12253 #define HAVE_DECL_FE_ALL_EXCEPT 1
12254 _ACEOF
12255
12256
12257 else
12258   cat >>confdefs.h <<_ACEOF
12259 #define HAVE_DECL_FE_ALL_EXCEPT 0
12260 _ACEOF
12261
12262
12263 fi
12264 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12265 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12266 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12267   echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269   cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h.  */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h.  */
12275 #include <fenv.h>
12276
12277 int
12278 main ()
12279 {
12280 #ifndef FE_INEXACT
12281   char *p = (char *) FE_INEXACT;
12282   return !p;
12283 #endif
12284
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_compile") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304   { (case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309   (eval "$ac_try") 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; } &&
12313          { ac_try='test -s conftest.$ac_objext'
12314   { (case "(($ac_try" in
12315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316   *) ac_try_echo=$ac_try;;
12317 esac
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319   (eval "$ac_try") 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); }; }; then
12323   ac_cv_have_decl_FE_INEXACT=yes
12324 else
12325   echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328         ac_cv_have_decl_FE_INEXACT=no
12329 fi
12330
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 fi
12333 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12334 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12335 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12336
12337 cat >>confdefs.h <<_ACEOF
12338 #define HAVE_DECL_FE_INEXACT 1
12339 _ACEOF
12340
12341
12342 else
12343   cat >>confdefs.h <<_ACEOF
12344 #define HAVE_DECL_FE_INEXACT 0
12345 _ACEOF
12346
12347
12348 fi
12349
12350
12351 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12352
12353 for ac_header in pthread.h
12354 do
12355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12357   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 fi
12362 ac_res=`eval echo '${'$as_ac_Header'}'`
12363                { echo "$as_me:$LINENO: result: $ac_res" >&5
12364 echo "${ECHO_T}$ac_res" >&6; }
12365 else
12366   # Is the header compilable?
12367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375 $ac_includes_default
12376 #include <$ac_header>
12377 _ACEOF
12378 rm -f conftest.$ac_objext
12379 if { (ac_try="$ac_compile"
12380 case "(($ac_try" in
12381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382   *) ac_try_echo=$ac_try;;
12383 esac
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385   (eval "$ac_compile") 2>conftest.er1
12386   ac_status=$?
12387   grep -v '^ *+' conftest.er1 >conftest.err
12388   rm -f conftest.er1
12389   cat conftest.err >&5
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); } &&
12392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12393   { (case "(($ac_try" in
12394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395   *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398   (eval "$ac_try") 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; } &&
12402          { ac_try='test -s conftest.$ac_objext'
12403   { (case "(($ac_try" in
12404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405   *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408   (eval "$ac_try") 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); }; }; then
12412   ac_header_compiler=yes
12413 else
12414   echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417         ac_header_compiler=no
12418 fi
12419
12420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12422 echo "${ECHO_T}$ac_header_compiler" >&6; }
12423
12424 # Is the header present?
12425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12427 cat >conftest.$ac_ext <<_ACEOF
12428 /* confdefs.h.  */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h.  */
12433 #include <$ac_header>
12434 _ACEOF
12435 if { (ac_try="$ac_cpp conftest.$ac_ext"
12436 case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12442   ac_status=$?
12443   grep -v '^ *+' conftest.er1 >conftest.err
12444   rm -f conftest.er1
12445   cat conftest.err >&5
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } >/dev/null; then
12448   if test -s conftest.err; then
12449     ac_cpp_err=$ac_c_preproc_warn_flag
12450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12451   else
12452     ac_cpp_err=
12453   fi
12454 else
12455   ac_cpp_err=yes
12456 fi
12457 if test -z "$ac_cpp_err"; then
12458   ac_header_preproc=yes
12459 else
12460   echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12462
12463   ac_header_preproc=no
12464 fi
12465
12466 rm -f conftest.err conftest.$ac_ext
12467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12468 echo "${ECHO_T}$ac_header_preproc" >&6; }
12469
12470 # So?  What about this header?
12471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12472   yes:no: )
12473     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12477     ac_header_preproc=yes
12478     ;;
12479   no:yes:* )
12480     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12482     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12483 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12484     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12486     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12487 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12490     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12492     ( cat <<\_ASBOX
12493 ## ------------------------------------ ##
12494 ## Report this to http://llvm.org/bugs/ ##
12495 ## ------------------------------------ ##
12496 _ASBOX
12497      ) | sed "s/^/$as_me: WARNING:     /" >&2
12498     ;;
12499 esac
12500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   eval "$as_ac_Header=\$ac_header_preproc"
12506 fi
12507 ac_res=`eval echo '${'$as_ac_Header'}'`
12508                { echo "$as_me:$LINENO: result: $ac_res" >&5
12509 echo "${ECHO_T}$ac_res" >&6; }
12510
12511 fi
12512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12513   cat >>confdefs.h <<_ACEOF
12514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12515 _ACEOF
12516  HAVE_PTHREAD=1
12517
12518 else
12519   HAVE_PTHREAD=0
12520
12521 fi
12522
12523 done
12524
12525 else
12526   HAVE_PTHREAD=0
12527
12528 fi
12529 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12530
12531 for ac_header in zlib.h
12532 do
12533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12535   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12538   echo $ECHO_N "(cached) $ECHO_C" >&6
12539 fi
12540 ac_res=`eval echo '${'$as_ac_Header'}'`
12541                { echo "$as_me:$LINENO: result: $ac_res" >&5
12542 echo "${ECHO_T}$ac_res" >&6; }
12543 else
12544   # Is the header compilable?
12545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12547 cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h.  */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h.  */
12553 $ac_includes_default
12554 #include <$ac_header>
12555 _ACEOF
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560   *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563   (eval "$ac_compile") 2>conftest.er1
12564   ac_status=$?
12565   grep -v '^ *+' conftest.er1 >conftest.err
12566   rm -f conftest.er1
12567   cat conftest.err >&5
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } &&
12570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571   { (case "(($ac_try" in
12572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573   *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576   (eval "$ac_try") 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; } &&
12580          { ac_try='test -s conftest.$ac_objext'
12581   { (case "(($ac_try" in
12582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583   *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586   (eval "$ac_try") 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   ac_header_compiler=yes
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595         ac_header_compiler=no
12596 fi
12597
12598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12600 echo "${ECHO_T}$ac_header_compiler" >&6; }
12601
12602 # Is the header present?
12603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12605 cat >conftest.$ac_ext <<_ACEOF
12606 /* confdefs.h.  */
12607 _ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h.  */
12611 #include <$ac_header>
12612 _ACEOF
12613 if { (ac_try="$ac_cpp conftest.$ac_ext"
12614 case "(($ac_try" in
12615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616   *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } >/dev/null; then
12626   if test -s conftest.err; then
12627     ac_cpp_err=$ac_c_preproc_warn_flag
12628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12629   else
12630     ac_cpp_err=
12631   fi
12632 else
12633   ac_cpp_err=yes
12634 fi
12635 if test -z "$ac_cpp_err"; then
12636   ac_header_preproc=yes
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641   ac_header_preproc=no
12642 fi
12643
12644 rm -f conftest.err conftest.$ac_ext
12645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12646 echo "${ECHO_T}$ac_header_preproc" >&6; }
12647
12648 # So?  What about this header?
12649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12650   yes:no: )
12651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12655     ac_header_preproc=yes
12656     ;;
12657   no:yes:* )
12658     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12660     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12661 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12662     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12664     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12665 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12668     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12670     ( cat <<\_ASBOX
12671 ## ------------------------------------ ##
12672 ## Report this to http://llvm.org/bugs/ ##
12673 ## ------------------------------------ ##
12674 _ASBOX
12675      ) | sed "s/^/$as_me: WARNING:     /" >&2
12676     ;;
12677 esac
12678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683   eval "$as_ac_Header=\$ac_header_preproc"
12684 fi
12685 ac_res=`eval echo '${'$as_ac_Header'}'`
12686                { echo "$as_me:$LINENO: result: $ac_res" >&5
12687 echo "${ECHO_T}$ac_res" >&6; }
12688
12689 fi
12690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12691   cat >>confdefs.h <<_ACEOF
12692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12693 _ACEOF
12694  HAVE_LIBZ=1
12695
12696 else
12697   HAVE_LIBZ=0
12698
12699 fi
12700
12701 done
12702
12703 else
12704   HAVE_LIBZ=0
12705
12706 fi
12707
12708 if test "$llvm_cv_enable_libffi" = "yes" ; then
12709
12710
12711 for ac_header in ffi.h ffi/ffi.h
12712 do
12713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12715   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12718   echo $ECHO_N "(cached) $ECHO_C" >&6
12719 fi
12720 ac_res=`eval echo '${'$as_ac_Header'}'`
12721                { echo "$as_me:$LINENO: result: $ac_res" >&5
12722 echo "${ECHO_T}$ac_res" >&6; }
12723 else
12724   # Is the header compilable?
12725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h.  */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h.  */
12733 $ac_includes_default
12734 #include <$ac_header>
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (ac_try="$ac_compile"
12738 case "(($ac_try" in
12739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740   *) ac_try_echo=$ac_try;;
12741 esac
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743   (eval "$ac_compile") 2>conftest.er1
12744   ac_status=$?
12745   grep -v '^ *+' conftest.er1 >conftest.err
12746   rm -f conftest.er1
12747   cat conftest.err >&5
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); } &&
12750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751   { (case "(($ac_try" in
12752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753   *) ac_try_echo=$ac_try;;
12754 esac
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756   (eval "$ac_try") 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); }; } &&
12760          { ac_try='test -s conftest.$ac_objext'
12761   { (case "(($ac_try" in
12762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763   *) ac_try_echo=$ac_try;;
12764 esac
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766   (eval "$ac_try") 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; }; then
12770   ac_header_compiler=yes
12771 else
12772   echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775         ac_header_compiler=no
12776 fi
12777
12778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12780 echo "${ECHO_T}$ac_header_compiler" >&6; }
12781
12782 # Is the header present?
12783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12791 #include <$ac_header>
12792 _ACEOF
12793 if { (ac_try="$ac_cpp conftest.$ac_ext"
12794 case "(($ac_try" in
12795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796   *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12800   ac_status=$?
12801   grep -v '^ *+' conftest.er1 >conftest.err
12802   rm -f conftest.er1
12803   cat conftest.err >&5
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); } >/dev/null; then
12806   if test -s conftest.err; then
12807     ac_cpp_err=$ac_c_preproc_warn_flag
12808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12809   else
12810     ac_cpp_err=
12811   fi
12812 else
12813   ac_cpp_err=yes
12814 fi
12815 if test -z "$ac_cpp_err"; then
12816   ac_header_preproc=yes
12817 else
12818   echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12820
12821   ac_header_preproc=no
12822 fi
12823
12824 rm -f conftest.err conftest.$ac_ext
12825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12826 echo "${ECHO_T}$ac_header_preproc" >&6; }
12827
12828 # So?  What about this header?
12829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12830   yes:no: )
12831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12835     ac_header_preproc=yes
12836     ;;
12837   no:yes:* )
12838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12850     ( cat <<\_ASBOX
12851 ## ------------------------------------ ##
12852 ## Report this to http://llvm.org/bugs/ ##
12853 ## ------------------------------------ ##
12854 _ASBOX
12855      ) | sed "s/^/$as_me: WARNING:     /" >&2
12856     ;;
12857 esac
12858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12861   echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863   eval "$as_ac_Header=\$ac_header_preproc"
12864 fi
12865 ac_res=`eval echo '${'$as_ac_Header'}'`
12866                { echo "$as_me:$LINENO: result: $ac_res" >&5
12867 echo "${ECHO_T}$ac_res" >&6; }
12868
12869 fi
12870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12871   cat >>confdefs.h <<_ACEOF
12872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12873 _ACEOF
12874
12875 fi
12876
12877 done
12878
12879 fi
12880
12881
12882 for ac_header in CrashReporterClient.h
12883 do
12884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12886   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12889   echo $ECHO_N "(cached) $ECHO_C" >&6
12890 fi
12891 ac_res=`eval echo '${'$as_ac_Header'}'`
12892                { echo "$as_me:$LINENO: result: $ac_res" >&5
12893 echo "${ECHO_T}$ac_res" >&6; }
12894 else
12895   # Is the header compilable?
12896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h.  */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h.  */
12904 $ac_includes_default
12905 #include <$ac_header>
12906 _ACEOF
12907 rm -f conftest.$ac_objext
12908 if { (ac_try="$ac_compile"
12909 case "(($ac_try" in
12910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911   *) ac_try_echo=$ac_try;;
12912 esac
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914   (eval "$ac_compile") 2>conftest.er1
12915   ac_status=$?
12916   grep -v '^ *+' conftest.er1 >conftest.err
12917   rm -f conftest.er1
12918   cat conftest.err >&5
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } &&
12921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12922   { (case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_try") 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; } &&
12931          { ac_try='test -s conftest.$ac_objext'
12932   { (case "(($ac_try" in
12933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934   *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937   (eval "$ac_try") 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); }; }; then
12941   ac_header_compiler=yes
12942 else
12943   echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12945
12946         ac_header_compiler=no
12947 fi
12948
12949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12951 echo "${ECHO_T}$ac_header_compiler" >&6; }
12952
12953 # Is the header present?
12954 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12956 cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h.  */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h.  */
12962 #include <$ac_header>
12963 _ACEOF
12964 if { (ac_try="$ac_cpp conftest.$ac_ext"
12965 case "(($ac_try" in
12966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967   *) ac_try_echo=$ac_try;;
12968 esac
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12971   ac_status=$?
12972   grep -v '^ *+' conftest.er1 >conftest.err
12973   rm -f conftest.er1
12974   cat conftest.err >&5
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); } >/dev/null; then
12977   if test -s conftest.err; then
12978     ac_cpp_err=$ac_c_preproc_warn_flag
12979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12980   else
12981     ac_cpp_err=
12982   fi
12983 else
12984   ac_cpp_err=yes
12985 fi
12986 if test -z "$ac_cpp_err"; then
12987   ac_header_preproc=yes
12988 else
12989   echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12991
12992   ac_header_preproc=no
12993 fi
12994
12995 rm -f conftest.err conftest.$ac_ext
12996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12997 echo "${ECHO_T}$ac_header_preproc" >&6; }
12998
12999 # So?  What about this header?
13000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13001   yes:no: )
13002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13006     ac_header_preproc=yes
13007     ;;
13008   no:yes:* )
13009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13021     ( cat <<\_ASBOX
13022 ## ------------------------------------ ##
13023 ## Report this to http://llvm.org/bugs/ ##
13024 ## ------------------------------------ ##
13025 _ASBOX
13026      ) | sed "s/^/$as_me: WARNING:     /" >&2
13027     ;;
13028 esac
13029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13032   echo $ECHO_N "(cached) $ECHO_C" >&6
13033 else
13034   eval "$as_ac_Header=\$ac_header_preproc"
13035 fi
13036 ac_res=`eval echo '${'$as_ac_Header'}'`
13037                { echo "$as_me:$LINENO: result: $ac_res" >&5
13038 echo "${ECHO_T}$ac_res" >&6; }
13039
13040 fi
13041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13042   cat >>confdefs.h <<_ACEOF
13043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13044 _ACEOF
13045
13046 fi
13047
13048 done
13049
13050
13051 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13052 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13053 cat >conftest.$ac_ext <<_ACEOF
13054
13055   /* confdefs.h.  */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h.  */
13060
13061     extern const char *__crashreporter_info__;
13062     int main() {
13063       __crashreporter_info__ = "test";
13064       return 0;
13065     }
13066
13067
13068 _ACEOF
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (ac_try="$ac_link"
13071 case "(($ac_try" in
13072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073   *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076   (eval "$ac_link") 2>conftest.er1
13077   ac_status=$?
13078   grep -v '^ *+' conftest.er1 >conftest.err
13079   rm -f conftest.er1
13080   cat conftest.err >&5
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); } &&
13083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084   { (case "(($ac_try" in
13085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086   *) ac_try_echo=$ac_try;;
13087 esac
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089   (eval "$ac_try") 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); }; } &&
13093          { ac_try='test -s conftest$ac_exeext'
13094   { (case "(($ac_try" in
13095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096   *) ac_try_echo=$ac_try;;
13097 esac
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099   (eval "$ac_try") 2>&5
13100   ac_status=$?
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); }; }; then
13103
13104   { echo "$as_me:$LINENO: result: yes" >&5
13105 echo "${ECHO_T}yes" >&6; }
13106
13107 cat >>confdefs.h <<\_ACEOF
13108 #define HAVE_CRASHREPORTER_INFO 1
13109 _ACEOF
13110
13111
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116
13117   { echo "$as_me:$LINENO: result: no" >&5
13118 echo "${ECHO_T}no" >&6; }
13119
13120 cat >>confdefs.h <<\_ACEOF
13121 #define HAVE_CRASHREPORTER_INFO 0
13122 _ACEOF
13123
13124
13125 fi
13126
13127 rm -f core conftest.err conftest.$ac_objext \
13128       conftest$ac_exeext conftest.$ac_ext
13129
13130
13131
13132   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13133 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13134 if test "${ac_cv_huge_val_sanity+set}" = set; then
13135   echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137
13138     ac_ext=cpp
13139 ac_cpp='$CXXCPP $CPPFLAGS'
13140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13143
13144     ac_save_CXXFLAGS=$CXXFLAGS
13145     CXXFLAGS="$CXXFLAGS -pedantic"
13146     if test "$cross_compiling" = yes; then
13147   ac_cv_huge_val_sanity=yes
13148 else
13149   cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h.  */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h.  */
13155 #include <math.h>
13156 int
13157 main ()
13158 {
13159 double x = HUGE_VAL; return x != x;
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest$ac_exeext
13165 if { (ac_try="$ac_link"
13166 case "(($ac_try" in
13167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168   *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171   (eval "$ac_link") 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13175   { (case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_try") 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; }; then
13184   ac_cv_huge_val_sanity=yes
13185 else
13186   echo "$as_me: program exited with status $ac_status" >&5
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 ( exit $ac_status )
13191 ac_cv_huge_val_sanity=no
13192 fi
13193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13194 fi
13195
13196
13197     CXXFLAGS=$ac_save_CXXFLAGS
13198     ac_ext=c
13199 ac_cpp='$CPP $CPPFLAGS'
13200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13203
13204
13205 fi
13206 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13207 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13208   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13209
13210
13211 { echo "$as_me:$LINENO: checking for pid_t" >&5
13212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13213 if test "${ac_cv_type_pid_t+set}" = set; then
13214   echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216   cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222 $ac_includes_default
13223 typedef pid_t ac__type_new_;
13224 int
13225 main ()
13226 {
13227 if ((ac__type_new_ *) 0)
13228   return 0;
13229 if (sizeof (ac__type_new_))
13230   return 0;
13231   ;
13232   return 0;
13233 }
13234 _ACEOF
13235 rm -f conftest.$ac_objext
13236 if { (ac_try="$ac_compile"
13237 case "(($ac_try" in
13238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239   *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242   (eval "$ac_compile") 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } &&
13249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250   { (case "(($ac_try" in
13251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252   *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255   (eval "$ac_try") 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; } &&
13259          { ac_try='test -s conftest.$ac_objext'
13260   { (case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_try") 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; }; then
13269   ac_cv_type_pid_t=yes
13270 else
13271   echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274         ac_cv_type_pid_t=no
13275 fi
13276
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 fi
13279 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13280 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13281 if test $ac_cv_type_pid_t = yes; then
13282   :
13283 else
13284
13285 cat >>confdefs.h <<_ACEOF
13286 #define pid_t int
13287 _ACEOF
13288
13289 fi
13290
13291 { echo "$as_me:$LINENO: checking for size_t" >&5
13292 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13293 if test "${ac_cv_type_size_t+set}" = set; then
13294   echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296   cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 $ac_includes_default
13303 typedef size_t ac__type_new_;
13304 int
13305 main ()
13306 {
13307 if ((ac__type_new_ *) 0)
13308   return 0;
13309 if (sizeof (ac__type_new_))
13310   return 0;
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319   *) ac_try_echo=$ac_try;;
13320 esac
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322   (eval "$ac_compile") 2>conftest.er1
13323   ac_status=$?
13324   grep -v '^ *+' conftest.er1 >conftest.err
13325   rm -f conftest.er1
13326   cat conftest.err >&5
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } &&
13329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13330   { (case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_try") 2>&5
13336   ac_status=$?
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); }; } &&
13339          { ac_try='test -s conftest.$ac_objext'
13340   { (case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_try") 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); }; }; then
13349   ac_cv_type_size_t=yes
13350 else
13351   echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13353
13354         ac_cv_type_size_t=no
13355 fi
13356
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 fi
13359 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13360 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13361 if test $ac_cv_type_size_t = yes; then
13362   :
13363 else
13364
13365 cat >>confdefs.h <<_ACEOF
13366 #define size_t unsigned int
13367 _ACEOF
13368
13369 fi
13370
13371
13372 cat >>confdefs.h <<_ACEOF
13373 #define RETSIGTYPE void
13374 _ACEOF
13375
13376 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13377 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13378 if test "${ac_cv_struct_tm+set}" = set; then
13379   echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381   cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h.  */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h.  */
13387 #include <sys/types.h>
13388 #include <time.h>
13389
13390 int
13391 main ()
13392 {
13393 struct tm *tp; tp->tm_sec;
13394   ;
13395   return 0;
13396 }
13397 _ACEOF
13398 rm -f conftest.$ac_objext
13399 if { (ac_try="$ac_compile"
13400 case "(($ac_try" in
13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402   *) ac_try_echo=$ac_try;;
13403 esac
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405   (eval "$ac_compile") 2>conftest.er1
13406   ac_status=$?
13407   grep -v '^ *+' conftest.er1 >conftest.err
13408   rm -f conftest.er1
13409   cat conftest.err >&5
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } &&
13412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13413   { (case "(($ac_try" in
13414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415   *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418   (eval "$ac_try") 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; } &&
13422          { ac_try='test -s conftest.$ac_objext'
13423   { (case "(($ac_try" in
13424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425   *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428   (eval "$ac_try") 2>&5
13429   ac_status=$?
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); }; }; then
13432   ac_cv_struct_tm=time.h
13433 else
13434   echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437         ac_cv_struct_tm=sys/time.h
13438 fi
13439
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 fi
13442 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13443 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13444 if test $ac_cv_struct_tm = sys/time.h; then
13445
13446 cat >>confdefs.h <<\_ACEOF
13447 #define TM_IN_SYS_TIME 1
13448 _ACEOF
13449
13450 fi
13451
13452 { echo "$as_me:$LINENO: checking for int64_t" >&5
13453 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13454 if test "${ac_cv_type_int64_t+set}" = set; then
13455   echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457   cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h.  */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h.  */
13463 $ac_includes_default
13464 typedef int64_t ac__type_new_;
13465 int
13466 main ()
13467 {
13468 if ((ac__type_new_ *) 0)
13469   return 0;
13470 if (sizeof (ac__type_new_))
13471   return 0;
13472   ;
13473   return 0;
13474 }
13475 _ACEOF
13476 rm -f conftest.$ac_objext
13477 if { (ac_try="$ac_compile"
13478 case "(($ac_try" in
13479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480   *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483   (eval "$ac_compile") 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } &&
13490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491   { (case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496   (eval "$ac_try") 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; } &&
13500          { ac_try='test -s conftest.$ac_objext'
13501   { (case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506   (eval "$ac_try") 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); }; }; then
13510   ac_cv_type_int64_t=yes
13511 else
13512   echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515         ac_cv_type_int64_t=no
13516 fi
13517
13518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13519 fi
13520 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13522 if test $ac_cv_type_int64_t = yes; then
13523
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_INT64_T 1
13526 _ACEOF
13527
13528
13529 else
13530   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13531 echo "$as_me: error: Type int64_t required but not found" >&2;}
13532    { (exit 1); exit 1; }; }
13533 fi
13534
13535 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13536 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13537 if test "${ac_cv_type_uint64_t+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546 $ac_includes_default
13547 typedef uint64_t ac__type_new_;
13548 int
13549 main ()
13550 {
13551 if ((ac__type_new_ *) 0)
13552   return 0;
13553 if (sizeof (ac__type_new_))
13554   return 0;
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 rm -f conftest.$ac_objext
13560 if { (ac_try="$ac_compile"
13561 case "(($ac_try" in
13562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563   *) ac_try_echo=$ac_try;;
13564 esac
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566   (eval "$ac_compile") 2>conftest.er1
13567   ac_status=$?
13568   grep -v '^ *+' conftest.er1 >conftest.err
13569   rm -f conftest.er1
13570   cat conftest.err >&5
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } &&
13573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13574   { (case "(($ac_try" in
13575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576   *) ac_try_echo=$ac_try;;
13577 esac
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579   (eval "$ac_try") 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; } &&
13583          { ac_try='test -s conftest.$ac_objext'
13584   { (case "(($ac_try" in
13585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586   *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589   (eval "$ac_try") 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; }; then
13593   ac_cv_type_uint64_t=yes
13594 else
13595   echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13597
13598         ac_cv_type_uint64_t=no
13599 fi
13600
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 fi
13603 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13604 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13605 if test $ac_cv_type_uint64_t = yes; then
13606
13607 cat >>confdefs.h <<_ACEOF
13608 #define HAVE_UINT64_T 1
13609 _ACEOF
13610
13611
13612 else
13613   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13614 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13615 if test "${ac_cv_type_u_int64_t+set}" = set; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618   cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 $ac_includes_default
13625 typedef u_int64_t ac__type_new_;
13626 int
13627 main ()
13628 {
13629 if ((ac__type_new_ *) 0)
13630   return 0;
13631 if (sizeof (ac__type_new_))
13632   return 0;
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_compile") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } &&
13651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652   { (case "(($ac_try" in
13653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654   *) ac_try_echo=$ac_try;;
13655 esac
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657   (eval "$ac_try") 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; } &&
13661          { ac_try='test -s conftest.$ac_objext'
13662   { (case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667   (eval "$ac_try") 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; }; then
13671   ac_cv_type_u_int64_t=yes
13672 else
13673   echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676         ac_cv_type_u_int64_t=no
13677 fi
13678
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680 fi
13681 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13682 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13683 if test $ac_cv_type_u_int64_t = yes; then
13684
13685 cat >>confdefs.h <<_ACEOF
13686 #define HAVE_U_INT64_T 1
13687 _ACEOF
13688
13689
13690 else
13691   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13692 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13693    { (exit 1); exit 1; }; }
13694 fi
13695
13696 fi
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13708 do
13709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13713   echo $ECHO_N "(cached) $ECHO_C" >&6
13714 else
13715   cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h.  */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h.  */
13721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13723 #define $ac_func innocuous_$ac_func
13724
13725 /* System header to define __stub macros and hopefully few prototypes,
13726     which can conflict with char $ac_func (); below.
13727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13728     <limits.h> exists even on freestanding compilers.  */
13729
13730 #ifdef __STDC__
13731 # include <limits.h>
13732 #else
13733 # include <assert.h>
13734 #endif
13735
13736 #undef $ac_func
13737
13738 /* Override any GCC internal prototype to avoid an error.
13739    Use char because int might match the return type of a GCC
13740    builtin and then its argument prototype would still apply.  */
13741 #ifdef __cplusplus
13742 extern "C"
13743 #endif
13744 char $ac_func ();
13745 /* The GNU C library defines this for functions which it implements
13746     to always fail with ENOSYS.  Some functions are actually named
13747     something starting with __ and the normal name is an alias.  */
13748 #if defined __stub_$ac_func || defined __stub___$ac_func
13749 choke me
13750 #endif
13751
13752 int
13753 main ()
13754 {
13755 return $ac_func ();
13756   ;
13757   return 0;
13758 }
13759 _ACEOF
13760 rm -f conftest.$ac_objext conftest$ac_exeext
13761 if { (ac_try="$ac_link"
13762 case "(($ac_try" in
13763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764   *) ac_try_echo=$ac_try;;
13765 esac
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767   (eval "$ac_link") 2>conftest.er1
13768   ac_status=$?
13769   grep -v '^ *+' conftest.er1 >conftest.err
13770   rm -f conftest.er1
13771   cat conftest.err >&5
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); } &&
13774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13775   { (case "(($ac_try" in
13776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777   *) ac_try_echo=$ac_try;;
13778 esac
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780   (eval "$ac_try") 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; } &&
13784          { ac_try='test -s conftest$ac_exeext'
13785   { (case "(($ac_try" in
13786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787   *) ac_try_echo=$ac_try;;
13788 esac
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790   (eval "$ac_try") 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; }; then
13794   eval "$as_ac_var=yes"
13795 else
13796   echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799         eval "$as_ac_var=no"
13800 fi
13801
13802 rm -f core conftest.err conftest.$ac_objext \
13803       conftest$ac_exeext conftest.$ac_ext
13804 fi
13805 ac_res=`eval echo '${'$as_ac_var'}'`
13806                { echo "$as_me:$LINENO: result: $ac_res" >&5
13807 echo "${ECHO_T}$ac_res" >&6; }
13808 if test `eval echo '${'$as_ac_var'}'` = yes; then
13809   cat >>confdefs.h <<_ACEOF
13810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13811 _ACEOF
13812
13813 fi
13814 done
13815
13816
13817
13818
13819
13820 for ac_func in powf fmodf strtof round
13821 do
13822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   cat >conftest.$ac_ext <<_ACEOF
13829 /* confdefs.h.  */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h.  */
13834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13836 #define $ac_func innocuous_$ac_func
13837
13838 /* System header to define __stub macros and hopefully few prototypes,
13839     which can conflict with char $ac_func (); below.
13840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13841     <limits.h> exists even on freestanding compilers.  */
13842
13843 #ifdef __STDC__
13844 # include <limits.h>
13845 #else
13846 # include <assert.h>
13847 #endif
13848
13849 #undef $ac_func
13850
13851 /* Override any GCC internal prototype to avoid an error.
13852    Use char because int might match the return type of a GCC
13853    builtin and then its argument prototype would still apply.  */
13854 #ifdef __cplusplus
13855 extern "C"
13856 #endif
13857 char $ac_func ();
13858 /* The GNU C library defines this for functions which it implements
13859     to always fail with ENOSYS.  Some functions are actually named
13860     something starting with __ and the normal name is an alias.  */
13861 #if defined __stub_$ac_func || defined __stub___$ac_func
13862 choke me
13863 #endif
13864
13865 int
13866 main ()
13867 {
13868 return $ac_func ();
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (ac_try="$ac_link"
13875 case "(($ac_try" in
13876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877   *) ac_try_echo=$ac_try;;
13878 esac
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880   (eval "$ac_link") 2>conftest.er1
13881   ac_status=$?
13882   grep -v '^ *+' conftest.er1 >conftest.err
13883   rm -f conftest.er1
13884   cat conftest.err >&5
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); } &&
13887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13888   { (case "(($ac_try" in
13889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890   *) ac_try_echo=$ac_try;;
13891 esac
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893   (eval "$ac_try") 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; } &&
13897          { ac_try='test -s conftest$ac_exeext'
13898   { (case "(($ac_try" in
13899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900   *) ac_try_echo=$ac_try;;
13901 esac
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903   (eval "$ac_try") 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   eval "$as_ac_var=yes"
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912         eval "$as_ac_var=no"
13913 fi
13914
13915 rm -f core conftest.err conftest.$ac_objext \
13916       conftest$ac_exeext conftest.$ac_ext
13917 fi
13918 ac_res=`eval echo '${'$as_ac_var'}'`
13919                { echo "$as_me:$LINENO: result: $ac_res" >&5
13920 echo "${ECHO_T}$ac_res" >&6; }
13921 if test `eval echo '${'$as_ac_var'}'` = yes; then
13922   cat >>confdefs.h <<_ACEOF
13923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13924 _ACEOF
13925
13926 fi
13927 done
13928
13929
13930
13931
13932
13933
13934 for ac_func in log log2 log10 exp exp2
13935 do
13936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13940   echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942   cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h.  */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h.  */
13948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13950 #define $ac_func innocuous_$ac_func
13951
13952 /* System header to define __stub macros and hopefully few prototypes,
13953     which can conflict with char $ac_func (); below.
13954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955     <limits.h> exists even on freestanding compilers.  */
13956
13957 #ifdef __STDC__
13958 # include <limits.h>
13959 #else
13960 # include <assert.h>
13961 #endif
13962
13963 #undef $ac_func
13964
13965 /* Override any GCC internal prototype to avoid an error.
13966    Use char because int might match the return type of a GCC
13967    builtin and then its argument prototype would still apply.  */
13968 #ifdef __cplusplus
13969 extern "C"
13970 #endif
13971 char $ac_func ();
13972 /* The GNU C library defines this for functions which it implements
13973     to always fail with ENOSYS.  Some functions are actually named
13974     something starting with __ and the normal name is an alias.  */
13975 #if defined __stub_$ac_func || defined __stub___$ac_func
13976 choke me
13977 #endif
13978
13979 int
13980 main ()
13981 {
13982 return $ac_func ();
13983   ;
13984   return 0;
13985 }
13986 _ACEOF
13987 rm -f conftest.$ac_objext conftest$ac_exeext
13988 if { (ac_try="$ac_link"
13989 case "(($ac_try" in
13990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991   *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994   (eval "$ac_link") 2>conftest.er1
13995   ac_status=$?
13996   grep -v '^ *+' conftest.er1 >conftest.err
13997   rm -f conftest.er1
13998   cat conftest.err >&5
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); } &&
14001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14002   { (case "(($ac_try" in
14003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004   *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007   (eval "$ac_try") 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; } &&
14011          { ac_try='test -s conftest$ac_exeext'
14012   { (case "(($ac_try" in
14013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014   *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017   (eval "$ac_try") 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); }; }; then
14021   eval "$as_ac_var=yes"
14022 else
14023   echo "$as_me: failed program was:" >&5
14024 sed 's/^/| /' conftest.$ac_ext >&5
14025
14026         eval "$as_ac_var=no"
14027 fi
14028
14029 rm -f core conftest.err conftest.$ac_objext \
14030       conftest$ac_exeext conftest.$ac_ext
14031 fi
14032 ac_res=`eval echo '${'$as_ac_var'}'`
14033                { echo "$as_me:$LINENO: result: $ac_res" >&5
14034 echo "${ECHO_T}$ac_res" >&6; }
14035 if test `eval echo '${'$as_ac_var'}'` = yes; then
14036   cat >>confdefs.h <<_ACEOF
14037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14038 _ACEOF
14039
14040 fi
14041 done
14042
14043
14044
14045
14046
14047
14048 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14049 do
14050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h.  */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h.  */
14062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14064 #define $ac_func innocuous_$ac_func
14065
14066 /* System header to define __stub macros and hopefully few prototypes,
14067     which can conflict with char $ac_func (); below.
14068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14069     <limits.h> exists even on freestanding compilers.  */
14070
14071 #ifdef __STDC__
14072 # include <limits.h>
14073 #else
14074 # include <assert.h>
14075 #endif
14076
14077 #undef $ac_func
14078
14079 /* Override any GCC internal prototype to avoid an error.
14080    Use char because int might match the return type of a GCC
14081    builtin and then its argument prototype would still apply.  */
14082 #ifdef __cplusplus
14083 extern "C"
14084 #endif
14085 char $ac_func ();
14086 /* The GNU C library defines this for functions which it implements
14087     to always fail with ENOSYS.  Some functions are actually named
14088     something starting with __ and the normal name is an alias.  */
14089 #if defined __stub_$ac_func || defined __stub___$ac_func
14090 choke me
14091 #endif
14092
14093 int
14094 main ()
14095 {
14096 return $ac_func ();
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (ac_try="$ac_link"
14103 case "(($ac_try" in
14104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105   *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108   (eval "$ac_link") 2>conftest.er1
14109   ac_status=$?
14110   grep -v '^ *+' conftest.er1 >conftest.err
14111   rm -f conftest.er1
14112   cat conftest.err >&5
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); } &&
14115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14116   { (case "(($ac_try" in
14117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118   *) ac_try_echo=$ac_try;;
14119 esac
14120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121   (eval "$ac_try") 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; } &&
14125          { ac_try='test -s conftest$ac_exeext'
14126   { (case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_try") 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; }; then
14135   eval "$as_ac_var=yes"
14136 else
14137   echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14139
14140         eval "$as_ac_var=no"
14141 fi
14142
14143 rm -f core conftest.err conftest.$ac_objext \
14144       conftest$ac_exeext conftest.$ac_ext
14145 fi
14146 ac_res=`eval echo '${'$as_ac_var'}'`
14147                { echo "$as_me:$LINENO: result: $ac_res" >&5
14148 echo "${ECHO_T}$ac_res" >&6; }
14149 if test `eval echo '${'$as_ac_var'}'` = yes; then
14150   cat >>confdefs.h <<_ACEOF
14151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14152 _ACEOF
14153
14154 fi
14155 done
14156
14157
14158
14159
14160 for ac_func in isatty mkdtemp mkstemp
14161 do
14162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168   cat >conftest.$ac_ext <<_ACEOF
14169 /* confdefs.h.  */
14170 _ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h.  */
14174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14176 #define $ac_func innocuous_$ac_func
14177
14178 /* System header to define __stub macros and hopefully few prototypes,
14179     which can conflict with char $ac_func (); below.
14180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14181     <limits.h> exists even on freestanding compilers.  */
14182
14183 #ifdef __STDC__
14184 # include <limits.h>
14185 #else
14186 # include <assert.h>
14187 #endif
14188
14189 #undef $ac_func
14190
14191 /* Override any GCC internal prototype to avoid an error.
14192    Use char because int might match the return type of a GCC
14193    builtin and then its argument prototype would still apply.  */
14194 #ifdef __cplusplus
14195 extern "C"
14196 #endif
14197 char $ac_func ();
14198 /* The GNU C library defines this for functions which it implements
14199     to always fail with ENOSYS.  Some functions are actually named
14200     something starting with __ and the normal name is an alias.  */
14201 #if defined __stub_$ac_func || defined __stub___$ac_func
14202 choke me
14203 #endif
14204
14205 int
14206 main ()
14207 {
14208 return $ac_func ();
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 rm -f conftest.$ac_objext conftest$ac_exeext
14214 if { (ac_try="$ac_link"
14215 case "(($ac_try" in
14216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217   *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220   (eval "$ac_link") 2>conftest.er1
14221   ac_status=$?
14222   grep -v '^ *+' conftest.er1 >conftest.err
14223   rm -f conftest.er1
14224   cat conftest.err >&5
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); } &&
14227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14228   { (case "(($ac_try" in
14229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230   *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233   (eval "$ac_try") 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; } &&
14237          { ac_try='test -s conftest$ac_exeext'
14238   { (case "(($ac_try" in
14239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240   *) ac_try_echo=$ac_try;;
14241 esac
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243   (eval "$ac_try") 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; }; then
14247   eval "$as_ac_var=yes"
14248 else
14249   echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252         eval "$as_ac_var=no"
14253 fi
14254
14255 rm -f core conftest.err conftest.$ac_objext \
14256       conftest$ac_exeext conftest.$ac_ext
14257 fi
14258 ac_res=`eval echo '${'$as_ac_var'}'`
14259                { echo "$as_me:$LINENO: result: $ac_res" >&5
14260 echo "${ECHO_T}$ac_res" >&6; }
14261 if test `eval echo '${'$as_ac_var'}'` = yes; then
14262   cat >>confdefs.h <<_ACEOF
14263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14264 _ACEOF
14265
14266 fi
14267 done
14268
14269
14270
14271
14272
14273
14274
14275 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14276 do
14277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14281   echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283   cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h.  */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h.  */
14289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14291 #define $ac_func innocuous_$ac_func
14292
14293 /* System header to define __stub macros and hopefully few prototypes,
14294     which can conflict with char $ac_func (); below.
14295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14296     <limits.h> exists even on freestanding compilers.  */
14297
14298 #ifdef __STDC__
14299 # include <limits.h>
14300 #else
14301 # include <assert.h>
14302 #endif
14303
14304 #undef $ac_func
14305
14306 /* Override any GCC internal prototype to avoid an error.
14307    Use char because int might match the return type of a GCC
14308    builtin and then its argument prototype would still apply.  */
14309 #ifdef __cplusplus
14310 extern "C"
14311 #endif
14312 char $ac_func ();
14313 /* The GNU C library defines this for functions which it implements
14314     to always fail with ENOSYS.  Some functions are actually named
14315     something starting with __ and the normal name is an alias.  */
14316 #if defined __stub_$ac_func || defined __stub___$ac_func
14317 choke me
14318 #endif
14319
14320 int
14321 main ()
14322 {
14323 return $ac_func ();
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332   *) ac_try_echo=$ac_try;;
14333 esac
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335   (eval "$ac_link") 2>conftest.er1
14336   ac_status=$?
14337   grep -v '^ *+' conftest.er1 >conftest.err
14338   rm -f conftest.er1
14339   cat conftest.err >&5
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); } &&
14342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14343   { (case "(($ac_try" in
14344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345   *) ac_try_echo=$ac_try;;
14346 esac
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348   (eval "$ac_try") 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); }; } &&
14352          { ac_try='test -s conftest$ac_exeext'
14353   { (case "(($ac_try" in
14354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355   *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358   (eval "$ac_try") 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362   eval "$as_ac_var=yes"
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367         eval "$as_ac_var=no"
14368 fi
14369
14370 rm -f core conftest.err conftest.$ac_objext \
14371       conftest$ac_exeext conftest.$ac_ext
14372 fi
14373 ac_res=`eval echo '${'$as_ac_var'}'`
14374                { echo "$as_me:$LINENO: result: $ac_res" >&5
14375 echo "${ECHO_T}$ac_res" >&6; }
14376 if test `eval echo '${'$as_ac_var'}'` = yes; then
14377   cat >>confdefs.h <<_ACEOF
14378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14379 _ACEOF
14380
14381 fi
14382 done
14383
14384
14385
14386
14387 for ac_func in strerror strerror_r setenv
14388 do
14389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h.  */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h.  */
14401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14403 #define $ac_func innocuous_$ac_func
14404
14405 /* System header to define __stub macros and hopefully few prototypes,
14406     which can conflict with char $ac_func (); below.
14407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14408     <limits.h> exists even on freestanding compilers.  */
14409
14410 #ifdef __STDC__
14411 # include <limits.h>
14412 #else
14413 # include <assert.h>
14414 #endif
14415
14416 #undef $ac_func
14417
14418 /* Override any GCC internal prototype to avoid an error.
14419    Use char because int might match the return type of a GCC
14420    builtin and then its argument prototype would still apply.  */
14421 #ifdef __cplusplus
14422 extern "C"
14423 #endif
14424 char $ac_func ();
14425 /* The GNU C library defines this for functions which it implements
14426     to always fail with ENOSYS.  Some functions are actually named
14427     something starting with __ and the normal name is an alias.  */
14428 #if defined __stub_$ac_func || defined __stub___$ac_func
14429 choke me
14430 #endif
14431
14432 int
14433 main ()
14434 {
14435 return $ac_func ();
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444   *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447   (eval "$ac_link") 2>conftest.er1
14448   ac_status=$?
14449   grep -v '^ *+' conftest.er1 >conftest.err
14450   rm -f conftest.er1
14451   cat conftest.err >&5
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); } &&
14454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14455   { (case "(($ac_try" in
14456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457   *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460   (eval "$ac_try") 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); }; } &&
14464          { ac_try='test -s conftest$ac_exeext'
14465   { (case "(($ac_try" in
14466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467   *) ac_try_echo=$ac_try;;
14468 esac
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470   (eval "$ac_try") 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); }; }; then
14474   eval "$as_ac_var=yes"
14475 else
14476   echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479         eval "$as_ac_var=no"
14480 fi
14481
14482 rm -f core conftest.err conftest.$ac_objext \
14483       conftest$ac_exeext conftest.$ac_ext
14484 fi
14485 ac_res=`eval echo '${'$as_ac_var'}'`
14486                { echo "$as_me:$LINENO: result: $ac_res" >&5
14487 echo "${ECHO_T}$ac_res" >&6; }
14488 if test `eval echo '${'$as_ac_var'}'` = yes; then
14489   cat >>confdefs.h <<_ACEOF
14490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14491 _ACEOF
14492
14493 fi
14494 done
14495
14496
14497
14498
14499
14500 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14501 do
14502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14516 #define $ac_func innocuous_$ac_func
14517
14518 /* System header to define __stub macros and hopefully few prototypes,
14519     which can conflict with char $ac_func (); below.
14520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14521     <limits.h> exists even on freestanding compilers.  */
14522
14523 #ifdef __STDC__
14524 # include <limits.h>
14525 #else
14526 # include <assert.h>
14527 #endif
14528
14529 #undef $ac_func
14530
14531 /* Override any GCC internal prototype to avoid an error.
14532    Use char because int might match the return type of a GCC
14533    builtin and then its argument prototype would still apply.  */
14534 #ifdef __cplusplus
14535 extern "C"
14536 #endif
14537 char $ac_func ();
14538 /* The GNU C library defines this for functions which it implements
14539     to always fail with ENOSYS.  Some functions are actually named
14540     something starting with __ and the normal name is an alias.  */
14541 #if defined __stub_$ac_func || defined __stub___$ac_func
14542 choke me
14543 #endif
14544
14545 int
14546 main ()
14547 {
14548 return $ac_func ();
14549   ;
14550   return 0;
14551 }
14552 _ACEOF
14553 rm -f conftest.$ac_objext conftest$ac_exeext
14554 if { (ac_try="$ac_link"
14555 case "(($ac_try" in
14556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557   *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560   (eval "$ac_link") 2>conftest.er1
14561   ac_status=$?
14562   grep -v '^ *+' conftest.er1 >conftest.err
14563   rm -f conftest.er1
14564   cat conftest.err >&5
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568   { (case "(($ac_try" in
14569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570   *) ac_try_echo=$ac_try;;
14571 esac
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573   (eval "$ac_try") 2>&5
14574   ac_status=$?
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); }; } &&
14577          { ac_try='test -s conftest$ac_exeext'
14578   { (case "(($ac_try" in
14579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580   *) ac_try_echo=$ac_try;;
14581 esac
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583   (eval "$ac_try") 2>&5
14584   ac_status=$?
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); }; }; then
14587   eval "$as_ac_var=yes"
14588 else
14589   echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592         eval "$as_ac_var=no"
14593 fi
14594
14595 rm -f core conftest.err conftest.$ac_objext \
14596       conftest$ac_exeext conftest.$ac_ext
14597 fi
14598 ac_res=`eval echo '${'$as_ac_var'}'`
14599                { echo "$as_me:$LINENO: result: $ac_res" >&5
14600 echo "${ECHO_T}$ac_res" >&6; }
14601 if test `eval echo '${'$as_ac_var'}'` = yes; then
14602   cat >>confdefs.h <<_ACEOF
14603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14604 _ACEOF
14605
14606 fi
14607 done
14608
14609
14610
14611
14612
14613
14614 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14615 do
14616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14620   echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622   cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14630 #define $ac_func innocuous_$ac_func
14631
14632 /* System header to define __stub macros and hopefully few prototypes,
14633     which can conflict with char $ac_func (); below.
14634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14635     <limits.h> exists even on freestanding compilers.  */
14636
14637 #ifdef __STDC__
14638 # include <limits.h>
14639 #else
14640 # include <assert.h>
14641 #endif
14642
14643 #undef $ac_func
14644
14645 /* Override any GCC internal prototype to avoid an error.
14646    Use char because int might match the return type of a GCC
14647    builtin and then its argument prototype would still apply.  */
14648 #ifdef __cplusplus
14649 extern "C"
14650 #endif
14651 char $ac_func ();
14652 /* The GNU C library defines this for functions which it implements
14653     to always fail with ENOSYS.  Some functions are actually named
14654     something starting with __ and the normal name is an alias.  */
14655 #if defined __stub_$ac_func || defined __stub___$ac_func
14656 choke me
14657 #endif
14658
14659 int
14660 main ()
14661 {
14662 return $ac_func ();
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (ac_try="$ac_link"
14669 case "(($ac_try" in
14670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671   *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674   (eval "$ac_link") 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } &&
14681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14682   { (case "(($ac_try" in
14683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684   *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687   (eval "$ac_try") 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; } &&
14691          { ac_try='test -s conftest$ac_exeext'
14692   { (case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697   (eval "$ac_try") 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; }; then
14701   eval "$as_ac_var=yes"
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14705
14706         eval "$as_ac_var=no"
14707 fi
14708
14709 rm -f core conftest.err conftest.$ac_objext \
14710       conftest$ac_exeext conftest.$ac_ext
14711 fi
14712 ac_res=`eval echo '${'$as_ac_var'}'`
14713                { echo "$as_me:$LINENO: result: $ac_res" >&5
14714 echo "${ECHO_T}$ac_res" >&6; }
14715 if test `eval echo '${'$as_ac_var'}'` = yes; then
14716   cat >>confdefs.h <<_ACEOF
14717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14718 _ACEOF
14719
14720 fi
14721 done
14722
14723
14724
14725 for ac_func in futimes futimens
14726 do
14727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14731   echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
14733   cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h.  */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h.  */
14739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14741 #define $ac_func innocuous_$ac_func
14742
14743 /* System header to define __stub macros and hopefully few prototypes,
14744     which can conflict with char $ac_func (); below.
14745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14746     <limits.h> exists even on freestanding compilers.  */
14747
14748 #ifdef __STDC__
14749 # include <limits.h>
14750 #else
14751 # include <assert.h>
14752 #endif
14753
14754 #undef $ac_func
14755
14756 /* Override any GCC internal prototype to avoid an error.
14757    Use char because int might match the return type of a GCC
14758    builtin and then its argument prototype would still apply.  */
14759 #ifdef __cplusplus
14760 extern "C"
14761 #endif
14762 char $ac_func ();
14763 /* The GNU C library defines this for functions which it implements
14764     to always fail with ENOSYS.  Some functions are actually named
14765     something starting with __ and the normal name is an alias.  */
14766 #if defined __stub_$ac_func || defined __stub___$ac_func
14767 choke me
14768 #endif
14769
14770 int
14771 main ()
14772 {
14773 return $ac_func ();
14774   ;
14775   return 0;
14776 }
14777 _ACEOF
14778 rm -f conftest.$ac_objext conftest$ac_exeext
14779 if { (ac_try="$ac_link"
14780 case "(($ac_try" in
14781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782   *) ac_try_echo=$ac_try;;
14783 esac
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785   (eval "$ac_link") 2>conftest.er1
14786   ac_status=$?
14787   grep -v '^ *+' conftest.er1 >conftest.err
14788   rm -f conftest.er1
14789   cat conftest.err >&5
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); } &&
14792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14793   { (case "(($ac_try" in
14794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795   *) ac_try_echo=$ac_try;;
14796 esac
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798   (eval "$ac_try") 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; } &&
14802          { ac_try='test -s conftest$ac_exeext'
14803   { (case "(($ac_try" in
14804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805   *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808   (eval "$ac_try") 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); }; }; then
14812   eval "$as_ac_var=yes"
14813 else
14814   echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817         eval "$as_ac_var=no"
14818 fi
14819
14820 rm -f core conftest.err conftest.$ac_objext \
14821       conftest$ac_exeext conftest.$ac_ext
14822 fi
14823 ac_res=`eval echo '${'$as_ac_var'}'`
14824                { echo "$as_me:$LINENO: result: $ac_res" >&5
14825 echo "${ECHO_T}$ac_res" >&6; }
14826 if test `eval echo '${'$as_ac_var'}'` = yes; then
14827   cat >>confdefs.h <<_ACEOF
14828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14829 _ACEOF
14830
14831 fi
14832 done
14833
14834 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14835 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14836 if test "${llvm_cv_c_printf_a+set}" = set; then
14837   echo $ECHO_N "(cached) $ECHO_C" >&6
14838 else
14839   ac_ext=c
14840 ac_cpp='$CPP $CPPFLAGS'
14841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14844
14845  if test "$cross_compiling" = yes; then
14846   llvmac_cv_c_printf_a=no
14847 else
14848   cat >conftest.$ac_ext <<_ACEOF
14849
14850   /* confdefs.h.  */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h.  */
14855
14856 #include <stdio.h>
14857 #include <stdlib.h>
14858
14859 int
14860 main ()
14861 {
14862
14863 volatile double A, B;
14864 char Buffer[100];
14865 A = 1;
14866 A /= 10.0;
14867 sprintf(Buffer, "%a", A);
14868 B = atof(Buffer);
14869 if (A != B)
14870   return (1);
14871 if (A != 0x1.999999999999ap-4)
14872   return (1);
14873 return (0);
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest$ac_exeext
14879 if { (ac_try="$ac_link"
14880 case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885   (eval "$ac_link") 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14889   { (case "(($ac_try" in
14890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891   *) ac_try_echo=$ac_try;;
14892 esac
14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894   (eval "$ac_try") 2>&5
14895   ac_status=$?
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); }; }; then
14898   llvm_cv_c_printf_a=yes
14899 else
14900   echo "$as_me: program exited with status $ac_status" >&5
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 ( exit $ac_status )
14905 llvmac_cv_c_printf_a=no
14906 fi
14907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14908 fi
14909
14910
14911  ac_ext=c
14912 ac_cpp='$CPP $CPPFLAGS'
14913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14916
14917 fi
14918 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14919 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14920  if test "$llvm_cv_c_printf_a" = "yes"; then
14921
14922 cat >>confdefs.h <<\_ACEOF
14923 #define HAVE_PRINTF_A 1
14924 _ACEOF
14925
14926  fi
14927
14928
14929
14930   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14931 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14932 if test "${ac_cv_func_rand48+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935
14936     ac_ext=cpp
14937 ac_cpp='$CXXCPP $CPPFLAGS'
14938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14941
14942     cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h.  */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h.  */
14948 #include <stdlib.h>
14949 int
14950 main ()
14951 {
14952 srand48(0);lrand48();drand48();
14953   ;
14954   return 0;
14955 }
14956 _ACEOF
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_compile") 2>conftest.er1
14965   ac_status=$?
14966   grep -v '^ *+' conftest.er1 >conftest.err
14967   rm -f conftest.er1
14968   cat conftest.err >&5
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } &&
14971          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14972   { (case "(($ac_try" in
14973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974   *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977   (eval "$ac_try") 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; } &&
14981          { ac_try='test -s conftest.$ac_objext'
14982   { (case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_try") 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; }; then
14991   ac_cv_func_rand48=yes
14992 else
14993   echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996         ac_cv_func_rand48=no
14997 fi
14998
14999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000     ac_ext=c
15001 ac_cpp='$CPP $CPPFLAGS'
15002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15005
15006
15007 fi
15008 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15009 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15010
15011 if test "$ac_cv_func_rand48" = "yes" ; then
15012
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_RAND48 1
15015 _ACEOF
15016
15017 fi
15018
15019
15020 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15021 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15022 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15023   echo $ECHO_N "(cached) $ECHO_C" >&6
15024 else
15025   cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h.  */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h.  */
15031 $ac_includes_default
15032 int
15033 main ()
15034 {
15035 #ifndef arc4random
15036   char *p = (char *) arc4random;
15037   return !p;
15038 #endif
15039
15040   ;
15041   return 0;
15042 }
15043 _ACEOF
15044 rm -f conftest.$ac_objext
15045 if { (ac_try="$ac_compile"
15046 case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_compile") 2>conftest.er1
15052   ac_status=$?
15053   grep -v '^ *+' conftest.er1 >conftest.err
15054   rm -f conftest.er1
15055   cat conftest.err >&5
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); } &&
15058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059   { (case "(($ac_try" in
15060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061   *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064   (eval "$ac_try") 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; } &&
15068          { ac_try='test -s conftest.$ac_objext'
15069   { (case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_try") 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; }; then
15078   ac_cv_have_decl_arc4random=yes
15079 else
15080   echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083         ac_cv_have_decl_arc4random=no
15084 fi
15085
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 fi
15088 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15089 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15090 if test $ac_cv_have_decl_arc4random = yes; then
15091
15092 cat >>confdefs.h <<_ACEOF
15093 #define HAVE_DECL_ARC4RANDOM 1
15094 _ACEOF
15095
15096
15097 else
15098   cat >>confdefs.h <<_ACEOF
15099 #define HAVE_DECL_ARC4RANDOM 0
15100 _ACEOF
15101
15102
15103 fi
15104
15105
15106
15107 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15108 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15109 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112   cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h.  */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h.  */
15118 $ac_includes_default
15119 int
15120 main ()
15121 {
15122 #ifndef strerror_s
15123   char *p = (char *) strerror_s;
15124   return !p;
15125 #endif
15126
15127   ;
15128   return 0;
15129 }
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138   (eval "$ac_compile") 2>conftest.er1
15139   ac_status=$?
15140   grep -v '^ *+' conftest.er1 >conftest.err
15141   rm -f conftest.er1
15142   cat conftest.err >&5
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); } &&
15145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15146   { (case "(($ac_try" in
15147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148   *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151   (eval "$ac_try") 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; } &&
15155          { ac_try='test -s conftest.$ac_objext'
15156   { (case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_try") 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; }; then
15165   ac_cv_have_decl_strerror_s=yes
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170         ac_cv_have_decl_strerror_s=no
15171 fi
15172
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 fi
15175 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15176 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15177 if test $ac_cv_have_decl_strerror_s = yes; then
15178
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_DECL_STRERROR_S 1
15181 _ACEOF
15182
15183
15184 else
15185   cat >>confdefs.h <<_ACEOF
15186 #define HAVE_DECL_STRERROR_S 0
15187 _ACEOF
15188
15189
15190 fi
15191
15192
15193
15194 if test "$llvm_cv_os_type" = "MingW" ; then
15195   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15196 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15197 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   ac_check_lib_save_LIBS=$LIBS
15201 LIBS="-lgcc  $LIBS"
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208
15209 /* Override any GCC internal prototype to avoid an error.
15210    Use char because int might match the return type of a GCC
15211    builtin and then its argument prototype would still apply.  */
15212 #ifdef __cplusplus
15213 extern "C"
15214 #endif
15215 char _alloca ();
15216 int
15217 main ()
15218 {
15219 return _alloca ();
15220   ;
15221   return 0;
15222 }
15223 _ACEOF
15224 rm -f conftest.$ac_objext conftest$ac_exeext
15225 if { (ac_try="$ac_link"
15226 case "(($ac_try" in
15227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228   *) ac_try_echo=$ac_try;;
15229 esac
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231   (eval "$ac_link") 2>conftest.er1
15232   ac_status=$?
15233   grep -v '^ *+' conftest.er1 >conftest.err
15234   rm -f conftest.er1
15235   cat conftest.err >&5
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } &&
15238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239   { (case "(($ac_try" in
15240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241   *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244   (eval "$ac_try") 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; } &&
15248          { ac_try='test -s conftest$ac_exeext'
15249   { (case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_try") 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }; }; then
15258   ac_cv_lib_gcc__alloca=yes
15259 else
15260   echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263         ac_cv_lib_gcc__alloca=no
15264 fi
15265
15266 rm -f core conftest.err conftest.$ac_objext \
15267       conftest$ac_exeext conftest.$ac_ext
15268 LIBS=$ac_check_lib_save_LIBS
15269 fi
15270 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15271 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15272 if test $ac_cv_lib_gcc__alloca = yes; then
15273
15274 cat >>confdefs.h <<\_ACEOF
15275 #define HAVE__ALLOCA 1
15276 _ACEOF
15277
15278 fi
15279
15280   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15281 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15282 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15283   echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285   ac_check_lib_save_LIBS=$LIBS
15286 LIBS="-lgcc  $LIBS"
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h.  */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h.  */
15293
15294 /* Override any GCC internal prototype to avoid an error.
15295    Use char because int might match the return type of a GCC
15296    builtin and then its argument prototype would still apply.  */
15297 #ifdef __cplusplus
15298 extern "C"
15299 #endif
15300 char __alloca ();
15301 int
15302 main ()
15303 {
15304 return __alloca ();
15305   ;
15306   return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (ac_try="$ac_link"
15311 case "(($ac_try" in
15312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313   *) ac_try_echo=$ac_try;;
15314 esac
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316   (eval "$ac_link") 2>conftest.er1
15317   ac_status=$?
15318   grep -v '^ *+' conftest.er1 >conftest.err
15319   rm -f conftest.er1
15320   cat conftest.err >&5
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } &&
15323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15324   { (case "(($ac_try" in
15325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326   *) ac_try_echo=$ac_try;;
15327 esac
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329   (eval "$ac_try") 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); }; } &&
15333          { ac_try='test -s conftest$ac_exeext'
15334   { (case "(($ac_try" in
15335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336   *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339   (eval "$ac_try") 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; }; then
15343   ac_cv_lib_gcc___alloca=yes
15344 else
15345   echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348         ac_cv_lib_gcc___alloca=no
15349 fi
15350
15351 rm -f core conftest.err conftest.$ac_objext \
15352       conftest$ac_exeext conftest.$ac_ext
15353 LIBS=$ac_check_lib_save_LIBS
15354 fi
15355 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15356 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15357 if test $ac_cv_lib_gcc___alloca = yes; then
15358
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE___ALLOCA 1
15361 _ACEOF
15362
15363 fi
15364
15365   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15366 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15367 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15368   echo $ECHO_N "(cached) $ECHO_C" >&6
15369 else
15370   ac_check_lib_save_LIBS=$LIBS
15371 LIBS="-lgcc  $LIBS"
15372 cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h.  */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h.  */
15378
15379 /* Override any GCC internal prototype to avoid an error.
15380    Use char because int might match the return type of a GCC
15381    builtin and then its argument prototype would still apply.  */
15382 #ifdef __cplusplus
15383 extern "C"
15384 #endif
15385 char __chkstk ();
15386 int
15387 main ()
15388 {
15389 return __chkstk ();
15390   ;
15391   return 0;
15392 }
15393 _ACEOF
15394 rm -f conftest.$ac_objext conftest$ac_exeext
15395 if { (ac_try="$ac_link"
15396 case "(($ac_try" in
15397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398   *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401   (eval "$ac_link") 2>conftest.er1
15402   ac_status=$?
15403   grep -v '^ *+' conftest.er1 >conftest.err
15404   rm -f conftest.er1
15405   cat conftest.err >&5
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); } &&
15408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15409   { (case "(($ac_try" in
15410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411   *) ac_try_echo=$ac_try;;
15412 esac
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414   (eval "$ac_try") 2>&5
15415   ac_status=$?
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); }; } &&
15418          { ac_try='test -s conftest$ac_exeext'
15419   { (case "(($ac_try" in
15420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421   *) ac_try_echo=$ac_try;;
15422 esac
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424   (eval "$ac_try") 2>&5
15425   ac_status=$?
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; }; then
15428   ac_cv_lib_gcc___chkstk=yes
15429 else
15430   echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433         ac_cv_lib_gcc___chkstk=no
15434 fi
15435
15436 rm -f core conftest.err conftest.$ac_objext \
15437       conftest$ac_exeext conftest.$ac_ext
15438 LIBS=$ac_check_lib_save_LIBS
15439 fi
15440 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15441 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15442 if test $ac_cv_lib_gcc___chkstk = yes; then
15443
15444 cat >>confdefs.h <<\_ACEOF
15445 #define HAVE___CHKSTK 1
15446 _ACEOF
15447
15448 fi
15449
15450   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15451 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15452 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15453   echo $ECHO_N "(cached) $ECHO_C" >&6
15454 else
15455   ac_check_lib_save_LIBS=$LIBS
15456 LIBS="-lgcc  $LIBS"
15457 cat >conftest.$ac_ext <<_ACEOF
15458 /* confdefs.h.  */
15459 _ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h.  */
15463
15464 /* Override any GCC internal prototype to avoid an error.
15465    Use char because int might match the return type of a GCC
15466    builtin and then its argument prototype would still apply.  */
15467 #ifdef __cplusplus
15468 extern "C"
15469 #endif
15470 char __chkstk_ms ();
15471 int
15472 main ()
15473 {
15474 return __chkstk_ms ();
15475   ;
15476   return 0;
15477 }
15478 _ACEOF
15479 rm -f conftest.$ac_objext conftest$ac_exeext
15480 if { (ac_try="$ac_link"
15481 case "(($ac_try" in
15482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483   *) ac_try_echo=$ac_try;;
15484 esac
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486   (eval "$ac_link") 2>conftest.er1
15487   ac_status=$?
15488   grep -v '^ *+' conftest.er1 >conftest.err
15489   rm -f conftest.er1
15490   cat conftest.err >&5
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); } &&
15493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15494   { (case "(($ac_try" in
15495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496   *) ac_try_echo=$ac_try;;
15497 esac
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499   (eval "$ac_try") 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); }; } &&
15503          { ac_try='test -s conftest$ac_exeext'
15504   { (case "(($ac_try" in
15505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506   *) ac_try_echo=$ac_try;;
15507 esac
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509   (eval "$ac_try") 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; }; then
15513   ac_cv_lib_gcc___chkstk_ms=yes
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518         ac_cv_lib_gcc___chkstk_ms=no
15519 fi
15520
15521 rm -f core conftest.err conftest.$ac_objext \
15522       conftest$ac_exeext conftest.$ac_ext
15523 LIBS=$ac_check_lib_save_LIBS
15524 fi
15525 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15526 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15527 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15528
15529 cat >>confdefs.h <<\_ACEOF
15530 #define HAVE___CHKSTK_MS 1
15531 _ACEOF
15532
15533 fi
15534
15535   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15536 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15537 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15538   echo $ECHO_N "(cached) $ECHO_C" >&6
15539 else
15540   ac_check_lib_save_LIBS=$LIBS
15541 LIBS="-lgcc  $LIBS"
15542 cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548
15549 /* Override any GCC internal prototype to avoid an error.
15550    Use char because int might match the return type of a GCC
15551    builtin and then its argument prototype would still apply.  */
15552 #ifdef __cplusplus
15553 extern "C"
15554 #endif
15555 char ___chkstk ();
15556 int
15557 main ()
15558 {
15559 return ___chkstk ();
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 rm -f conftest.$ac_objext conftest$ac_exeext
15565 if { (ac_try="$ac_link"
15566 case "(($ac_try" in
15567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568   *) ac_try_echo=$ac_try;;
15569 esac
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571   (eval "$ac_link") 2>conftest.er1
15572   ac_status=$?
15573   grep -v '^ *+' conftest.er1 >conftest.err
15574   rm -f conftest.er1
15575   cat conftest.err >&5
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); } &&
15578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15579   { (case "(($ac_try" in
15580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581   *) ac_try_echo=$ac_try;;
15582 esac
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584   (eval "$ac_try") 2>&5
15585   ac_status=$?
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); }; } &&
15588          { ac_try='test -s conftest$ac_exeext'
15589   { (case "(($ac_try" in
15590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591   *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594   (eval "$ac_try") 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }; then
15598   ac_cv_lib_gcc____chkstk=yes
15599 else
15600   echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603         ac_cv_lib_gcc____chkstk=no
15604 fi
15605
15606 rm -f core conftest.err conftest.$ac_objext \
15607       conftest$ac_exeext conftest.$ac_ext
15608 LIBS=$ac_check_lib_save_LIBS
15609 fi
15610 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15611 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15612 if test $ac_cv_lib_gcc____chkstk = yes; then
15613
15614 cat >>confdefs.h <<\_ACEOF
15615 #define HAVE____CHKSTK 1
15616 _ACEOF
15617
15618 fi
15619
15620   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15621 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15622 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15623   echo $ECHO_N "(cached) $ECHO_C" >&6
15624 else
15625   ac_check_lib_save_LIBS=$LIBS
15626 LIBS="-lgcc  $LIBS"
15627 cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633
15634 /* Override any GCC internal prototype to avoid an error.
15635    Use char because int might match the return type of a GCC
15636    builtin and then its argument prototype would still apply.  */
15637 #ifdef __cplusplus
15638 extern "C"
15639 #endif
15640 char ___chkstk_ms ();
15641 int
15642 main ()
15643 {
15644 return ___chkstk_ms ();
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (ac_try="$ac_link"
15651 case "(($ac_try" in
15652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653   *) ac_try_echo=$ac_try;;
15654 esac
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656   (eval "$ac_link") 2>conftest.er1
15657   ac_status=$?
15658   grep -v '^ *+' conftest.er1 >conftest.err
15659   rm -f conftest.er1
15660   cat conftest.err >&5
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); } &&
15663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15664   { (case "(($ac_try" in
15665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666   *) ac_try_echo=$ac_try;;
15667 esac
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669   (eval "$ac_try") 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; } &&
15673          { ac_try='test -s conftest$ac_exeext'
15674   { (case "(($ac_try" in
15675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676   *) ac_try_echo=$ac_try;;
15677 esac
15678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679   (eval "$ac_try") 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; }; then
15683   ac_cv_lib_gcc____chkstk_ms=yes
15684 else
15685   echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15687
15688         ac_cv_lib_gcc____chkstk_ms=no
15689 fi
15690
15691 rm -f core conftest.err conftest.$ac_objext \
15692       conftest$ac_exeext conftest.$ac_ext
15693 LIBS=$ac_check_lib_save_LIBS
15694 fi
15695 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15696 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15697 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15698
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE____CHKSTK_MS 1
15701 _ACEOF
15702
15703 fi
15704
15705
15706   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15707 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15708 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   ac_check_lib_save_LIBS=$LIBS
15712 LIBS="-lgcc  $LIBS"
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h.  */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h.  */
15719
15720 /* Override any GCC internal prototype to avoid an error.
15721    Use char because int might match the return type of a GCC
15722    builtin and then its argument prototype would still apply.  */
15723 #ifdef __cplusplus
15724 extern "C"
15725 #endif
15726 char __ashldi3 ();
15727 int
15728 main ()
15729 {
15730 return __ashldi3 ();
15731   ;
15732   return 0;
15733 }
15734 _ACEOF
15735 rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (ac_try="$ac_link"
15737 case "(($ac_try" in
15738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739   *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742   (eval "$ac_link") 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } &&
15749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15750   { (case "(($ac_try" in
15751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752   *) ac_try_echo=$ac_try;;
15753 esac
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755   (eval "$ac_try") 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); }; } &&
15759          { ac_try='test -s conftest$ac_exeext'
15760   { (case "(($ac_try" in
15761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762   *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765   (eval "$ac_try") 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; }; then
15769   ac_cv_lib_gcc___ashldi3=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774         ac_cv_lib_gcc___ashldi3=no
15775 fi
15776
15777 rm -f core conftest.err conftest.$ac_objext \
15778       conftest$ac_exeext conftest.$ac_ext
15779 LIBS=$ac_check_lib_save_LIBS
15780 fi
15781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15782 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15783 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15784
15785 cat >>confdefs.h <<\_ACEOF
15786 #define HAVE___ASHLDI3 1
15787 _ACEOF
15788
15789 fi
15790
15791   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15792 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15793 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   ac_check_lib_save_LIBS=$LIBS
15797 LIBS="-lgcc  $LIBS"
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h.  */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h.  */
15804
15805 /* Override any GCC internal prototype to avoid an error.
15806    Use char because int might match the return type of a GCC
15807    builtin and then its argument prototype would still apply.  */
15808 #ifdef __cplusplus
15809 extern "C"
15810 #endif
15811 char __ashrdi3 ();
15812 int
15813 main ()
15814 {
15815 return __ashrdi3 ();
15816   ;
15817   return 0;
15818 }
15819 _ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824   *) ac_try_echo=$ac_try;;
15825 esac
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827   (eval "$ac_link") 2>conftest.er1
15828   ac_status=$?
15829   grep -v '^ *+' conftest.er1 >conftest.err
15830   rm -f conftest.er1
15831   cat conftest.err >&5
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); } &&
15834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15835   { (case "(($ac_try" in
15836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837   *) ac_try_echo=$ac_try;;
15838 esac
15839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840   (eval "$ac_try") 2>&5
15841   ac_status=$?
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); }; } &&
15844          { ac_try='test -s conftest$ac_exeext'
15845   { (case "(($ac_try" in
15846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847   *) ac_try_echo=$ac_try;;
15848 esac
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850   (eval "$ac_try") 2>&5
15851   ac_status=$?
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); }; }; then
15854   ac_cv_lib_gcc___ashrdi3=yes
15855 else
15856   echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859         ac_cv_lib_gcc___ashrdi3=no
15860 fi
15861
15862 rm -f core conftest.err conftest.$ac_objext \
15863       conftest$ac_exeext conftest.$ac_ext
15864 LIBS=$ac_check_lib_save_LIBS
15865 fi
15866 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15867 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15868 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15869
15870 cat >>confdefs.h <<\_ACEOF
15871 #define HAVE___ASHRDI3 1
15872 _ACEOF
15873
15874 fi
15875
15876   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15877 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15878 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15879   echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881   ac_check_lib_save_LIBS=$LIBS
15882 LIBS="-lgcc  $LIBS"
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h.  */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h.  */
15889
15890 /* Override any GCC internal prototype to avoid an error.
15891    Use char because int might match the return type of a GCC
15892    builtin and then its argument prototype would still apply.  */
15893 #ifdef __cplusplus
15894 extern "C"
15895 #endif
15896 char __divdi3 ();
15897 int
15898 main ()
15899 {
15900 return __divdi3 ();
15901   ;
15902   return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (ac_try="$ac_link"
15907 case "(($ac_try" in
15908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909   *) ac_try_echo=$ac_try;;
15910 esac
15911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912   (eval "$ac_link") 2>conftest.er1
15913   ac_status=$?
15914   grep -v '^ *+' conftest.er1 >conftest.err
15915   rm -f conftest.er1
15916   cat conftest.err >&5
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); } &&
15919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15920   { (case "(($ac_try" in
15921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922   *) ac_try_echo=$ac_try;;
15923 esac
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925   (eval "$ac_try") 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; } &&
15929          { ac_try='test -s conftest$ac_exeext'
15930   { (case "(($ac_try" in
15931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932   *) ac_try_echo=$ac_try;;
15933 esac
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935   (eval "$ac_try") 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); }; }; then
15939   ac_cv_lib_gcc___divdi3=yes
15940 else
15941   echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15943
15944         ac_cv_lib_gcc___divdi3=no
15945 fi
15946
15947 rm -f core conftest.err conftest.$ac_objext \
15948       conftest$ac_exeext conftest.$ac_ext
15949 LIBS=$ac_check_lib_save_LIBS
15950 fi
15951 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15952 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15953 if test $ac_cv_lib_gcc___divdi3 = yes; then
15954
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE___DIVDI3 1
15957 _ACEOF
15958
15959 fi
15960
15961   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15962 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15963 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15964   echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966   ac_check_lib_save_LIBS=$LIBS
15967 LIBS="-lgcc  $LIBS"
15968 cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974
15975 /* Override any GCC internal prototype to avoid an error.
15976    Use char because int might match the return type of a GCC
15977    builtin and then its argument prototype would still apply.  */
15978 #ifdef __cplusplus
15979 extern "C"
15980 #endif
15981 char __fixdfdi ();
15982 int
15983 main ()
15984 {
15985 return __fixdfdi ();
15986   ;
15987   return 0;
15988 }
15989 _ACEOF
15990 rm -f conftest.$ac_objext conftest$ac_exeext
15991 if { (ac_try="$ac_link"
15992 case "(($ac_try" in
15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994   *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997   (eval "$ac_link") 2>conftest.er1
15998   ac_status=$?
15999   grep -v '^ *+' conftest.er1 >conftest.err
16000   rm -f conftest.er1
16001   cat conftest.err >&5
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); } &&
16004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16005   { (case "(($ac_try" in
16006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007   *) ac_try_echo=$ac_try;;
16008 esac
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010   (eval "$ac_try") 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); }; } &&
16014          { ac_try='test -s conftest$ac_exeext'
16015   { (case "(($ac_try" in
16016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017   *) ac_try_echo=$ac_try;;
16018 esac
16019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020   (eval "$ac_try") 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; }; then
16024   ac_cv_lib_gcc___fixdfdi=yes
16025 else
16026   echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16028
16029         ac_cv_lib_gcc___fixdfdi=no
16030 fi
16031
16032 rm -f core conftest.err conftest.$ac_objext \
16033       conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16035 fi
16036 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16037 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16038 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16039
16040 cat >>confdefs.h <<\_ACEOF
16041 #define HAVE___FIXDFDI 1
16042 _ACEOF
16043
16044 fi
16045
16046   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16047 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16048 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16049   echo $ECHO_N "(cached) $ECHO_C" >&6
16050 else
16051   ac_check_lib_save_LIBS=$LIBS
16052 LIBS="-lgcc  $LIBS"
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059
16060 /* Override any GCC internal prototype to avoid an error.
16061    Use char because int might match the return type of a GCC
16062    builtin and then its argument prototype would still apply.  */
16063 #ifdef __cplusplus
16064 extern "C"
16065 #endif
16066 char __fixsfdi ();
16067 int
16068 main ()
16069 {
16070 return __fixsfdi ();
16071   ;
16072   return 0;
16073 }
16074 _ACEOF
16075 rm -f conftest.$ac_objext conftest$ac_exeext
16076 if { (ac_try="$ac_link"
16077 case "(($ac_try" in
16078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079   *) ac_try_echo=$ac_try;;
16080 esac
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082   (eval "$ac_link") 2>conftest.er1
16083   ac_status=$?
16084   grep -v '^ *+' conftest.er1 >conftest.err
16085   rm -f conftest.er1
16086   cat conftest.err >&5
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); } &&
16089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16090   { (case "(($ac_try" in
16091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092   *) ac_try_echo=$ac_try;;
16093 esac
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095   (eval "$ac_try") 2>&5
16096   ac_status=$?
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); }; } &&
16099          { ac_try='test -s conftest$ac_exeext'
16100   { (case "(($ac_try" in
16101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102   *) ac_try_echo=$ac_try;;
16103 esac
16104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105   (eval "$ac_try") 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   ac_cv_lib_gcc___fixsfdi=yes
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114         ac_cv_lib_gcc___fixsfdi=no
16115 fi
16116
16117 rm -f core conftest.err conftest.$ac_objext \
16118       conftest$ac_exeext conftest.$ac_ext
16119 LIBS=$ac_check_lib_save_LIBS
16120 fi
16121 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16122 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16123 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16124
16125 cat >>confdefs.h <<\_ACEOF
16126 #define HAVE___FIXSFDI 1
16127 _ACEOF
16128
16129 fi
16130
16131   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16132 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16133 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16134   echo $ECHO_N "(cached) $ECHO_C" >&6
16135 else
16136   ac_check_lib_save_LIBS=$LIBS
16137 LIBS="-lgcc  $LIBS"
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h.  */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h.  */
16144
16145 /* Override any GCC internal prototype to avoid an error.
16146    Use char because int might match the return type of a GCC
16147    builtin and then its argument prototype would still apply.  */
16148 #ifdef __cplusplus
16149 extern "C"
16150 #endif
16151 char __floatdidf ();
16152 int
16153 main ()
16154 {
16155 return __floatdidf ();
16156   ;
16157   return 0;
16158 }
16159 _ACEOF
16160 rm -f conftest.$ac_objext conftest$ac_exeext
16161 if { (ac_try="$ac_link"
16162 case "(($ac_try" in
16163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164   *) ac_try_echo=$ac_try;;
16165 esac
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167   (eval "$ac_link") 2>conftest.er1
16168   ac_status=$?
16169   grep -v '^ *+' conftest.er1 >conftest.err
16170   rm -f conftest.er1
16171   cat conftest.err >&5
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); } &&
16174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16175   { (case "(($ac_try" in
16176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177   *) ac_try_echo=$ac_try;;
16178 esac
16179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16180   (eval "$ac_try") 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; } &&
16184          { ac_try='test -s conftest$ac_exeext'
16185   { (case "(($ac_try" in
16186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187   *) ac_try_echo=$ac_try;;
16188 esac
16189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190   (eval "$ac_try") 2>&5
16191   ac_status=$?
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); }; }; then
16194   ac_cv_lib_gcc___floatdidf=yes
16195 else
16196   echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16198
16199         ac_cv_lib_gcc___floatdidf=no
16200 fi
16201
16202 rm -f core conftest.err conftest.$ac_objext \
16203       conftest$ac_exeext conftest.$ac_ext
16204 LIBS=$ac_check_lib_save_LIBS
16205 fi
16206 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16207 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16208 if test $ac_cv_lib_gcc___floatdidf = yes; then
16209
16210 cat >>confdefs.h <<\_ACEOF
16211 #define HAVE___FLOATDIDF 1
16212 _ACEOF
16213
16214 fi
16215
16216   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16217 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16218 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16219   echo $ECHO_N "(cached) $ECHO_C" >&6
16220 else
16221   ac_check_lib_save_LIBS=$LIBS
16222 LIBS="-lgcc  $LIBS"
16223 cat >conftest.$ac_ext <<_ACEOF
16224 /* confdefs.h.  */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h.  */
16229
16230 /* Override any GCC internal prototype to avoid an error.
16231    Use char because int might match the return type of a GCC
16232    builtin and then its argument prototype would still apply.  */
16233 #ifdef __cplusplus
16234 extern "C"
16235 #endif
16236 char __lshrdi3 ();
16237 int
16238 main ()
16239 {
16240 return __lshrdi3 ();
16241   ;
16242   return 0;
16243 }
16244 _ACEOF
16245 rm -f conftest.$ac_objext conftest$ac_exeext
16246 if { (ac_try="$ac_link"
16247 case "(($ac_try" in
16248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249   *) ac_try_echo=$ac_try;;
16250 esac
16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252   (eval "$ac_link") 2>conftest.er1
16253   ac_status=$?
16254   grep -v '^ *+' conftest.er1 >conftest.err
16255   rm -f conftest.er1
16256   cat conftest.err >&5
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); } &&
16259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16260   { (case "(($ac_try" in
16261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262   *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265   (eval "$ac_try") 2>&5
16266   ac_status=$?
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); }; } &&
16269          { ac_try='test -s conftest$ac_exeext'
16270   { (case "(($ac_try" in
16271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272   *) ac_try_echo=$ac_try;;
16273 esac
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275   (eval "$ac_try") 2>&5
16276   ac_status=$?
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); }; }; then
16279   ac_cv_lib_gcc___lshrdi3=yes
16280 else
16281   echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16283
16284         ac_cv_lib_gcc___lshrdi3=no
16285 fi
16286
16287 rm -f core conftest.err conftest.$ac_objext \
16288       conftest$ac_exeext conftest.$ac_ext
16289 LIBS=$ac_check_lib_save_LIBS
16290 fi
16291 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16292 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16293 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16294
16295 cat >>confdefs.h <<\_ACEOF
16296 #define HAVE___LSHRDI3 1
16297 _ACEOF
16298
16299 fi
16300
16301   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16302 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16303 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306   ac_check_lib_save_LIBS=$LIBS
16307 LIBS="-lgcc  $LIBS"
16308 cat >conftest.$ac_ext <<_ACEOF
16309 /* confdefs.h.  */
16310 _ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h.  */
16314
16315 /* Override any GCC internal prototype to avoid an error.
16316    Use char because int might match the return type of a GCC
16317    builtin and then its argument prototype would still apply.  */
16318 #ifdef __cplusplus
16319 extern "C"
16320 #endif
16321 char __moddi3 ();
16322 int
16323 main ()
16324 {
16325 return __moddi3 ();
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (ac_try="$ac_link"
16332 case "(($ac_try" in
16333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334   *) ac_try_echo=$ac_try;;
16335 esac
16336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337   (eval "$ac_link") 2>conftest.er1
16338   ac_status=$?
16339   grep -v '^ *+' conftest.er1 >conftest.err
16340   rm -f conftest.er1
16341   cat conftest.err >&5
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); } &&
16344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345   { (case "(($ac_try" in
16346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347   *) ac_try_echo=$ac_try;;
16348 esac
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350   (eval "$ac_try") 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; } &&
16354          { ac_try='test -s conftest$ac_exeext'
16355   { (case "(($ac_try" in
16356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357   *) ac_try_echo=$ac_try;;
16358 esac
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360   (eval "$ac_try") 2>&5
16361   ac_status=$?
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); }; }; then
16364   ac_cv_lib_gcc___moddi3=yes
16365 else
16366   echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16368
16369         ac_cv_lib_gcc___moddi3=no
16370 fi
16371
16372 rm -f core conftest.err conftest.$ac_objext \
16373       conftest$ac_exeext conftest.$ac_ext
16374 LIBS=$ac_check_lib_save_LIBS
16375 fi
16376 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16377 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16378 if test $ac_cv_lib_gcc___moddi3 = yes; then
16379
16380 cat >>confdefs.h <<\_ACEOF
16381 #define HAVE___MODDI3 1
16382 _ACEOF
16383
16384 fi
16385
16386   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16387 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16388 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16389   echo $ECHO_N "(cached) $ECHO_C" >&6
16390 else
16391   ac_check_lib_save_LIBS=$LIBS
16392 LIBS="-lgcc  $LIBS"
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h.  */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h.  */
16399
16400 /* Override any GCC internal prototype to avoid an error.
16401    Use char because int might match the return type of a GCC
16402    builtin and then its argument prototype would still apply.  */
16403 #ifdef __cplusplus
16404 extern "C"
16405 #endif
16406 char __udivdi3 ();
16407 int
16408 main ()
16409 {
16410 return __udivdi3 ();
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (ac_try="$ac_link"
16417 case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_link") 2>conftest.er1
16423   ac_status=$?
16424   grep -v '^ *+' conftest.er1 >conftest.err
16425   rm -f conftest.er1
16426   cat conftest.err >&5
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); } &&
16429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16430   { (case "(($ac_try" in
16431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432   *) ac_try_echo=$ac_try;;
16433 esac
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435   (eval "$ac_try") 2>&5
16436   ac_status=$?
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); }; } &&
16439          { ac_try='test -s conftest$ac_exeext'
16440   { (case "(($ac_try" in
16441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442   *) ac_try_echo=$ac_try;;
16443 esac
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445   (eval "$ac_try") 2>&5
16446   ac_status=$?
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); }; }; then
16449   ac_cv_lib_gcc___udivdi3=yes
16450 else
16451   echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454         ac_cv_lib_gcc___udivdi3=no
16455 fi
16456
16457 rm -f core conftest.err conftest.$ac_objext \
16458       conftest$ac_exeext conftest.$ac_ext
16459 LIBS=$ac_check_lib_save_LIBS
16460 fi
16461 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16462 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16463 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16464
16465 cat >>confdefs.h <<\_ACEOF
16466 #define HAVE___UDIVDI3 1
16467 _ACEOF
16468
16469 fi
16470
16471   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16472 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16473 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16474   echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476   ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-lgcc  $LIBS"
16478 cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484
16485 /* Override any GCC internal prototype to avoid an error.
16486    Use char because int might match the return type of a GCC
16487    builtin and then its argument prototype would still apply.  */
16488 #ifdef __cplusplus
16489 extern "C"
16490 #endif
16491 char __umoddi3 ();
16492 int
16493 main ()
16494 {
16495 return __umoddi3 ();
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504   *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507   (eval "$ac_link") 2>conftest.er1
16508   ac_status=$?
16509   grep -v '^ *+' conftest.er1 >conftest.err
16510   rm -f conftest.er1
16511   cat conftest.err >&5
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); } &&
16514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515   { (case "(($ac_try" in
16516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517   *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520   (eval "$ac_try") 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; } &&
16524          { ac_try='test -s conftest$ac_exeext'
16525   { (case "(($ac_try" in
16526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527   *) ac_try_echo=$ac_try;;
16528 esac
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530   (eval "$ac_try") 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); }; }; then
16534   ac_cv_lib_gcc___umoddi3=yes
16535 else
16536   echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539         ac_cv_lib_gcc___umoddi3=no
16540 fi
16541
16542 rm -f core conftest.err conftest.$ac_objext \
16543       conftest$ac_exeext conftest.$ac_ext
16544 LIBS=$ac_check_lib_save_LIBS
16545 fi
16546 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16547 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16548 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16549
16550 cat >>confdefs.h <<\_ACEOF
16551 #define HAVE___UMODDI3 1
16552 _ACEOF
16553
16554 fi
16555
16556
16557   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16558 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16559 if test "${ac_cv_lib_gcc___main+set}" = set; then
16560   echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562   ac_check_lib_save_LIBS=$LIBS
16563 LIBS="-lgcc  $LIBS"
16564 cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h.  */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h.  */
16570
16571 /* Override any GCC internal prototype to avoid an error.
16572    Use char because int might match the return type of a GCC
16573    builtin and then its argument prototype would still apply.  */
16574 #ifdef __cplusplus
16575 extern "C"
16576 #endif
16577 char __main ();
16578 int
16579 main ()
16580 {
16581 return __main ();
16582   ;
16583   return 0;
16584 }
16585 _ACEOF
16586 rm -f conftest.$ac_objext conftest$ac_exeext
16587 if { (ac_try="$ac_link"
16588 case "(($ac_try" in
16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590   *) ac_try_echo=$ac_try;;
16591 esac
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593   (eval "$ac_link") 2>conftest.er1
16594   ac_status=$?
16595   grep -v '^ *+' conftest.er1 >conftest.err
16596   rm -f conftest.er1
16597   cat conftest.err >&5
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); } &&
16600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16601   { (case "(($ac_try" in
16602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603   *) ac_try_echo=$ac_try;;
16604 esac
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606   (eval "$ac_try") 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; } &&
16610          { ac_try='test -s conftest$ac_exeext'
16611   { (case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_try") 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; }; then
16620   ac_cv_lib_gcc___main=yes
16621 else
16622   echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16624
16625         ac_cv_lib_gcc___main=no
16626 fi
16627
16628 rm -f core conftest.err conftest.$ac_objext \
16629       conftest$ac_exeext conftest.$ac_ext
16630 LIBS=$ac_check_lib_save_LIBS
16631 fi
16632 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16633 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16634 if test $ac_cv_lib_gcc___main = yes; then
16635
16636 cat >>confdefs.h <<\_ACEOF
16637 #define HAVE___MAIN 1
16638 _ACEOF
16639
16640 fi
16641
16642   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16643 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16644 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16645   echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647   ac_check_lib_save_LIBS=$LIBS
16648 LIBS="-lgcc  $LIBS"
16649 cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655
16656 /* Override any GCC internal prototype to avoid an error.
16657    Use char because int might match the return type of a GCC
16658    builtin and then its argument prototype would still apply.  */
16659 #ifdef __cplusplus
16660 extern "C"
16661 #endif
16662 char __cmpdi2 ();
16663 int
16664 main ()
16665 {
16666 return __cmpdi2 ();
16667   ;
16668   return 0;
16669 }
16670 _ACEOF
16671 rm -f conftest.$ac_objext conftest$ac_exeext
16672 if { (ac_try="$ac_link"
16673 case "(($ac_try" in
16674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675   *) ac_try_echo=$ac_try;;
16676 esac
16677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678   (eval "$ac_link") 2>conftest.er1
16679   ac_status=$?
16680   grep -v '^ *+' conftest.er1 >conftest.err
16681   rm -f conftest.er1
16682   cat conftest.err >&5
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); } &&
16685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16686   { (case "(($ac_try" in
16687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688   *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691   (eval "$ac_try") 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); }; } &&
16695          { ac_try='test -s conftest$ac_exeext'
16696   { (case "(($ac_try" in
16697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698   *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701   (eval "$ac_try") 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; }; then
16705   ac_cv_lib_gcc___cmpdi2=yes
16706 else
16707   echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710         ac_cv_lib_gcc___cmpdi2=no
16711 fi
16712
16713 rm -f core conftest.err conftest.$ac_objext \
16714       conftest$ac_exeext conftest.$ac_ext
16715 LIBS=$ac_check_lib_save_LIBS
16716 fi
16717 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16718 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16719 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16720
16721 cat >>confdefs.h <<\_ACEOF
16722 #define HAVE___CMPDI2 1
16723 _ACEOF
16724
16725 fi
16726
16727 fi
16728
16729 if test "$llvm_cv_os_type" = "MingW" ; then
16730   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16731 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16732   cat >conftest.$ac_ext <<_ACEOF
16733
16734   /* confdefs.h.  */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h.  */
16739
16740     #include <windows.h>
16741     #include <imagehlp.h>
16742     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16743     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16744
16745
16746 _ACEOF
16747 rm -f conftest.$ac_objext
16748 if { (ac_try="$ac_compile"
16749 case "(($ac_try" in
16750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751   *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754   (eval "$ac_compile") 2>conftest.er1
16755   ac_status=$?
16756   grep -v '^ *+' conftest.er1 >conftest.err
16757   rm -f conftest.er1
16758   cat conftest.err >&5
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); } &&
16761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16762   { (case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_try") 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; } &&
16771          { ac_try='test -s conftest.$ac_objext'
16772   { (case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_try") 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); }; }; then
16781
16782   { echo "$as_me:$LINENO: result: yes" >&5
16783 echo "${ECHO_T}yes" >&6; }
16784   llvm_cv_win32_elmcb_pcstr="PCSTR"
16785
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790
16791   { echo "$as_me:$LINENO: result: no" >&5
16792 echo "${ECHO_T}no" >&6; }
16793   llvm_cv_win32_elmcb_pcstr="PSTR"
16794
16795 fi
16796
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798
16799 cat >>confdefs.h <<_ACEOF
16800 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16801 _ACEOF
16802
16803 fi
16804
16805
16806
16807   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16808 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16809 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16810   echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812
16813     ac_ext=cpp
16814 ac_cpp='$CXXCPP $CPPFLAGS'
16815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16818
16819     cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h.  */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h.  */
16825 #include <math.h>
16826 int
16827 main ()
16828 {
16829 float f; isnan(f);
16830   ;
16831   return 0;
16832 }
16833 _ACEOF
16834 rm -f conftest.$ac_objext
16835 if { (ac_try="$ac_compile"
16836 case "(($ac_try" in
16837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838   *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841   (eval "$ac_compile") 2>conftest.er1
16842   ac_status=$?
16843   grep -v '^ *+' conftest.er1 >conftest.err
16844   rm -f conftest.er1
16845   cat conftest.err >&5
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); } &&
16848          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16849   { (case "(($ac_try" in
16850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851   *) ac_try_echo=$ac_try;;
16852 esac
16853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854   (eval "$ac_try") 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; } &&
16858          { ac_try='test -s conftest.$ac_objext'
16859   { (case "(($ac_try" in
16860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861   *) ac_try_echo=$ac_try;;
16862 esac
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864   (eval "$ac_try") 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); }; }; then
16868   ac_cv_func_isnan_in_math_h=yes
16869 else
16870   echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873         ac_cv_func_isnan_in_math_h=no
16874 fi
16875
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877     ac_ext=c
16878 ac_cpp='$CPP $CPPFLAGS'
16879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16882
16883
16884 fi
16885 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16886 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16887
16888
16889 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16890
16891 cat >>confdefs.h <<\_ACEOF
16892 #define HAVE_ISNAN_IN_MATH_H 1
16893 _ACEOF
16894
16895 fi
16896
16897
16898   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16899 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16900 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16901   echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903
16904     ac_ext=cpp
16905 ac_cpp='$CXXCPP $CPPFLAGS'
16906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16909
16910     cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h.  */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h.  */
16916 #include <cmath>
16917 int
16918 main ()
16919 {
16920 float f; isnan(f);
16921   ;
16922   return 0;
16923 }
16924 _ACEOF
16925 rm -f conftest.$ac_objext
16926 if { (ac_try="$ac_compile"
16927 case "(($ac_try" in
16928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929   *) ac_try_echo=$ac_try;;
16930 esac
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932   (eval "$ac_compile") 2>conftest.er1
16933   ac_status=$?
16934   grep -v '^ *+' conftest.er1 >conftest.err
16935   rm -f conftest.er1
16936   cat conftest.err >&5
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); } &&
16939          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16940   { (case "(($ac_try" in
16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942   *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945   (eval "$ac_try") 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; } &&
16949          { ac_try='test -s conftest.$ac_objext'
16950   { (case "(($ac_try" in
16951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952   *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955   (eval "$ac_try") 2>&5
16956   ac_status=$?
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); }; }; then
16959   ac_cv_func_isnan_in_cmath=yes
16960 else
16961   echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964         ac_cv_func_isnan_in_cmath=no
16965 fi
16966
16967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968     ac_ext=c
16969 ac_cpp='$CPP $CPPFLAGS'
16970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16973
16974
16975 fi
16976 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16977 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16978
16979 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16980
16981 cat >>confdefs.h <<\_ACEOF
16982 #define HAVE_ISNAN_IN_CMATH 1
16983 _ACEOF
16984
16985 fi
16986
16987
16988   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16989 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16990 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16991   echo $ECHO_N "(cached) $ECHO_C" >&6
16992 else
16993
16994     ac_ext=cpp
16995 ac_cpp='$CXXCPP $CPPFLAGS'
16996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16999
17000     cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h.  */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h.  */
17006 #include <cmath>
17007 int
17008 main ()
17009 {
17010 float f; std::isnan(f);
17011   ;
17012   return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext
17016 if { (ac_try="$ac_compile"
17017 case "(($ac_try" in
17018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019   *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022   (eval "$ac_compile") 2>conftest.er1
17023   ac_status=$?
17024   grep -v '^ *+' conftest.er1 >conftest.err
17025   rm -f conftest.er1
17026   cat conftest.err >&5
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); } &&
17029          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17030   { (case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035   (eval "$ac_try") 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); }; } &&
17039          { ac_try='test -s conftest.$ac_objext'
17040   { (case "(($ac_try" in
17041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042   *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045   (eval "$ac_try") 2>&5
17046   ac_status=$?
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); }; }; then
17049   ac_cv_func_std_isnan_in_cmath=yes
17050 else
17051   echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17053
17054         ac_cv_func_std_isnan_in_cmath=no
17055 fi
17056
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17058     ac_ext=c
17059 ac_cpp='$CPP $CPPFLAGS'
17060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17063
17064
17065 fi
17066 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17067 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17068
17069 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17070
17071 cat >>confdefs.h <<\_ACEOF
17072 #define HAVE_STD_ISNAN_IN_CMATH 1
17073 _ACEOF
17074
17075 fi
17076
17077
17078
17079
17080   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17081 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17082 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17083   echo $ECHO_N "(cached) $ECHO_C" >&6
17084 else
17085
17086     ac_ext=cpp
17087 ac_cpp='$CXXCPP $CPPFLAGS'
17088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17091
17092     cat >conftest.$ac_ext <<_ACEOF
17093 /* confdefs.h.  */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h.  */
17098 #include <math.h>
17099 int
17100 main ()
17101 {
17102 float f; isinf(f);
17103   ;
17104   return 0;
17105 }
17106 _ACEOF
17107 rm -f conftest.$ac_objext
17108 if { (ac_try="$ac_compile"
17109 case "(($ac_try" in
17110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111   *) ac_try_echo=$ac_try;;
17112 esac
17113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114   (eval "$ac_compile") 2>conftest.er1
17115   ac_status=$?
17116   grep -v '^ *+' conftest.er1 >conftest.err
17117   rm -f conftest.er1
17118   cat conftest.err >&5
17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120   (exit $ac_status); } &&
17121          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17122   { (case "(($ac_try" in
17123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124   *) ac_try_echo=$ac_try;;
17125 esac
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127   (eval "$ac_try") 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); }; } &&
17131          { ac_try='test -s conftest.$ac_objext'
17132   { (case "(($ac_try" in
17133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134   *) ac_try_echo=$ac_try;;
17135 esac
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137   (eval "$ac_try") 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; }; then
17141   ac_cv_func_isinf_in_math_h=yes
17142 else
17143   echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146         ac_cv_func_isinf_in_math_h=no
17147 fi
17148
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150     ac_ext=c
17151 ac_cpp='$CPP $CPPFLAGS'
17152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17155
17156
17157 fi
17158 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17159 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17160
17161 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17162
17163 cat >>confdefs.h <<\_ACEOF
17164 #define HAVE_ISINF_IN_MATH_H 1
17165 _ACEOF
17166
17167 fi
17168
17169
17170   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17171 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17172 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17173   echo $ECHO_N "(cached) $ECHO_C" >&6
17174 else
17175
17176     ac_ext=cpp
17177 ac_cpp='$CXXCPP $CPPFLAGS'
17178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17181
17182     cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h.  */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h.  */
17188 #include <cmath>
17189 int
17190 main ()
17191 {
17192 float f; isinf(f);
17193   ;
17194   return 0;
17195 }
17196 _ACEOF
17197 rm -f conftest.$ac_objext
17198 if { (ac_try="$ac_compile"
17199 case "(($ac_try" in
17200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201   *) ac_try_echo=$ac_try;;
17202 esac
17203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204   (eval "$ac_compile") 2>conftest.er1
17205   ac_status=$?
17206   grep -v '^ *+' conftest.er1 >conftest.err
17207   rm -f conftest.er1
17208   cat conftest.err >&5
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } &&
17211          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17212   { (case "(($ac_try" in
17213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214   *) ac_try_echo=$ac_try;;
17215 esac
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217   (eval "$ac_try") 2>&5
17218   ac_status=$?
17219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220   (exit $ac_status); }; } &&
17221          { ac_try='test -s conftest.$ac_objext'
17222   { (case "(($ac_try" in
17223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224   *) ac_try_echo=$ac_try;;
17225 esac
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227   (eval "$ac_try") 2>&5
17228   ac_status=$?
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); }; }; then
17231   ac_cv_func_isinf_in_cmath=yes
17232 else
17233   echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17235
17236         ac_cv_func_isinf_in_cmath=no
17237 fi
17238
17239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17240     ac_ext=c
17241 ac_cpp='$CPP $CPPFLAGS'
17242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17245
17246
17247 fi
17248 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17249 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17250
17251 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17252
17253 cat >>confdefs.h <<\_ACEOF
17254 #define HAVE_ISINF_IN_CMATH 1
17255 _ACEOF
17256
17257 fi
17258
17259
17260   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17261 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17262 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17263   echo $ECHO_N "(cached) $ECHO_C" >&6
17264 else
17265
17266     ac_ext=cpp
17267 ac_cpp='$CXXCPP $CPPFLAGS'
17268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17271
17272     cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h.  */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h.  */
17278 #include <cmath>
17279 int
17280 main ()
17281 {
17282 float f; std::isinf(f);
17283   ;
17284   return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext
17288 if { (ac_try="$ac_compile"
17289 case "(($ac_try" in
17290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291   *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294   (eval "$ac_compile") 2>conftest.er1
17295   ac_status=$?
17296   grep -v '^ *+' conftest.er1 >conftest.err
17297   rm -f conftest.er1
17298   cat conftest.err >&5
17299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300   (exit $ac_status); } &&
17301          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17302   { (case "(($ac_try" in
17303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304   *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307   (eval "$ac_try") 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; } &&
17311          { ac_try='test -s conftest.$ac_objext'
17312   { (case "(($ac_try" in
17313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314   *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317   (eval "$ac_try") 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); }; }; then
17321   ac_cv_func_std_isinf_in_cmath=yes
17322 else
17323   echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17325
17326         ac_cv_func_std_isinf_in_cmath=no
17327 fi
17328
17329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17330     ac_ext=c
17331 ac_cpp='$CPP $CPPFLAGS'
17332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17335
17336
17337 fi
17338 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17339 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17340
17341 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17342
17343 cat >>confdefs.h <<\_ACEOF
17344 #define HAVE_STD_ISINF_IN_CMATH 1
17345 _ACEOF
17346
17347 fi
17348
17349
17350   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17351 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17352 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17353   echo $ECHO_N "(cached) $ECHO_C" >&6
17354 else
17355
17356     ac_ext=cpp
17357 ac_cpp='$CXXCPP $CPPFLAGS'
17358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17361
17362     cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h.  */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h.  */
17368 #include <ieeefp.h>
17369 int
17370 main ()
17371 {
17372 float f; finite(f);
17373   ;
17374   return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext
17378 if { (ac_try="$ac_compile"
17379 case "(($ac_try" in
17380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381   *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384   (eval "$ac_compile") 2>conftest.er1
17385   ac_status=$?
17386   grep -v '^ *+' conftest.er1 >conftest.err
17387   rm -f conftest.er1
17388   cat conftest.err >&5
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); } &&
17391          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17392   { (case "(($ac_try" in
17393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394   *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397   (eval "$ac_try") 2>&5
17398   ac_status=$?
17399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   (exit $ac_status); }; } &&
17401          { ac_try='test -s conftest.$ac_objext'
17402   { (case "(($ac_try" in
17403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404   *) ac_try_echo=$ac_try;;
17405 esac
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407   (eval "$ac_try") 2>&5
17408   ac_status=$?
17409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410   (exit $ac_status); }; }; then
17411   ac_cv_func_finite_in_ieeefp_h=yes
17412 else
17413   echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17415
17416         ac_cv_func_finite_in_ieeefp_h=no
17417 fi
17418
17419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420     ac_ext=c
17421 ac_cpp='$CPP $CPPFLAGS'
17422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17425
17426
17427 fi
17428 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17429 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17430
17431 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17432
17433 cat >>confdefs.h <<\_ACEOF
17434 #define HAVE_FINITE_IN_IEEEFP_H 1
17435 _ACEOF
17436
17437 fi
17438
17439
17440
17441 if test "$llvm_cv_platform_type" = "Unix" ; then
17442
17443
17444 for ac_header in stdlib.h unistd.h
17445 do
17446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17448   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17451   echo $ECHO_N "(cached) $ECHO_C" >&6
17452 fi
17453 ac_res=`eval echo '${'$as_ac_Header'}'`
17454                { echo "$as_me:$LINENO: result: $ac_res" >&5
17455 echo "${ECHO_T}$ac_res" >&6; }
17456 else
17457   # Is the header compilable?
17458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17460 cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h.  */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h.  */
17466 $ac_includes_default
17467 #include <$ac_header>
17468 _ACEOF
17469 rm -f conftest.$ac_objext
17470 if { (ac_try="$ac_compile"
17471 case "(($ac_try" in
17472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473   *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476   (eval "$ac_compile") 2>conftest.er1
17477   ac_status=$?
17478   grep -v '^ *+' conftest.er1 >conftest.err
17479   rm -f conftest.er1
17480   cat conftest.err >&5
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); } &&
17483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17484   { (case "(($ac_try" in
17485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486   *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489   (eval "$ac_try") 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); }; } &&
17493          { ac_try='test -s conftest.$ac_objext'
17494   { (case "(($ac_try" in
17495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496   *) ac_try_echo=$ac_try;;
17497 esac
17498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499   (eval "$ac_try") 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; }; then
17503   ac_header_compiler=yes
17504 else
17505   echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508         ac_header_compiler=no
17509 fi
17510
17511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17513 echo "${ECHO_T}$ac_header_compiler" >&6; }
17514
17515 # Is the header present?
17516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17518 cat >conftest.$ac_ext <<_ACEOF
17519 /* confdefs.h.  */
17520 _ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h.  */
17524 #include <$ac_header>
17525 _ACEOF
17526 if { (ac_try="$ac_cpp conftest.$ac_ext"
17527 case "(($ac_try" in
17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529   *) ac_try_echo=$ac_try;;
17530 esac
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } >/dev/null; then
17539   if test -s conftest.err; then
17540     ac_cpp_err=$ac_c_preproc_warn_flag
17541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17542   else
17543     ac_cpp_err=
17544   fi
17545 else
17546   ac_cpp_err=yes
17547 fi
17548 if test -z "$ac_cpp_err"; then
17549   ac_header_preproc=yes
17550 else
17551   echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17553
17554   ac_header_preproc=no
17555 fi
17556
17557 rm -f conftest.err conftest.$ac_ext
17558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17559 echo "${ECHO_T}$ac_header_preproc" >&6; }
17560
17561 # So?  What about this header?
17562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17563   yes:no: )
17564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17568     ac_header_preproc=yes
17569     ;;
17570   no:yes:* )
17571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17583     ( cat <<\_ASBOX
17584 ## ------------------------------------ ##
17585 ## Report this to http://llvm.org/bugs/ ##
17586 ## ------------------------------------ ##
17587 _ASBOX
17588      ) | sed "s/^/$as_me: WARNING:     /" >&2
17589     ;;
17590 esac
17591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17594   echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596   eval "$as_ac_Header=\$ac_header_preproc"
17597 fi
17598 ac_res=`eval echo '${'$as_ac_Header'}'`
17599                { echo "$as_me:$LINENO: result: $ac_res" >&5
17600 echo "${ECHO_T}$ac_res" >&6; }
17601
17602 fi
17603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17604   cat >>confdefs.h <<_ACEOF
17605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17606 _ACEOF
17607
17608 fi
17609
17610 done
17611
17612
17613 for ac_func in getpagesize
17614 do
17615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17619   echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621   cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17629 #define $ac_func innocuous_$ac_func
17630
17631 /* System header to define __stub macros and hopefully few prototypes,
17632     which can conflict with char $ac_func (); below.
17633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17634     <limits.h> exists even on freestanding compilers.  */
17635
17636 #ifdef __STDC__
17637 # include <limits.h>
17638 #else
17639 # include <assert.h>
17640 #endif
17641
17642 #undef $ac_func
17643
17644 /* Override any GCC internal prototype to avoid an error.
17645    Use char because int might match the return type of a GCC
17646    builtin and then its argument prototype would still apply.  */
17647 #ifdef __cplusplus
17648 extern "C"
17649 #endif
17650 char $ac_func ();
17651 /* The GNU C library defines this for functions which it implements
17652     to always fail with ENOSYS.  Some functions are actually named
17653     something starting with __ and the normal name is an alias.  */
17654 #if defined __stub_$ac_func || defined __stub___$ac_func
17655 choke me
17656 #endif
17657
17658 int
17659 main ()
17660 {
17661 return $ac_func ();
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 rm -f conftest.$ac_objext conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_link") 2>conftest.er1
17674   ac_status=$?
17675   grep -v '^ *+' conftest.er1 >conftest.err
17676   rm -f conftest.er1
17677   cat conftest.err >&5
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); } &&
17680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17681   { (case "(($ac_try" in
17682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683   *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686   (eval "$ac_try") 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; } &&
17690          { ac_try='test -s conftest$ac_exeext'
17691   { (case "(($ac_try" in
17692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693   *) ac_try_echo=$ac_try;;
17694 esac
17695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17696   (eval "$ac_try") 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; }; then
17700   eval "$as_ac_var=yes"
17701 else
17702   echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705         eval "$as_ac_var=no"
17706 fi
17707
17708 rm -f core conftest.err conftest.$ac_objext \
17709       conftest$ac_exeext conftest.$ac_ext
17710 fi
17711 ac_res=`eval echo '${'$as_ac_var'}'`
17712                { echo "$as_me:$LINENO: result: $ac_res" >&5
17713 echo "${ECHO_T}$ac_res" >&6; }
17714 if test `eval echo '${'$as_ac_var'}'` = yes; then
17715   cat >>confdefs.h <<_ACEOF
17716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17717 _ACEOF
17718
17719 fi
17720 done
17721
17722 { echo "$as_me:$LINENO: checking for working mmap" >&5
17723 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17724 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   if test "$cross_compiling" = yes; then
17728   ac_cv_func_mmap_fixed_mapped=no
17729 else
17730   cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h.  */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h.  */
17736 $ac_includes_default
17737 /* malloc might have been renamed as rpl_malloc. */
17738 #undef malloc
17739
17740 /* Thanks to Mike Haertel and Jim Avera for this test.
17741    Here is a matrix of mmap possibilities:
17742         mmap private not fixed
17743         mmap private fixed at somewhere currently unmapped
17744         mmap private fixed at somewhere already mapped
17745         mmap shared not fixed
17746         mmap shared fixed at somewhere currently unmapped
17747         mmap shared fixed at somewhere already mapped
17748    For private mappings, we should verify that changes cannot be read()
17749    back from the file, nor mmap's back from the file at a different
17750    address.  (There have been systems where private was not correctly
17751    implemented like the infamous i386 svr4.0, and systems where the
17752    VM page cache was not coherent with the file system buffer cache
17753    like early versions of FreeBSD and possibly contemporary NetBSD.)
17754    For shared mappings, we should conversely verify that changes get
17755    propagated back to all the places they're supposed to be.
17756
17757    Grep wants private fixed already mapped.
17758    The main things grep needs to know about mmap are:
17759    * does it exist and is it safe to write into the mmap'd area
17760    * how to use it (BSD variants)  */
17761
17762 #include <fcntl.h>
17763 #include <sys/mman.h>
17764
17765 #if !STDC_HEADERS && !HAVE_STDLIB_H
17766 char *malloc ();
17767 #endif
17768
17769 /* This mess was copied from the GNU getpagesize.h.  */
17770 #if !HAVE_GETPAGESIZE
17771 /* Assume that all systems that can run configure have sys/param.h.  */
17772 # if !HAVE_SYS_PARAM_H
17773 #  define HAVE_SYS_PARAM_H 1
17774 # endif
17775
17776 # ifdef _SC_PAGESIZE
17777 #  define getpagesize() sysconf(_SC_PAGESIZE)
17778 # else /* no _SC_PAGESIZE */
17779 #  if HAVE_SYS_PARAM_H
17780 #   include <sys/param.h>
17781 #   ifdef EXEC_PAGESIZE
17782 #    define getpagesize() EXEC_PAGESIZE
17783 #   else /* no EXEC_PAGESIZE */
17784 #    ifdef NBPG
17785 #     define getpagesize() NBPG * CLSIZE
17786 #     ifndef CLSIZE
17787 #      define CLSIZE 1
17788 #     endif /* no CLSIZE */
17789 #    else /* no NBPG */
17790 #     ifdef NBPC
17791 #      define getpagesize() NBPC
17792 #     else /* no NBPC */
17793 #      ifdef PAGESIZE
17794 #       define getpagesize() PAGESIZE
17795 #      endif /* PAGESIZE */
17796 #     endif /* no NBPC */
17797 #    endif /* no NBPG */
17798 #   endif /* no EXEC_PAGESIZE */
17799 #  else /* no HAVE_SYS_PARAM_H */
17800 #   define getpagesize() 8192   /* punt totally */
17801 #  endif /* no HAVE_SYS_PARAM_H */
17802 # endif /* no _SC_PAGESIZE */
17803
17804 #endif /* no HAVE_GETPAGESIZE */
17805
17806 int
17807 main ()
17808 {
17809   char *data, *data2, *data3;
17810   int i, pagesize;
17811   int fd;
17812
17813   pagesize = getpagesize ();
17814
17815   /* First, make a file with some known garbage in it. */
17816   data = (char *) malloc (pagesize);
17817   if (!data)
17818     return 1;
17819   for (i = 0; i < pagesize; ++i)
17820     *(data + i) = rand ();
17821   umask (0);
17822   fd = creat ("conftest.mmap", 0600);
17823   if (fd < 0)
17824     return 1;
17825   if (write (fd, data, pagesize) != pagesize)
17826     return 1;
17827   close (fd);
17828
17829   /* Next, try to mmap the file at a fixed address which already has
17830      something else allocated at it.  If we can, also make sure that
17831      we see the same garbage.  */
17832   fd = open ("conftest.mmap", O_RDWR);
17833   if (fd < 0)
17834     return 1;
17835   data2 = (char *) malloc (2 * pagesize);
17836   if (!data2)
17837     return 1;
17838   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17839   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17840                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17841     return 1;
17842   for (i = 0; i < pagesize; ++i)
17843     if (*(data + i) != *(data2 + i))
17844       return 1;
17845
17846   /* Finally, make sure that changes to the mapped area do not
17847      percolate back to the file as seen by read().  (This is a bug on
17848      some variants of i386 svr4.0.)  */
17849   for (i = 0; i < pagesize; ++i)
17850     *(data2 + i) = *(data2 + i) + 1;
17851   data3 = (char *) malloc (pagesize);
17852   if (!data3)
17853     return 1;
17854   if (read (fd, data3, pagesize) != pagesize)
17855     return 1;
17856   for (i = 0; i < pagesize; ++i)
17857     if (*(data + i) != *(data3 + i))
17858       return 1;
17859   close (fd);
17860   return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest$ac_exeext
17864 if { (ac_try="$ac_link"
17865 case "(($ac_try" in
17866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867   *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870   (eval "$ac_link") 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17874   { (case "(($ac_try" in
17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876   *) ac_try_echo=$ac_try;;
17877 esac
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879   (eval "$ac_try") 2>&5
17880   ac_status=$?
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); }; }; then
17883   ac_cv_func_mmap_fixed_mapped=yes
17884 else
17885   echo "$as_me: program exited with status $ac_status" >&5
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17888
17889 ( exit $ac_status )
17890 ac_cv_func_mmap_fixed_mapped=no
17891 fi
17892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17893 fi
17894
17895
17896 fi
17897 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17898 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17899 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17900
17901 cat >>confdefs.h <<\_ACEOF
17902 #define HAVE_MMAP 1
17903 _ACEOF
17904
17905 fi
17906 rm -f conftest.mmap
17907
17908   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17909 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17910 if test "${ac_cv_func_mmap_file+set}" = set; then
17911   echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913    ac_ext=c
17914 ac_cpp='$CPP $CPPFLAGS'
17915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17918
17919   if test "$cross_compiling" = yes; then
17920   ac_cv_func_mmap_file=no
17921 else
17922   cat >conftest.$ac_ext <<_ACEOF
17923
17924     /* confdefs.h.  */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h.  */
17929
17930 #include <sys/types.h>
17931 #include <sys/mman.h>
17932 #include <fcntl.h>
17933
17934 int
17935 main ()
17936 {
17937
17938   int fd;
17939   fd = creat ("foo",0777);
17940   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17941   unlink ("foo");
17942   return (fd != (int) MAP_FAILED);
17943   ;
17944   return 0;
17945 }
17946 _ACEOF
17947 rm -f conftest$ac_exeext
17948 if { (ac_try="$ac_link"
17949 case "(($ac_try" in
17950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951   *) ac_try_echo=$ac_try;;
17952 esac
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954   (eval "$ac_link") 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17958   { (case "(($ac_try" in
17959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960   *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963   (eval "$ac_try") 2>&5
17964   ac_status=$?
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); }; }; then
17967   ac_cv_func_mmap_file=yes
17968 else
17969   echo "$as_me: program exited with status $ac_status" >&5
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 ( exit $ac_status )
17974 ac_cv_func_mmap_file=no
17975 fi
17976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17977 fi
17978
17979
17980   ac_ext=c
17981 ac_cpp='$CPP $CPPFLAGS'
17982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17985
17986
17987 fi
17988 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17989 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17990 if test "$ac_cv_func_mmap_file" = yes; then
17991
17992 cat >>confdefs.h <<\_ACEOF
17993 #define HAVE_MMAP_FILE
17994 _ACEOF
17995
17996    MMAP_FILE=yes
17997
17998 fi
17999
18000   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18001 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18002 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005   if test "$llvm_cv_os_type" = "Interix" ; then
18006    ac_cv_need_dev_zero_for_mmap=yes
18007  else
18008    ac_cv_need_dev_zero_for_mmap=no
18009  fi
18010
18011 fi
18012 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18013 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18014 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18015
18016 cat >>confdefs.h <<\_ACEOF
18017 #define NEED_DEV_ZERO_FOR_MMAP 1
18018 _ACEOF
18019
18020 fi
18021
18022   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18023   then
18024     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18025 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18026   fi
18027   if test "$ac_cv_func_mmap_file" = "no"
18028   then
18029     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18030 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18031   fi
18032 fi
18033
18034 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18035 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18036 ac_ext=cpp
18037 ac_cpp='$CXXCPP $CPPFLAGS'
18038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18041
18042 cat >conftest.$ac_ext <<_ACEOF
18043
18044   /* confdefs.h.  */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h.  */
18049
18050     int main() {
18051       volatile unsigned long val = 1;
18052       __sync_synchronize();
18053       __sync_val_compare_and_swap(&val, 1, 0);
18054       __sync_add_and_fetch(&val, 1);
18055       __sync_sub_and_fetch(&val, 1);
18056       return 0;
18057     }
18058
18059
18060 _ACEOF
18061 rm -f conftest.$ac_objext conftest$ac_exeext
18062 if { (ac_try="$ac_link"
18063 case "(($ac_try" in
18064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065   *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068   (eval "$ac_link") 2>conftest.er1
18069   ac_status=$?
18070   grep -v '^ *+' conftest.er1 >conftest.err
18071   rm -f conftest.er1
18072   cat conftest.err >&5
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); } &&
18075          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18076   { (case "(($ac_try" in
18077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078   *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081   (eval "$ac_try") 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); }; } &&
18085          { ac_try='test -s conftest$ac_exeext'
18086   { (case "(($ac_try" in
18087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088   *) ac_try_echo=$ac_try;;
18089 esac
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091   (eval "$ac_try") 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); }; }; then
18095
18096   { echo "$as_me:$LINENO: result: yes" >&5
18097 echo "${ECHO_T}yes" >&6; }
18098
18099 cat >>confdefs.h <<\_ACEOF
18100 #define LLVM_HAS_ATOMICS 1
18101 _ACEOF
18102
18103
18104 else
18105   echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108
18109   { echo "$as_me:$LINENO: result: no" >&5
18110 echo "${ECHO_T}no" >&6; }
18111
18112 cat >>confdefs.h <<\_ACEOF
18113 #define LLVM_HAS_ATOMICS 0
18114 _ACEOF
18115
18116   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18117 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18118
18119 fi
18120
18121 rm -f core conftest.err conftest.$ac_objext \
18122       conftest$ac_exeext conftest.$ac_ext
18123 ac_ext=c
18124 ac_cpp='$CPP $CPPFLAGS'
18125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18128
18129
18130
18131 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18132   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18133 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18134 if test "${llvm_cv_linux_mixed+set}" = set; then
18135   echo $ECHO_N "(cached) $ECHO_C" >&6
18136 else
18137    ac_ext=c
18138 ac_cpp='$CPP $CPPFLAGS'
18139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18142
18143   cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h.  */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h.  */
18149 #ifndef __x86_64__
18150        error: Not x86-64 even if uname says so!
18151       #endif
18152
18153 int
18154 main ()
18155 {
18156
18157   ;
18158   return 0;
18159 }
18160 _ACEOF
18161 rm -f conftest.$ac_objext
18162 if { (ac_try="$ac_compile"
18163 case "(($ac_try" in
18164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165   *) ac_try_echo=$ac_try;;
18166 esac
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168   (eval "$ac_compile") 2>conftest.er1
18169   ac_status=$?
18170   grep -v '^ *+' conftest.er1 >conftest.err
18171   rm -f conftest.er1
18172   cat conftest.err >&5
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); } &&
18175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18176   { (case "(($ac_try" in
18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178   *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181   (eval "$ac_try") 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; } &&
18185          { ac_try='test -s conftest.$ac_objext'
18186   { (case "(($ac_try" in
18187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188   *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191   (eval "$ac_try") 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; }; then
18195   llvm_cv_linux_mixed=no
18196 else
18197   echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200         llvm_cv_linux_mixed=yes
18201 fi
18202
18203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18204   ac_ext=c
18205 ac_cpp='$CPP $CPPFLAGS'
18206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18209
18210
18211 fi
18212 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18213 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18214
18215   if test "$llvm_cv_linux_mixed" = "yes"; then
18216     llvm_cv_target_arch="x86"
18217     ARCH="x86"
18218   fi
18219 fi
18220
18221
18222 for ac_func in __dso_handle
18223 do
18224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18228   echo $ECHO_N "(cached) $ECHO_C" >&6
18229 else
18230   cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18238 #define $ac_func innocuous_$ac_func
18239
18240 /* System header to define __stub macros and hopefully few prototypes,
18241     which can conflict with char $ac_func (); below.
18242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18243     <limits.h> exists even on freestanding compilers.  */
18244
18245 #ifdef __STDC__
18246 # include <limits.h>
18247 #else
18248 # include <assert.h>
18249 #endif
18250
18251 #undef $ac_func
18252
18253 /* Override any GCC internal prototype to avoid an error.
18254    Use char because int might match the return type of a GCC
18255    builtin and then its argument prototype would still apply.  */
18256 #ifdef __cplusplus
18257 extern "C"
18258 #endif
18259 char $ac_func ();
18260 /* The GNU C library defines this for functions which it implements
18261     to always fail with ENOSYS.  Some functions are actually named
18262     something starting with __ and the normal name is an alias.  */
18263 #if defined __stub_$ac_func || defined __stub___$ac_func
18264 choke me
18265 #endif
18266
18267 int
18268 main ()
18269 {
18270 return $ac_func ();
18271   ;
18272   return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_link") 2>conftest.er1
18283   ac_status=$?
18284   grep -v '^ *+' conftest.er1 >conftest.err
18285   rm -f conftest.er1
18286   cat conftest.err >&5
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); } &&
18289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290   { (case "(($ac_try" in
18291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292   *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295   (eval "$ac_try") 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; } &&
18299          { ac_try='test -s conftest$ac_exeext'
18300   { (case "(($ac_try" in
18301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302   *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305   (eval "$ac_try") 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; }; then
18309   eval "$as_ac_var=yes"
18310 else
18311   echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18313
18314         eval "$as_ac_var=no"
18315 fi
18316
18317 rm -f core conftest.err conftest.$ac_objext \
18318       conftest$ac_exeext conftest.$ac_ext
18319 fi
18320 ac_res=`eval echo '${'$as_ac_var'}'`
18321                { echo "$as_me:$LINENO: result: $ac_res" >&5
18322 echo "${ECHO_T}$ac_res" >&6; }
18323 if test `eval echo '${'$as_ac_var'}'` = yes; then
18324   cat >>confdefs.h <<_ACEOF
18325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18326 _ACEOF
18327
18328 fi
18329 done
18330
18331
18332 SHLIBEXT=$llvm_shlib_ext
18333
18334
18335 if test "${prefix}" = "NONE" ; then
18336   prefix="/usr/local"
18337 fi
18338 eval LLVM_PREFIX="${prefix}";
18339 eval LLVM_BINDIR="${prefix}/bin";
18340 eval LLVM_DATADIR="${prefix}/share/llvm";
18341 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18342 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18343 eval LLVM_INCLUDEDIR="${prefix}/include";
18344 eval LLVM_INFODIR="${prefix}/info";
18345 eval LLVM_MANDIR="${prefix}/man";
18346 LLVM_CONFIGTIME=`date`
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18358   LLVM_CONFIGTIME="(timestamp not enabled)"
18359 fi
18360
18361
18362 cat >>confdefs.h <<_ACEOF
18363 #define LLVM_PREFIX "$LLVM_PREFIX"
18364 _ACEOF
18365
18366
18367 cat >>confdefs.h <<_ACEOF
18368 #define LLVM_BINDIR "$LLVM_BINDIR"
18369 _ACEOF
18370
18371
18372 cat >>confdefs.h <<_ACEOF
18373 #define LLVM_DATADIR "$LLVM_DATADIR"
18374 _ACEOF
18375
18376
18377 cat >>confdefs.h <<_ACEOF
18378 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18379 _ACEOF
18380
18381
18382 cat >>confdefs.h <<_ACEOF
18383 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18384 _ACEOF
18385
18386
18387 cat >>confdefs.h <<_ACEOF
18388 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18389 _ACEOF
18390
18391
18392 cat >>confdefs.h <<_ACEOF
18393 #define LLVM_INFODIR "$LLVM_INFODIR"
18394 _ACEOF
18395
18396
18397 cat >>confdefs.h <<_ACEOF
18398 #define LLVM_MANDIR "$LLVM_MANDIR"
18399 _ACEOF
18400
18401
18402 cat >>confdefs.h <<_ACEOF
18403 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18404 _ACEOF
18405
18406
18407 cat >>confdefs.h <<_ACEOF
18408 #define LLVM_HOST_TRIPLE "$host"
18409 _ACEOF
18410
18411
18412 cat >>confdefs.h <<_ACEOF
18413 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18414 _ACEOF
18415
18416
18417 if test "$BINDINGS_TO_BUILD" = auto ; then
18418   BINDINGS_TO_BUILD=""
18419   if test "x$OCAMLFIND" != x ; then
18420     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18421   fi
18422   if test "x$GO" != x ; then
18423     if $GO run ${srcdir}/bindings/go/conftest.go ; then
18424       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18425     fi
18426   fi
18427 fi
18428 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18429
18430
18431 binding_prereqs_failed=0
18432 for a_binding in $BINDINGS_TO_BUILD ; do
18433   case "$a_binding" in
18434   ocaml)
18435     if test "x$OCAMLFIND" = x ; then
18436       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18437 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18438       binding_prereqs_failed=1
18439     fi
18440
18441     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18442       HAVE_OCAMLOPT=1
18443     else
18444       HAVE_OCAMLOPT=0
18445     fi
18446
18447
18448     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18449       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18450 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18451       binding_prereqs_failed=1
18452     fi
18453
18454     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18455       HAVE_OCAML_OUNIT=1
18456     else
18457       HAVE_OCAML_OUNIT=0
18458       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18459 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18460           fi
18461
18462
18463     if test "x$with_ocaml_libdir" != xauto ; then
18464       OCAML_LIBDIR=$with_ocaml_libdir
18465
18466     else
18467       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18468       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18469       then
18470         # ocaml stdlib is beneath our prefix; use stdlib
18471         OCAML_LIBDIR=$ocaml_stdlib
18472
18473       else
18474         # ocaml stdlib is outside our prefix; use libdir/ocaml
18475         OCAML_LIBDIR=${prefix}/lib/ocaml
18476
18477       fi
18478     fi
18479     ;;
18480   go)
18481     if test "x$GO" = x ; then
18482       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18483 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18484       binding_prereqs_failed=1
18485     else
18486       if $GO run ${srcdir}/bindings/go/conftest.go ; then
18487         :
18488       else
18489         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18490 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18491         binding_prereqs_failed=1
18492       fi
18493     fi
18494     ;;
18495   esac
18496 done
18497 if test "$binding_prereqs_failed" = 1 ; then
18498   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18499 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18500    { (exit 1); exit 1; }; }
18501 fi
18502
18503 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18504 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18505 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18506   echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508    ac_ext=cpp
18509 ac_cpp='$CXXCPP $CPPFLAGS'
18510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18513
18514   oldcxxflags="$CXXFLAGS"
18515   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18516   cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h.  */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h.  */
18522 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18523 int
18524 main ()
18525 {
18526 X<int>().f();
18527   ;
18528   return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext
18532 if { (ac_try="$ac_compile"
18533 case "(($ac_try" in
18534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535   *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538   (eval "$ac_compile") 2>conftest.er1
18539   ac_status=$?
18540   grep -v '^ *+' conftest.er1 >conftest.err
18541   rm -f conftest.er1
18542   cat conftest.err >&5
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } &&
18545          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18546   { (case "(($ac_try" in
18547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548   *) ac_try_echo=$ac_try;;
18549 esac
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551   (eval "$ac_try") 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; } &&
18555          { ac_try='test -s conftest.$ac_objext'
18556   { (case "(($ac_try" in
18557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558   *) ac_try_echo=$ac_try;;
18559 esac
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561   (eval "$ac_try") 2>&5
18562   ac_status=$?
18563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564   (exit $ac_status); }; }; then
18565   llvm_cv_cxx_visibility_inlines_hidden=yes
18566 else
18567   echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570         llvm_cv_cxx_visibility_inlines_hidden=no
18571 fi
18572
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18574   CXXFLAGS="$oldcxxflags"
18575   ac_ext=c
18576 ac_cpp='$CPP $CPPFLAGS'
18577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18580
18581
18582 fi
18583 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18584 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18585 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18586   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18587
18588 else
18589   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18590
18591 fi
18592
18593
18594 if test "$llvm_cv_link_use_r" = "yes" ; then
18595   RPATH="-Wl,-R"
18596 else
18597   RPATH="-Wl,-rpath"
18598 fi
18599
18600
18601 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18602   RDYNAMIC="-rdynamic"
18603 else
18604   RDYNAMIC=""
18605 fi
18606
18607
18608
18609 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18610
18611
18612
18613
18614
18615
18616 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18617
18618 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18619
18620 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18621
18622 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18623
18624 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18625
18626
18627 ac_config_files="$ac_config_files Makefile.config"
18628
18629
18630 ac_config_files="$ac_config_files llvm.spec"
18631
18632
18633 ac_config_files="$ac_config_files docs/doxygen.cfg"
18634
18635
18636 if test "${clang_src_root}" = ""; then
18637   clang_src_root="$srcdir/tools/clang"
18638 fi
18639 if test -f ${clang_src_root}/README.txt; then
18640
18641 cat >>confdefs.h <<_ACEOF
18642 #define CLANG_LIBDIR_SUFFIX ""
18643 _ACEOF
18644
18645
18646     configh="include/clang/Config/config.h"
18647   doxy="docs/doxygen.cfg"
18648   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18649
18650   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18651
18652 fi
18653
18654 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18655
18656
18657 test "x$program_prefix" = "xNONE" && program_prefix=""
18658
18659
18660
18661 ac_config_commands="$ac_config_commands setup"
18662
18663 ac_config_commands="$ac_config_commands Makefile"
18664
18665
18666 ac_config_commands="$ac_config_commands Makefile.common"
18667
18668
18669 ac_config_commands="$ac_config_commands examples/Makefile"
18670
18671
18672 ac_config_commands="$ac_config_commands lib/Makefile"
18673
18674
18675 ac_config_commands="$ac_config_commands test/Makefile"
18676
18677
18678 ac_config_commands="$ac_config_commands test/Makefile.tests"
18679
18680
18681 ac_config_commands="$ac_config_commands unittests/Makefile"
18682
18683
18684 ac_config_commands="$ac_config_commands tools/Makefile"
18685
18686
18687 ac_config_commands="$ac_config_commands utils/Makefile"
18688
18689
18690 ac_config_commands="$ac_config_commands projects/Makefile"
18691
18692
18693 ac_config_commands="$ac_config_commands bindings/Makefile"
18694
18695
18696 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18697
18698
18699
18700 cat >confcache <<\_ACEOF
18701 # This file is a shell script that caches the results of configure
18702 # tests run on this system so they can be shared between configure
18703 # scripts and configure runs, see configure's option --config-cache.
18704 # It is not useful on other systems.  If it contains results you don't
18705 # want to keep, you may remove or edit it.
18706 #
18707 # config.status only pays attention to the cache file if you give it
18708 # the --recheck option to rerun configure.
18709 #
18710 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18711 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18712 # following values.
18713
18714 _ACEOF
18715
18716 # The following way of writing the cache mishandles newlines in values,
18717 # but we know of no workaround that is simple, portable, and efficient.
18718 # So, we kill variables containing newlines.
18719 # Ultrix sh set writes to stderr and can't be redirected directly,
18720 # and sets the high bit in the cache file unless we assign to the vars.
18721 (
18722   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18723     eval ac_val=\$$ac_var
18724     case $ac_val in #(
18725     *${as_nl}*)
18726       case $ac_var in #(
18727       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18729       esac
18730       case $ac_var in #(
18731       _ | IFS | as_nl) ;; #(
18732       *) $as_unset $ac_var ;;
18733       esac ;;
18734     esac
18735   done
18736
18737   (set) 2>&1 |
18738     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18739     *${as_nl}ac_space=\ *)
18740       # `set' does not quote correctly, so add quotes (double-quote
18741       # substitution turns \\\\ into \\, and sed turns \\ into \).
18742       sed -n \
18743         "s/'/'\\\\''/g;
18744           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18745       ;; #(
18746     *)
18747       # `set' quotes correctly as required by POSIX, so do not add quotes.
18748       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18749       ;;
18750     esac |
18751     sort
18752 ) |
18753   sed '
18754      /^ac_cv_env_/b end
18755      t clear
18756      :clear
18757      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18758      t end
18759      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18760      :end' >>confcache
18761 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18762   if test -w "$cache_file"; then
18763     test "x$cache_file" != "x/dev/null" &&
18764       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18765 echo "$as_me: updating cache $cache_file" >&6;}
18766     cat confcache >$cache_file
18767   else
18768     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18769 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18770   fi
18771 fi
18772 rm -f confcache
18773
18774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18775 # Let make expand exec_prefix.
18776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18777
18778 DEFS=-DHAVE_CONFIG_H
18779
18780 ac_libobjs=
18781 ac_ltlibobjs=
18782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18783   # 1. Remove the extension, and $U if already installed.
18784   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18785   ac_i=`echo "$ac_i" | sed "$ac_script"`
18786   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18787   #    will be set to the directory where LIBOBJS objects are built.
18788   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18789   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18790 done
18791 LIBOBJS=$ac_libobjs
18792
18793 LTLIBOBJS=$ac_ltlibobjs
18794
18795
18796
18797 : ${CONFIG_STATUS=./config.status}
18798 ac_clean_files_save=$ac_clean_files
18799 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18800 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18801 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18802 cat >$CONFIG_STATUS <<_ACEOF
18803 #! $SHELL
18804 # Generated by $as_me.
18805 # Run this file to recreate the current configuration.
18806 # Compiler output produced by configure, useful for debugging
18807 # configure, is in config.log if it exists.
18808
18809 debug=false
18810 ac_cs_recheck=false
18811 ac_cs_silent=false
18812 SHELL=\${CONFIG_SHELL-$SHELL}
18813 _ACEOF
18814
18815 cat >>$CONFIG_STATUS <<\_ACEOF
18816 ## --------------------- ##
18817 ## M4sh Initialization.  ##
18818 ## --------------------- ##
18819
18820 # Be Bourne compatible
18821 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18822   emulate sh
18823   NULLCMD=:
18824   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18825   # is contrary to our usage.  Disable this feature.
18826   alias -g '${1+"$@"}'='"$@"'
18827   setopt NO_GLOB_SUBST
18828 else
18829   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18830 fi
18831 BIN_SH=xpg4; export BIN_SH # for Tru64
18832 DUALCASE=1; export DUALCASE # for MKS sh
18833
18834
18835 # PATH needs CR
18836 # Avoid depending upon Character Ranges.
18837 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18840 as_cr_digits='0123456789'
18841 as_cr_alnum=$as_cr_Letters$as_cr_digits
18842
18843 # The user is always right.
18844 if test "${PATH_SEPARATOR+set}" != set; then
18845   echo "#! /bin/sh" >conf$$.sh
18846   echo  "exit 0"   >>conf$$.sh
18847   chmod +x conf$$.sh
18848   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18849     PATH_SEPARATOR=';'
18850   else
18851     PATH_SEPARATOR=:
18852   fi
18853   rm -f conf$$.sh
18854 fi
18855
18856 # Support unset when possible.
18857 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18858   as_unset=unset
18859 else
18860   as_unset=false
18861 fi
18862
18863
18864 # IFS
18865 # We need space, tab and new line, in precisely that order.  Quoting is
18866 # there to prevent editors from complaining about space-tab.
18867 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18868 # splitting by setting IFS to empty value.)
18869 as_nl='
18870 '
18871 IFS=" ""        $as_nl"
18872
18873 # Find who we are.  Look in the path if we contain no directory separator.
18874 case $0 in
18875   *[\\/]* ) as_myself=$0 ;;
18876   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18877 for as_dir in $PATH
18878 do
18879   IFS=$as_save_IFS
18880   test -z "$as_dir" && as_dir=.
18881   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18882 done
18883 IFS=$as_save_IFS
18884
18885      ;;
18886 esac
18887 # We did not find ourselves, most probably we were run as `sh COMMAND'
18888 # in which case we are not to be found in the path.
18889 if test "x$as_myself" = x; then
18890   as_myself=$0
18891 fi
18892 if test ! -f "$as_myself"; then
18893   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18894   { (exit 1); exit 1; }
18895 fi
18896
18897 # Work around bugs in pre-3.0 UWIN ksh.
18898 for as_var in ENV MAIL MAILPATH
18899 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18900 done
18901 PS1='$ '
18902 PS2='> '
18903 PS4='+ '
18904
18905 # NLS nuisances.
18906 for as_var in \
18907   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18908   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18909   LC_TELEPHONE LC_TIME
18910 do
18911   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18912     eval $as_var=C; export $as_var
18913   else
18914     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18915   fi
18916 done
18917
18918 # Required to use basename.
18919 if expr a : '\(a\)' >/dev/null 2>&1 &&
18920    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18921   as_expr=expr
18922 else
18923   as_expr=false
18924 fi
18925
18926 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18927   as_basename=basename
18928 else
18929   as_basename=false
18930 fi
18931
18932
18933 # Name of the executable.
18934 as_me=`$as_basename -- "$0" ||
18935 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18936          X"$0" : 'X\(//\)$' \| \
18937          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18938 echo X/"$0" |
18939     sed '/^.*\/\([^/][^/]*\)\/*$/{
18940             s//\1/
18941             q
18942           }
18943           /^X\/\(\/\/\)$/{
18944             s//\1/
18945             q
18946           }
18947           /^X\/\(\/\).*/{
18948             s//\1/
18949             q
18950           }
18951           s/.*/./; q'`
18952
18953 # CDPATH.
18954 $as_unset CDPATH
18955
18956
18957
18958   as_lineno_1=$LINENO
18959   as_lineno_2=$LINENO
18960   test "x$as_lineno_1" != "x$as_lineno_2" &&
18961   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18962
18963   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18964   # uniformly replaced by the line number.  The first 'sed' inserts a
18965   # line-number line after each line using $LINENO; the second 'sed'
18966   # does the real work.  The second script uses 'N' to pair each
18967   # line-number line with the line containing $LINENO, and appends
18968   # trailing '-' during substitution so that $LINENO is not a special
18969   # case at line end.
18970   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18971   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18972   # E. McMahon (1931-1989) for sed's syntax.  :-)
18973   sed -n '
18974     p
18975     /[$]LINENO/=
18976   ' <$as_myself |
18977     sed '
18978       s/[$]LINENO.*/&-/
18979       t lineno
18980       b
18981       :lineno
18982       N
18983       :loop
18984       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18985       t loop
18986       s/-\n.*//
18987     ' >$as_me.lineno &&
18988   chmod +x "$as_me.lineno" ||
18989     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18990    { (exit 1); exit 1; }; }
18991
18992   # Don't try to exec as it changes $[0], causing all sort of problems
18993   # (the dirname of $[0] is not the place where we might find the
18994   # original and so on.  Autoconf is especially sensitive to this).
18995   . "./$as_me.lineno"
18996   # Exit status is that of the last command.
18997   exit
18998 }
18999
19000
19001 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19002   as_dirname=dirname
19003 else
19004   as_dirname=false
19005 fi
19006
19007 ECHO_C= ECHO_N= ECHO_T=
19008 case `echo -n x` in
19009 -n*)
19010   case `echo 'x\c'` in
19011   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19012   *)   ECHO_C='\c';;
19013   esac;;
19014 *)
19015   ECHO_N='-n';;
19016 esac
19017
19018 if expr a : '\(a\)' >/dev/null 2>&1 &&
19019    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19020   as_expr=expr
19021 else
19022   as_expr=false
19023 fi
19024
19025 rm -f conf$$ conf$$.exe conf$$.file
19026 if test -d conf$$.dir; then
19027   rm -f conf$$.dir/conf$$.file
19028 else
19029   rm -f conf$$.dir
19030   mkdir conf$$.dir
19031 fi
19032 echo >conf$$.file
19033 if ln -s conf$$.file conf$$ 2>/dev/null; then
19034   as_ln_s='ln -s'
19035   # ... but there are two gotchas:
19036   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19037   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19038   # In both cases, we have to default to `cp -p'.
19039   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19040     as_ln_s='cp -p'
19041 elif ln conf$$.file conf$$ 2>/dev/null; then
19042   as_ln_s=ln
19043 else
19044   as_ln_s='cp -p'
19045 fi
19046 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19047 rmdir conf$$.dir 2>/dev/null
19048
19049 if mkdir -p . 2>/dev/null; then
19050   as_mkdir_p=:
19051 else
19052   test -d ./-p && rmdir ./-p
19053   as_mkdir_p=false
19054 fi
19055
19056 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19057 # systems may use methods other than mode bits to determine executability.
19058 cat >conf$$.file <<_ASEOF
19059 #! /bin/sh
19060 exit 0
19061 _ASEOF
19062 chmod +x conf$$.file
19063 if test -x conf$$.file >/dev/null 2>&1; then
19064   as_executable_p="test -x"
19065 else
19066   as_executable_p=:
19067 fi
19068 rm -f conf$$.file
19069
19070 # Sed expression to map a string onto a valid CPP name.
19071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19072
19073 # Sed expression to map a string onto a valid variable name.
19074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19075
19076
19077 exec 6>&1
19078
19079 # Save the log message, to keep $[0] and so on meaningful, and to
19080 # report actual input values of CONFIG_FILES etc. instead of their
19081 # values after options handling.
19082 ac_log="
19083 This file was extended by LLVM $as_me 3.7.0svn, which was
19084 generated by GNU Autoconf 2.60.  Invocation command line was
19085
19086   CONFIG_FILES    = $CONFIG_FILES
19087   CONFIG_HEADERS  = $CONFIG_HEADERS
19088   CONFIG_LINKS    = $CONFIG_LINKS
19089   CONFIG_COMMANDS = $CONFIG_COMMANDS
19090   $ $0 $@
19091
19092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19093 "
19094
19095 _ACEOF
19096
19097 cat >>$CONFIG_STATUS <<_ACEOF
19098 # Files that config.status was made for.
19099 config_files="$ac_config_files"
19100 config_headers="$ac_config_headers"
19101 config_commands="$ac_config_commands"
19102
19103 _ACEOF
19104
19105 cat >>$CONFIG_STATUS <<\_ACEOF
19106 ac_cs_usage="\
19107 \`$as_me' instantiates files from templates according to the
19108 current configuration.
19109
19110 Usage: $0 [OPTIONS] [FILE]...
19111
19112   -h, --help       print this help, then exit
19113   -V, --version    print version number, then exit
19114   -q, --quiet      do not print progress messages
19115   -d, --debug      don't remove temporary files
19116       --recheck    update $as_me by reconfiguring in the same conditions
19117   --file=FILE[:TEMPLATE]
19118                    instantiate the configuration file FILE
19119   --header=FILE[:TEMPLATE]
19120                    instantiate the configuration header FILE
19121
19122 Configuration files:
19123 $config_files
19124
19125 Configuration headers:
19126 $config_headers
19127
19128 Configuration commands:
19129 $config_commands
19130
19131 Report bugs to <bug-autoconf@gnu.org>."
19132
19133 _ACEOF
19134 cat >>$CONFIG_STATUS <<_ACEOF
19135 ac_cs_version="\\
19136 LLVM config.status 3.7.0svn
19137 configured by $0, generated by GNU Autoconf 2.60,
19138   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19139
19140 Copyright (C) 2006 Free Software Foundation, Inc.
19141 This config.status script is free software; the Free Software Foundation
19142 gives unlimited permission to copy, distribute and modify it."
19143
19144 ac_pwd='$ac_pwd'
19145 srcdir='$srcdir'
19146 INSTALL='$INSTALL'
19147 _ACEOF
19148
19149 cat >>$CONFIG_STATUS <<\_ACEOF
19150 # If no file are specified by the user, then we need to provide default
19151 # value.  By we need to know if files were specified by the user.
19152 ac_need_defaults=:
19153 while test $# != 0
19154 do
19155   case $1 in
19156   --*=*)
19157     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19158     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19159     ac_shift=:
19160     ;;
19161   *)
19162     ac_option=$1
19163     ac_optarg=$2
19164     ac_shift=shift
19165     ;;
19166   esac
19167
19168   case $ac_option in
19169   # Handling of the options.
19170   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19171     ac_cs_recheck=: ;;
19172   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19173     echo "$ac_cs_version"; exit ;;
19174   --debug | --debu | --deb | --de | --d | -d )
19175     debug=: ;;
19176   --file | --fil | --fi | --f )
19177     $ac_shift
19178     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19179     ac_need_defaults=false;;
19180   --header | --heade | --head | --hea )
19181     $ac_shift
19182     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19183     ac_need_defaults=false;;
19184   --he | --h)
19185     # Conflict between --help and --header
19186     { echo "$as_me: error: ambiguous option: $1
19187 Try \`$0 --help' for more information." >&2
19188    { (exit 1); exit 1; }; };;
19189   --help | --hel | -h )
19190     echo "$ac_cs_usage"; exit ;;
19191   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19192   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19193     ac_cs_silent=: ;;
19194
19195   # This is an error.
19196   -*) { echo "$as_me: error: unrecognized option: $1
19197 Try \`$0 --help' for more information." >&2
19198    { (exit 1); exit 1; }; } ;;
19199
19200   *) ac_config_targets="$ac_config_targets $1"
19201      ac_need_defaults=false ;;
19202
19203   esac
19204   shift
19205 done
19206
19207 ac_configure_extra_args=
19208
19209 if $ac_cs_silent; then
19210   exec 6>/dev/null
19211   ac_configure_extra_args="$ac_configure_extra_args --silent"
19212 fi
19213
19214 _ACEOF
19215 cat >>$CONFIG_STATUS <<_ACEOF
19216 if \$ac_cs_recheck; then
19217   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19218   CONFIG_SHELL=$SHELL
19219   export CONFIG_SHELL
19220   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19221 fi
19222
19223 _ACEOF
19224 cat >>$CONFIG_STATUS <<\_ACEOF
19225 exec 5>>config.log
19226 {
19227   echo
19228   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19229 ## Running $as_me. ##
19230 _ASBOX
19231   echo "$ac_log"
19232 } >&5
19233
19234 _ACEOF
19235 cat >>$CONFIG_STATUS <<_ACEOF
19236 #
19237 # INIT-COMMANDS
19238 #
19239 llvm_src="${srcdir}"
19240
19241 _ACEOF
19242
19243 cat >>$CONFIG_STATUS <<\_ACEOF
19244
19245 # Handling of arguments.
19246 for ac_config_target in $ac_config_targets
19247 do
19248   case $ac_config_target in
19249     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19250     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19251     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19252     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19253     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19254     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19255     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19256     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19257     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19258     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19259     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19260     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19261     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19262     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19263     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19264     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19265     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19266     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19267     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19268     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19269     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19270     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19271     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19272     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19273     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19274     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19275
19276   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19277 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19278    { (exit 1); exit 1; }; };;
19279   esac
19280 done
19281
19282
19283 # If the user did not use the arguments to specify the items to instantiate,
19284 # then the envvar interface is used.  Set only those that are not.
19285 # We use the long form for the default assignment because of an extremely
19286 # bizarre bug on SunOS 4.1.3.
19287 if $ac_need_defaults; then
19288   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19289   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19290   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19291 fi
19292
19293 # Have a temporary directory for convenience.  Make it in the build tree
19294 # simply because there is no reason against having it here, and in addition,
19295 # creating and moving files from /tmp can sometimes cause problems.
19296 # Hook for its removal unless debugging.
19297 # Note that there is a small window in which the directory will not be cleaned:
19298 # after its creation but before its name has been assigned to `$tmp'.
19299 $debug ||
19300 {
19301   tmp=
19302   trap 'exit_status=$?
19303   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19304 ' 0
19305   trap '{ (exit 1); exit 1; }' 1 2 13 15
19306 }
19307 # Create a (secure) tmp directory for tmp files.
19308
19309 {
19310   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19311   test -n "$tmp" && test -d "$tmp"
19312 }  ||
19313 {
19314   tmp=./conf$$-$RANDOM
19315   (umask 077 && mkdir "$tmp")
19316 } ||
19317 {
19318    echo "$me: cannot create a temporary directory in ." >&2
19319    { (exit 1); exit 1; }
19320 }
19321
19322 #
19323 # Set up the sed scripts for CONFIG_FILES section.
19324 #
19325
19326 # No need to generate the scripts if there are no CONFIG_FILES.
19327 # This happens for instance when ./config.status config.h
19328 if test -n "$CONFIG_FILES"; then
19329
19330 _ACEOF
19331
19332
19333
19334 ac_delim='%!_!# '
19335 for ac_last_try in false false false false false :; do
19336   cat >conf$$subs.sed <<_ACEOF
19337 SHELL!$SHELL$ac_delim
19338 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19339 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19340 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19341 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19342 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19343 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19344 exec_prefix!$exec_prefix$ac_delim
19345 prefix!$prefix$ac_delim
19346 program_transform_name!$program_transform_name$ac_delim
19347 bindir!$bindir$ac_delim
19348 sbindir!$sbindir$ac_delim
19349 libexecdir!$libexecdir$ac_delim
19350 datarootdir!$datarootdir$ac_delim
19351 datadir!$datadir$ac_delim
19352 sysconfdir!$sysconfdir$ac_delim
19353 sharedstatedir!$sharedstatedir$ac_delim
19354 localstatedir!$localstatedir$ac_delim
19355 includedir!$includedir$ac_delim
19356 oldincludedir!$oldincludedir$ac_delim
19357 docdir!$docdir$ac_delim
19358 infodir!$infodir$ac_delim
19359 htmldir!$htmldir$ac_delim
19360 dvidir!$dvidir$ac_delim
19361 pdfdir!$pdfdir$ac_delim
19362 psdir!$psdir$ac_delim
19363 libdir!$libdir$ac_delim
19364 localedir!$localedir$ac_delim
19365 mandir!$mandir$ac_delim
19366 DEFS!$DEFS$ac_delim
19367 ECHO_C!$ECHO_C$ac_delim
19368 ECHO_N!$ECHO_N$ac_delim
19369 ECHO_T!$ECHO_T$ac_delim
19370 LIBS!$LIBS$ac_delim
19371 build_alias!$build_alias$ac_delim
19372 host_alias!$host_alias$ac_delim
19373 target_alias!$target_alias$ac_delim
19374 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19375 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19376 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19377 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19378 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19379 CC!$CC$ac_delim
19380 CFLAGS!$CFLAGS$ac_delim
19381 LDFLAGS!$LDFLAGS$ac_delim
19382 CPPFLAGS!$CPPFLAGS$ac_delim
19383 ac_ct_CC!$ac_ct_CC$ac_delim
19384 EXEEXT!$EXEEXT$ac_delim
19385 OBJEXT!$OBJEXT$ac_delim
19386 CXX!$CXX$ac_delim
19387 CXXFLAGS!$CXXFLAGS$ac_delim
19388 ac_ct_CXX!$ac_ct_CXX$ac_delim
19389 CPP!$CPP$ac_delim
19390 subdirs!$subdirs$ac_delim
19391 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19392 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19393 build!$build$ac_delim
19394 build_cpu!$build_cpu$ac_delim
19395 build_vendor!$build_vendor$ac_delim
19396 build_os!$build_os$ac_delim
19397 host!$host$ac_delim
19398 host_cpu!$host_cpu$ac_delim
19399 host_vendor!$host_vendor$ac_delim
19400 host_os!$host_os$ac_delim
19401 target!$target$ac_delim
19402 target_cpu!$target_cpu$ac_delim
19403 target_vendor!$target_vendor$ac_delim
19404 target_os!$target_os$ac_delim
19405 OS!$OS$ac_delim
19406 HOST_OS!$HOST_OS$ac_delim
19407 TARGET_OS!$TARGET_OS$ac_delim
19408 LINKALL!$LINKALL$ac_delim
19409 NOLINKALL!$NOLINKALL$ac_delim
19410 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19411 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19412 ARCH!$ARCH$ac_delim
19413 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19414 HOST_ARCH!$HOST_ARCH$ac_delim
19415 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19416 BUILD_CC!$BUILD_CC$ac_delim
19417 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19418 BUILD_CXX!$BUILD_CXX$ac_delim
19419 CVSBUILD!$CVSBUILD$ac_delim
19420 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19421 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19422 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19423 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19424 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19425 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19426 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19427 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19428 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19429 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19430 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19431 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19432 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19433 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19434 _ACEOF
19435
19436   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19437     break
19438   elif $ac_last_try; then
19439     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19440 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19441    { (exit 1); exit 1; }; }
19442   else
19443     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19444   fi
19445 done
19446
19447 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19448 if test -n "$ac_eof"; then
19449   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19450   ac_eof=`expr $ac_eof + 1`
19451 fi
19452
19453 cat >>$CONFIG_STATUS <<_ACEOF
19454 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19456 _ACEOF
19457 sed '
19458 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19459 s/^/s,@/; s/!/@,|#_!!_#|/
19460 :n
19461 t n
19462 s/'"$ac_delim"'$/,g/; t
19463 s/$/\\/; p
19464 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19465 ' >>$CONFIG_STATUS <conf$$subs.sed
19466 rm -f conf$$subs.sed
19467 cat >>$CONFIG_STATUS <<_ACEOF
19468 CEOF$ac_eof
19469 _ACEOF
19470
19471
19472 ac_delim='%!_!# '
19473 for ac_last_try in false false false false false :; do
19474   cat >conf$$subs.sed <<_ACEOF
19475 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19476 JIT!$JIT$ac_delim
19477 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19478 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19479 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19480 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19481 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19482 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19483 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19484 ENABLE_PIC!$ENABLE_PIC$ac_delim
19485 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19486 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19487 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19488 ALL_TARGETS!$ALL_TARGETS$ac_delim
19489 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19490 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19491 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19492 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19493 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19494 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19495 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19496 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19497 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19498 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19499 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19500 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19501 ifGNUmake!$ifGNUmake$ac_delim
19502 LN_S!$LN_S$ac_delim
19503 NM!$NM$ac_delim
19504 CMP!$CMP$ac_delim
19505 CP!$CP$ac_delim
19506 DATE!$DATE$ac_delim
19507 FIND!$FIND$ac_delim
19508 GREP!$GREP$ac_delim
19509 MKDIR!$MKDIR$ac_delim
19510 MV!$MV$ac_delim
19511 RANLIB!$RANLIB$ac_delim
19512 AR!$AR$ac_delim
19513 RM!$RM$ac_delim
19514 SED!$SED$ac_delim
19515 TAR!$TAR$ac_delim
19516 BINPWD!$BINPWD$ac_delim
19517 DOT!$DOT$ac_delim
19518 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19519 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19520 INSTALL_DATA!$INSTALL_DATA$ac_delim
19521 BZIP2!$BZIP2$ac_delim
19522 CAT!$CAT$ac_delim
19523 DOXYGEN!$DOXYGEN$ac_delim
19524 GROFF!$GROFF$ac_delim
19525 GZIPBIN!$GZIPBIN$ac_delim
19526 PDFROFF!$PDFROFF$ac_delim
19527 ZIP!$ZIP$ac_delim
19528 GO!$GO$ac_delim
19529 OCAMLFIND!$OCAMLFIND$ac_delim
19530 GAS!$GAS$ac_delim
19531 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19532 EGREP!$EGREP$ac_delim
19533 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19534 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19535 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19536 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19537 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19538 NO_COMMENT!$NO_COMMENT$ac_delim
19539 PYTHON!$PYTHON$ac_delim
19540 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19541 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19542 USE_OPROFILE!$USE_OPROFILE$ac_delim
19543 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19544 XML2CONFIG!$XML2CONFIG$ac_delim
19545 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19546 LIBXML2_INC!$LIBXML2_INC$ac_delim
19547 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19548 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19549 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19550 MMAP_FILE!$MMAP_FILE$ac_delim
19551 SHLIBEXT!$SHLIBEXT$ac_delim
19552 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19553 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19554 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19555 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19556 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19557 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19558 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19559 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19560 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19561 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19562 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19563 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19564 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19565 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19566 RPATH!$RPATH$ac_delim
19567 RDYNAMIC!$RDYNAMIC$ac_delim
19568 program_prefix!$program_prefix$ac_delim
19569 LIBOBJS!$LIBOBJS$ac_delim
19570 LTLIBOBJS!$LTLIBOBJS$ac_delim
19571 _ACEOF
19572
19573   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19574     break
19575   elif $ac_last_try; then
19576     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19577 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19578    { (exit 1); exit 1; }; }
19579   else
19580     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19581   fi
19582 done
19583
19584 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19585 if test -n "$ac_eof"; then
19586   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19587   ac_eof=`expr $ac_eof + 1`
19588 fi
19589
19590 cat >>$CONFIG_STATUS <<_ACEOF
19591 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19593 _ACEOF
19594 sed '
19595 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19596 s/^/s,@/; s/!/@,|#_!!_#|/
19597 :n
19598 t n
19599 s/'"$ac_delim"'$/,g/; t
19600 s/$/\\/; p
19601 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19602 ' >>$CONFIG_STATUS <conf$$subs.sed
19603 rm -f conf$$subs.sed
19604 cat >>$CONFIG_STATUS <<_ACEOF
19605 CEOF$ac_eof
19606 _ACEOF
19607
19608
19609 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19610 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19611 # trailing colons and then remove the whole line if VPATH becomes empty
19612 # (actually we leave an empty line to preserve line numbers).
19613 if test "x$srcdir" = x.; then
19614   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19615 s/:*\$(srcdir):*/:/
19616 s/:*\${srcdir}:*/:/
19617 s/:*@srcdir@:*/:/
19618 s/^\([^=]*=[     ]*\):*/\1/
19619 s/:*$//
19620 s/^[^=]*=[       ]*$//
19621 }'
19622 fi
19623
19624 cat >>$CONFIG_STATUS <<\_ACEOF
19625 fi # test -n "$CONFIG_FILES"
19626
19627
19628 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19629 do
19630   case $ac_tag in
19631   :[FHLC]) ac_mode=$ac_tag; continue;;
19632   esac
19633   case $ac_mode$ac_tag in
19634   :[FHL]*:*);;
19635   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19636 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19637    { (exit 1); exit 1; }; };;
19638   :[FH]-) ac_tag=-:-;;
19639   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19640   esac
19641   ac_save_IFS=$IFS
19642   IFS=:
19643   set x $ac_tag
19644   IFS=$ac_save_IFS
19645   shift
19646   ac_file=$1
19647   shift
19648
19649   case $ac_mode in
19650   :L) ac_source=$1;;
19651   :[FH])
19652     ac_file_inputs=
19653     for ac_f
19654     do
19655       case $ac_f in
19656       -) ac_f="$tmp/stdin";;
19657       *) # Look for the file first in the build tree, then in the source tree
19658          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19659          # because $ac_f cannot contain `:'.
19660          test -f "$ac_f" ||
19661            case $ac_f in
19662            [\\/$]*) false;;
19663            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19664            esac ||
19665            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19666 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19667    { (exit 1); exit 1; }; };;
19668       esac
19669       ac_file_inputs="$ac_file_inputs $ac_f"
19670     done
19671
19672     # Let's still pretend it is `configure' which instantiates (i.e., don't
19673     # use $as_me), people would be surprised to read:
19674     #    /* config.h.  Generated by config.status.  */
19675     configure_input="Generated from "`IFS=:
19676           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19677     if test x"$ac_file" != x-; then
19678       configure_input="$ac_file.  $configure_input"
19679       { echo "$as_me:$LINENO: creating $ac_file" >&5
19680 echo "$as_me: creating $ac_file" >&6;}
19681     fi
19682
19683     case $ac_tag in
19684     *:-:* | *:-) cat >"$tmp/stdin";;
19685     esac
19686     ;;
19687   esac
19688
19689   ac_dir=`$as_dirname -- "$ac_file" ||
19690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19691          X"$ac_file" : 'X\(//\)[^/]' \| \
19692          X"$ac_file" : 'X\(//\)$' \| \
19693          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19694 echo X"$ac_file" |
19695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19696             s//\1/
19697             q
19698           }
19699           /^X\(\/\/\)[^/].*/{
19700             s//\1/
19701             q
19702           }
19703           /^X\(\/\/\)$/{
19704             s//\1/
19705             q
19706           }
19707           /^X\(\/\).*/{
19708             s//\1/
19709             q
19710           }
19711           s/.*/./; q'`
19712   { as_dir="$ac_dir"
19713   case $as_dir in #(
19714   -*) as_dir=./$as_dir;;
19715   esac
19716   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19717     as_dirs=
19718     while :; do
19719       case $as_dir in #(
19720       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19721       *) as_qdir=$as_dir;;
19722       esac
19723       as_dirs="'$as_qdir' $as_dirs"
19724       as_dir=`$as_dirname -- "$as_dir" ||
19725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19726          X"$as_dir" : 'X\(//\)[^/]' \| \
19727          X"$as_dir" : 'X\(//\)$' \| \
19728          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19729 echo X"$as_dir" |
19730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19731             s//\1/
19732             q
19733           }
19734           /^X\(\/\/\)[^/].*/{
19735             s//\1/
19736             q
19737           }
19738           /^X\(\/\/\)$/{
19739             s//\1/
19740             q
19741           }
19742           /^X\(\/\).*/{
19743             s//\1/
19744             q
19745           }
19746           s/.*/./; q'`
19747       test -d "$as_dir" && break
19748     done
19749     test -z "$as_dirs" || eval "mkdir $as_dirs"
19750   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19752    { (exit 1); exit 1; }; }; }
19753   ac_builddir=.
19754
19755 case "$ac_dir" in
19756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19757 *)
19758   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19759   # A ".." for each directory in $ac_dir_suffix.
19760   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19761   case $ac_top_builddir_sub in
19762   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19763   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19764   esac ;;
19765 esac
19766 ac_abs_top_builddir=$ac_pwd
19767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19768 # for backward compatibility:
19769 ac_top_builddir=$ac_top_build_prefix
19770
19771 case $srcdir in
19772   .)  # We are building in place.
19773     ac_srcdir=.
19774     ac_top_srcdir=$ac_top_builddir_sub
19775     ac_abs_top_srcdir=$ac_pwd ;;
19776   [\\/]* | ?:[\\/]* )  # Absolute name.
19777     ac_srcdir=$srcdir$ac_dir_suffix;
19778     ac_top_srcdir=$srcdir
19779     ac_abs_top_srcdir=$srcdir ;;
19780   *) # Relative name.
19781     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19782     ac_top_srcdir=$ac_top_build_prefix$srcdir
19783     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19784 esac
19785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19786
19787
19788   case $ac_mode in
19789   :F)
19790   #
19791   # CONFIG_FILE
19792   #
19793
19794   case $INSTALL in
19795   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19796   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19797   esac
19798 _ACEOF
19799
19800 cat >>$CONFIG_STATUS <<\_ACEOF
19801 # If the template does not know about datarootdir, expand it.
19802 # FIXME: This hack should be removed a few years after 2.60.
19803 ac_datarootdir_hack=; ac_datarootdir_seen=
19804
19805 case `sed -n '/datarootdir/ {
19806   p
19807   q
19808 }
19809 /@datadir@/p
19810 /@docdir@/p
19811 /@infodir@/p
19812 /@localedir@/p
19813 /@mandir@/p
19814 ' $ac_file_inputs` in
19815 *datarootdir*) ac_datarootdir_seen=yes;;
19816 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19817   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19818 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19819 _ACEOF
19820 cat >>$CONFIG_STATUS <<_ACEOF
19821   ac_datarootdir_hack='
19822   s&@datadir@&$datadir&g
19823   s&@docdir@&$docdir&g
19824   s&@infodir@&$infodir&g
19825   s&@localedir@&$localedir&g
19826   s&@mandir@&$mandir&g
19827     s&\\\${datarootdir}&$datarootdir&g' ;;
19828 esac
19829 _ACEOF
19830
19831 # Neutralize VPATH when `$srcdir' = `.'.
19832 # Shell code in configure.ac might set extrasub.
19833 # FIXME: do we really want to maintain this feature?
19834 cat >>$CONFIG_STATUS <<_ACEOF
19835   sed "$ac_vpsub
19836 $extrasub
19837 _ACEOF
19838 cat >>$CONFIG_STATUS <<\_ACEOF
19839 :t
19840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19841 s&@configure_input@&$configure_input&;t t
19842 s&@top_builddir@&$ac_top_builddir_sub&;t t
19843 s&@srcdir@&$ac_srcdir&;t t
19844 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19845 s&@top_srcdir@&$ac_top_srcdir&;t t
19846 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19847 s&@builddir@&$ac_builddir&;t t
19848 s&@abs_builddir@&$ac_abs_builddir&;t t
19849 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19850 s&@INSTALL@&$ac_INSTALL&;t t
19851 $ac_datarootdir_hack
19852 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19853
19854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19855   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19856   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19857   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19858 which seems to be undefined.  Please make sure it is defined." >&5
19859 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19860 which seems to be undefined.  Please make sure it is defined." >&2;}
19861
19862   rm -f "$tmp/stdin"
19863   case $ac_file in
19864   -) cat "$tmp/out"; rm -f "$tmp/out";;
19865   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19866   esac
19867  ;;
19868   :H)
19869   #
19870   # CONFIG_HEADER
19871   #
19872 _ACEOF
19873
19874 # Transform confdefs.h into a sed script `conftest.defines', that
19875 # substitutes the proper values into config.h.in to produce config.h.
19876 rm -f conftest.defines conftest.tail
19877 # First, append a space to every undef/define line, to ease matching.
19878 echo 's/$/ /' >conftest.defines
19879 # Then, protect against being on the right side of a sed subst, or in
19880 # an unquoted here document, in config.status.  If some macros were
19881 # called several times there might be several #defines for the same
19882 # symbol, which is useless.  But do not sort them, since the last
19883 # AC_DEFINE must be honored.
19884 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19885 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19886 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19887 # PARAMS is the parameter list in the macro definition--in most cases, it's
19888 # just an empty string.
19889 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19890 ac_dB='\\)[      (].*,\\1define\\2'
19891 ac_dC=' '
19892 ac_dD=' ,'
19893
19894 uniq confdefs.h |
19895   sed -n '
19896         t rset
19897         :rset
19898         s/^[     ]*#[    ]*define[       ][      ]*//
19899         t ok
19900         d
19901         :ok
19902         s/[\\&,]/\\&/g
19903         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19904         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19905   ' >>conftest.defines
19906
19907 # Remove the space that was appended to ease matching.
19908 # Then replace #undef with comments.  This is necessary, for
19909 # example, in the case of _POSIX_SOURCE, which is predefined and required
19910 # on some systems where configure will not decide to define it.
19911 # (The regexp can be short, since the line contains either #define or #undef.)
19912 echo 's/ $//
19913 s,^[     #]*u.*,/* & */,' >>conftest.defines
19914
19915 # Break up conftest.defines:
19916 ac_max_sed_lines=50
19917
19918 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19919 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19920 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19921 # et cetera.
19922 ac_in='$ac_file_inputs'
19923 ac_out='"$tmp/out1"'
19924 ac_nxt='"$tmp/out2"'
19925
19926 while :
19927 do
19928   # Write a here document:
19929     cat >>$CONFIG_STATUS <<_ACEOF
19930     # First, check the format of the line:
19931     cat >"\$tmp/defines.sed" <<\\CEOF
19932 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19933 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19934 b
19935 :def
19936 _ACEOF
19937   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19938   echo 'CEOF
19939     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19940   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19941   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19942   grep . conftest.tail >/dev/null || break
19943   rm -f conftest.defines
19944   mv conftest.tail conftest.defines
19945 done
19946 rm -f conftest.defines conftest.tail
19947
19948 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19949 cat >>$CONFIG_STATUS <<\_ACEOF
19950   if test x"$ac_file" != x-; then
19951     echo "/* $configure_input  */" >"$tmp/config.h"
19952     cat "$ac_result" >>"$tmp/config.h"
19953     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19954       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19955 echo "$as_me: $ac_file is unchanged" >&6;}
19956     else
19957       rm -f $ac_file
19958       mv "$tmp/config.h" $ac_file
19959     fi
19960   else
19961     echo "/* $configure_input  */"
19962     cat "$ac_result"
19963   fi
19964   rm -f "$tmp/out12"
19965  ;;
19966
19967   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19968 echo "$as_me: executing $ac_file commands" >&6;}
19969  ;;
19970   esac
19971
19972
19973   case $ac_file$ac_mode in
19974     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19975    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19976     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19977    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19978     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19979    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19980     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19981    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19982     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19983    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19984     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19985    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19986     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19987    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19988     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19989    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19990     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19991    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19992     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19993    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19994     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19995    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19996     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19997    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19998
19999   esac
20000 done # for ac_tag
20001
20002
20003 { (exit 0); exit 0; }
20004 _ACEOF
20005 chmod +x $CONFIG_STATUS
20006 ac_clean_files=$ac_clean_files_save
20007
20008
20009 # configure is writing to config.log, and then calls config.status.
20010 # config.status does its own redirection, appending to config.log.
20011 # Unfortunately, on DOS this fails, as config.log is still kept open
20012 # by configure, so config.status won't be able to write to it; its
20013 # output is simply discarded.  So we exec the FD to /dev/null,
20014 # effectively closing config.log, so it can be properly (re)opened and
20015 # appended to by config.status.  When coming back to configure, we
20016 # need to make the FD available again.
20017 if test "$no_create" != yes; then
20018   ac_cs_success=:
20019   ac_config_status_args=
20020   test "$silent" = yes &&
20021     ac_config_status_args="$ac_config_status_args --quiet"
20022   exec 5>/dev/null
20023   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20024   exec 5>>config.log
20025   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20026   # would make configure fail if this is the last instruction.
20027   $ac_cs_success || { (exit 1); exit 1; }
20028 fi
20029
20030 #
20031 # CONFIG_SUBDIRS section.
20032 #
20033 if test "$no_recursion" != yes; then
20034
20035   # Remove --cache-file and --srcdir arguments so they do not pile up.
20036   ac_sub_configure_args=
20037   ac_prev=
20038   eval "set x $ac_configure_args"
20039   shift
20040   for ac_arg
20041   do
20042     if test -n "$ac_prev"; then
20043       ac_prev=
20044       continue
20045     fi
20046     case $ac_arg in
20047     -cache-file | --cache-file | --cache-fil | --cache-fi \
20048     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20049       ac_prev=cache_file ;;
20050     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20051     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20052     | --c=*)
20053       ;;
20054     --config-cache | -C)
20055       ;;
20056     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20057       ac_prev=srcdir ;;
20058     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20059       ;;
20060     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20061       ac_prev=prefix ;;
20062     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20063       ;;
20064     *)
20065       case $ac_arg in
20066       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20067       esac
20068       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20069     esac
20070   done
20071
20072   # Always prepend --prefix to ensure using the same prefix
20073   # in subdir configurations.
20074   ac_arg="--prefix=$prefix"
20075   case $ac_arg in
20076   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20077   esac
20078   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20079
20080   ac_popdir=`pwd`
20081   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20082
20083     # Do not complain, so a configure script can configure whichever
20084     # parts of a large source tree are present.
20085     test -d "$srcdir/$ac_dir" || continue
20086
20087     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20088     echo "$as_me:$LINENO: $ac_msg" >&5
20089     echo "$ac_msg" >&6
20090     { as_dir="$ac_dir"
20091   case $as_dir in #(
20092   -*) as_dir=./$as_dir;;
20093   esac
20094   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20095     as_dirs=
20096     while :; do
20097       case $as_dir in #(
20098       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20099       *) as_qdir=$as_dir;;
20100       esac
20101       as_dirs="'$as_qdir' $as_dirs"
20102       as_dir=`$as_dirname -- "$as_dir" ||
20103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20104          X"$as_dir" : 'X\(//\)[^/]' \| \
20105          X"$as_dir" : 'X\(//\)$' \| \
20106          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20107 echo X"$as_dir" |
20108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20109             s//\1/
20110             q
20111           }
20112           /^X\(\/\/\)[^/].*/{
20113             s//\1/
20114             q
20115           }
20116           /^X\(\/\/\)$/{
20117             s//\1/
20118             q
20119           }
20120           /^X\(\/\).*/{
20121             s//\1/
20122             q
20123           }
20124           s/.*/./; q'`
20125       test -d "$as_dir" && break
20126     done
20127     test -z "$as_dirs" || eval "mkdir $as_dirs"
20128   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20129 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20130    { (exit 1); exit 1; }; }; }
20131     ac_builddir=.
20132
20133 case "$ac_dir" in
20134 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20135 *)
20136   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20137   # A ".." for each directory in $ac_dir_suffix.
20138   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20139   case $ac_top_builddir_sub in
20140   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20141   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20142   esac ;;
20143 esac
20144 ac_abs_top_builddir=$ac_pwd
20145 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20146 # for backward compatibility:
20147 ac_top_builddir=$ac_top_build_prefix
20148
20149 case $srcdir in
20150   .)  # We are building in place.
20151     ac_srcdir=.
20152     ac_top_srcdir=$ac_top_builddir_sub
20153     ac_abs_top_srcdir=$ac_pwd ;;
20154   [\\/]* | ?:[\\/]* )  # Absolute name.
20155     ac_srcdir=$srcdir$ac_dir_suffix;
20156     ac_top_srcdir=$srcdir
20157     ac_abs_top_srcdir=$srcdir ;;
20158   *) # Relative name.
20159     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20160     ac_top_srcdir=$ac_top_build_prefix$srcdir
20161     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20162 esac
20163 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20164
20165
20166     cd "$ac_dir"
20167
20168     # Check for guested configure; otherwise get Cygnus style configure.
20169     if test -f "$ac_srcdir/configure.gnu"; then
20170       ac_sub_configure=$ac_srcdir/configure.gnu
20171     elif test -f "$ac_srcdir/configure"; then
20172       ac_sub_configure=$ac_srcdir/configure
20173     elif test -f "$ac_srcdir/configure.in"; then
20174       # This should be Cygnus configure.
20175       ac_sub_configure=$ac_aux_dir/configure
20176     else
20177       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20178 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20179       ac_sub_configure=
20180     fi
20181
20182     # The recursion is here.
20183     if test -n "$ac_sub_configure"; then
20184       # Make the cache file name correct relative to the subdirectory.
20185       case $cache_file in
20186       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20187       *) # Relative name.
20188         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20189       esac
20190
20191       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20192 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20193       # The eval makes quoting arguments work.
20194       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20195            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20196         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20197 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20198    { (exit 1); exit 1; }; }
20199     fi
20200
20201     cd "$ac_popdir"
20202   done
20203 fi
20204