[MCJIT] Revert partial RuntimeDyldELF cleanup that was prematurely committed in
[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.6.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.6.0svn'
565 PACKAGE_STRING='LLVM 3.6.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 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 EGREP
762 NO_VARIADIC_MACROS
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
765 NO_MAYBE_UNINITIALIZED
766 NO_UNINITIALIZED
767 PYTHON
768 HAVE_DLOPEN
769 HAVE_TERMINFO
770 USE_OPROFILE
771 USE_INTEL_JITEVENTS
772 XML2CONFIG
773 LIBXML2_LIBS
774 LIBXML2_INC
775 CXXCPP
776 HAVE_PTHREAD
777 HAVE_LIBZ
778 HUGE_VAL_SANITY
779 MMAP_FILE
780 SHLIBEXT
781 LLVM_PREFIX
782 LLVM_BINDIR
783 LLVM_DATADIR
784 LLVM_DOCSDIR
785 LLVM_ETCDIR
786 LLVM_INCLUDEDIR
787 LLVM_INFODIR
788 LLVM_MANDIR
789 LLVM_CONFIGTIME
790 BINDINGS_TO_BUILD
791 ALL_BINDINGS
792 OCAML_LIBDIR
793 ENABLE_VISIBILITY_INLINES_HIDDEN
794 RPATH
795 RDYNAMIC
796 program_prefix
797 LIBOBJS
798 LTLIBOBJS'
799 ac_subst_files=''
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 CPPFLAGS
807 CXX
808 CXXFLAGS
809 CCC
810 CPP
811 CXXCPP'
812 ac_subdirs_all='projects/test-suite
813 projects/llvm-test
814 projects/poolalloc
815 projects/llvm-poolalloc
816 projects/safecode
817 tools/polly'
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
880
881   # Accept the important Cygnus configure options, so we can diagnose typos.
882
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
886
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
891
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
896
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
903
904   --config-cache | -C)
905     cache_file=config.cache ;;
906
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
911
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
918
919   -disable-* | --disable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924    { (exit 1); exit 1; }; }
925     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926     eval enable_$ac_feature=no ;;
927
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
932
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
937
938   -enable-* | --enable-*)
939     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943    { (exit 1); exit 1; }; }
944     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945     eval enable_$ac_feature=\$ac_optarg ;;
946
947   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949   | --exec | --exe | --ex)
950     ac_prev=exec_prefix ;;
951   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953   | --exec=* | --exe=* | --ex=*)
954     exec_prefix=$ac_optarg ;;
955
956   -gas | --gas | --ga | --g)
957     # Obsolete; use --with-gas.
958     with_gas=yes ;;
959
960   -help | --help | --hel | --he | -h)
961     ac_init_help=long ;;
962   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963     ac_init_help=recursive ;;
964   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965     ac_init_help=short ;;
966
967   -host | --host | --hos | --ho)
968     ac_prev=host_alias ;;
969   -host=* | --host=* | --hos=* | --ho=*)
970     host_alias=$ac_optarg ;;
971
972   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973     ac_prev=htmldir ;;
974   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975   | --ht=*)
976     htmldir=$ac_optarg ;;
977
978   -includedir | --includedir | --includedi | --included | --include \
979   | --includ | --inclu | --incl | --inc)
980     ac_prev=includedir ;;
981   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982   | --includ=* | --inclu=* | --incl=* | --inc=*)
983     includedir=$ac_optarg ;;
984
985   -infodir | --infodir | --infodi | --infod | --info | --inf)
986     ac_prev=infodir ;;
987   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988     infodir=$ac_optarg ;;
989
990   -libdir | --libdir | --libdi | --libd)
991     ac_prev=libdir ;;
992   -libdir=* | --libdir=* | --libdi=* | --libd=*)
993     libdir=$ac_optarg ;;
994
995   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996   | --libexe | --libex | --libe)
997     ac_prev=libexecdir ;;
998   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999   | --libexe=* | --libex=* | --libe=*)
1000     libexecdir=$ac_optarg ;;
1001
1002   -localedir | --localedir | --localedi | --localed | --locale)
1003     ac_prev=localedir ;;
1004   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005     localedir=$ac_optarg ;;
1006
1007   -localstatedir | --localstatedir | --localstatedi | --localstated \
1008   | --localstate | --localstat | --localsta | --localst | --locals)
1009     ac_prev=localstatedir ;;
1010   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012     localstatedir=$ac_optarg ;;
1013
1014   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015     ac_prev=mandir ;;
1016   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017     mandir=$ac_optarg ;;
1018
1019   -nfp | --nfp | --nf)
1020     # Obsolete; use --without-fp.
1021     with_fp=no ;;
1022
1023   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024   | --no-cr | --no-c | -n)
1025     no_create=yes ;;
1026
1027   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029     no_recursion=yes ;;
1030
1031   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033   | --oldin | --oldi | --old | --ol | --o)
1034     ac_prev=oldincludedir ;;
1035   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038     oldincludedir=$ac_optarg ;;
1039
1040   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041     ac_prev=prefix ;;
1042   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043     prefix=$ac_optarg ;;
1044
1045   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046   | --program-pre | --program-pr | --program-p)
1047     ac_prev=program_prefix ;;
1048   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050     program_prefix=$ac_optarg ;;
1051
1052   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053   | --program-suf | --program-su | --program-s)
1054     ac_prev=program_suffix ;;
1055   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057     program_suffix=$ac_optarg ;;
1058
1059   -program-transform-name | --program-transform-name \
1060   | --program-transform-nam | --program-transform-na \
1061   | --program-transform-n | --program-transform- \
1062   | --program-transform | --program-transfor \
1063   | --program-transfo | --program-transf \
1064   | --program-trans | --program-tran \
1065   | --progr-tra | --program-tr | --program-t)
1066     ac_prev=program_transform_name ;;
1067   -program-transform-name=* | --program-transform-name=* \
1068   | --program-transform-nam=* | --program-transform-na=* \
1069   | --program-transform-n=* | --program-transform-=* \
1070   | --program-transform=* | --program-transfor=* \
1071   | --program-transfo=* | --program-transf=* \
1072   | --program-trans=* | --program-tran=* \
1073   | --progr-tra=* | --program-tr=* | --program-t=*)
1074     program_transform_name=$ac_optarg ;;
1075
1076   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077     ac_prev=pdfdir ;;
1078   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079     pdfdir=$ac_optarg ;;
1080
1081   -psdir | --psdir | --psdi | --psd | --ps)
1082     ac_prev=psdir ;;
1083   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084     psdir=$ac_optarg ;;
1085
1086   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087   | -silent | --silent | --silen | --sile | --sil)
1088     silent=yes ;;
1089
1090   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091     ac_prev=sbindir ;;
1092   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093   | --sbi=* | --sb=*)
1094     sbindir=$ac_optarg ;;
1095
1096   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098   | --sharedst | --shareds | --shared | --share | --shar \
1099   | --sha | --sh)
1100     ac_prev=sharedstatedir ;;
1101   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104   | --sha=* | --sh=*)
1105     sharedstatedir=$ac_optarg ;;
1106
1107   -site | --site | --sit)
1108     ac_prev=site ;;
1109   -site=* | --site=* | --sit=*)
1110     site=$ac_optarg ;;
1111
1112   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113     ac_prev=srcdir ;;
1114   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115     srcdir=$ac_optarg ;;
1116
1117   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118   | --syscon | --sysco | --sysc | --sys | --sy)
1119     ac_prev=sysconfdir ;;
1120   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122     sysconfdir=$ac_optarg ;;
1123
1124   -target | --target | --targe | --targ | --tar | --ta | --t)
1125     ac_prev=target_alias ;;
1126   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127     target_alias=$ac_optarg ;;
1128
1129   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130     verbose=yes ;;
1131
1132   -version | --version | --versio | --versi | --vers | -V)
1133     ac_init_version=: ;;
1134
1135   -with-* | --with-*)
1136     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid package name: $ac_package" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_package=`echo $ac_package| sed 's/-/_/g'`
1142     eval with_$ac_package=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148       { echo "$as_me: error: invalid package name: $ac_package" >&2
1149    { (exit 1); exit 1; }; }
1150     ac_package=`echo $ac_package | sed 's/-/_/g'`
1151     eval with_$ac_package=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173    { (exit 1); exit 1; }; }
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181    { (exit 1); exit 1; }; }
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   { echo "$as_me: error: missing argument to $ac_option" >&2
1199    { (exit 1); exit 1; }; }
1200 fi
1201
1202 # Be sure to have absolute directory names.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214    { (exit 1); exit 1; }; }
1215 done
1216
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226   if test "x$build_alias" = x; then
1227     cross_compiling=maybe
1228     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229     If a cross compiler is detected then cross compile mode will be used." >&2
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   { echo "$as_me: error: Working directory cannot be determined" >&2
1245    { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   { echo "$as_me: error: pwd does not report name of working directory" >&2
1248    { (exit 1); exit 1; }; }
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$0" : 'X\(//\)[^/]' \| \
1258          X"$0" : 'X\(//\)$' \| \
1259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293    { (exit 1); exit 1; }; }
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR           user executables [EPREFIX/bin]
1354   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR       program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR           object code libraries [EPREFIX/lib]
1360   --includedir=DIR       C header files [PREFIX/include]
1361   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR          info documentation [DATAROOTDIR/info]
1365   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR           man documentation [DATAROOTDIR/man]
1367   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1368   --htmldir=DIR          html documentation [DOCDIR]
1369   --dvidir=DIR           dvi documentation [DOCDIR]
1370   --pdfdir=DIR           pdf documentation [DOCDIR]
1371   --psdir=DIR            ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392   --enable-polly          Use polly if available (default is YES)
1393   --enable-libcpp         Use libc++ if available (default is NO)
1394   --enable-compiler-version-checks
1395                           Check the version of the host compiler (default is
1396                           YES)
1397   --enable-cxx1y          Use c++1y if available (default is NO)
1398   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1399   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1400   --enable-clang-plugin-support
1401                           Enable plugin support in clang (default is YES)
1402   --enable-clang-static-analyzer
1403                           Enable building of clang Static Analyzer (default is
1404                           YES)
1405   --enable-optimized      Compile with optimizations enabled (default is NO)
1406   --enable-profiling      Compile with profiling enabled (default is NO)
1407   --enable-assertions     Compile with assertion checks enabled (default is
1408                           YES)
1409   --enable-werror         Compile with -Werror enabled (default is NO)
1410   --enable-expensive-checks
1411                           Compile with expensive debug checks enabled (default
1412                           is NO)
1413   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1414                           NO)
1415   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1416                           optimization is on and YES if it's off)
1417   --enable-keep-symbols   Do not strip installed executables)
1418   --enable-jit            Enable Just In Time Compiling (default is YES)
1419   --enable-docs           Build documents (default is YES)
1420   --enable-doxygen        Build doxygen documentation (default is NO)
1421   --enable-threads        Use threads if available (default is YES)
1422   --enable-pthreads       Use pthreads if available (default is YES)
1423   --enable-zlib           Use zlib for compression/decompression if available
1424                           (default is YES)
1425   --enable-pic            Build LLVM with Position Independent Code (default
1426                           is YES)
1427   --enable-shared         Build a shared library and link tools against it
1428                           (default is NO)
1429   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1430                           Win32 DLL (default is NO)
1431   --enable-timestamps     Enable embedding timestamp information in build
1432                           (default is YES)
1433   --enable-backtraces     Enable embedding backtraces on crash (default is
1434                           YES)
1435   --enable-crash-overrides
1436                           Enable crash handling overrides (default is YES)
1437   --enable-targets        Build specific host targets: all or
1438                           target1,target2,... Valid targets are: host, x86,
1439                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1440                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1441                           cpp (default=all)
1442   --enable-experimental-targets
1443                           Build experimental host targets: disable or
1444                           target1,target2,... (default=disable)
1445   --enable-bindings       Build specific language bindings:
1446                           all,auto,none,{binding-name} (default=auto)
1447   --enable-terminfo       Query the terminfo database if available (default is
1448                           YES)
1449   --enable-libedit        Use libedit if available (default is YES)
1450   --enable-libffi         Check for the presence of libffi (default is NO)
1451
1452 Optional Packages:
1453   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455   --with-optimize-option  Select the compiler options to use for optimized
1456                           builds
1457   --with-extra-options    Specify additional options to compile LLVM with
1458   --with-extra-ld-options Specify additional options to link LLVM with
1459   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1460                           is stdlib)
1461   --with-clang-srcdir     Directory to the out-of-tree Clang source
1462   --with-clang-resource-dir
1463                           Relative directory from the Clang binary for
1464                           resource files
1465   --with-c-include-dirs   Colon separated list of directories clang will
1466                           search for headers
1467   --with-gcc-toolchain    Directory where gcc is installed.
1468   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1469   --with-binutils-include Specify path to binutils/include/ containing
1470                           plugin-api.h file for gold plugin.
1471   --with-bug-report-url   Specify the URL where bug reports should be
1472                           submitted (default=http://llvm.org/bugs/)
1473   --with-internal-prefix  Installation directory for internal files
1474   --with-python           path to python
1475   --with-oprofile=<prefix>
1476                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1477   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1478
1479
1480 Some influential environment variables:
1481   CC          C compiler command
1482   CFLAGS      C compiler flags
1483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1484               nonstandard directory <lib dir>
1485   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486               you have headers in a nonstandard directory <include dir>
1487   CXX         C++ compiler command
1488   CXXFLAGS    C++ compiler flags
1489   CPP         C preprocessor
1490   CXXCPP      C++ preprocessor
1491
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1494
1495 Report bugs to <http://llvm.org/bugs/>.
1496 _ACEOF
1497 ac_status=$?
1498 fi
1499
1500 if test "$ac_init_help" = "recursive"; then
1501   # If there are subdirs, report their specific --help.
1502   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503     test -d "$ac_dir" || continue
1504     ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510   # A ".." for each directory in $ac_dir_suffix.
1511   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512   case $ac_top_builddir_sub in
1513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515   esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523   .)  # We are building in place.
1524     ac_srcdir=.
1525     ac_top_srcdir=$ac_top_builddir_sub
1526     ac_abs_top_srcdir=$ac_pwd ;;
1527   [\\/]* | ?:[\\/]* )  # Absolute name.
1528     ac_srcdir=$srcdir$ac_dir_suffix;
1529     ac_top_srcdir=$srcdir
1530     ac_abs_top_srcdir=$srcdir ;;
1531   *) # Relative name.
1532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533     ac_top_srcdir=$ac_top_build_prefix$srcdir
1534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538     cd "$ac_dir" || { ac_status=$?; continue; }
1539     # Check for guested configure.
1540     if test -f "$ac_srcdir/configure.gnu"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543     elif test -f "$ac_srcdir/configure"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure" --help=recursive
1546     else
1547       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548     fi || ac_status=$?
1549     cd "$ac_pwd" || { ac_status=$?; break; }
1550   done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555   cat <<\_ACEOF
1556 LLVM configure 3.6.0svn
1557 generated by GNU Autoconf 2.60
1558
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563
1564 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1565 _ACEOF
1566   exit
1567 fi
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1571
1572 It was created by LLVM $as_me 3.6.0svn, which was
1573 generated by GNU Autoconf 2.60.  Invocation command line was
1574
1575   $ $0 $@
1576
1577 _ACEOF
1578 exec 5>>config.log
1579 {
1580 cat <<_ASUNAME
1581 ## --------- ##
1582 ## Platform. ##
1583 ## --------- ##
1584
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1593
1594 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1595 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1598 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1599 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1600 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1601
1602 _ASUNAME
1603
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 for as_dir in $PATH
1606 do
1607   IFS=$as_save_IFS
1608   test -z "$as_dir" && as_dir=.
1609   echo "PATH: $as_dir"
1610 done
1611 IFS=$as_save_IFS
1612
1613 } >&5
1614
1615 cat >&5 <<_ACEOF
1616
1617
1618 ## ----------- ##
1619 ## Core tests. ##
1620 ## ----------- ##
1621
1622 _ACEOF
1623
1624
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_configure_args=
1631 ac_configure_args0=
1632 ac_configure_args1=
1633 ac_must_keep_next=false
1634 for ac_pass in 1 2
1635 do
1636   for ac_arg
1637   do
1638     case $ac_arg in
1639     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641     | -silent | --silent | --silen | --sile | --sil)
1642       continue ;;
1643     *\'*)
1644       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645     esac
1646     case $ac_pass in
1647     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648     2)
1649       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650       if test $ac_must_keep_next = true; then
1651         ac_must_keep_next=false # Got value, back to normal.
1652       else
1653         case $ac_arg in
1654           *=* | --config-cache | -C | -disable-* | --disable-* \
1655           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657           | -with-* | --with-* | -without-* | --without-* | --x)
1658             case "$ac_configure_args0 " in
1659               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660             esac
1661             ;;
1662           -* ) ac_must_keep_next=true ;;
1663         esac
1664       fi
1665       ac_configure_args="$ac_configure_args '$ac_arg'"
1666       ;;
1667     esac
1668   done
1669 done
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1672
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log.  We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679   # Save into config.log some information that might help in debugging.
1680   {
1681     echo
1682
1683     cat <<\_ASBOX
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1687 _ASBOX
1688     echo
1689     # The following way of writing the cache mishandles newlines in values,
1690 (
1691   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692     eval ac_val=\$$ac_var
1693     case $ac_val in #(
1694     *${as_nl}*)
1695       case $ac_var in #(
1696       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698       esac
1699       case $ac_var in #(
1700       _ | IFS | as_nl) ;; #(
1701       *) $as_unset $ac_var ;;
1702       esac ;;
1703     esac
1704   done
1705   (set) 2>&1 |
1706     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707     *${as_nl}ac_space=\ *)
1708       sed -n \
1709         "s/'\''/'\''\\\\'\'''\''/g;
1710           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711       ;; #(
1712     *)
1713       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714       ;;
1715     esac |
1716     sort
1717 )
1718     echo
1719
1720     cat <<\_ASBOX
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1724 _ASBOX
1725     echo
1726     for ac_var in $ac_subst_vars
1727     do
1728       eval ac_val=\$$ac_var
1729       case $ac_val in
1730       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731       esac
1732       echo "$ac_var='\''$ac_val'\''"
1733     done | sort
1734     echo
1735
1736     if test -n "$ac_subst_files"; then
1737       cat <<\_ASBOX
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1741 _ASBOX
1742       echo
1743       for ac_var in $ac_subst_files
1744       do
1745         eval ac_val=\$$ac_var
1746         case $ac_val in
1747         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748         esac
1749         echo "$ac_var='\''$ac_val'\''"
1750       done | sort
1751       echo
1752     fi
1753
1754     if test -s confdefs.h; then
1755       cat <<\_ASBOX
1756 ## ----------- ##
1757 ## confdefs.h. ##
1758 ## ----------- ##
1759 _ASBOX
1760       echo
1761       cat confdefs.h
1762       echo
1763     fi
1764     test "$ac_signal" != 0 &&
1765       echo "$as_me: caught signal $ac_signal"
1766     echo "$as_me: exit $exit_status"
1767   } >&5
1768   rm -f core *.core core.conftest.* &&
1769     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770     exit $exit_status
1771 ' 0
1772 for ac_signal in 1 2 13 15; do
1773   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1774 done
1775 ac_signal=0
1776
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1779
1780 # Predefined preprocessor variables.
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1784 _ACEOF
1785
1786
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1789 _ACEOF
1790
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804 _ACEOF
1805
1806
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810   set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 else
1814   set x "$ac_default_prefix/share/config.site" \
1815         "$ac_default_prefix/etc/config.site"
1816 fi
1817 shift
1818 for ac_site_file
1819 do
1820   if test -r "$ac_site_file"; then
1821     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823     sed 's/^/| /' "$ac_site_file" >&5
1824     . "$ac_site_file"
1825   fi
1826 done
1827
1828 if test -r "$cache_file"; then
1829   # Some versions of bash will fail to source /dev/null (special
1830   # files actually), so we avoid doing that.
1831   if test -f "$cache_file"; then
1832     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1834     case $cache_file in
1835       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836       *)                      . "./$cache_file";;
1837     esac
1838   fi
1839 else
1840   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1842   >$cache_file
1843 fi
1844
1845 # Check that the precious variables saved in the cache have kept the same
1846 # value.
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850   eval ac_new_set=\$ac_env_${ac_var}_set
1851   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852   eval ac_new_val=\$ac_env_${ac_var}_value
1853   case $ac_old_set,$ac_new_set in
1854     set,)
1855       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857       ac_cache_corrupted=: ;;
1858     ,set)
1859       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861       ac_cache_corrupted=: ;;
1862     ,);;
1863     *)
1864       if test "x$ac_old_val" != "x$ac_new_val"; then
1865         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1868 echo "$as_me:   former value:  $ac_old_val" >&2;}
1869         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1870 echo "$as_me:   current value: $ac_new_val" >&2;}
1871         ac_cache_corrupted=:
1872       fi;;
1873   esac
1874   # Pass precious variables to config.status.
1875   if test "$ac_new_set" = set; then
1876     case $ac_new_val in
1877     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878     *) ac_arg=$ac_var=$ac_new_val ;;
1879     esac
1880     case " $ac_configure_args " in
1881       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1882       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1883     esac
1884   fi
1885 done
1886 if $ac_cache_corrupted; then
1887   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891    { (exit 1); exit 1; }; }
1892 fi
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925
1926 LLVM_VERSION_MAJOR=3
1927 LLVM_VERSION_MINOR=6
1928 LLVM_VERSION_PATCH=0
1929 LLVM_VERSION_SUFFIX=svn
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1944 _ACEOF
1945
1946
1947
1948
1949
1950
1951
1952 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1953
1954
1955
1956
1957
1958
1959
1960 ac_aux_dir=
1961 for ac_dir in autoconf "$srcdir"/autoconf; do
1962   if test -f "$ac_dir/install-sh"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/install-sh -c"
1965     break
1966   elif test -f "$ac_dir/install.sh"; then
1967     ac_aux_dir=$ac_dir
1968     ac_install_sh="$ac_aux_dir/install.sh -c"
1969     break
1970   elif test -f "$ac_dir/shtool"; then
1971     ac_aux_dir=$ac_dir
1972     ac_install_sh="$ac_aux_dir/shtool install -c"
1973     break
1974   fi
1975 done
1976 if test -z "$ac_aux_dir"; then
1977   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1979    { (exit 1); exit 1; }; }
1980 fi
1981
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1989
1990
1991
1992 if test ${srcdir} != "." ; then
1993   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1994     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1995 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1996    { (exit 1); exit 1; }; }
1997   fi
1998 fi
1999
2000 : ${CFLAGS=}
2001 : ${CXXFLAGS=}
2002
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009   for ac_prog in clang gcc
2010   do
2011     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$CC"; then
2019   ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040   { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048     test -n "$CC" && break
2049   done
2050 fi
2051 if test -z "$CC"; then
2052   ac_ct_CC=$CC
2053   for ac_prog in clang gcc
2054 do
2055   # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   if test -n "$ac_ct_CC"; then
2063   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   for ac_exec_ext in '' $ac_executable_extensions; do
2071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2072     ac_cv_prog_ac_ct_CC="$ac_prog"
2073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074     break 2
2075   fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2079
2080 fi
2081 fi
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 echo "${ECHO_T}$ac_ct_CC" >&6; }
2086 else
2087   { echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6; }
2089 fi
2090
2091
2092   test -n "$ac_ct_CC" && break
2093 done
2094
2095   if test "x$ac_ct_CC" = x; then
2096     CC=""
2097   else
2098     case $cross_compiling:$ac_tool_warned in
2099 yes:)
2100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2101 whose name does not start with the host triplet.  If you think this
2102 configuration is useful to you, please write to autoconf@gnu.org." >&5
2103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2104 whose name does not start with the host triplet.  If you think this
2105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2106 ac_tool_warned=yes ;;
2107 esac
2108     CC=$ac_ct_CC
2109   fi
2110 fi
2111
2112
2113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&2;}
2117    { (exit 1); exit 1; }; }
2118
2119 # Provide some information about the compiler.
2120 echo "$as_me:$LINENO: checking for C compiler version" >&5
2121 ac_compiler=`set X $ac_compile; echo $2`
2122 { (ac_try="$ac_compiler --version >&5"
2123 case "(($ac_try" in
2124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125   *) ac_try_echo=$ac_try;;
2126 esac
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128   (eval "$ac_compiler --version >&5") 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132 { (ac_try="$ac_compiler -v >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler -v >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142 { (ac_try="$ac_compiler -V >&5"
2143 case "(($ac_try" in
2144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145   *) ac_try_echo=$ac_try;;
2146 esac
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148   (eval "$ac_compiler -V >&5") 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }
2152
2153 cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h.  */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h.  */
2159
2160 int
2161 main ()
2162 {
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 ac_clean_files_save=$ac_clean_files
2169 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170 # Try to create an executable without -o first, disregard a.out.
2171 # It will help us diagnose broken compilers, and finding out an intuition
2172 # of exeext.
2173 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176 #
2177 # List of possible output files, starting from the most likely.
2178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2179 # only as a last resort.  b.out is created by i960 compilers.
2180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2181 #
2182 # The IRIX 6 linker writes into existing files which may not be
2183 # executable, retaining their permissions.  Remove them first so a
2184 # subsequent execution test works.
2185 ac_rmfiles=
2186 for ac_file in $ac_files
2187 do
2188   case $ac_file in
2189     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2190     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2191   esac
2192 done
2193 rm -f $ac_rmfiles
2194
2195 if { (ac_try="$ac_link_default"
2196 case "(($ac_try" in
2197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198   *) ac_try_echo=$ac_try;;
2199 esac
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201   (eval "$ac_link_default") 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }; then
2205   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2207 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2208 # so that the user can short-circuit this test for compilers unknown to
2209 # Autoconf.
2210 for ac_file in $ac_files
2211 do
2212   test -f "$ac_file" || continue
2213   case $ac_file in
2214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2215         ;;
2216     [ab].out )
2217         # We found the default executable, but exeext='' is most
2218         # certainly right.
2219         break;;
2220     *.* )
2221         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2222         then :; else
2223            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224         fi
2225         # We set ac_cv_exeext here because the later test for it is not
2226         # safe: cross compilers may not add the suffix if given an `-o'
2227         # argument, so we may need to know it at that point already.
2228         # Even if this section looks crufty: it has the advantage of
2229         # actually working.
2230         break;;
2231     * )
2232         break;;
2233   esac
2234 done
2235 test "$ac_cv_exeext" = no && ac_cv_exeext=
2236
2237 else
2238   echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2240
2241 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&2;}
2245    { (exit 77); exit 77; }; }
2246 fi
2247
2248 ac_exeext=$ac_cv_exeext
2249 { echo "$as_me:$LINENO: result: $ac_file" >&5
2250 echo "${ECHO_T}$ac_file" >&6; }
2251
2252 # Check that the compiler produces executables we can run.  If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257 # If not cross compiling, check that we can run a simple program.
2258 if test "$cross_compiling" != yes; then
2259   if { ac_try='./$ac_file'
2260   { (case "(($ac_try" in
2261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262   *) ac_try_echo=$ac_try;;
2263 esac
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265   (eval "$ac_try") 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269     cross_compiling=no
2270   else
2271     if test "$cross_compiling" = maybe; then
2272         cross_compiling=yes
2273     else
2274         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2275 If you meant to cross compile, use \`--host'.
2276 See \`config.log' for more details." >&5
2277 echo "$as_me: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&2;}
2280    { (exit 1); exit 1; }; }
2281     fi
2282   fi
2283 fi
2284 { echo "$as_me:$LINENO: result: yes" >&5
2285 echo "${ECHO_T}yes" >&6; }
2286
2287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2288 ac_clean_files=$ac_clean_files_save
2289 # Check that the compiler produces executables we can run.  If not, either
2290 # the compiler is broken, or we cross compile.
2291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2294 echo "${ECHO_T}$cross_compiling" >&6; }
2295
2296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2298 if { (ac_try="$ac_link"
2299 case "(($ac_try" in
2300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301   *) ac_try_echo=$ac_try;;
2302 esac
2303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2304   (eval "$ac_link") 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; then
2308   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2309 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2310 # work properly (i.e., refer to `conftest.exe'), while it won't with
2311 # `rm'.
2312 for ac_file in conftest.exe conftest conftest.*; do
2313   test -f "$ac_file" || continue
2314   case $ac_file in
2315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2316     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317           break;;
2318     * ) break;;
2319   esac
2320 done
2321 else
2322   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&2;}
2326    { (exit 1); exit 1; }; }
2327 fi
2328
2329 rm -f conftest$ac_cv_exeext
2330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2332
2333 rm -f conftest.$ac_ext
2334 EXEEXT=$ac_cv_exeext
2335 ac_exeext=$EXEEXT
2336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2338 if test "${ac_cv_objext+set}" = set; then
2339   echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341   cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2347
2348 int
2349 main ()
2350 {
2351
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 rm -f conftest.o conftest.obj
2357 if { (ac_try="$ac_compile"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363   (eval "$ac_compile") 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; then
2367   for ac_file in conftest.o conftest.obj conftest.*; do
2368   test -f "$ac_file" || continue;
2369   case $ac_file in
2370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2371     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2372        break;;
2373   esac
2374 done
2375 else
2376   echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2378
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383    { (exit 1); exit 1; }; }
2384 fi
2385
2386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2387 fi
2388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6; }
2390 OBJEXT=$ac_cv_objext
2391 ac_objext=$OBJEXT
2392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407 #ifndef __GNUC__
2408        choke me
2409 #endif
2410
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (ac_try="$ac_compile"
2417 case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422   (eval "$ac_compile") 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2430   { (case "(($ac_try" in
2431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432   *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435   (eval "$ac_try") 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; } &&
2439          { ac_try='test -s conftest.$ac_objext'
2440   { (case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445   (eval "$ac_try") 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; }; then
2449   ac_compiler_gnu=yes
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454         ac_compiler_gnu=no
2455 fi
2456
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2459
2460 fi
2461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2463 GCC=`test $ac_compiler_gnu = yes && echo yes`
2464 ac_test_CFLAGS=${CFLAGS+set}
2465 ac_save_CFLAGS=$CFLAGS
2466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_cc_g+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   ac_save_c_werror_flag=$ac_c_werror_flag
2472    ac_c_werror_flag=yes
2473    ac_cv_prog_cc_g=no
2474    CFLAGS="-g"
2475    cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481
2482 int
2483 main ()
2484 {
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.$ac_objext
2491 if { (ac_try="$ac_compile"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497   (eval "$ac_compile") 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } &&
2504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505   { (case "(($ac_try" in
2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507   *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510   (eval "$ac_try") 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; } &&
2514          { ac_try='test -s conftest.$ac_objext'
2515   { (case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520   (eval "$ac_try") 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; }; then
2524   ac_cv_prog_cc_g=yes
2525 else
2526   echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529         CFLAGS=""
2530       cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536
2537 int
2538 main ()
2539 {
2540
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (ac_try="$ac_compile"
2547 case "(($ac_try" in
2548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549   *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552   (eval "$ac_compile") 2>conftest.er1
2553   ac_status=$?
2554   grep -v '^ *+' conftest.er1 >conftest.err
2555   rm -f conftest.er1
2556   cat conftest.err >&5
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); } &&
2559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_try") 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   :
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584         ac_c_werror_flag=$ac_save_c_werror_flag
2585          CFLAGS="-g"
2586          cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2603 case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_compile") 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_try") 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   ac_cv_prog_cc_g=yes
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640
2641 fi
2642
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2645
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 fi
2648
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650    ac_c_werror_flag=$ac_save_c_werror_flag
2651 fi
2652 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2654 if test "$ac_test_CFLAGS" = set; then
2655   CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657   if test "$GCC" = yes; then
2658     CFLAGS="-g -O2"
2659   else
2660     CFLAGS="-g"
2661   fi
2662 else
2663   if test "$GCC" = yes; then
2664     CFLAGS="-O2"
2665   else
2666     CFLAGS=
2667   fi
2668 fi
2669 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2670 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_c89+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   ac_cv_prog_cc_c89=no
2675 ac_save_CC=$CC
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682 #include <stdarg.h>
2683 #include <stdio.h>
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2690      char **p;
2691      int i;
2692 {
2693   return p[i];
2694 }
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2696 {
2697   char *s;
2698   va_list v;
2699   va_start (v,p);
2700   s = g (p, va_arg (v,int));
2701   va_end (v);
2702   return s;
2703 }
2704
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2706    function prototypes and stuff, but not '\xHH' hex character constants.
2707    These don't provoke an error unfortunately, instead are silently treated
2708    as 'x'.  The following induces an error, until -std is added to get
2709    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2710    array size at least.  It's necessary to write '\x00'==0 to get something
2711    that's true only with -std.  */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2713
2714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2715    inside strings and character constants.  */
2716 #define FOO(x) 'x'
2717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2718
2719 int test (int i, double x);
2720 struct s1 {int (*f) (int a);};
2721 struct s2 {int (*f) (double a);};
2722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2723 int argc;
2724 char **argv;
2725 int
2726 main ()
2727 {
2728 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2729   ;
2730   return 0;
2731 }
2732 _ACEOF
2733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2734         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 do
2736   CC="$ac_save_CC $ac_arg"
2737   rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2739 case "(($ac_try" in
2740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741   *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744   (eval "$ac_compile") 2>conftest.er1
2745   ac_status=$?
2746   grep -v '^ *+' conftest.er1 >conftest.err
2747   rm -f conftest.er1
2748   cat conftest.err >&5
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } &&
2751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752   { (case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_try") 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (case "(($ac_try" in
2763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764   *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767   (eval "$ac_try") 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; }; then
2771   ac_cv_prog_cc_c89=$ac_arg
2772 else
2773   echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776
2777 fi
2778
2779 rm -f core conftest.err conftest.$ac_objext
2780   test "x$ac_cv_prog_cc_c89" != "xno" && break
2781 done
2782 rm -f conftest.$ac_ext
2783 CC=$ac_save_CC
2784
2785 fi
2786 # AC_CACHE_VAL
2787 case "x$ac_cv_prog_cc_c89" in
2788   x)
2789     { echo "$as_me:$LINENO: result: none needed" >&5
2790 echo "${ECHO_T}none needed" >&6; } ;;
2791   xno)
2792     { echo "$as_me:$LINENO: result: unsupported" >&5
2793 echo "${ECHO_T}unsupported" >&6; } ;;
2794   *)
2795     CC="$CC $ac_cv_prog_cc_c89"
2796     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2797 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2798 esac
2799
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806
2807 ac_ext=cpp
2808 ac_cpp='$CXXCPP $CPPFLAGS'
2809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2812 if test -z "$CXX"; then
2813   if test -n "$CCC"; then
2814     CXX=$CCC
2815   else
2816     if test -n "$ac_tool_prefix"; then
2817   for ac_prog in clang++ g++
2818   do
2819     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CXX+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   if test -n "$CXX"; then
2827   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834   for ac_exec_ext in '' $ac_executable_extensions; do
2835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 CXX=$ac_cv_prog_CXX
2847 if test -n "$CXX"; then
2848   { echo "$as_me:$LINENO: result: $CXX" >&5
2849 echo "${ECHO_T}$CXX" >&6; }
2850 else
2851   { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2854
2855
2856     test -n "$CXX" && break
2857   done
2858 fi
2859 if test -z "$CXX"; then
2860   ac_ct_CXX=$CXX
2861   for ac_prog in clang++ g++
2862 do
2863   # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy $ac_prog; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2868   echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870   if test -n "$ac_ct_CXX"; then
2871   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878   for ac_exec_ext in '' $ac_executable_extensions; do
2879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2880     ac_cv_prog_ac_ct_CXX="$ac_prog"
2881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882     break 2
2883   fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2891 if test -n "$ac_ct_CXX"; then
2892   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2893 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2894 else
2895   { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2897 fi
2898
2899
2900   test -n "$ac_ct_CXX" && break
2901 done
2902
2903   if test "x$ac_ct_CXX" = x; then
2904     CXX="g++"
2905   else
2906     case $cross_compiling:$ac_tool_warned in
2907 yes:)
2908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet.  If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&5
2911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2912 whose name does not start with the host triplet.  If you think this
2913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2914 ac_tool_warned=yes ;;
2915 esac
2916     CXX=$ac_ct_CXX
2917   fi
2918 fi
2919
2920   fi
2921 fi
2922 # Provide some information about the compiler.
2923 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2924 ac_compiler=`set X $ac_compile; echo $2`
2925 { (ac_try="$ac_compiler --version >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_compiler --version >&5") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935 { (ac_try="$ac_compiler -v >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler -v >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945 { (ac_try="$ac_compiler -V >&5"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_compiler -V >&5") 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }
2955
2956 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2957 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2958 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2959   echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961   cat >conftest.$ac_ext <<_ACEOF
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2967
2968 int
2969 main ()
2970 {
2971 #ifndef __GNUC__
2972        choke me
2973 #endif
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_compile") 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } &&
2993          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999   (eval "$ac_try") 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; } &&
3003          { ac_try='test -s conftest.$ac_objext'
3004   { (case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_try") 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; }; then
3013   ac_compiler_gnu=yes
3014 else
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018         ac_compiler_gnu=no
3019 fi
3020
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3023
3024 fi
3025 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3026 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3027 GXX=`test $ac_compiler_gnu = yes && echo yes`
3028 ac_test_CXXFLAGS=${CXXFLAGS+set}
3029 ac_save_CXXFLAGS=$CXXFLAGS
3030 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3031 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_cxx_g+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3036    ac_cxx_werror_flag=yes
3037    ac_cv_prog_cxx_g=no
3038    CXXFLAGS="-g"
3039    cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045
3046 int
3047 main ()
3048 {
3049
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compile") 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } &&
3068          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3069   { (case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_try") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; } &&
3078          { ac_try='test -s conftest.$ac_objext'
3079   { (case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_try") 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   ac_cv_prog_cxx_g=yes
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093         CXXFLAGS=""
3094       cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h.  */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h.  */
3100
3101 int
3102 main ()
3103 {
3104
3105   ;
3106   return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_compile") 2>conftest.er1
3117   ac_status=$?
3118   grep -v '^ *+' conftest.er1 >conftest.err
3119   rm -f conftest.er1
3120   cat conftest.err >&5
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } &&
3123          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; } &&
3133          { ac_try='test -s conftest.$ac_objext'
3134   { (case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_try") 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; }; then
3143   :
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3149          CXXFLAGS="-g"
3150          cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } &&
3179          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; } &&
3189          { ac_try='test -s conftest.$ac_objext'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   ac_cv_prog_cxx_g=yes
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3209
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3212
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3215 fi
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3218 if test "$ac_test_CXXFLAGS" = set; then
3219   CXXFLAGS=$ac_save_CXXFLAGS
3220 elif test $ac_cv_prog_cxx_g = yes; then
3221   if test "$GXX" = yes; then
3222     CXXFLAGS="-g -O2"
3223   else
3224     CXXFLAGS="-g"
3225   fi
3226 else
3227   if test "$GXX" = yes; then
3228     CXXFLAGS="-O2"
3229   else
3230     CXXFLAGS=
3231   fi
3232 fi
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3245 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3248   CPP=
3249 fi
3250 if test -z "$CPP"; then
3251   if test "${ac_cv_prog_CPP+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254       # Double quotes because CPP needs to be expanded
3255     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3256     do
3257       ac_preproc_ok=false
3258 for ac_c_preproc_warn_flag in '' yes
3259 do
3260   # Use a header file that comes with gcc, so configuring glibc
3261   # with a fresh cross-compiler works.
3262   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263   # <limits.h> exists even on freestanding compilers.
3264   # On the NeXT, cc -E runs the code through the compiler's parser,
3265   # not just through cpp. "Syntax error" is here to catch this case.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #ifdef __STDC__
3273 # include <limits.h>
3274 #else
3275 # include <assert.h>
3276 #endif
3277                      Syntax error
3278 _ACEOF
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null; then
3292   if test -s conftest.err; then
3293     ac_cpp_err=$ac_c_preproc_warn_flag
3294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   :
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307   # Broken: fails on valid input.
3308 continue
3309 fi
3310
3311 rm -f conftest.err conftest.$ac_ext
3312
3313   # OK, works on sane cases.  Now check whether nonexistent headers
3314   # can be detected and how.
3315   cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321 #include <ac_nonexistent.h>
3322 _ACEOF
3323 if { (ac_try="$ac_cpp conftest.$ac_ext"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } >/dev/null; then
3336   if test -s conftest.err; then
3337     ac_cpp_err=$ac_c_preproc_warn_flag
3338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3339   else
3340     ac_cpp_err=
3341   fi
3342 else
3343   ac_cpp_err=yes
3344 fi
3345 if test -z "$ac_cpp_err"; then
3346   # Broken: success on invalid input.
3347 continue
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352   # Passes both tests.
3353 ac_preproc_ok=:
3354 break
3355 fi
3356
3357 rm -f conftest.err conftest.$ac_ext
3358
3359 done
3360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3361 rm -f conftest.err conftest.$ac_ext
3362 if $ac_preproc_ok; then
3363   break
3364 fi
3365
3366     done
3367     ac_cv_prog_CPP=$CPP
3368
3369 fi
3370   CPP=$ac_cv_prog_CPP
3371 else
3372   ac_cv_prog_CPP=$CPP
3373 fi
3374 { echo "$as_me:$LINENO: result: $CPP" >&5
3375 echo "${ECHO_T}$CPP" >&6; }
3376 ac_preproc_ok=false
3377 for ac_c_preproc_warn_flag in '' yes
3378 do
3379   # Use a header file that comes with gcc, so configuring glibc
3380   # with a fresh cross-compiler works.
3381   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382   # <limits.h> exists even on freestanding compilers.
3383   # On the NeXT, cc -E runs the code through the compiler's parser,
3384   # not just through cpp. "Syntax error" is here to catch this case.
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #ifdef __STDC__
3392 # include <limits.h>
3393 #else
3394 # include <assert.h>
3395 #endif
3396                      Syntax error
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } >/dev/null; then
3411   if test -s conftest.err; then
3412     ac_cpp_err=$ac_c_preproc_warn_flag
3413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414   else
3415     ac_cpp_err=
3416   fi
3417 else
3418   ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421   :
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426   # Broken: fails on valid input.
3427 continue
3428 fi
3429
3430 rm -f conftest.err conftest.$ac_ext
3431
3432   # OK, works on sane cases.  Now check whether nonexistent headers
3433   # can be detected and how.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <ac_nonexistent.h>
3441 _ACEOF
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } >/dev/null; then
3455   if test -s conftest.err; then
3456     ac_cpp_err=$ac_c_preproc_warn_flag
3457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458   else
3459     ac_cpp_err=
3460   fi
3461 else
3462   ac_cpp_err=yes
3463 fi
3464 if test -z "$ac_cpp_err"; then
3465   # Broken: success on invalid input.
3466 continue
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471   # Passes both tests.
3472 ac_preproc_ok=:
3473 break
3474 fi
3475
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   :
3483 else
3484   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488    { (exit 1); exit 1; }; }
3489 fi
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496
3497
3498 if test "$CXX" = "clang++" ; then
3499   { echo "$as_me:$LINENO: checking whether clang works" >&5
3500 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3501   ac_ext=cpp
3502 ac_cpp='$CXXCPP $CPPFLAGS'
3503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3506
3507
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514 #include <limits>
3515 #if __has_include (<cxxabi.h>)
3516 #include <cxxabi.h>
3517 #endif
3518 #if __has_include (<unwind.h>)
3519 #include <unwind.h>
3520 #endif
3521
3522 int
3523 main ()
3524 {
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3532 case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537   (eval "$ac_compile") 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } &&
3544          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3545   { (case "(($ac_try" in
3546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547   *) ac_try_echo=$ac_try;;
3548 esac
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550   (eval "$ac_try") 2>&5
3551   ac_status=$?
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); }; } &&
3554          { ac_try='test -s conftest.$ac_objext'
3555   { (case "(($ac_try" in
3556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557   *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560   (eval "$ac_try") 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); }; }; then
3564
3565   { echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6; }
3567
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572
3573   { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3575   { { 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
3576 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;}
3577    { (exit 1); exit 1; }; }
3578
3579 fi
3580
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582   ac_ext=c
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587
3588 fi
3589
3590 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3591 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3592 ac_ext=cpp
3593 ac_cpp='$CXXCPP $CPPFLAGS'
3594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3597
3598 llvm_cv_cxx_compiler=unknown
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 #if ! __clang__
3606                                     #error
3607                                     #endif
3608
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617   (eval "$ac_compile") 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } &&
3624          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3625   { (case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_try") 2>&5
3631   ac_status=$?
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); }; } &&
3634          { ac_try='test -s conftest.$ac_objext'
3635   { (case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_try") 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); }; }; then
3644   llvm_cv_cxx_compiler=clang
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649         cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655 #if ! __GNUC__
3656                                                        #error
3657                                                        #endif
3658
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_compile") 2>conftest.er1
3668   ac_status=$?
3669   grep -v '^ *+' conftest.er1 >conftest.err
3670   rm -f conftest.er1
3671   cat conftest.err >&5
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } &&
3674          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3675   { (case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); }; } &&
3684          { ac_try='test -s conftest.$ac_objext'
3685   { (case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_try") 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694   llvm_cv_cxx_compiler=gcc
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699
3700 fi
3701
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 fi
3704
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3713 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3714
3715
3716
3717 if test -d ${srcdir}/projects/test-suite ; then
3718   subdirs="$subdirs projects/test-suite"
3719
3720 fi
3721
3722 if test -d ${srcdir}/projects/llvm-test ; then
3723   subdirs="$subdirs projects/llvm-test"
3724
3725 fi
3726
3727 if test -d ${srcdir}/projects/poolalloc ; then
3728   subdirs="$subdirs projects/poolalloc"
3729
3730 fi
3731
3732 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3733   subdirs="$subdirs projects/llvm-poolalloc"
3734
3735 fi
3736
3737 for i in `ls ${srcdir}/projects`
3738 do
3739   if test -d ${srcdir}/projects/${i} ; then
3740     case ${i} in
3741       safecode)     subdirs="$subdirs projects/safecode"
3742  ;;
3743       compiler-rt)       ;;
3744       test-suite)     ;;
3745       llvm-test)      ;;
3746       poolalloc)      ;;
3747       llvm-poolalloc) ;;
3748       *)
3749         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3750 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3751         ;;
3752     esac
3753   fi
3754 done
3755
3756 # Check whether --enable-polly was given.
3757 if test "${enable_polly+set}" = set; then
3758   enableval=$enable_polly;
3759 else
3760   enableval=default
3761 fi
3762
3763 case "$enableval" in
3764   yes) ENABLE_POLLY=1
3765  ;;
3766   no)  ENABLE_POLLY=0
3767  ;;
3768   default) ENABLE_POLLY=1
3769  ;;
3770   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3771 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3772    { (exit 1); exit 1; }; } ;;
3773 esac
3774
3775
3776 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3777   LLVM_HAS_POLLY=1
3778
3779   subdirs="$subdirs tools/polly"
3780
3781 fi
3782
3783
3784 # Make sure we can run config.sub.
3785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3786   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3787 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3788    { (exit 1); exit 1; }; }
3789
3790 { echo "$as_me:$LINENO: checking build system type" >&5
3791 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3792 if test "${ac_cv_build+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   ac_build_alias=$build_alias
3796 test "x$ac_build_alias" = x &&
3797   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3798 test "x$ac_build_alias" = x &&
3799   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3800 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3801    { (exit 1); exit 1; }; }
3802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3803   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3804 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3805    { (exit 1); exit 1; }; }
3806
3807 fi
3808 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3809 echo "${ECHO_T}$ac_cv_build" >&6; }
3810 case $ac_cv_build in
3811 *-*-*) ;;
3812 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3813 echo "$as_me: error: invalid value of canonical build" >&2;}
3814    { (exit 1); exit 1; }; };;
3815 esac
3816 build=$ac_cv_build
3817 ac_save_IFS=$IFS; IFS='-'
3818 set x $ac_cv_build
3819 shift
3820 build_cpu=$1
3821 build_vendor=$2
3822 shift; shift
3823 # Remember, the first character of IFS is used to create $*,
3824 # except with old shells:
3825 build_os=$*
3826 IFS=$ac_save_IFS
3827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3828
3829
3830 { echo "$as_me:$LINENO: checking host system type" >&5
3831 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3832 if test "${ac_cv_host+set}" = set; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   if test "x$host_alias" = x; then
3836   ac_cv_host=$ac_cv_build
3837 else
3838   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3839     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3840 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3841    { (exit 1); exit 1; }; }
3842 fi
3843
3844 fi
3845 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3846 echo "${ECHO_T}$ac_cv_host" >&6; }
3847 case $ac_cv_host in
3848 *-*-*) ;;
3849 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3850 echo "$as_me: error: invalid value of canonical host" >&2;}
3851    { (exit 1); exit 1; }; };;
3852 esac
3853 host=$ac_cv_host
3854 ac_save_IFS=$IFS; IFS='-'
3855 set x $ac_cv_host
3856 shift
3857 host_cpu=$1
3858 host_vendor=$2
3859 shift; shift
3860 # Remember, the first character of IFS is used to create $*,
3861 # except with old shells:
3862 host_os=$*
3863 IFS=$ac_save_IFS
3864 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3865
3866
3867 { echo "$as_me:$LINENO: checking target system type" >&5
3868 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3869 if test "${ac_cv_target+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   if test "x$target_alias" = x; then
3873   ac_cv_target=$ac_cv_host
3874 else
3875   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3876     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3877 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3878    { (exit 1); exit 1; }; }
3879 fi
3880
3881 fi
3882 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3883 echo "${ECHO_T}$ac_cv_target" >&6; }
3884 case $ac_cv_target in
3885 *-*-*) ;;
3886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3887 echo "$as_me: error: invalid value of canonical target" >&2;}
3888    { (exit 1); exit 1; }; };;
3889 esac
3890 target=$ac_cv_target
3891 ac_save_IFS=$IFS; IFS='-'
3892 set x $ac_cv_target
3893 shift
3894 target_cpu=$1
3895 target_vendor=$2
3896 shift; shift
3897 # Remember, the first character of IFS is used to create $*,
3898 # except with old shells:
3899 target_os=$*
3900 IFS=$ac_save_IFS
3901 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3902
3903
3904 # The aliases save the names the user supplied, while $host etc.
3905 # will get canonicalized.
3906 test -n "$target_alias" &&
3907   test "$program_prefix$program_suffix$program_transform_name" = \
3908     NONENONEs,x,x, &&
3909   program_prefix=${target_alias}-
3910
3911 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3912 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3913 if test "${llvm_cv_os_type+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   case $host in
3917   *-*-aix*)
3918     llvm_cv_link_all_option="-Wl,--whole-archive"
3919     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3920     llvm_cv_os_type="AIX"
3921     llvm_cv_platform_type="Unix" ;;
3922   *-*-irix*)
3923     llvm_cv_link_all_option="-Wl,--whole-archive"
3924     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3925     llvm_cv_os_type="IRIX"
3926     llvm_cv_platform_type="Unix" ;;
3927   *-*-cygwin*)
3928     llvm_cv_link_all_option="-Wl,--whole-archive"
3929     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3930     llvm_cv_os_type="Cygwin"
3931     llvm_cv_platform_type="Unix" ;;
3932   *-*-darwin*)
3933     llvm_cv_link_all_option="-Wl,-all_load"
3934     llvm_cv_no_link_all_option="-Wl,-noall_load"
3935     llvm_cv_os_type="Darwin"
3936     llvm_cv_platform_type="Unix" ;;
3937   *-*-minix*)
3938     llvm_cv_link_all_option="-Wl,-all_load"
3939     llvm_cv_no_link_all_option="-Wl,-noall_load"
3940     llvm_cv_os_type="Minix"
3941     llvm_cv_platform_type="Unix" ;;
3942   *-*-freebsd*)
3943     llvm_cv_link_all_option="-Wl,--whole-archive"
3944     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3945     llvm_cv_os_type="FreeBSD"
3946     llvm_cv_platform_type="Unix" ;;
3947   *-*-kfreebsd-gnu)
3948     llvm_cv_link_all_option="-Wl,--whole-archive"
3949     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3950     llvm_cv_os_type="GNU/kFreeBSD"
3951     llvm_cv_platform_type="Unix" ;;
3952   *-*-openbsd*)
3953     llvm_cv_link_all_option="-Wl,--whole-archive"
3954     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3955     llvm_cv_os_type="OpenBSD"
3956     llvm_cv_platform_type="Unix" ;;
3957   *-*-netbsd*)
3958     llvm_cv_link_all_option="-Wl,--whole-archive"
3959     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3960     llvm_cv_os_type="NetBSD"
3961     llvm_cv_platform_type="Unix" ;;
3962   *-*-dragonfly*)
3963     llvm_cv_link_all_option="-Wl,--whole-archive"
3964     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3965     llvm_cv_os_type="DragonFly"
3966     llvm_cv_platform_type="Unix" ;;
3967   *-*-hpux*)
3968     llvm_cv_link_all_option="-Wl,--whole-archive"
3969     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3970     llvm_cv_os_type="HP-UX"
3971     llvm_cv_platform_type="Unix" ;;
3972   *-*-interix*)
3973     llvm_cv_link_all_option="-Wl,--whole-archive"
3974     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3975     llvm_cv_os_type="Interix"
3976     llvm_cv_platform_type="Unix" ;;
3977   *-*-linux*)
3978     llvm_cv_link_all_option="-Wl,--whole-archive"
3979     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3980     llvm_cv_os_type="Linux"
3981     llvm_cv_platform_type="Unix" ;;
3982   *-*-gnu*)
3983     llvm_cv_link_all_option="-Wl,--whole-archive"
3984     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3985     llvm_cv_os_type="GNU"
3986     llvm_cv_platform_type="Unix" ;;
3987   *-*-solaris*)
3988     llvm_cv_link_all_option="-Wl,-z,allextract"
3989     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3990     llvm_cv_os_type="SunOS"
3991     llvm_cv_platform_type="Unix" ;;
3992   *-*-win32*)
3993     llvm_cv_link_all_option="-Wl,--whole-archive"
3994     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3995     llvm_cv_os_type="Win32"
3996     llvm_cv_platform_type="Win32" ;;
3997   *-*-mingw*)
3998     llvm_cv_link_all_option="-Wl,--whole-archive"
3999     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4000     llvm_cv_os_type="MingW"
4001     llvm_cv_platform_type="Win32" ;;
4002   *-*-haiku*)
4003     llvm_cv_link_all_option="-Wl,--whole-archive"
4004     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4005     llvm_cv_os_type="Haiku"
4006     llvm_cv_platform_type="Unix" ;;
4007   *-unknown-eabi*)
4008     llvm_cv_link_all_option="-Wl,--whole-archive"
4009     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4010     llvm_cv_os_type="Freestanding"
4011     llvm_cv_platform_type="Unix" ;;
4012   *-unknown-elf*)
4013     llvm_cv_link_all_option="-Wl,--whole-archive"
4014     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4015     llvm_cv_os_type="Freestanding"
4016     llvm_cv_platform_type="Unix" ;;
4017   *)
4018     llvm_cv_link_all_option=""
4019     llvm_cv_no_link_all_option=""
4020     llvm_cv_os_type="Unknown"
4021     llvm_cv_platform_type="Unknown" ;;
4022 esac
4023 fi
4024 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4025 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4026
4027 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4028 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4029 if test "${llvm_cv_target_os_type+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   case $target in
4033   *-*-aix*)
4034     llvm_cv_target_os_type="AIX" ;;
4035   *-*-irix*)
4036     llvm_cv_target_os_type="IRIX" ;;
4037   *-*-cygwin*)
4038     llvm_cv_target_os_type="Cygwin" ;;
4039   *-*-darwin*)
4040     llvm_cv_target_os_type="Darwin" ;;
4041   *-*-minix*)
4042     llvm_cv_target_os_type="Minix" ;;
4043   *-*-freebsd*)
4044     llvm_cv_target_os_type="FreeBSD" ;;
4045   *-*-kfreebsd-gnu)
4046     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4047   *-*-openbsd*)
4048     llvm_cv_target_os_type="OpenBSD" ;;
4049   *-*-netbsd*)
4050     llvm_cv_target_os_type="NetBSD" ;;
4051   *-*-dragonfly*)
4052     llvm_cv_target_os_type="DragonFly" ;;
4053   *-*-hpux*)
4054     llvm_cv_target_os_type="HP-UX" ;;
4055   *-*-interix*)
4056     llvm_cv_target_os_type="Interix" ;;
4057   *-*-linux*)
4058     llvm_cv_target_os_type="Linux" ;;
4059   *-*-gnu*)
4060     llvm_cv_target_os_type="GNU" ;;
4061   *-*-solaris*)
4062     llvm_cv_target_os_type="SunOS" ;;
4063   *-*-win32*)
4064     llvm_cv_target_os_type="Win32" ;;
4065   *-*-mingw*)
4066     llvm_cv_target_os_type="MingW" ;;
4067   *-*-haiku*)
4068     llvm_cv_target_os_type="Haiku" ;;
4069   *-*-rtems*)
4070     llvm_cv_target_os_type="RTEMS" ;;
4071   *-*-nacl*)
4072     llvm_cv_target_os_type="NativeClient" ;;
4073   *-unknown-eabi*)
4074     llvm_cv_target_os_type="Freestanding" ;;
4075   *)
4076     llvm_cv_target_os_type="Unknown" ;;
4077 esac
4078 fi
4079 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4080 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4081
4082 if test "$llvm_cv_os_type" = "Unknown" ; then
4083   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4084 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4085    { (exit 1); exit 1; }; }
4086 fi
4087
4088 OS=$llvm_cv_os_type
4089
4090 HOST_OS=$llvm_cv_os_type
4091
4092 TARGET_OS=$llvm_cv_target_os_type
4093
4094
4095 LINKALL=$llvm_cv_link_all_option
4096
4097 NOLINKALL=$llvm_cv_no_link_all_option
4098
4099
4100 case $llvm_cv_platform_type in
4101   Unix)
4102
4103 cat >>confdefs.h <<\_ACEOF
4104 #define LLVM_ON_UNIX 1
4105 _ACEOF
4106
4107     LLVM_ON_UNIX=1
4108
4109     LLVM_ON_WIN32=0
4110
4111     ;;
4112   Win32)
4113
4114 cat >>confdefs.h <<\_ACEOF
4115 #define LLVM_ON_WIN32 1
4116 _ACEOF
4117
4118     LLVM_ON_UNIX=0
4119
4120     LLVM_ON_WIN32=1
4121
4122     ;;
4123 esac
4124
4125 { echo "$as_me:$LINENO: checking target architecture" >&5
4126 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4127 if test "${llvm_cv_target_arch+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   case $target in
4131   i?86-*)                 llvm_cv_target_arch="x86" ;;
4132   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4133   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4134   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4135   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4136   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4137   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4138   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4139   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4140   xcore-*)                llvm_cv_target_arch="XCore" ;;
4141   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4142   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4143   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4144   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4145   *)                      llvm_cv_target_arch="Unknown" ;;
4146 esac
4147 fi
4148 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4149 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4150
4151 if test "$llvm_cv_target_arch" = "Unknown" ; then
4152   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4153 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4154 fi
4155
4156 case "$llvm_cv_target_arch" in
4157     x86)     LLVM_NATIVE_ARCH="X86" ;;
4158     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4159     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4160 esac
4161
4162 ARCH=$llvm_cv_target_arch
4163
4164 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4165
4166
4167 case $host in
4168   i?86-*)                 host_arch="x86" ;;
4169   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4170   sparc*-*)               host_arch="Sparc" ;;
4171   powerpc*-*)             host_arch="PowerPC" ;;
4172   arm64*-*)               host_arch="AArch64" ;;
4173   arm*-*)                 host_arch="ARM" ;;
4174   aarch64*-*)             host_arch="AArch64" ;;
4175   mips-* | mips64-*)      host_arch="Mips" ;;
4176   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4177   xcore-*)                host_arch="XCore" ;;
4178   msp430-*)               host_arch="MSP430" ;;
4179   hexagon-*)              host_arch="Hexagon" ;;
4180   s390x-*)                host_arch="SystemZ" ;;
4181   *)                      host_arch="Unknown" ;;
4182 esac
4183
4184 if test "$host_arch" = "Unknown" ; then
4185   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4186 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4187 fi
4188
4189 HOST_ARCH=$host_arch
4190
4191
4192 if test "$cross_compiling" = yes; then
4193   LLVM_CROSS_COMPILING=1
4194
4195
4196 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4197 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4198 if test "${ac_cv_build_exeext+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4202   ac_cv_build_exeext=.exe
4203 else
4204   ac_build_prefix=${build_alias}-
4205
4206   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4207 set dummy ${ac_build_prefix}gcc; ac_word=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4211   echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213   if test -n "$BUILD_CC"; then
4214   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219   IFS=$as_save_IFS
4220   test -z "$as_dir" && as_dir=.
4221   for ac_exec_ext in '' $ac_executable_extensions; do
4222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4223     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225     break 2
4226   fi
4227 done
4228 done
4229 IFS=$as_save_IFS
4230
4231 fi
4232 fi
4233 BUILD_CC=$ac_cv_prog_BUILD_CC
4234 if test -n "$BUILD_CC"; then
4235   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4236 echo "${ECHO_T}$BUILD_CC" >&6; }
4237 else
4238   { echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6; }
4240 fi
4241
4242
4243   if test -z "$BUILD_CC"; then
4244      # Extract the first word of "gcc", so it can be a program name with args.
4245 set dummy gcc; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   if test -n "$BUILD_CC"; then
4252   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259   for ac_exec_ext in '' $ac_executable_extensions; do
4260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4261     ac_cv_prog_BUILD_CC="gcc"
4262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263     break 2
4264   fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi
4270 fi
4271 BUILD_CC=$ac_cv_prog_BUILD_CC
4272 if test -n "$BUILD_CC"; then
4273   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4274 echo "${ECHO_T}$BUILD_CC" >&6; }
4275 else
4276   { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4278 fi
4279
4280
4281      if test -z "$BUILD_CC"; then
4282        # Extract the first word of "cc", so it can be a program name with args.
4283 set dummy cc; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   if test -n "$BUILD_CC"; then
4290   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4291 else
4292   ac_prog_rejected=no
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4300     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4301        ac_prog_rejected=yes
4302        continue
4303      fi
4304     ac_cv_prog_BUILD_CC="cc"
4305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306     break 2
4307   fi
4308 done
4309 done
4310 IFS=$as_save_IFS
4311
4312 if test $ac_prog_rejected = yes; then
4313   # We found a bogon in the path, so make sure we never use it.
4314   set dummy $ac_cv_prog_BUILD_CC
4315   shift
4316   if test $# != 0; then
4317     # We chose a different compiler from the bogus one.
4318     # However, it has the same basename, so the bogon will be chosen
4319     # first if we set BUILD_CC to just the basename; use the full file name.
4320     shift
4321     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4322   fi
4323 fi
4324 fi
4325 fi
4326 BUILD_CC=$ac_cv_prog_BUILD_CC
4327 if test -n "$BUILD_CC"; then
4328   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4329 echo "${ECHO_T}$BUILD_CC" >&6; }
4330 else
4331   { echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6; }
4333 fi
4334
4335
4336      fi
4337   fi
4338   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4339 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4340    { (exit 1); exit 1; }; }
4341   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4342   rm -f conftest*
4343   echo 'int main () { return 0; }' > conftest.$ac_ext
4344   ac_cv_build_exeext=
4345   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4346   (eval $ac_build_link) 2>&5
4347   ac_status=$?
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); }; then
4350     for file in conftest.*; do
4351       case $file in
4352       *.c | *.o | *.obj | *.dSYM) ;;
4353       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4354       esac
4355     done
4356   else
4357     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4358 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4359    { (exit 1); exit 1; }; }
4360   fi
4361   rm -f conftest*
4362   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4363 fi
4364 fi
4365
4366 BUILD_EXEEXT=""
4367 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4368 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4369 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4370 ac_build_exeext=$BUILD_EXEEXT
4371
4372   ac_build_prefix=${build_alias}-
4373   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4374 set dummy ${ac_build_prefix}g++; ac_word=$2
4375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4377 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   if test -n "$BUILD_CXX"; then
4381   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388   for ac_exec_ext in '' $ac_executable_extensions; do
4389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4390     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4401 if test -n "$BUILD_CXX"; then
4402   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4403 echo "${ECHO_T}$BUILD_CXX" >&6; }
4404 else
4405   { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4407 fi
4408
4409
4410   if test -z "$BUILD_CXX"; then
4411      # Extract the first word of "g++", so it can be a program name with args.
4412 set dummy g++; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   if test -n "$BUILD_CXX"; then
4419   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4428     ac_cv_prog_BUILD_CXX="g++"
4429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 fi
4437 fi
4438 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4439 if test -n "$BUILD_CXX"; then
4440   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4441 echo "${ECHO_T}$BUILD_CXX" >&6; }
4442 else
4443   { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4445 fi
4446
4447
4448      if test -z "$BUILD_CXX"; then
4449        # Extract the first word of "c++", so it can be a program name with args.
4450 set dummy c++; ac_word=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   if test -n "$BUILD_CXX"; then
4457   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4458 else
4459   ac_prog_rejected=no
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463   IFS=$as_save_IFS
4464   test -z "$as_dir" && as_dir=.
4465   for ac_exec_ext in '' $ac_executable_extensions; do
4466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4467     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4468        ac_prog_rejected=yes
4469        continue
4470      fi
4471     ac_cv_prog_BUILD_CXX="c++"
4472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476 done
4477 IFS=$as_save_IFS
4478
4479 if test $ac_prog_rejected = yes; then
4480   # We found a bogon in the path, so make sure we never use it.
4481   set dummy $ac_cv_prog_BUILD_CXX
4482   shift
4483   if test $# != 0; then
4484     # We chose a different compiler from the bogus one.
4485     # However, it has the same basename, so the bogon will be chosen
4486     # first if we set BUILD_CXX to just the basename; use the full file name.
4487     shift
4488     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4489   fi
4490 fi
4491 fi
4492 fi
4493 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4494 if test -n "$BUILD_CXX"; then
4495   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4496 echo "${ECHO_T}$BUILD_CXX" >&6; }
4497 else
4498   { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4500 fi
4501
4502
4503      fi
4504   fi
4505 else
4506   LLVM_CROSS_COMPILING=0
4507
4508 fi
4509
4510 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4511   cvsbuild="yes"
4512   optimize="no"
4513   CVSBUILD=CVSBUILD=1
4514
4515 else
4516   cvsbuild="no"
4517   optimize="yes"
4518 fi
4519
4520
4521 # Check whether --enable-libcpp was given.
4522 if test "${enable_libcpp+set}" = set; then
4523   enableval=$enable_libcpp;
4524 else
4525   enableval=default
4526 fi
4527
4528 case "$enableval" in
4529   yes) ENABLE_LIBCPP=1
4530  ;;
4531   no)  ENABLE_LIBCPP=0
4532  ;;
4533   default) ENABLE_LIBCPP=0
4534 ;;
4535   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4536 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4537    { (exit 1); exit 1; }; } ;;
4538 esac
4539
4540 # Check whether --enable-compiler-version-checks was given.
4541 if test "${enable_compiler_version_checks+set}" = set; then
4542   enableval=$enable_compiler_version_checks;
4543 else
4544   enableval=default
4545 fi
4546
4547 case "$enableval" in
4548   no)
4549     ;;
4550   yes|default)
4551     ac_ext=cpp
4552 ac_cpp='$CXXCPP $CPPFLAGS'
4553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4556
4557     case "$llvm_cv_cxx_compiler" in
4558     clang)
4559       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4560 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4561       cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
4567
4568 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4569 #error This version of Clang is too old to build LLVM
4570 #endif
4571
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4575 case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580   (eval "$ac_compile") 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } &&
4587          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4588   { (case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; } &&
4597          { ac_try='test -s conftest.$ac_objext'
4598   { (case "(($ac_try" in
4599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600   *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603   (eval "$ac_try") 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; }; then
4607   { echo "$as_me:$LINENO: result: yes" >&5
4608 echo "${ECHO_T}yes" >&6; }
4609 else
4610   echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4612
4613         { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4615            { { echo "$as_me:$LINENO: error:
4616 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4617 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4618 bypass these sanity checks." >&5
4619 echo "$as_me: error:
4620 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4621 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4622 bypass these sanity checks." >&2;}
4623    { (exit 1); exit 1; }; }
4624 fi
4625
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627
4628                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4629         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4630 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4631         llvm_cv_old_cxxflags="$CXXFLAGS"
4632         CXXFLAGS="$CXXFLAGS -std=c++0x"
4633         cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h.  */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h.  */
4639
4640 #include <atomic>
4641 std::atomic<float> x(0.0f);
4642 int main() { return (float)x; }
4643
4644 _ACEOF
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4647 case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652   (eval "$ac_link") 2>conftest.er1
4653   ac_status=$?
4654   grep -v '^ *+' conftest.er1 >conftest.err
4655   rm -f conftest.er1
4656   cat conftest.err >&5
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); } &&
4659          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4660   { (case "(($ac_try" in
4661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662   *) ac_try_echo=$ac_try;;
4663 esac
4664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665   (eval "$ac_try") 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }; } &&
4669          { ac_try='test -s conftest$ac_exeext'
4670   { (case "(($ac_try" in
4671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672   *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675   (eval "$ac_try") 2>&5
4676   ac_status=$?
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); }; }; then
4679   { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4681 else
4682   echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685         { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687              { { echo "$as_me:$LINENO: error:
4688 We detected a missing feature in the standard C++ library that was known to be
4689 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4690 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4691 than 4.7. You will need to update your system and ensure Clang uses the newer
4692 standard library.
4693
4694 If this error is incorrect or you need to force things to work, you may pass
4695 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4696 echo "$as_me: error:
4697 We detected a missing feature in the standard C++ library that was known to be
4698 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4699 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4700 than 4.7. You will need to update your system and ensure Clang uses the newer
4701 standard library.
4702
4703 If this error is incorrect or you need to force things to work, you may pass
4704 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4705    { (exit 1); exit 1; }; }
4706 fi
4707
4708 rm -f core conftest.err conftest.$ac_objext \
4709       conftest$ac_exeext conftest.$ac_ext
4710         CXXFLAGS="$llvm_cv_old_cxxflags"
4711       fi
4712       ;;
4713     gcc)
4714       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4715 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4716       cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722
4723 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4724 #error This version of GCC is too old to build LLVM
4725 #endif
4726
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (ac_try="$ac_compile"
4730 case "(($ac_try" in
4731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732   *) ac_try_echo=$ac_try;;
4733 esac
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735   (eval "$ac_compile") 2>conftest.er1
4736   ac_status=$?
4737   grep -v '^ *+' conftest.er1 >conftest.err
4738   rm -f conftest.er1
4739   cat conftest.err >&5
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4743   { (case "(($ac_try" in
4744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745   *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748   (eval "$ac_try") 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; } &&
4752          { ac_try='test -s conftest.$ac_objext'
4753   { (case "(($ac_try" in
4754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755   *) ac_try_echo=$ac_try;;
4756 esac
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758   (eval "$ac_try") 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); }; }; then
4762   { echo "$as_me:$LINENO: result: yes" >&5
4763 echo "${ECHO_T}yes" >&6; }
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768         { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4770            { { echo "$as_me:$LINENO: error:
4771 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4772 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4773 bypass these sanity checks." >&5
4774 echo "$as_me: error:
4775 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4776 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4777 bypass these sanity checks." >&2;}
4778    { (exit 1); exit 1; }; }
4779 fi
4780
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782       ;;
4783     unknown)
4784       ;;
4785     esac
4786     ac_ext=c
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791
4792     ;;
4793   *)
4794     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4795 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4796    { (exit 1); exit 1; }; }
4797     ;;
4798 esac
4799
4800 # Check whether --enable-cxx1y was given.
4801 if test "${enable_cxx1y+set}" = set; then
4802   enableval=$enable_cxx1y;
4803 else
4804   enableval=default
4805 fi
4806
4807 case "$enableval" in
4808   yes) ENABLE_CXX1Y=1
4809  ;;
4810   no)  ENABLE_CXX1Y=0
4811  ;;
4812   default) ENABLE_CXX1Y=0
4813 ;;
4814   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4815 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4816    { (exit 1); exit 1; }; } ;;
4817 esac
4818
4819 # Check whether --enable-split-dwarf was given.
4820 if test "${enable_split_dwarf+set}" = set; then
4821   enableval=$enable_split_dwarf;
4822 else
4823   enableval=default
4824 fi
4825
4826 case "$enableval" in
4827   yes) ENABLE_SPLIT_DWARF=1
4828  ;;
4829   no)  ENABLE_SPLIT_DWARF=0
4830  ;;
4831   default) ENABLE_SPLIT_DWARF=0
4832 ;;
4833   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4835    { (exit 1); exit 1; }; } ;;
4836 esac
4837
4838 clang_arcmt="yes"
4839 # Check whether --enable-clang-arcmt was given.
4840 if test "${enable_clang_arcmt+set}" = set; then
4841   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4842 else
4843   enableval="yes"
4844 fi
4845
4846 case "$enableval" in
4847   yes) ENABLE_CLANG_ARCMT=1
4848  ;;
4849   no)  ENABLE_CLANG_ARCMT=0
4850  ;;
4851   default) ENABLE_CLANG_ARCMT=1
4852 ;;
4853   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4854 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4855    { (exit 1); exit 1; }; } ;;
4856 esac
4857
4858 clang_plugin_support="yes"
4859 # Check whether --enable-clang-plugin-support was given.
4860 if test "${enable_clang_plugin_support+set}" = set; then
4861   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4862 else
4863   enableval="yes"
4864 fi
4865
4866 case "$enableval" in
4867   yes) CLANG_PLUGIN_SUPPORT=1
4868  ;;
4869   no)  CLANG_PLUGIN_SUPPORT=0
4870  ;;
4871   default) CLANG_PLUGIN_SUPPORT=1
4872 ;;
4873   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4875    { (exit 1); exit 1; }; } ;;
4876 esac
4877
4878 clang_static_analyzer="yes"
4879 # Check whether --enable-clang-static-analyzer was given.
4880 if test "${enable_clang_static_analyzer+set}" = set; then
4881   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4882 else
4883   enableval="yes"
4884 fi
4885
4886 case "$enableval" in
4887   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4888  ;;
4889   no)
4890     if test ${clang_arcmt} != "no" ; then
4891       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4892 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4893    { (exit 1); exit 1; }; }
4894     fi
4895     ENABLE_CLANG_STATIC_ANALYZER=0
4896
4897     ;;
4898   default) ENABLE_CLANG_STATIC_ANALYZER=1
4899 ;;
4900   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4901 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4902    { (exit 1); exit 1; }; } ;;
4903 esac
4904
4905 # Check whether --enable-optimized was given.
4906 if test "${enable_optimized+set}" = set; then
4907   enableval=$enable_optimized;
4908 else
4909   enableval=$optimize
4910 fi
4911
4912 if test ${enableval} = "no" ; then
4913   ENABLE_OPTIMIZED=
4914
4915 else
4916   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4917
4918 fi
4919
4920 # Check whether --enable-profiling was given.
4921 if test "${enable_profiling+set}" = set; then
4922   enableval=$enable_profiling;
4923 else
4924   enableval="no"
4925 fi
4926
4927 if test ${enableval} = "no" ; then
4928   ENABLE_PROFILING=
4929
4930 else
4931   ENABLE_PROFILING=ENABLE_PROFILING=1
4932
4933 fi
4934
4935 # Check whether --enable-assertions was given.
4936 if test "${enable_assertions+set}" = set; then
4937   enableval=$enable_assertions;
4938 else
4939   enableval="yes"
4940 fi
4941
4942 if test ${enableval} = "yes" ; then
4943   DISABLE_ASSERTIONS=
4944
4945 else
4946   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4947
4948 fi
4949
4950 # Check whether --enable-werror was given.
4951 if test "${enable_werror+set}" = set; then
4952   enableval=$enable_werror;
4953 else
4954   enableval="no"
4955 fi
4956
4957 case "$enableval" in
4958   yes) ENABLE_WERROR=1
4959  ;;
4960   no)  ENABLE_WERROR=0
4961  ;;
4962   default) ENABLE_WERROR=0
4963 ;;
4964   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4965 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4966    { (exit 1); exit 1; }; } ;;
4967 esac
4968
4969 # Check whether --enable-expensive-checks was given.
4970 if test "${enable_expensive_checks+set}" = set; then
4971   enableval=$enable_expensive_checks;
4972 else
4973   enableval="no"
4974 fi
4975
4976 if test ${enableval} = "yes" ; then
4977   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4978
4979   EXPENSIVE_CHECKS=yes
4980
4981 else
4982   ENABLE_EXPENSIVE_CHECKS=
4983
4984   EXPENSIVE_CHECKS=no
4985
4986 fi
4987
4988 # Check whether --enable-debug-runtime was given.
4989 if test "${enable_debug_runtime+set}" = set; then
4990   enableval=$enable_debug_runtime;
4991 else
4992   enableval=no
4993 fi
4994
4995 if test ${enableval} = "no" ; then
4996   DEBUG_RUNTIME=
4997
4998 else
4999   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5000
5001 fi
5002
5003 # Check whether --enable-debug-symbols was given.
5004 if test "${enable_debug_symbols+set}" = set; then
5005   enableval=$enable_debug_symbols;
5006 else
5007   enableval=no
5008 fi
5009
5010 if test ${enableval} = "no" ; then
5011   DEBUG_SYMBOLS=
5012
5013 else
5014   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5015
5016 fi
5017
5018 # Check whether --enable-keep-symbols was given.
5019 if test "${enable_keep_symbols+set}" = set; then
5020   enableval=$enable_keep_symbols;
5021 else
5022   enableval=no
5023 fi
5024
5025 if test ${enableval} = "no" ; then
5026   KEEP_SYMBOLS=
5027
5028 else
5029   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5030
5031 fi
5032
5033 # Check whether --enable-jit was given.
5034 if test "${enable_jit+set}" = set; then
5035   enableval=$enable_jit;
5036 else
5037   enableval=default
5038 fi
5039
5040 if test ${enableval} = "no"
5041 then
5042   JIT=
5043
5044 else
5045   case "$llvm_cv_target_arch" in
5046     x86)         TARGET_HAS_JIT=1
5047  ;;
5048     Sparc)       TARGET_HAS_JIT=0
5049  ;;
5050     PowerPC)     TARGET_HAS_JIT=1
5051  ;;
5052     x86_64)      TARGET_HAS_JIT=1
5053  ;;
5054     ARM)         TARGET_HAS_JIT=1
5055  ;;
5056     Mips)        TARGET_HAS_JIT=1
5057  ;;
5058     XCore)       TARGET_HAS_JIT=0
5059  ;;
5060     MSP430)      TARGET_HAS_JIT=0
5061  ;;
5062     Hexagon)     TARGET_HAS_JIT=0
5063  ;;
5064     NVPTX)       TARGET_HAS_JIT=0
5065  ;;
5066     SystemZ)     TARGET_HAS_JIT=1
5067  ;;
5068     *)           TARGET_HAS_JIT=0
5069  ;;
5070   esac
5071 fi
5072
5073 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5074 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5075
5076
5077 # Check whether --enable-docs was given.
5078 if test "${enable_docs+set}" = set; then
5079   enableval=$enable_docs;
5080 else
5081   enableval=default
5082 fi
5083
5084 case "$enableval" in
5085   yes) ENABLE_DOCS=1
5086  ;;
5087   no)  ENABLE_DOCS=0
5088  ;;
5089   default) ENABLE_DOCS=1
5090  ;;
5091   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5092 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5093    { (exit 1); exit 1; }; } ;;
5094 esac
5095
5096 # Check whether --enable-doxygen was given.
5097 if test "${enable_doxygen+set}" = set; then
5098   enableval=$enable_doxygen;
5099 else
5100   enableval=default
5101 fi
5102
5103 case "$enableval" in
5104   yes) ENABLE_DOXYGEN=1
5105  ;;
5106   no)  ENABLE_DOXYGEN=0
5107  ;;
5108   default) ENABLE_DOXYGEN=0
5109  ;;
5110   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5111 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5112    { (exit 1); exit 1; }; } ;;
5113 esac
5114
5115 # Check whether --enable-threads was given.
5116 if test "${enable_threads+set}" = set; then
5117   enableval=$enable_threads;
5118 else
5119   enableval=default
5120 fi
5121
5122 case "$enableval" in
5123   yes) LLVM_ENABLE_THREADS=1
5124  ;;
5125   no)  LLVM_ENABLE_THREADS=0
5126  ;;
5127   default) LLVM_ENABLE_THREADS=1
5128  ;;
5129   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5130 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5131    { (exit 1); exit 1; }; } ;;
5132 esac
5133
5134 cat >>confdefs.h <<_ACEOF
5135 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5136 _ACEOF
5137
5138
5139 # Check whether --enable-pthreads was given.
5140 if test "${enable_pthreads+set}" = set; then
5141   enableval=$enable_pthreads;
5142 else
5143   enableval=default
5144 fi
5145
5146 case "$enableval" in
5147   yes) ENABLE_PTHREADS=1
5148  ;;
5149   no)  ENABLE_PTHREADS=0
5150  ;;
5151   default) ENABLE_PTHREADS=1
5152  ;;
5153   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5155    { (exit 1); exit 1; }; } ;;
5156 esac
5157
5158 # Check whether --enable-zlib was given.
5159 if test "${enable_zlib+set}" = set; then
5160   enableval=$enable_zlib;
5161 else
5162   enableval=default
5163 fi
5164
5165 case "$enableval" in
5166   yes) LLVM_ENABLE_ZLIB=1
5167  ;;
5168   no)  LLVM_ENABLE_ZLIB=0
5169  ;;
5170   default) LLVM_ENABLE_ZLIB=1
5171  ;;
5172   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5174    { (exit 1); exit 1; }; } ;;
5175 esac
5176
5177 cat >>confdefs.h <<_ACEOF
5178 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5179 _ACEOF
5180
5181
5182 # Check whether --enable-pic was given.
5183 if test "${enable_pic+set}" = set; then
5184   enableval=$enable_pic;
5185 else
5186   enableval=default
5187 fi
5188
5189 case "$enableval" in
5190   yes) ENABLE_PIC=1
5191  ;;
5192   no)  ENABLE_PIC=0
5193  ;;
5194   default) ENABLE_PIC=1
5195  ;;
5196   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5198    { (exit 1); exit 1; }; } ;;
5199 esac
5200
5201 cat >>confdefs.h <<_ACEOF
5202 #define ENABLE_PIC $ENABLE_PIC
5203 _ACEOF
5204
5205
5206 # Check whether --enable-shared was given.
5207 if test "${enable_shared+set}" = set; then
5208   enableval=$enable_shared;
5209 else
5210   enableval=default
5211 fi
5212
5213 case "$enableval" in
5214   yes) ENABLE_SHARED=1
5215  ;;
5216   no)  ENABLE_SHARED=0
5217  ;;
5218   default) ENABLE_SHARED=0
5219  ;;
5220   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5222    { (exit 1); exit 1; }; } ;;
5223 esac
5224
5225 # Check whether --enable-embed-stdcxx was given.
5226 if test "${enable_embed_stdcxx+set}" = set; then
5227   enableval=$enable_embed_stdcxx;
5228 else
5229   enableval=default
5230 fi
5231
5232 case "$enableval" in
5233   yes) ENABLE_EMBED_STDCXX=1
5234  ;;
5235   no)  ENABLE_EMBED_STDCXX=0
5236  ;;
5237   default) ENABLE_EMBED_STDCXX=0
5238  ;;
5239   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5241    { (exit 1); exit 1; }; } ;;
5242 esac
5243
5244 # Check whether --enable-timestamps was given.
5245 if test "${enable_timestamps+set}" = set; then
5246   enableval=$enable_timestamps;
5247 else
5248   enableval=default
5249 fi
5250
5251 case "$enableval" in
5252   yes) ENABLE_TIMESTAMPS=1
5253  ;;
5254   no)  ENABLE_TIMESTAMPS=0
5255  ;;
5256   default) ENABLE_TIMESTAMPS=1
5257  ;;
5258   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5259 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5260    { (exit 1); exit 1; }; } ;;
5261 esac
5262
5263 cat >>confdefs.h <<_ACEOF
5264 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5265 _ACEOF
5266
5267
5268 # Check whether --enable-backtraces was given.
5269 if test "${enable_backtraces+set}" = set; then
5270   enableval=$enable_backtraces; case "$enableval" in
5271     yes) llvm_cv_enable_backtraces="yes" ;;
5272     no)  llvm_cv_enable_backtraces="no"  ;;
5273     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5275    { (exit 1); exit 1; }; } ;;
5276   esac
5277 else
5278   llvm_cv_enable_backtraces="yes"
5279 fi
5280
5281 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5282
5283 cat >>confdefs.h <<\_ACEOF
5284 #define ENABLE_BACKTRACES 1
5285 _ACEOF
5286
5287 fi
5288
5289 # Check whether --enable-crash-overrides was given.
5290 if test "${enable_crash_overrides+set}" = set; then
5291   enableval=$enable_crash_overrides; case "$enableval" in
5292     yes) llvm_cv_enable_crash_overrides="yes" ;;
5293     no)  llvm_cv_enable_crash_overrides="no"  ;;
5294     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5296    { (exit 1); exit 1; }; } ;;
5297   esac
5298 else
5299   llvm_cv_enable_crash_overrides="yes"
5300 fi
5301
5302 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5303
5304 cat >>confdefs.h <<\_ACEOF
5305 #define ENABLE_CRASH_OVERRIDES 1
5306 _ACEOF
5307
5308 fi
5309
5310 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5311 ALL_TARGETS=$ALL_TARGETS
5312
5313
5314 TARGETS_TO_BUILD=""
5315 # Check whether --enable-targets was given.
5316 if test "${enable_targets+set}" = set; then
5317   enableval=$enable_targets;
5318 else
5319   enableval=all
5320 fi
5321
5322 if test "$enableval" = host-only ; then
5323   enableval=host
5324 fi
5325 case "$enableval" in
5326   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5327   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5328       case "$a_target" in
5329         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5335         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5336         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5340         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5342         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5343         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5344         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5345         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5346         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5347         host) case "$llvm_cv_target_arch" in
5348             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5350             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5351             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5352             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5353             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5354             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5355             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5356             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5357             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5358             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5359             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5360             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5361 echo "$as_me: error: Can not set target to build" >&2;}
5362    { (exit 1); exit 1; }; } ;;
5363           esac ;;
5364         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5365 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5366    { (exit 1); exit 1; }; } ;;
5367       esac
5368   done
5369   ;;
5370 esac
5371
5372 # Check whether --enable-experimental-targets was given.
5373 if test "${enable_experimental_targets+set}" = set; then
5374   enableval=$enable_experimental_targets;
5375 else
5376   enableval=disable
5377 fi
5378
5379
5380 if test ${enableval} != "disable"
5381 then
5382   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5383 fi
5384
5385 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5386
5387
5388 for a_target in $TARGETS_TO_BUILD; do
5389   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5390
5391 cat >>confdefs.h <<_ACEOF
5392 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5393 _ACEOF
5394
5395     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5396     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5397     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5398     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5399     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5400       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5401     fi
5402     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5403       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5404     fi
5405
5406 cat >>confdefs.h <<_ACEOF
5407 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5408 _ACEOF
5409
5410
5411 cat >>confdefs.h <<_ACEOF
5412 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5413 _ACEOF
5414
5415
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5418 _ACEOF
5419
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5423 _ACEOF
5424
5425     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5426
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5429 _ACEOF
5430
5431     fi
5432     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5433
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5436 _ACEOF
5437
5438     fi
5439   fi
5440 done
5441
5442 LLVM_ENUM_TARGETS=""
5443 LLVM_ENUM_ASM_PRINTERS=""
5444 LLVM_ENUM_ASM_PARSERS=""
5445 LLVM_ENUM_DISASSEMBLERS=""
5446 for target_to_build in $TARGETS_TO_BUILD; do
5447   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5448   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5449     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5450   fi
5451   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5452     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5453   fi
5454   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5455     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5456   fi
5457 done
5458
5459
5460
5461
5462
5463
5464 # Check whether --with-optimize-option was given.
5465 if test "${with_optimize_option+set}" = set; then
5466   withval=$with_optimize_option;
5467 else
5468   withval=default
5469 fi
5470
5471 { echo "$as_me:$LINENO: checking optimization flags" >&5
5472 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5473 case "$withval" in
5474   default)
5475     case "$llvm_cv_os_type" in
5476     FreeBSD) optimize_option=-O2 ;;
5477     MingW) optimize_option=-O2 ;;
5478     *)     optimize_option=-O3 ;;
5479     esac ;;
5480   *) optimize_option="$withval" ;;
5481 esac
5482 OPTIMIZE_OPTION=$optimize_option
5483
5484 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5485 echo "${ECHO_T}$optimize_option" >&6; }
5486
5487
5488 # Check whether --with-extra-options was given.
5489 if test "${with_extra_options+set}" = set; then
5490   withval=$with_extra_options;
5491 else
5492   withval=default
5493 fi
5494
5495 case "$withval" in
5496   default) EXTRA_OPTIONS= ;;
5497   *) EXTRA_OPTIONS=$withval ;;
5498 esac
5499 EXTRA_OPTIONS=$EXTRA_OPTIONS
5500
5501
5502
5503 # Check whether --with-extra-ld-options was given.
5504 if test "${with_extra_ld_options+set}" = set; then
5505   withval=$with_extra_ld_options;
5506 else
5507   withval=default
5508 fi
5509
5510 case "$withval" in
5511   default) EXTRA_LD_OPTIONS= ;;
5512   *) EXTRA_LD_OPTIONS=$withval ;;
5513 esac
5514 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5515
5516
5517 # Check whether --enable-bindings was given.
5518 if test "${enable_bindings+set}" = set; then
5519   enableval=$enable_bindings;
5520 else
5521   enableval=default
5522 fi
5523
5524 BINDINGS_TO_BUILD=""
5525 case "$enableval" in
5526   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5527   all ) BINDINGS_TO_BUILD="ocaml" ;;
5528   none | no) BINDINGS_TO_BUILD="" ;;
5529   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5530       case "$a_binding" in
5531         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5532         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5533 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5534    { (exit 1); exit 1; }; } ;;
5535       esac
5536   done
5537   ;;
5538 esac
5539
5540
5541 # Check whether --with-ocaml-libdir was given.
5542 if test "${with_ocaml_libdir+set}" = set; then
5543   withval=$with_ocaml_libdir;
5544 else
5545   withval=auto
5546 fi
5547
5548 case "$withval" in
5549   auto) with_ocaml_libdir="$withval" ;;
5550   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5551   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5552 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5553    { (exit 1); exit 1; }; } ;;
5554 esac
5555
5556
5557 # Check whether --with-clang-srcdir was given.
5558 if test "${with_clang_srcdir+set}" = set; then
5559   withval=$with_clang_srcdir;
5560 else
5561   withval="-"
5562 fi
5563
5564 case "$withval" in
5565   -) clang_src_root="" ;;
5566   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5567   *) clang_src_root="$ac_pwd/$withval" ;;
5568 esac
5569 CLANG_SRC_ROOT=$clang_src_root
5570
5571
5572
5573 # Check whether --with-clang-resource-dir was given.
5574 if test "${with_clang_resource_dir+set}" = set; then
5575   withval=$with_clang_resource_dir;
5576 else
5577   withval=""
5578 fi
5579
5580
5581 cat >>confdefs.h <<_ACEOF
5582 #define CLANG_RESOURCE_DIR "$withval"
5583 _ACEOF
5584
5585
5586
5587 # Check whether --with-c-include-dirs was given.
5588 if test "${with_c_include_dirs+set}" = set; then
5589   withval=$with_c_include_dirs;
5590 else
5591   withval=""
5592 fi
5593
5594
5595 cat >>confdefs.h <<_ACEOF
5596 #define C_INCLUDE_DIRS "$withval"
5597 _ACEOF
5598
5599
5600 # Clang normally uses the system c++ headers and libraries. With this option,
5601 # clang will use the ones provided by a gcc installation instead. This option should
5602 # be passed the same value that was used with --prefix when configuring gcc.
5603
5604 # Check whether --with-gcc-toolchain was given.
5605 if test "${with_gcc_toolchain+set}" = set; then
5606   withval=$with_gcc_toolchain;
5607 else
5608   withval=""
5609 fi
5610
5611
5612 cat >>confdefs.h <<_ACEOF
5613 #define GCC_INSTALL_PREFIX "$withval"
5614 _ACEOF
5615
5616
5617
5618 # Check whether --with-default-sysroot was given.
5619 if test "${with_default_sysroot+set}" = set; then
5620   withval=$with_default_sysroot;
5621 else
5622   withval=""
5623 fi
5624
5625
5626 cat >>confdefs.h <<_ACEOF
5627 #define DEFAULT_SYSROOT "$withval"
5628 _ACEOF
5629
5630
5631
5632 # Check whether --with-binutils-include was given.
5633 if test "${with_binutils_include+set}" = set; then
5634   withval=$with_binutils_include;
5635 else
5636   withval=default
5637 fi
5638
5639 case "$withval" in
5640   default) WITH_BINUTILS_INCDIR=default ;;
5641   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5642   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5643 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5644    { (exit 1); exit 1; }; } ;;
5645 esac
5646 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5647   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5648
5649   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5650      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5651      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5652 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5653    { (exit 1); exit 1; }; };
5654   fi
5655 fi
5656
5657
5658 # Check whether --with-bug-report-url was given.
5659 if test "${with_bug_report_url+set}" = set; then
5660   withval=$with_bug_report_url;
5661 else
5662   withval="http://llvm.org/bugs/"
5663 fi
5664
5665
5666 cat >>confdefs.h <<_ACEOF
5667 #define BUG_REPORT_URL "$withval"
5668 _ACEOF
5669
5670
5671 # Check whether --enable-terminfo was given.
5672 if test "${enable_terminfo+set}" = set; then
5673   enableval=$enable_terminfo; case "$enableval" in
5674     yes) llvm_cv_enable_terminfo="yes" ;;
5675     no)  llvm_cv_enable_terminfo="no"  ;;
5676     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5677 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5678    { (exit 1); exit 1; }; } ;;
5679   esac
5680 else
5681   llvm_cv_enable_terminfo="yes"
5682 fi
5683
5684 case "$llvm_cv_enable_terminfo" in
5685   yes) ENABLE_TERMINFO=1
5686  ;;
5687   no)  ENABLE_TERMINFO=0
5688  ;;
5689 esac
5690
5691 # Check whether --enable-libedit was given.
5692 if test "${enable_libedit+set}" = set; then
5693   enableval=$enable_libedit; case "$enableval" in
5694     yes) llvm_cv_enable_libedit="yes" ;;
5695     no)  llvm_cv_enable_libedit="no"  ;;
5696     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5697 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5698    { (exit 1); exit 1; }; } ;;
5699   esac
5700 else
5701   llvm_cv_enable_libedit="yes"
5702 fi
5703
5704
5705 # Check whether --enable-libffi was given.
5706 if test "${enable_libffi+set}" = set; then
5707   enableval=$enable_libffi; case "$enableval" in
5708     yes) llvm_cv_enable_libffi="yes" ;;
5709     no)  llvm_cv_enable_libffi="no"  ;;
5710     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5711 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5712    { (exit 1); exit 1; }; } ;;
5713   esac
5714 else
5715   llvm_cv_enable_libffi=no
5716 fi
5717
5718
5719
5720 # Check whether --with-internal-prefix was given.
5721 if test "${with_internal_prefix+set}" = set; then
5722   withval=$with_internal_prefix;
5723 else
5724   withval=""
5725 fi
5726
5727 INTERNAL_PREFIX=$withval
5728
5729
5730
5731 { echo "$as_me:$LINENO: checking for GNU make" >&5
5732 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5733 if test "${llvm_cv_gnu_make_command+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   llvm_cv_gnu_make_command=''
5737  for a in "$MAKE" make gmake gnumake ; do
5738   if test -z "$a" ; then continue ; fi ;
5739   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5740   then
5741    llvm_cv_gnu_make_command=$a ;
5742    break;
5743   fi
5744  done
5745 fi
5746 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5747 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5748  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5749    ifGNUmake='' ;
5750  else
5751    ifGNUmake='#' ;
5752    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5753 echo "${ECHO_T}\"Not found\"" >&6; };
5754  fi
5755
5756
5757 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5758 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5759 LN_S=$as_ln_s
5760 if test "$LN_S" = "ln -s"; then
5761   { echo "$as_me:$LINENO: result: yes" >&5
5762 echo "${ECHO_T}yes" >&6; }
5763 else
5764   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5765 echo "${ECHO_T}no, using $LN_S" >&6; }
5766 fi
5767
5768 # Extract the first word of "nm", so it can be a program name with args.
5769 set dummy nm; ac_word=$2
5770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5772 if test "${ac_cv_path_NM+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   case $NM in
5776   [\\/]* | ?:[\\/]*)
5777   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5778   ;;
5779   *)
5780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783   IFS=$as_save_IFS
5784   test -z "$as_dir" && as_dir=.
5785   for ac_exec_ext in '' $ac_executable_extensions; do
5786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5787     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789     break 2
5790   fi
5791 done
5792 done
5793 IFS=$as_save_IFS
5794
5795   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5796   ;;
5797 esac
5798 fi
5799 NM=$ac_cv_path_NM
5800 if test -n "$NM"; then
5801   { echo "$as_me:$LINENO: result: $NM" >&5
5802 echo "${ECHO_T}$NM" >&6; }
5803 else
5804   { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5806 fi
5807
5808
5809 # Extract the first word of "cmp", so it can be a program name with args.
5810 set dummy cmp; ac_word=$2
5811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5813 if test "${ac_cv_path_CMP+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   case $CMP in
5817   [\\/]* | ?:[\\/]*)
5818   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5819   ;;
5820   *)
5821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826   for ac_exec_ext in '' $ac_executable_extensions; do
5827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5828     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5837   ;;
5838 esac
5839 fi
5840 CMP=$ac_cv_path_CMP
5841 if test -n "$CMP"; then
5842   { echo "$as_me:$LINENO: result: $CMP" >&5
5843 echo "${ECHO_T}$CMP" >&6; }
5844 else
5845   { echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6; }
5847 fi
5848
5849
5850 # Extract the first word of "cp", so it can be a program name with args.
5851 set dummy cp; ac_word=$2
5852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854 if test "${ac_cv_path_CP+set}" = set; then
5855   echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857   case $CP in
5858   [\\/]* | ?:[\\/]*)
5859   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5860   ;;
5861   *)
5862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865   IFS=$as_save_IFS
5866   test -z "$as_dir" && as_dir=.
5867   for ac_exec_ext in '' $ac_executable_extensions; do
5868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5869     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871     break 2
5872   fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5876
5877   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5878   ;;
5879 esac
5880 fi
5881 CP=$ac_cv_path_CP
5882 if test -n "$CP"; then
5883   { echo "$as_me:$LINENO: result: $CP" >&5
5884 echo "${ECHO_T}$CP" >&6; }
5885 else
5886   { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5888 fi
5889
5890
5891 # Extract the first word of "date", so it can be a program name with args.
5892 set dummy date; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_path_DATE+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   case $DATE in
5899   [\\/]* | ?:[\\/]*)
5900   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5901   ;;
5902   *)
5903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908   for ac_exec_ext in '' $ac_executable_extensions; do
5909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5910     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915 done
5916 IFS=$as_save_IFS
5917
5918   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5919   ;;
5920 esac
5921 fi
5922 DATE=$ac_cv_path_DATE
5923 if test -n "$DATE"; then
5924   { echo "$as_me:$LINENO: result: $DATE" >&5
5925 echo "${ECHO_T}$DATE" >&6; }
5926 else
5927   { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5930
5931
5932 # Extract the first word of "find", so it can be a program name with args.
5933 set dummy find; ac_word=$2
5934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5936 if test "${ac_cv_path_FIND+set}" = set; then
5937   echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5939   case $FIND in
5940   [\\/]* | ?:[\\/]*)
5941   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5942   ;;
5943   *)
5944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949   for ac_exec_ext in '' $ac_executable_extensions; do
5950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5951     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953     break 2
5954   fi
5955 done
5956 done
5957 IFS=$as_save_IFS
5958
5959   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5960   ;;
5961 esac
5962 fi
5963 FIND=$ac_cv_path_FIND
5964 if test -n "$FIND"; then
5965   { echo "$as_me:$LINENO: result: $FIND" >&5
5966 echo "${ECHO_T}$FIND" >&6; }
5967 else
5968   { echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6; }
5970 fi
5971
5972
5973 # Extract the first word of "grep", so it can be a program name with args.
5974 set dummy grep; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_path_GREP+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   case $GREP in
5981   [\\/]* | ?:[\\/]*)
5982   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5983   ;;
5984   *)
5985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988   IFS=$as_save_IFS
5989   test -z "$as_dir" && as_dir=.
5990   for ac_exec_ext in '' $ac_executable_extensions; do
5991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5992     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994     break 2
5995   fi
5996 done
5997 done
5998 IFS=$as_save_IFS
5999
6000   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6001   ;;
6002 esac
6003 fi
6004 GREP=$ac_cv_path_GREP
6005 if test -n "$GREP"; then
6006   { echo "$as_me:$LINENO: result: $GREP" >&5
6007 echo "${ECHO_T}$GREP" >&6; }
6008 else
6009   { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6011 fi
6012
6013
6014 # Extract the first word of "mkdir", so it can be a program name with args.
6015 set dummy mkdir; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_path_MKDIR+set}" = set; then
6019   echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021   case $MKDIR in
6022   [\\/]* | ?:[\\/]*)
6023   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6024   ;;
6025   *)
6026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029   IFS=$as_save_IFS
6030   test -z "$as_dir" && as_dir=.
6031   for ac_exec_ext in '' $ac_executable_extensions; do
6032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6033     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035     break 2
6036   fi
6037 done
6038 done
6039 IFS=$as_save_IFS
6040
6041   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6042   ;;
6043 esac
6044 fi
6045 MKDIR=$ac_cv_path_MKDIR
6046 if test -n "$MKDIR"; then
6047   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6048 echo "${ECHO_T}$MKDIR" >&6; }
6049 else
6050   { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6052 fi
6053
6054
6055 # Extract the first word of "mv", so it can be a program name with args.
6056 set dummy mv; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_path_MV+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   case $MV in
6063   [\\/]* | ?:[\\/]*)
6064   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6065   ;;
6066   *)
6067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070   IFS=$as_save_IFS
6071   test -z "$as_dir" && as_dir=.
6072   for ac_exec_ext in '' $ac_executable_extensions; do
6073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6074     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076     break 2
6077   fi
6078 done
6079 done
6080 IFS=$as_save_IFS
6081
6082   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6083   ;;
6084 esac
6085 fi
6086 MV=$ac_cv_path_MV
6087 if test -n "$MV"; then
6088   { echo "$as_me:$LINENO: result: $MV" >&5
6089 echo "${ECHO_T}$MV" >&6; }
6090 else
6091   { echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6; }
6093 fi
6094
6095
6096 if test -n "$ac_tool_prefix"; then
6097   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_RANLIB+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   if test -n "$RANLIB"; then
6105   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112   for ac_exec_ext in '' $ac_executable_extensions; do
6113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119 done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 RANLIB=$ac_cv_prog_RANLIB
6125 if test -n "$RANLIB"; then
6126   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6127 echo "${ECHO_T}$RANLIB" >&6; }
6128 else
6129   { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6131 fi
6132
6133
6134 fi
6135 if test -z "$ac_cv_prog_RANLIB"; then
6136   ac_ct_RANLIB=$RANLIB
6137   # Extract the first word of "ranlib", so it can be a program name with args.
6138 set dummy ranlib; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   if test -n "$ac_ct_RANLIB"; then
6145   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152   for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_prog_ac_ct_RANLIB="ranlib"
6155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165 if test -n "$ac_ct_RANLIB"; then
6166   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6167 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6168 else
6169   { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6171 fi
6172
6173   if test "x$ac_ct_RANLIB" = x; then
6174     RANLIB=":"
6175   else
6176     case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet.  If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&5
6181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6182 whose name does not start with the host triplet.  If you think this
6183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6184 ac_tool_warned=yes ;;
6185 esac
6186     RANLIB=$ac_ct_RANLIB
6187   fi
6188 else
6189   RANLIB="$ac_cv_prog_RANLIB"
6190 fi
6191
6192 if test -n "$ac_tool_prefix"; then
6193   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}ar; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_AR+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   if test -n "$AR"; then
6201   ac_cv_prog_AR="$AR" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206   IFS=$as_save_IFS
6207   test -z "$as_dir" && as_dir=.
6208   for ac_exec_ext in '' $ac_executable_extensions; do
6209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6210     ac_cv_prog_AR="${ac_tool_prefix}ar"
6211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212     break 2
6213   fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 AR=$ac_cv_prog_AR
6221 if test -n "$AR"; then
6222   { echo "$as_me:$LINENO: result: $AR" >&5
6223 echo "${ECHO_T}$AR" >&6; }
6224 else
6225   { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6227 fi
6228
6229
6230 fi
6231 if test -z "$ac_cv_prog_AR"; then
6232   ac_ct_AR=$AR
6233   # Extract the first word of "ar", so it can be a program name with args.
6234 set dummy ar; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   if test -n "$ac_ct_AR"; then
6241   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248   for ac_exec_ext in '' $ac_executable_extensions; do
6249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250     ac_cv_prog_ac_ct_AR="ar"
6251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6261 if test -n "$ac_ct_AR"; then
6262   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6263 echo "${ECHO_T}$ac_ct_AR" >&6; }
6264 else
6265   { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6268
6269   if test "x$ac_ct_AR" = x; then
6270     AR="false"
6271   else
6272     case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet.  If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&5
6277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6278 whose name does not start with the host triplet.  If you think this
6279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6280 ac_tool_warned=yes ;;
6281 esac
6282     AR=$ac_ct_AR
6283   fi
6284 else
6285   AR="$ac_cv_prog_AR"
6286 fi
6287
6288 # Extract the first word of "rm", so it can be a program name with args.
6289 set dummy rm; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_path_RM+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   case $RM in
6296   [\\/]* | ?:[\\/]*)
6297   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6298   ;;
6299   *)
6300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305   for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312 done
6313 IFS=$as_save_IFS
6314
6315   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6316   ;;
6317 esac
6318 fi
6319 RM=$ac_cv_path_RM
6320 if test -n "$RM"; then
6321   { echo "$as_me:$LINENO: result: $RM" >&5
6322 echo "${ECHO_T}$RM" >&6; }
6323 else
6324   { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6326 fi
6327
6328
6329 # Extract the first word of "sed", so it can be a program name with args.
6330 set dummy sed; ac_word=$2
6331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6333 if test "${ac_cv_path_SED+set}" = set; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336   case $SED in
6337   [\\/]* | ?:[\\/]*)
6338   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6339   ;;
6340   *)
6341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344   IFS=$as_save_IFS
6345   test -z "$as_dir" && as_dir=.
6346   for ac_exec_ext in '' $ac_executable_extensions; do
6347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6348     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350     break 2
6351   fi
6352 done
6353 done
6354 IFS=$as_save_IFS
6355
6356   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6357   ;;
6358 esac
6359 fi
6360 SED=$ac_cv_path_SED
6361 if test -n "$SED"; then
6362   { echo "$as_me:$LINENO: result: $SED" >&5
6363 echo "${ECHO_T}$SED" >&6; }
6364 else
6365   { echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6; }
6367 fi
6368
6369
6370 # Extract the first word of "tar", so it can be a program name with args.
6371 set dummy tar; ac_word=$2
6372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374 if test "${ac_cv_path_TAR+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   case $TAR in
6378   [\\/]* | ?:[\\/]*)
6379   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6380   ;;
6381   *)
6382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387   for ac_exec_ext in '' $ac_executable_extensions; do
6388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6398   ;;
6399 esac
6400 fi
6401 TAR=$ac_cv_path_TAR
6402 if test -n "$TAR"; then
6403   { echo "$as_me:$LINENO: result: $TAR" >&5
6404 echo "${ECHO_T}$TAR" >&6; }
6405 else
6406   { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6408 fi
6409
6410
6411 # Extract the first word of "pwd", so it can be a program name with args.
6412 set dummy pwd; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_path_BINPWD+set}" = set; then
6416   echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418   case $BINPWD in
6419   [\\/]* | ?:[\\/]*)
6420   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6421   ;;
6422   *)
6423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428   for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6439   ;;
6440 esac
6441 fi
6442 BINPWD=$ac_cv_path_BINPWD
6443 if test -n "$BINPWD"; then
6444   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6445 echo "${ECHO_T}$BINPWD" >&6; }
6446 else
6447   { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6449 fi
6450
6451
6452
6453 # Extract the first word of "dot", so it can be a program name with args.
6454 set dummy dot; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_path_DOT+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   case $DOT in
6461   [\\/]* | ?:[\\/]*)
6462   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6463   ;;
6464   *)
6465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
6469   test -z "$as_dir" && as_dir=.
6470   for ac_exec_ext in '' $ac_executable_extensions; do
6471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6472     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474     break 2
6475   fi
6476 done
6477 done
6478 IFS=$as_save_IFS
6479
6480   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6481   ;;
6482 esac
6483 fi
6484 DOT=$ac_cv_path_DOT
6485 if test -n "$DOT"; then
6486   { echo "$as_me:$LINENO: result: $DOT" >&5
6487 echo "${ECHO_T}$DOT" >&6; }
6488 else
6489   { echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6; }
6491 fi
6492
6493
6494 if test "$DOT" != "echo dot" ; then
6495
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_DOT 1
6498 _ACEOF
6499
6500     if test "$llvm_cv_os_type" = "MingW" ; then
6501     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6502   fi
6503
6504 cat >>confdefs.h <<_ACEOF
6505 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6506 _ACEOF
6507
6508 fi
6509
6510 # Find a good install program.  We prefer a C program (faster),
6511 # so one script is as good as another.  But avoid the broken or
6512 # incompatible versions:
6513 # SysV /etc/install, /usr/sbin/install
6514 # SunOS /usr/etc/install
6515 # IRIX /sbin/install
6516 # AIX /bin/install
6517 # AmigaOS /C/install, which installs bootblocks on floppy discs
6518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6521 # OS/2's system install, which has a completely different semantic
6522 # ./install, which can be erroneously created by make from ./install.sh.
6523 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6524 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6525 if test -z "$INSTALL"; then
6526 if test "${ac_cv_path_install+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534   # Account for people who put trailing slashes in PATH elements.
6535 case $as_dir/ in
6536   ./ | .// | /cC/* | \
6537   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6538   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6539   /usr/ucb/* ) ;;
6540   *)
6541     # OSF1 and SCO ODT 3.0 have their own names for install.
6542     # Don't use installbsd from OSF since it installs stuff as root
6543     # by default.
6544     for ac_prog in ginstall scoinst install; do
6545       for ac_exec_ext in '' $ac_executable_extensions; do
6546         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6547           if test $ac_prog = install &&
6548             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6549             # AIX install.  It has an incompatible calling convention.
6550             :
6551           elif test $ac_prog = install &&
6552             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6553             # program-specific install script used by HP pwplus--don't use.
6554             :
6555           else
6556             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6557             break 3
6558           fi
6559         fi
6560       done
6561     done
6562     ;;
6563 esac
6564 done
6565 IFS=$as_save_IFS
6566
6567
6568 fi
6569   if test "${ac_cv_path_install+set}" = set; then
6570     INSTALL=$ac_cv_path_install
6571   else
6572     # As a last resort, use the slow shell script.  Don't cache a
6573     # value for INSTALL within a source directory, because that will
6574     # break other packages using the cache if that directory is
6575     # removed, or if the value is a relative name.
6576     INSTALL=$ac_install_sh
6577   fi
6578 fi
6579 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6580 echo "${ECHO_T}$INSTALL" >&6; }
6581
6582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6583 # It thinks the first close brace ends the variable substitution.
6584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6585
6586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6587
6588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6589
6590 case "$INSTALL" in
6591  [\\/$]* | ?:[\\/]* ) ;;
6592  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6593 esac
6594
6595 # Extract the first word of "bzip2", so it can be a program name with args.
6596 set dummy bzip2; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_path_BZIP2+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   case $BZIP2 in
6603   [\\/]* | ?:[\\/]*)
6604   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6605   ;;
6606   *)
6607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612   for ac_exec_ext in '' $ac_executable_extensions; do
6613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6614     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622   ;;
6623 esac
6624 fi
6625 BZIP2=$ac_cv_path_BZIP2
6626 if test -n "$BZIP2"; then
6627   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6628 echo "${ECHO_T}$BZIP2" >&6; }
6629 else
6630   { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6632 fi
6633
6634
6635 # Extract the first word of "cat", so it can be a program name with args.
6636 set dummy cat; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_path_CAT+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   case $CAT in
6643   [\\/]* | ?:[\\/]*)
6644   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6645   ;;
6646   *)
6647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652   for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662   ;;
6663 esac
6664 fi
6665 CAT=$ac_cv_path_CAT
6666 if test -n "$CAT"; then
6667   { echo "$as_me:$LINENO: result: $CAT" >&5
6668 echo "${ECHO_T}$CAT" >&6; }
6669 else
6670   { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6672 fi
6673
6674
6675 # Extract the first word of "doxygen", so it can be a program name with args.
6676 set dummy doxygen; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   case $DOXYGEN in
6683   [\\/]* | ?:[\\/]*)
6684   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6685   ;;
6686   *)
6687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692   for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702   ;;
6703 esac
6704 fi
6705 DOXYGEN=$ac_cv_path_DOXYGEN
6706 if test -n "$DOXYGEN"; then
6707   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6708 echo "${ECHO_T}$DOXYGEN" >&6; }
6709 else
6710   { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6712 fi
6713
6714
6715 # Extract the first word of "groff", so it can be a program name with args.
6716 set dummy groff; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_path_GROFF+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   case $GROFF in
6723   [\\/]* | ?:[\\/]*)
6724   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6725   ;;
6726   *)
6727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730   IFS=$as_save_IFS
6731   test -z "$as_dir" && as_dir=.
6732   for ac_exec_ext in '' $ac_executable_extensions; do
6733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6734     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736     break 2
6737   fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742   ;;
6743 esac
6744 fi
6745 GROFF=$ac_cv_path_GROFF
6746 if test -n "$GROFF"; then
6747   { echo "$as_me:$LINENO: result: $GROFF" >&5
6748 echo "${ECHO_T}$GROFF" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754
6755 # Extract the first word of "gzip", so it can be a program name with args.
6756 set dummy gzip; ac_word=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   case $GZIPBIN in
6763   [\\/]* | ?:[\\/]*)
6764   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6765   ;;
6766   *)
6767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770   IFS=$as_save_IFS
6771   test -z "$as_dir" && as_dir=.
6772   for ac_exec_ext in '' $ac_executable_extensions; do
6773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6774     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776     break 2
6777   fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782   ;;
6783 esac
6784 fi
6785 GZIPBIN=$ac_cv_path_GZIPBIN
6786 if test -n "$GZIPBIN"; then
6787   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6788 echo "${ECHO_T}$GZIPBIN" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794
6795 # Extract the first word of "pdfroff", so it can be a program name with args.
6796 set dummy pdfroff; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_PDFROFF+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   case $PDFROFF in
6803   [\\/]* | ?:[\\/]*)
6804   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6805   ;;
6806   *)
6807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810   IFS=$as_save_IFS
6811   test -z "$as_dir" && as_dir=.
6812   for ac_exec_ext in '' $ac_executable_extensions; do
6813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816     break 2
6817   fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822   ;;
6823 esac
6824 fi
6825 PDFROFF=$ac_cv_path_PDFROFF
6826 if test -n "$PDFROFF"; then
6827   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6828 echo "${ECHO_T}$PDFROFF" >&6; }
6829 else
6830   { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6832 fi
6833
6834
6835 # Extract the first word of "zip", so it can be a program name with args.
6836 set dummy zip; ac_word=$2
6837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6839 if test "${ac_cv_path_ZIP+set}" = set; then
6840   echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842   case $ZIP in
6843   [\\/]* | ?:[\\/]*)
6844   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6845   ;;
6846   *)
6847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850   IFS=$as_save_IFS
6851   test -z "$as_dir" && as_dir=.
6852   for ac_exec_ext in '' $ac_executable_extensions; do
6853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6854     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862   ;;
6863 esac
6864 fi
6865 ZIP=$ac_cv_path_ZIP
6866 if test -n "$ZIP"; then
6867   { echo "$as_me:$LINENO: result: $ZIP" >&5
6868 echo "${ECHO_T}$ZIP" >&6; }
6869 else
6870   { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6872 fi
6873
6874
6875 for ac_prog in ocamlc
6876 do
6877   # Extract the first word of "$ac_prog", so it can be a program name with args.
6878 set dummy $ac_prog; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_OCAMLC+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   case $OCAMLC in
6885   [\\/]* | ?:[\\/]*)
6886   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6887   ;;
6888   *)
6889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894   for ac_exec_ext in '' $ac_executable_extensions; do
6895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904   ;;
6905 esac
6906 fi
6907 OCAMLC=$ac_cv_path_OCAMLC
6908 if test -n "$OCAMLC"; then
6909   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6910 echo "${ECHO_T}$OCAMLC" >&6; }
6911 else
6912   { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6914 fi
6915
6916
6917   test -n "$OCAMLC" && break
6918 done
6919
6920 for ac_prog in ocamlopt
6921 do
6922   # Extract the first word of "$ac_prog", so it can be a program name with args.
6923 set dummy $ac_prog; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929   case $OCAMLOPT in
6930   [\\/]* | ?:[\\/]*)
6931   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6932   ;;
6933   *)
6934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   test -z "$as_dir" && as_dir=.
6939   for ac_exec_ext in '' $ac_executable_extensions; do
6940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943     break 2
6944   fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949   ;;
6950 esac
6951 fi
6952 OCAMLOPT=$ac_cv_path_OCAMLOPT
6953 if test -n "$OCAMLOPT"; then
6954   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6955 echo "${ECHO_T}$OCAMLOPT" >&6; }
6956 else
6957   { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6959 fi
6960
6961
6962   test -n "$OCAMLOPT" && break
6963 done
6964
6965 for ac_prog in ocamldep
6966 do
6967   # Extract the first word of "$ac_prog", so it can be a program name with args.
6968 set dummy $ac_prog; ac_word=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
6972   echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974   case $OCAMLDEP in
6975   [\\/]* | ?:[\\/]*)
6976   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
6977   ;;
6978   *)
6979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6981 do
6982   IFS=$as_save_IFS
6983   test -z "$as_dir" && as_dir=.
6984   for ac_exec_ext in '' $ac_executable_extensions; do
6985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6986     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
6987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988     break 2
6989   fi
6990 done
6991 done
6992 IFS=$as_save_IFS
6993
6994   ;;
6995 esac
6996 fi
6997 OCAMLDEP=$ac_cv_path_OCAMLDEP
6998 if test -n "$OCAMLDEP"; then
6999   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7000 echo "${ECHO_T}$OCAMLDEP" >&6; }
7001 else
7002   { echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6; }
7004 fi
7005
7006
7007   test -n "$OCAMLDEP" && break
7008 done
7009
7010 for ac_prog in ocamldoc
7011 do
7012   # Extract the first word of "$ac_prog", so it can be a program name with args.
7013 set dummy $ac_prog; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   case $OCAMLDOC in
7020   [\\/]* | ?:[\\/]*)
7021   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7022   ;;
7023   *)
7024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027   IFS=$as_save_IFS
7028   test -z "$as_dir" && as_dir=.
7029   for ac_exec_ext in '' $ac_executable_extensions; do
7030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039   ;;
7040 esac
7041 fi
7042 OCAMLDOC=$ac_cv_path_OCAMLDOC
7043 if test -n "$OCAMLDOC"; then
7044   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7045 echo "${ECHO_T}$OCAMLDOC" >&6; }
7046 else
7047   { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7049 fi
7050
7051
7052   test -n "$OCAMLDOC" && break
7053 done
7054
7055 for ac_prog in gas as
7056 do
7057   # Extract the first word of "$ac_prog", so it can be a program name with args.
7058 set dummy $ac_prog; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_GAS+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   case $GAS in
7065   [\\/]* | ?:[\\/]*)
7066   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7067   ;;
7068   *)
7069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074   for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084   ;;
7085 esac
7086 fi
7087 GAS=$ac_cv_path_GAS
7088 if test -n "$GAS"; then
7089   { echo "$as_me:$LINENO: result: $GAS" >&5
7090 echo "${ECHO_T}$GAS" >&6; }
7091 else
7092   { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096
7097   test -n "$GAS" && break
7098 done
7099
7100
7101 { echo "$as_me:$LINENO: checking for linker version" >&5
7102 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7103 if test "${llvm_cv_link_version+set}" = set; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106
7107    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7108
7109    # Check for ld64.
7110    if (echo "$version_string" | grep -q "ld64"); then
7111      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7112    else
7113      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7114    fi
7115
7116 fi
7117 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7118 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7119
7120 cat >>confdefs.h <<_ACEOF
7121 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7122 _ACEOF
7123
7124
7125
7126
7127 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7128 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7129 if test "${llvm_cv_link_use_r+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132    ac_ext=c
7133 ac_cpp='$CPP $CPPFLAGS'
7134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7137
7138   oldcflags="$CFLAGS"
7139   CFLAGS="$CFLAGS -Wl,-R."
7140   cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146
7147 int
7148 main ()
7149 {
7150
7151   ;
7152   return 0;
7153 }
7154 _ACEOF
7155 rm -f conftest.$ac_objext conftest$ac_exeext
7156 if { (ac_try="$ac_link"
7157 case "(($ac_try" in
7158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159   *) ac_try_echo=$ac_try;;
7160 esac
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162   (eval "$ac_link") 2>conftest.er1
7163   ac_status=$?
7164   grep -v '^ *+' conftest.er1 >conftest.err
7165   rm -f conftest.er1
7166   cat conftest.err >&5
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } &&
7169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7170   { (case "(($ac_try" in
7171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172   *) ac_try_echo=$ac_try;;
7173 esac
7174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175   (eval "$ac_try") 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); }; } &&
7179          { ac_try='test -s conftest$ac_exeext'
7180   { (case "(($ac_try" in
7181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182   *) ac_try_echo=$ac_try;;
7183 esac
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185   (eval "$ac_try") 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); }; }; then
7189   llvm_cv_link_use_r=yes
7190 else
7191   echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7193
7194         llvm_cv_link_use_r=no
7195 fi
7196
7197 rm -f core conftest.err conftest.$ac_objext \
7198       conftest$ac_exeext conftest.$ac_ext
7199   CFLAGS="$oldcflags"
7200   ac_ext=c
7201 ac_cpp='$CPP $CPPFLAGS'
7202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7205
7206
7207 fi
7208 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7209 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7210 if test "$llvm_cv_link_use_r" = yes ; then
7211
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_LINK_R 1
7214 _ACEOF
7215
7216   fi
7217
7218
7219 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7220 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7221 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224    ac_ext=c
7225 ac_cpp='$CPP $CPPFLAGS'
7226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229
7230   oldcflags="$CFLAGS"
7231   CFLAGS="$CFLAGS -rdynamic"
7232   cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h.  */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h.  */
7238
7239 int
7240 main ()
7241 {
7242
7243   ;
7244   return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext conftest$ac_exeext
7248 if { (ac_try="$ac_link"
7249 case "(($ac_try" in
7250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251   *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254   (eval "$ac_link") 2>conftest.er1
7255   ac_status=$?
7256   grep -v '^ *+' conftest.er1 >conftest.err
7257   rm -f conftest.er1
7258   cat conftest.err >&5
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } &&
7261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7262   { (case "(($ac_try" in
7263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264   *) ac_try_echo=$ac_try;;
7265 esac
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267   (eval "$ac_try") 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); }; } &&
7271          { ac_try='test -s conftest$ac_exeext'
7272   { (case "(($ac_try" in
7273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274   *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277   (eval "$ac_try") 2>&5
7278   ac_status=$?
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); }; }; then
7281   llvm_cv_link_use_export_dynamic=yes
7282 else
7283   echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7285
7286         llvm_cv_link_use_export_dynamic=no
7287 fi
7288
7289 rm -f core conftest.err conftest.$ac_objext \
7290       conftest$ac_exeext conftest.$ac_ext
7291   CFLAGS="$oldcflags"
7292   ac_ext=c
7293 ac_cpp='$CPP $CPPFLAGS'
7294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297
7298
7299 fi
7300 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7301 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7302 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7303
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_LINK_EXPORT_DYNAMIC 1
7306 _ACEOF
7307
7308   fi
7309
7310
7311 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7312 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7313 if test "${llvm_cv_link_use_version_script+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316    ac_ext=c
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
7322   oldcflags="$CFLAGS"
7323
7324   # The following code is from the autoconf manual,
7325   # "11.13: Limitations of Usual Tools".
7326   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7327   # Use mktemp if possible; otherwise fall back on mkdir,
7328   # with $RANDOM to make collisions less likely.
7329   : ${TMPDIR=/tmp}
7330   {
7331     tmp=`
7332       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7333     ` &&
7334     test -n "$tmp" && test -d "$tmp"
7335   } || {
7336     tmp=$TMPDIR/foo$$-$RANDOM
7337     (umask 077 && mkdir "$tmp")
7338   } || exit $?
7339
7340   echo "{" > "$tmp/export.map"
7341   echo "  global: main;" >> "$tmp/export.map"
7342   echo "  local: *;" >> "$tmp/export.map"
7343   echo "};" >> "$tmp/export.map"
7344
7345   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7346   cat >conftest.$ac_ext <<_ACEOF
7347 /* confdefs.h.  */
7348 _ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h.  */
7352
7353 int
7354 main ()
7355 {
7356
7357   ;
7358   return 0;
7359 }
7360 _ACEOF
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (ac_try="$ac_link"
7363 case "(($ac_try" in
7364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365   *) ac_try_echo=$ac_try;;
7366 esac
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368   (eval "$ac_link") 2>conftest.er1
7369   ac_status=$?
7370   grep -v '^ *+' conftest.er1 >conftest.err
7371   rm -f conftest.er1
7372   cat conftest.err >&5
7373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); } &&
7375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7376   { (case "(($ac_try" in
7377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378   *) ac_try_echo=$ac_try;;
7379 esac
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381   (eval "$ac_try") 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }; } &&
7385          { ac_try='test -s conftest$ac_exeext'
7386   { (case "(($ac_try" in
7387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388   *) ac_try_echo=$ac_try;;
7389 esac
7390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391   (eval "$ac_try") 2>&5
7392   ac_status=$?
7393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); }; }; then
7395   llvm_cv_link_use_version_script=yes
7396 else
7397   echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400         llvm_cv_link_use_version_script=no
7401 fi
7402
7403 rm -f core conftest.err conftest.$ac_objext \
7404       conftest$ac_exeext conftest.$ac_ext
7405   rm "$tmp/export.map"
7406   rmdir "$tmp"
7407   CFLAGS="$oldcflags"
7408   ac_ext=c
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413
7414
7415 fi
7416 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7417 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7418 if test "$llvm_cv_link_use_version_script" = yes ; then
7419   HAVE_LINK_VERSION_SCRIPT=1
7420
7421   fi
7422
7423
7424
7425 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7426 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_GREP+set}" = set; then
7428   echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430   # Extract the first word of "grep ggrep" to use in msg output
7431 if test -z "$GREP"; then
7432 set dummy grep ggrep; ac_prog_name=$2
7433 if test "${ac_cv_path_GREP+set}" = set; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   ac_path_GREP_found=false
7437 # Loop through the user's path and test for each of PROGNAME-LIST
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443   for ac_prog in grep ggrep; do
7444   for ac_exec_ext in '' $ac_executable_extensions; do
7445     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7446     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7447     # Check for GNU ac_path_GREP and select it if it is found.
7448   # Check for GNU $ac_path_GREP
7449 case `"$ac_path_GREP" --version 2>&1` in
7450 *GNU*)
7451   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7452 *)
7453   ac_count=0
7454   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7455   while :
7456   do
7457     cat "conftest.in" "conftest.in" >"conftest.tmp"
7458     mv "conftest.tmp" "conftest.in"
7459     cp "conftest.in" "conftest.nl"
7460     echo 'GREP' >> "conftest.nl"
7461     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7462     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7463     ac_count=`expr $ac_count + 1`
7464     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7465       # Best one so far, save it but keep looking for a better one
7466       ac_cv_path_GREP="$ac_path_GREP"
7467       ac_path_GREP_max=$ac_count
7468     fi
7469     # 10*(2^10) chars as input seems more than enough
7470     test $ac_count -gt 10 && break
7471   done
7472   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7473 esac
7474
7475
7476     $ac_path_GREP_found && break 3
7477   done
7478 done
7479
7480 done
7481 IFS=$as_save_IFS
7482
7483
7484 fi
7485
7486 GREP="$ac_cv_path_GREP"
7487 if test -z "$GREP"; then
7488   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7489 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7490    { (exit 1); exit 1; }; }
7491 fi
7492
7493 else
7494   ac_cv_path_GREP=$GREP
7495 fi
7496
7497
7498 fi
7499 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7500 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7501  GREP="$ac_cv_path_GREP"
7502
7503
7504 { echo "$as_me:$LINENO: checking for egrep" >&5
7505 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_EGREP+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7510    then ac_cv_path_EGREP="$GREP -E"
7511    else
7512      # Extract the first word of "egrep" to use in msg output
7513 if test -z "$EGREP"; then
7514 set dummy egrep; ac_prog_name=$2
7515 if test "${ac_cv_path_EGREP+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   ac_path_EGREP_found=false
7519 # Loop through the user's path and test for each of PROGNAME-LIST
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525   for ac_prog in egrep; do
7526   for ac_exec_ext in '' $ac_executable_extensions; do
7527     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7528     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7529     # Check for GNU ac_path_EGREP and select it if it is found.
7530   # Check for GNU $ac_path_EGREP
7531 case `"$ac_path_EGREP" --version 2>&1` in
7532 *GNU*)
7533   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7534 *)
7535   ac_count=0
7536   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7537   while :
7538   do
7539     cat "conftest.in" "conftest.in" >"conftest.tmp"
7540     mv "conftest.tmp" "conftest.in"
7541     cp "conftest.in" "conftest.nl"
7542     echo 'EGREP' >> "conftest.nl"
7543     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7544     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7545     ac_count=`expr $ac_count + 1`
7546     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7547       # Best one so far, save it but keep looking for a better one
7548       ac_cv_path_EGREP="$ac_path_EGREP"
7549       ac_path_EGREP_max=$ac_count
7550     fi
7551     # 10*(2^10) chars as input seems more than enough
7552     test $ac_count -gt 10 && break
7553   done
7554   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7555 esac
7556
7557
7558     $ac_path_EGREP_found && break 3
7559   done
7560 done
7561
7562 done
7563 IFS=$as_save_IFS
7564
7565
7566 fi
7567
7568 EGREP="$ac_cv_path_EGREP"
7569 if test -z "$EGREP"; then
7570   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7571 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7572    { (exit 1); exit 1; }; }
7573 fi
7574
7575 else
7576   ac_cv_path_EGREP=$EGREP
7577 fi
7578
7579
7580    fi
7581 fi
7582 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7583 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7584  EGREP="$ac_cv_path_EGREP"
7585
7586
7587 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7589 if test "${ac_cv_header_stdc+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   cat >conftest.$ac_ext <<_ACEOF
7593 /* confdefs.h.  */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h.  */
7598 #include <stdlib.h>
7599 #include <stdarg.h>
7600 #include <string.h>
7601 #include <float.h>
7602
7603 int
7604 main ()
7605 {
7606
7607   ;
7608   return 0;
7609 }
7610 _ACEOF
7611 rm -f conftest.$ac_objext
7612 if { (ac_try="$ac_compile"
7613 case "(($ac_try" in
7614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615   *) ac_try_echo=$ac_try;;
7616 esac
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618   (eval "$ac_compile") 2>conftest.er1
7619   ac_status=$?
7620   grep -v '^ *+' conftest.er1 >conftest.err
7621   rm -f conftest.er1
7622   cat conftest.err >&5
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } &&
7625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7626   { (case "(($ac_try" in
7627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628   *) ac_try_echo=$ac_try;;
7629 esac
7630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7631   (eval "$ac_try") 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); }; } &&
7635          { ac_try='test -s conftest.$ac_objext'
7636   { (case "(($ac_try" in
7637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638   *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641   (eval "$ac_try") 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   ac_cv_header_stdc=yes
7646 else
7647   echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650         ac_cv_header_stdc=no
7651 fi
7652
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654
7655 if test $ac_cv_header_stdc = yes; then
7656   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7657   cat >conftest.$ac_ext <<_ACEOF
7658 /* confdefs.h.  */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h.  */
7663 #include <string.h>
7664
7665 _ACEOF
7666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7667   $EGREP "memchr" >/dev/null 2>&1; then
7668   :
7669 else
7670   ac_cv_header_stdc=no
7671 fi
7672 rm -f conftest*
7673
7674 fi
7675
7676 if test $ac_cv_header_stdc = yes; then
7677   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7678   cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h.  */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h.  */
7684 #include <stdlib.h>
7685
7686 _ACEOF
7687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7688   $EGREP "free" >/dev/null 2>&1; then
7689   :
7690 else
7691   ac_cv_header_stdc=no
7692 fi
7693 rm -f conftest*
7694
7695 fi
7696
7697 if test $ac_cv_header_stdc = yes; then
7698   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7699   if test "$cross_compiling" = yes; then
7700   :
7701 else
7702   cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h.  */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h.  */
7708 #include <ctype.h>
7709 #include <stdlib.h>
7710 #if ((' ' & 0x0FF) == 0x020)
7711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7713 #else
7714 # define ISLOWER(c) \
7715                    (('a' <= (c) && (c) <= 'i') \
7716                      || ('j' <= (c) && (c) <= 'r') \
7717                      || ('s' <= (c) && (c) <= 'z'))
7718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7719 #endif
7720
7721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7722 int
7723 main ()
7724 {
7725   int i;
7726   for (i = 0; i < 256; i++)
7727     if (XOR (islower (i), ISLOWER (i))
7728         || toupper (i) != TOUPPER (i))
7729       return 2;
7730   return 0;
7731 }
7732 _ACEOF
7733 rm -f conftest$ac_exeext
7734 if { (ac_try="$ac_link"
7735 case "(($ac_try" in
7736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737   *) ac_try_echo=$ac_try;;
7738 esac
7739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740   (eval "$ac_link") 2>&5
7741   ac_status=$?
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7744   { (case "(($ac_try" in
7745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746   *) ac_try_echo=$ac_try;;
7747 esac
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749   (eval "$ac_try") 2>&5
7750   ac_status=$?
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); }; }; then
7753   :
7754 else
7755   echo "$as_me: program exited with status $ac_status" >&5
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7758
7759 ( exit $ac_status )
7760 ac_cv_header_stdc=no
7761 fi
7762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7763 fi
7764
7765
7766 fi
7767 fi
7768 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7769 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7770 if test $ac_cv_header_stdc = yes; then
7771
7772 cat >>confdefs.h <<\_ACEOF
7773 #define STDC_HEADERS 1
7774 _ACEOF
7775
7776 fi
7777
7778 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7789                   inttypes.h stdint.h unistd.h
7790 do
7791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7795   echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
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
7805 #include <$ac_header>
7806 _ACEOF
7807 rm -f conftest.$ac_objext
7808 if { (ac_try="$ac_compile"
7809 case "(($ac_try" in
7810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811   *) ac_try_echo=$ac_try;;
7812 esac
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814   (eval "$ac_compile") 2>conftest.er1
7815   ac_status=$?
7816   grep -v '^ *+' conftest.er1 >conftest.err
7817   rm -f conftest.er1
7818   cat conftest.err >&5
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); } &&
7821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7822   { (case "(($ac_try" in
7823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824   *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827   (eval "$ac_try") 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; } &&
7831          { ac_try='test -s conftest.$ac_objext'
7832   { (case "(($ac_try" in
7833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834   *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837   (eval "$ac_try") 2>&5
7838   ac_status=$?
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); }; }; then
7841   eval "$as_ac_Header=yes"
7842 else
7843   echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846         eval "$as_ac_Header=no"
7847 fi
7848
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 fi
7851 ac_res=`eval echo '${'$as_ac_Header'}'`
7852                { echo "$as_me:$LINENO: result: $ac_res" >&5
7853 echo "${ECHO_T}$ac_res" >&6; }
7854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7855   cat >>confdefs.h <<_ACEOF
7856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7857 _ACEOF
7858
7859 fi
7860
7861 done
7862
7863
7864
7865 for ac_header in errno.h
7866 do
7867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7869   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 fi
7874 ac_res=`eval echo '${'$as_ac_Header'}'`
7875                { echo "$as_me:$LINENO: result: $ac_res" >&5
7876 echo "${ECHO_T}$ac_res" >&6; }
7877 else
7878   # Is the header compilable?
7879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7881 cat >conftest.$ac_ext <<_ACEOF
7882 /* confdefs.h.  */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h.  */
7887 $ac_includes_default
7888 #include <$ac_header>
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (ac_try="$ac_compile"
7892 case "(($ac_try" in
7893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894   *) ac_try_echo=$ac_try;;
7895 esac
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897   (eval "$ac_compile") 2>conftest.er1
7898   ac_status=$?
7899   grep -v '^ *+' conftest.er1 >conftest.err
7900   rm -f conftest.er1
7901   cat conftest.err >&5
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } &&
7904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7905   { (case "(($ac_try" in
7906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907   *) ac_try_echo=$ac_try;;
7908 esac
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910   (eval "$ac_try") 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; } &&
7914          { ac_try='test -s conftest.$ac_objext'
7915   { (case "(($ac_try" in
7916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917   *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920   (eval "$ac_try") 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; }; then
7924   ac_header_compiler=yes
7925 else
7926   echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929         ac_header_compiler=no
7930 fi
7931
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7934 echo "${ECHO_T}$ac_header_compiler" >&6; }
7935
7936 # Is the header present?
7937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945 #include <$ac_header>
7946 _ACEOF
7947 if { (ac_try="$ac_cpp conftest.$ac_ext"
7948 case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7954   ac_status=$?
7955   grep -v '^ *+' conftest.er1 >conftest.err
7956   rm -f conftest.er1
7957   cat conftest.err >&5
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); } >/dev/null; then
7960   if test -s conftest.err; then
7961     ac_cpp_err=$ac_c_preproc_warn_flag
7962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7963   else
7964     ac_cpp_err=
7965   fi
7966 else
7967   ac_cpp_err=yes
7968 fi
7969 if test -z "$ac_cpp_err"; then
7970   ac_header_preproc=yes
7971 else
7972   echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975   ac_header_preproc=no
7976 fi
7977
7978 rm -f conftest.err conftest.$ac_ext
7979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7980 echo "${ECHO_T}$ac_header_preproc" >&6; }
7981
7982 # So?  What about this header?
7983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7984   yes:no: )
7985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7989     ac_header_preproc=yes
7990     ;;
7991   no:yes:* )
7992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8004     ( cat <<\_ASBOX
8005 ## ------------------------------------ ##
8006 ## Report this to http://llvm.org/bugs/ ##
8007 ## ------------------------------------ ##
8008 _ASBOX
8009      ) | sed "s/^/$as_me: WARNING:     /" >&2
8010     ;;
8011 esac
8012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8015   echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017   eval "$as_ac_Header=\$ac_header_preproc"
8018 fi
8019 ac_res=`eval echo '${'$as_ac_Header'}'`
8020                { echo "$as_me:$LINENO: result: $ac_res" >&5
8021 echo "${ECHO_T}$ac_res" >&6; }
8022
8023 fi
8024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8025   cat >>confdefs.h <<_ACEOF
8026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8027 _ACEOF
8028
8029 fi
8030
8031 done
8032
8033
8034 case "$llvm_cv_os_type" in
8035   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8036   Darwin) llvm_shlib_ext=.dylib ;;
8037   *) llvm_shlib_ext=.so ;;
8038 esac
8039
8040
8041 cat >>confdefs.h <<_ACEOF
8042 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8043 _ACEOF
8044
8045
8046 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8047 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8048
8049 ICC=no
8050 IXX=no
8051 case $CC in
8052   icc*|icpc*)
8053     ICC=yes
8054     IXX=yes
8055     ;;
8056    *)
8057     ;;
8058 esac
8059
8060 if test "$GCC" != "yes" && test "$ICC" != "yes"
8061 then
8062   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8063 echo "$as_me: error: gcc|icc required but not found" >&2;}
8064    { (exit 1); exit 1; }; }
8065 fi
8066
8067 if test "$GXX" != "yes" && test "$IXX" != "yes"
8068 then
8069   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8070 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8071    { (exit 1); exit 1; }; }
8072 fi
8073
8074 if test "$GCC" = "yes"
8075 then
8076   cat >conftest.$ac_ext <<_ACEOF
8077
8078   /* confdefs.h.  */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h.  */
8083
8084     #if !defined(__GNUC__) || __GNUC__ < 3
8085     #error Unsupported GCC version
8086     #endif
8087
8088
8089 _ACEOF
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8092 case "(($ac_try" in
8093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094   *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097   (eval "$ac_compile") 2>conftest.er1
8098   ac_status=$?
8099   grep -v '^ *+' conftest.er1 >conftest.err
8100   rm -f conftest.er1
8101   cat conftest.err >&5
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); } &&
8104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8105   { (case "(($ac_try" in
8106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107   *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110   (eval "$ac_try") 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; } &&
8114          { ac_try='test -s conftest.$ac_objext'
8115   { (case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120   (eval "$ac_try") 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; }; then
8124   :
8125 else
8126   echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8130 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8131    { (exit 1); exit 1; }; }
8132 fi
8133
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 fi
8136
8137 if test -z "$llvm_cv_gnu_make_command"
8138 then
8139   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8140 echo "$as_me: error: GNU Make required but not found" >&2;}
8141    { (exit 1); exit 1; }; }
8142 fi
8143
8144 { echo "$as_me:$LINENO: result: ok" >&5
8145 echo "${ECHO_T}ok" >&6; }
8146
8147 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8148 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8149 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8150
8151 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8152
8153 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8154
8155
8156 NO_UNINITIALIZED=
8157 NO_MAYBE_UNINITIALIZED=
8158 if test "$GXX" = "yes"
8159 then
8160   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8161
8162         if test -z "$NO_MAYBE_UNINITIALIZED"
8163   then
8164     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8165
8166   fi
8167 fi
8168 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8169 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8170
8171
8172 # Check whether --with-python was given.
8173 if test "${with_python+set}" = set; then
8174   withval=$with_python; PYTHON="$withval"
8175 fi
8176
8177
8178 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8179   { echo "$as_me:$LINENO: checking for python" >&5
8180 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8181   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8182 echo "${ECHO_T}user defined: $with_python" >&6; }
8183 else
8184   if test -n "$PYTHON" ; then
8185     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8186 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8187   fi
8188
8189   # Extract the first word of "python python2 python26", so it can be a program name with args.
8190 set dummy python python2 python26; ac_word=$2
8191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8193 if test "${ac_cv_path_PYTHON+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   case $PYTHON in
8197   [\\/]* | ?:[\\/]*)
8198   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8199   ;;
8200   *)
8201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   test -z "$as_dir" && as_dir=.
8206   for ac_exec_ext in '' $ac_executable_extensions; do
8207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8208     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210     break 2
8211   fi
8212 done
8213 done
8214 IFS=$as_save_IFS
8215
8216   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8217 echo "${ECHO_T}not found" >&6; }
8218                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8219 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8220    { (exit 1); exit 1; }; }"
8221   ;;
8222 esac
8223 fi
8224 PYTHON=$ac_cv_path_PYTHON
8225 if test -n "$PYTHON"; then
8226   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8227 echo "${ECHO_T}$PYTHON" >&6; }
8228 else
8229   { echo "$as_me:$LINENO: result: no" >&5
8230 echo "${ECHO_T}no" >&6; }
8231 fi
8232
8233
8234 fi
8235
8236 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8237 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8238 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8239 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8240 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8241 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8242 if test "$ac_python_version_major" -gt "2" || \
8243    (test "$ac_python_version_major" -eq "2" && \
8244     test "$ac_python_version_minor" -ge "5") ; then
8245   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8246 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8247 else
8248   { echo "$as_me:$LINENO: result: not found" >&5
8249 echo "${ECHO_T}not found" >&6; }
8250   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8251 See \`config.log' for more details." >&5
8252 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8253 See \`config.log' for more details." >&2;}
8254    { (exit 1); exit 1; }; }
8255 fi
8256
8257
8258
8259 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8260 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8261 if test "${ac_cv_lib_m_sin+set}" = set; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264   ac_check_lib_save_LIBS=$LIBS
8265 LIBS="-lm  $LIBS"
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272
8273 /* Override any GCC internal prototype to avoid an error.
8274    Use char because int might match the return type of a GCC
8275    builtin and then its argument prototype would still apply.  */
8276 #ifdef __cplusplus
8277 extern "C"
8278 #endif
8279 char sin ();
8280 int
8281 main ()
8282 {
8283 return sin ();
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8290 case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_link") 2>conftest.er1
8296   ac_status=$?
8297   grep -v '^ *+' conftest.er1 >conftest.err
8298   rm -f conftest.er1
8299   cat conftest.err >&5
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } &&
8302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303   { (case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_try") 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; } &&
8312          { ac_try='test -s conftest$ac_exeext'
8313   { (case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_try") 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; }; then
8322   ac_cv_lib_m_sin=yes
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327         ac_cv_lib_m_sin=no
8328 fi
8329
8330 rm -f core conftest.err conftest.$ac_objext \
8331       conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8333 fi
8334 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8335 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8336 if test $ac_cv_lib_m_sin = yes; then
8337   cat >>confdefs.h <<_ACEOF
8338 #define HAVE_LIBM 1
8339 _ACEOF
8340
8341   LIBS="-lm $LIBS"
8342
8343 fi
8344
8345 if test "$llvm_cv_os_type" = "MingW" ; then
8346
8347 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8348 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8349 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8350   echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352   ac_check_lib_save_LIBS=$LIBS
8353 LIBS="-limagehlp  $LIBS"
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360
8361
8362 int
8363 main ()
8364 {
8365 return main ();
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (ac_try="$ac_link"
8372 case "(($ac_try" in
8373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374   *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377   (eval "$ac_link") 2>conftest.er1
8378   ac_status=$?
8379   grep -v '^ *+' conftest.er1 >conftest.err
8380   rm -f conftest.er1
8381   cat conftest.err >&5
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } &&
8384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8385   { (case "(($ac_try" in
8386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387   *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390   (eval "$ac_try") 2>&5
8391   ac_status=$?
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); }; } &&
8394          { ac_try='test -s conftest$ac_exeext'
8395   { (case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400   (eval "$ac_try") 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; }; then
8404   ac_cv_lib_imagehlp_main=yes
8405 else
8406   echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8408
8409         ac_cv_lib_imagehlp_main=no
8410 fi
8411
8412 rm -f core conftest.err conftest.$ac_objext \
8413       conftest$ac_exeext conftest.$ac_ext
8414 LIBS=$ac_check_lib_save_LIBS
8415 fi
8416 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8417 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8418 if test $ac_cv_lib_imagehlp_main = yes; then
8419   cat >>confdefs.h <<_ACEOF
8420 #define HAVE_LIBIMAGEHLP 1
8421 _ACEOF
8422
8423   LIBS="-limagehlp $LIBS"
8424
8425 fi
8426
8427
8428 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8429 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8430 if test "${ac_cv_lib_psapi_main+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433   ac_check_lib_save_LIBS=$LIBS
8434 LIBS="-lpsapi  $LIBS"
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441
8442
8443 int
8444 main ()
8445 {
8446 return main ();
8447   ;
8448   return 0;
8449 }
8450 _ACEOF
8451 rm -f conftest.$ac_objext conftest$ac_exeext
8452 if { (ac_try="$ac_link"
8453 case "(($ac_try" in
8454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455   *) ac_try_echo=$ac_try;;
8456 esac
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458   (eval "$ac_link") 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } &&
8465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8466   { (case "(($ac_try" in
8467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468   *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471   (eval "$ac_try") 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; } &&
8475          { ac_try='test -s conftest$ac_exeext'
8476   { (case "(($ac_try" in
8477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478   *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481   (eval "$ac_try") 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; }; then
8485   ac_cv_lib_psapi_main=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490         ac_cv_lib_psapi_main=no
8491 fi
8492
8493 rm -f core conftest.err conftest.$ac_objext \
8494       conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8496 fi
8497 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8498 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8499 if test $ac_cv_lib_psapi_main = yes; then
8500   cat >>confdefs.h <<_ACEOF
8501 #define HAVE_LIBPSAPI 1
8502 _ACEOF
8503
8504   LIBS="-lpsapi $LIBS"
8505
8506 fi
8507
8508
8509 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8510 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8511 if test "${ac_cv_lib_shell32_main+set}" = set; then
8512   echo $ECHO_N "(cached) $ECHO_C" >&6
8513 else
8514   ac_check_lib_save_LIBS=$LIBS
8515 LIBS="-lshell32  $LIBS"
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h.  */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h.  */
8522
8523
8524 int
8525 main ()
8526 {
8527 return main ();
8528   ;
8529   return 0;
8530 }
8531 _ACEOF
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (ac_try="$ac_link"
8534 case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_link") 2>conftest.er1
8540   ac_status=$?
8541   grep -v '^ *+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } &&
8546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547   { (case "(($ac_try" in
8548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549   *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552   (eval "$ac_try") 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; } &&
8556          { ac_try='test -s conftest$ac_exeext'
8557   { (case "(($ac_try" in
8558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559   *) ac_try_echo=$ac_try;;
8560 esac
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562   (eval "$ac_try") 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   ac_cv_lib_shell32_main=yes
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571         ac_cv_lib_shell32_main=no
8572 fi
8573
8574 rm -f core conftest.err conftest.$ac_objext \
8575       conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8577 fi
8578 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8579 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8580 if test $ac_cv_lib_shell32_main = yes; then
8581   cat >>confdefs.h <<_ACEOF
8582 #define HAVE_LIBSHELL32 1
8583 _ACEOF
8584
8585   LIBS="-lshell32 $LIBS"
8586
8587 fi
8588
8589 fi
8590
8591 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8592 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8593 if test "${ac_cv_search_dlopen+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   ac_func_search_save_LIBS=$LIBS
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603
8604 /* Override any GCC internal prototype to avoid an error.
8605    Use char because int might match the return type of a GCC
8606    builtin and then its argument prototype would still apply.  */
8607 #ifdef __cplusplus
8608 extern "C"
8609 #endif
8610 char dlopen ();
8611 int
8612 main ()
8613 {
8614 return dlopen ();
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 for ac_lib in '' dl; do
8620   if test -z "$ac_lib"; then
8621     ac_res="none required"
8622   else
8623     ac_res=-l$ac_lib
8624     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8625   fi
8626   rm -f conftest.$ac_objext conftest$ac_exeext
8627 if { (ac_try="$ac_link"
8628 case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_link") 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } &&
8640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8641   { (case "(($ac_try" in
8642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643   *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646   (eval "$ac_try") 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; } &&
8650          { ac_try='test -s conftest$ac_exeext'
8651   { (case "(($ac_try" in
8652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653   *) ac_try_echo=$ac_try;;
8654 esac
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656   (eval "$ac_try") 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   ac_cv_search_dlopen=$ac_res
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665
8666 fi
8667
8668 rm -f core conftest.err conftest.$ac_objext \
8669       conftest$ac_exeext
8670   if test "${ac_cv_search_dlopen+set}" = set; then
8671   break
8672 fi
8673 done
8674 if test "${ac_cv_search_dlopen+set}" = set; then
8675   :
8676 else
8677   ac_cv_search_dlopen=no
8678 fi
8679 rm conftest.$ac_ext
8680 LIBS=$ac_func_search_save_LIBS
8681 fi
8682 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8683 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8684 ac_res=$ac_cv_search_dlopen
8685 if test "$ac_res" != no; then
8686   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8687
8688
8689 cat >>confdefs.h <<\_ACEOF
8690 #define HAVE_DLOPEN 1
8691 _ACEOF
8692
8693 HAVE_DLOPEN='1'
8694
8695
8696 else
8697   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8698 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8699 fi
8700
8701
8702 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8703 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8704 if test "${ac_cv_search_clock_gettime+set}" = set; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   ac_func_search_save_LIBS=$LIBS
8708 cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h.  */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h.  */
8714
8715 /* Override any GCC internal prototype to avoid an error.
8716    Use char because int might match the return type of a GCC
8717    builtin and then its argument prototype would still apply.  */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 char clock_gettime ();
8722 int
8723 main ()
8724 {
8725 return clock_gettime ();
8726   ;
8727   return 0;
8728 }
8729 _ACEOF
8730 for ac_lib in '' rt; do
8731   if test -z "$ac_lib"; then
8732     ac_res="none required"
8733   else
8734     ac_res=-l$ac_lib
8735     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8736   fi
8737   rm -f conftest.$ac_objext conftest$ac_exeext
8738 if { (ac_try="$ac_link"
8739 case "(($ac_try" in
8740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741   *) ac_try_echo=$ac_try;;
8742 esac
8743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744   (eval "$ac_link") 2>conftest.er1
8745   ac_status=$?
8746   grep -v '^ *+' conftest.er1 >conftest.err
8747   rm -f conftest.er1
8748   cat conftest.err >&5
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8752   { (case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757   (eval "$ac_try") 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); }; } &&
8761          { ac_try='test -s conftest$ac_exeext'
8762   { (case "(($ac_try" in
8763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764   *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767   (eval "$ac_try") 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; }; then
8771   ac_cv_search_clock_gettime=$ac_res
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776
8777 fi
8778
8779 rm -f core conftest.err conftest.$ac_objext \
8780       conftest$ac_exeext
8781   if test "${ac_cv_search_clock_gettime+set}" = set; then
8782   break
8783 fi
8784 done
8785 if test "${ac_cv_search_clock_gettime+set}" = set; then
8786   :
8787 else
8788   ac_cv_search_clock_gettime=no
8789 fi
8790 rm conftest.$ac_ext
8791 LIBS=$ac_func_search_save_LIBS
8792 fi
8793 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8794 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8795 ac_res=$ac_cv_search_clock_gettime
8796 if test "$ac_res" != no; then
8797   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8798
8799 fi
8800
8801
8802 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8803     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8804 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8805 if test "${ac_cv_search_setupterm+set}" = set; then
8806   echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808   ac_func_search_save_LIBS=$LIBS
8809 cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h.  */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h.  */
8815
8816 /* Override any GCC internal prototype to avoid an error.
8817    Use char because int might match the return type of a GCC
8818    builtin and then its argument prototype would still apply.  */
8819 #ifdef __cplusplus
8820 extern "C"
8821 #endif
8822 char setupterm ();
8823 int
8824 main ()
8825 {
8826 return setupterm ();
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8832   if test -z "$ac_lib"; then
8833     ac_res="none required"
8834   else
8835     ac_res=-l$ac_lib
8836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8837   fi
8838   rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8840 case "(($ac_try" in
8841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842   *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845   (eval "$ac_link") 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } &&
8852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853   { (case "(($ac_try" in
8854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855   *) ac_try_echo=$ac_try;;
8856 esac
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858   (eval "$ac_try") 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; } &&
8862          { ac_try='test -s conftest$ac_exeext'
8863   { (case "(($ac_try" in
8864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865   *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868   (eval "$ac_try") 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_cv_search_setupterm=$ac_res
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877
8878 fi
8879
8880 rm -f core conftest.err conftest.$ac_objext \
8881       conftest$ac_exeext
8882   if test "${ac_cv_search_setupterm+set}" = set; then
8883   break
8884 fi
8885 done
8886 if test "${ac_cv_search_setupterm+set}" = set; then
8887   :
8888 else
8889   ac_cv_search_setupterm=no
8890 fi
8891 rm conftest.$ac_ext
8892 LIBS=$ac_func_search_save_LIBS
8893 fi
8894 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8895 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8896 ac_res=$ac_cv_search_setupterm
8897 if test "$ac_res" != no; then
8898   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8899
8900
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_TERMINFO 1
8903 _ACEOF
8904
8905 HAVE_TERMINFO='1'
8906
8907
8908 fi
8909
8910 fi
8911
8912 if test "$llvm_cv_enable_libedit" = "yes" ; then
8913   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8914 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8915 if test "${ac_cv_search_el_init+set}" = set; then
8916   echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918   ac_func_search_save_LIBS=$LIBS
8919 cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h.  */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h.  */
8925
8926 /* Override any GCC internal prototype to avoid an error.
8927    Use char because int might match the return type of a GCC
8928    builtin and then its argument prototype would still apply.  */
8929 #ifdef __cplusplus
8930 extern "C"
8931 #endif
8932 char el_init ();
8933 int
8934 main ()
8935 {
8936 return el_init ();
8937   ;
8938   return 0;
8939 }
8940 _ACEOF
8941 for ac_lib in '' edit; do
8942   if test -z "$ac_lib"; then
8943     ac_res="none required"
8944   else
8945     ac_res=-l$ac_lib
8946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8947   fi
8948   rm -f conftest.$ac_objext conftest$ac_exeext
8949 if { (ac_try="$ac_link"
8950 case "(($ac_try" in
8951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952   *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955   (eval "$ac_link") 2>conftest.er1
8956   ac_status=$?
8957   grep -v '^ *+' conftest.er1 >conftest.err
8958   rm -f conftest.er1
8959   cat conftest.err >&5
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); } &&
8962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8963   { (case "(($ac_try" in
8964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965   *) ac_try_echo=$ac_try;;
8966 esac
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968   (eval "$ac_try") 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); }; } &&
8972          { ac_try='test -s conftest$ac_exeext'
8973   { (case "(($ac_try" in
8974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975   *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978   (eval "$ac_try") 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_search_el_init=$ac_res
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987
8988 fi
8989
8990 rm -f core conftest.err conftest.$ac_objext \
8991       conftest$ac_exeext
8992   if test "${ac_cv_search_el_init+set}" = set; then
8993   break
8994 fi
8995 done
8996 if test "${ac_cv_search_el_init+set}" = set; then
8997   :
8998 else
8999   ac_cv_search_el_init=no
9000 fi
9001 rm conftest.$ac_ext
9002 LIBS=$ac_func_search_save_LIBS
9003 fi
9004 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9005 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9006 ac_res=$ac_cv_search_el_init
9007 if test "$ac_res" != no; then
9008   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9009
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_LIBEDIT 1
9012 _ACEOF
9013
9014 fi
9015
9016 fi
9017
9018 if test "$llvm_cv_enable_libffi" = "yes" ; then
9019   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9020 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9021 if test "${ac_cv_search_ffi_call+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   ac_func_search_save_LIBS=$LIBS
9025 cat >conftest.$ac_ext <<_ACEOF
9026 /* confdefs.h.  */
9027 _ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h.  */
9031
9032 /* Override any GCC internal prototype to avoid an error.
9033    Use char because int might match the return type of a GCC
9034    builtin and then its argument prototype would still apply.  */
9035 #ifdef __cplusplus
9036 extern "C"
9037 #endif
9038 char ffi_call ();
9039 int
9040 main ()
9041 {
9042 return ffi_call ();
9043   ;
9044   return 0;
9045 }
9046 _ACEOF
9047 for ac_lib in '' ffi; do
9048   if test -z "$ac_lib"; then
9049     ac_res="none required"
9050   else
9051     ac_res=-l$ac_lib
9052     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9053   fi
9054   rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (ac_try="$ac_link"
9056 case "(($ac_try" in
9057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058   *) ac_try_echo=$ac_try;;
9059 esac
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061   (eval "$ac_link") 2>conftest.er1
9062   ac_status=$?
9063   grep -v '^ *+' conftest.er1 >conftest.err
9064   rm -f conftest.er1
9065   cat conftest.err >&5
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); } &&
9068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9069   { (case "(($ac_try" in
9070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071   *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074   (eval "$ac_try") 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; } &&
9078          { ac_try='test -s conftest$ac_exeext'
9079   { (case "(($ac_try" in
9080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081   *) ac_try_echo=$ac_try;;
9082 esac
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084   (eval "$ac_try") 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); }; }; then
9088   ac_cv_search_ffi_call=$ac_res
9089 else
9090   echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093
9094 fi
9095
9096 rm -f core conftest.err conftest.$ac_objext \
9097       conftest$ac_exeext
9098   if test "${ac_cv_search_ffi_call+set}" = set; then
9099   break
9100 fi
9101 done
9102 if test "${ac_cv_search_ffi_call+set}" = set; then
9103   :
9104 else
9105   ac_cv_search_ffi_call=no
9106 fi
9107 rm conftest.$ac_ext
9108 LIBS=$ac_func_search_save_LIBS
9109 fi
9110 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9111 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9112 ac_res=$ac_cv_search_ffi_call
9113 if test "$ac_res" != no; then
9114   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9115
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_FFI_CALL 1
9118 _ACEOF
9119
9120 else
9121   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9122 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9123    { (exit 1); exit 1; }; }
9124 fi
9125
9126 fi
9127
9128 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9129 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9130 if test "${ac_cv_search_mallinfo+set}" = set; then
9131   echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133   ac_func_search_save_LIBS=$LIBS
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h.  */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h.  */
9140
9141 /* Override any GCC internal prototype to avoid an error.
9142    Use char because int might match the return type of a GCC
9143    builtin and then its argument prototype would still apply.  */
9144 #ifdef __cplusplus
9145 extern "C"
9146 #endif
9147 char mallinfo ();
9148 int
9149 main ()
9150 {
9151 return mallinfo ();
9152   ;
9153   return 0;
9154 }
9155 _ACEOF
9156 for ac_lib in '' malloc; do
9157   if test -z "$ac_lib"; then
9158     ac_res="none required"
9159   else
9160     ac_res=-l$ac_lib
9161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9162   fi
9163   rm -f conftest.$ac_objext conftest$ac_exeext
9164 if { (ac_try="$ac_link"
9165 case "(($ac_try" in
9166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167   *) ac_try_echo=$ac_try;;
9168 esac
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170   (eval "$ac_link") 2>conftest.er1
9171   ac_status=$?
9172   grep -v '^ *+' conftest.er1 >conftest.err
9173   rm -f conftest.er1
9174   cat conftest.err >&5
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); } &&
9177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9178   { (case "(($ac_try" in
9179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180   *) ac_try_echo=$ac_try;;
9181 esac
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183   (eval "$ac_try") 2>&5
9184   ac_status=$?
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); }; } &&
9187          { ac_try='test -s conftest$ac_exeext'
9188   { (case "(($ac_try" in
9189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190   *) ac_try_echo=$ac_try;;
9191 esac
9192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193   (eval "$ac_try") 2>&5
9194   ac_status=$?
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); }; }; then
9197   ac_cv_search_mallinfo=$ac_res
9198 else
9199   echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202
9203 fi
9204
9205 rm -f core conftest.err conftest.$ac_objext \
9206       conftest$ac_exeext
9207   if test "${ac_cv_search_mallinfo+set}" = set; then
9208   break
9209 fi
9210 done
9211 if test "${ac_cv_search_mallinfo+set}" = set; then
9212   :
9213 else
9214   ac_cv_search_mallinfo=no
9215 fi
9216 rm conftest.$ac_ext
9217 LIBS=$ac_func_search_save_LIBS
9218 fi
9219 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9220 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9221 ac_res=$ac_cv_search_mallinfo
9222 if test "$ac_res" != no; then
9223   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9224
9225 cat >>confdefs.h <<\_ACEOF
9226 #define HAVE_MALLINFO 1
9227 _ACEOF
9228
9229 fi
9230
9231
9232 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9233
9234 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9235 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9236 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239   ac_check_lib_save_LIBS=$LIBS
9240 LIBS="-lpthread  $LIBS"
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247
9248 /* Override any GCC internal prototype to avoid an error.
9249    Use char because int might match the return type of a GCC
9250    builtin and then its argument prototype would still apply.  */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 char pthread_mutex_init ();
9255 int
9256 main ()
9257 {
9258 return pthread_mutex_init ();
9259   ;
9260   return 0;
9261 }
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (ac_try="$ac_link"
9265 case "(($ac_try" in
9266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267   *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270   (eval "$ac_link") 2>conftest.er1
9271   ac_status=$?
9272   grep -v '^ *+' conftest.er1 >conftest.err
9273   rm -f conftest.er1
9274   cat conftest.err >&5
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); } &&
9277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9278   { (case "(($ac_try" in
9279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280   *) ac_try_echo=$ac_try;;
9281 esac
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283   (eval "$ac_try") 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); }; } &&
9287          { ac_try='test -s conftest$ac_exeext'
9288   { (case "(($ac_try" in
9289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290   *) ac_try_echo=$ac_try;;
9291 esac
9292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293   (eval "$ac_try") 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); }; }; then
9297   ac_cv_lib_pthread_pthread_mutex_init=yes
9298 else
9299   echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302         ac_cv_lib_pthread_pthread_mutex_init=no
9303 fi
9304
9305 rm -f core conftest.err conftest.$ac_objext \
9306       conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9308 fi
9309 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9310 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9311 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9312   cat >>confdefs.h <<_ACEOF
9313 #define HAVE_LIBPTHREAD 1
9314 _ACEOF
9315
9316   LIBS="-lpthread $LIBS"
9317
9318 fi
9319
9320   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9321 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9322 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325   ac_func_search_save_LIBS=$LIBS
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h.  */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h.  */
9332
9333 /* Override any GCC internal prototype to avoid an error.
9334    Use char because int might match the return type of a GCC
9335    builtin and then its argument prototype would still apply.  */
9336 #ifdef __cplusplus
9337 extern "C"
9338 #endif
9339 char pthread_mutex_lock ();
9340 int
9341 main ()
9342 {
9343 return pthread_mutex_lock ();
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 for ac_lib in '' pthread; do
9349   if test -z "$ac_lib"; then
9350     ac_res="none required"
9351   else
9352     ac_res=-l$ac_lib
9353     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9354   fi
9355   rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (ac_try="$ac_link"
9357 case "(($ac_try" in
9358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359   *) ac_try_echo=$ac_try;;
9360 esac
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362   (eval "$ac_link") 2>conftest.er1
9363   ac_status=$?
9364   grep -v '^ *+' conftest.er1 >conftest.err
9365   rm -f conftest.er1
9366   cat conftest.err >&5
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); } &&
9369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9370   { (case "(($ac_try" in
9371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372   *) ac_try_echo=$ac_try;;
9373 esac
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375   (eval "$ac_try") 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; } &&
9379          { ac_try='test -s conftest$ac_exeext'
9380   { (case "(($ac_try" in
9381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382   *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385   (eval "$ac_try") 2>&5
9386   ac_status=$?
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); }; }; then
9389   ac_cv_search_pthread_mutex_lock=$ac_res
9390 else
9391   echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9393
9394
9395 fi
9396
9397 rm -f core conftest.err conftest.$ac_objext \
9398       conftest$ac_exeext
9399   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9400   break
9401 fi
9402 done
9403 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9404   :
9405 else
9406   ac_cv_search_pthread_mutex_lock=no
9407 fi
9408 rm conftest.$ac_ext
9409 LIBS=$ac_func_search_save_LIBS
9410 fi
9411 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9412 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9413 ac_res=$ac_cv_search_pthread_mutex_lock
9414 if test "$ac_res" != no; then
9415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9416
9417 cat >>confdefs.h <<\_ACEOF
9418 #define HAVE_PTHREAD_MUTEX_LOCK 1
9419 _ACEOF
9420
9421 fi
9422
9423   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9424 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9425 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   ac_func_search_save_LIBS=$LIBS
9429 cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h.  */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h.  */
9435
9436 /* Override any GCC internal prototype to avoid an error.
9437    Use char because int might match the return type of a GCC
9438    builtin and then its argument prototype would still apply.  */
9439 #ifdef __cplusplus
9440 extern "C"
9441 #endif
9442 char pthread_rwlock_init ();
9443 int
9444 main ()
9445 {
9446 return pthread_rwlock_init ();
9447   ;
9448   return 0;
9449 }
9450 _ACEOF
9451 for ac_lib in '' pthread; do
9452   if test -z "$ac_lib"; then
9453     ac_res="none required"
9454   else
9455     ac_res=-l$ac_lib
9456     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9457   fi
9458   rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9460 case "(($ac_try" in
9461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462   *) ac_try_echo=$ac_try;;
9463 esac
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465   (eval "$ac_link") 2>conftest.er1
9466   ac_status=$?
9467   grep -v '^ *+' conftest.er1 >conftest.err
9468   rm -f conftest.er1
9469   cat conftest.err >&5
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); } &&
9472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9473   { (case "(($ac_try" in
9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475   *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478   (eval "$ac_try") 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; } &&
9482          { ac_try='test -s conftest$ac_exeext'
9483   { (case "(($ac_try" in
9484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485   *) ac_try_echo=$ac_try;;
9486 esac
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488   (eval "$ac_try") 2>&5
9489   ac_status=$?
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); }; }; then
9492   ac_cv_search_pthread_rwlock_init=$ac_res
9493 else
9494   echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9496
9497
9498 fi
9499
9500 rm -f core conftest.err conftest.$ac_objext \
9501       conftest$ac_exeext
9502   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9503   break
9504 fi
9505 done
9506 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9507   :
9508 else
9509   ac_cv_search_pthread_rwlock_init=no
9510 fi
9511 rm conftest.$ac_ext
9512 LIBS=$ac_func_search_save_LIBS
9513 fi
9514 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9515 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9516 ac_res=$ac_cv_search_pthread_rwlock_init
9517 if test "$ac_res" != no; then
9518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_PTHREAD_RWLOCK_INIT 1
9522 _ACEOF
9523
9524 fi
9525
9526   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9527 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9528 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   ac_func_search_save_LIBS=$LIBS
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538
9539 /* Override any GCC internal prototype to avoid an error.
9540    Use char because int might match the return type of a GCC
9541    builtin and then its argument prototype would still apply.  */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 char pthread_getspecific ();
9546 int
9547 main ()
9548 {
9549 return pthread_getspecific ();
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 for ac_lib in '' pthread; do
9555   if test -z "$ac_lib"; then
9556     ac_res="none required"
9557   else
9558     ac_res=-l$ac_lib
9559     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9560   fi
9561   rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9563 case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568   (eval "$ac_link") 2>conftest.er1
9569   ac_status=$?
9570   grep -v '^ *+' conftest.er1 >conftest.err
9571   rm -f conftest.er1
9572   cat conftest.err >&5
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } &&
9575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9576   { (case "(($ac_try" in
9577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578   *) ac_try_echo=$ac_try;;
9579 esac
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581   (eval "$ac_try") 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; } &&
9585          { ac_try='test -s conftest$ac_exeext'
9586   { (case "(($ac_try" in
9587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588   *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591   (eval "$ac_try") 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; }; then
9595   ac_cv_search_pthread_getspecific=$ac_res
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600
9601 fi
9602
9603 rm -f core conftest.err conftest.$ac_objext \
9604       conftest$ac_exeext
9605   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9606   break
9607 fi
9608 done
9609 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9610   :
9611 else
9612   ac_cv_search_pthread_getspecific=no
9613 fi
9614 rm conftest.$ac_ext
9615 LIBS=$ac_func_search_save_LIBS
9616 fi
9617 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9618 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9619 ac_res=$ac_cv_search_pthread_getspecific
9620 if test "$ac_res" != no; then
9621   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9622
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_PTHREAD_GETSPECIFIC 1
9625 _ACEOF
9626
9627 fi
9628
9629 fi
9630
9631 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9632
9633 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9634 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9635 if test "${ac_cv_lib_z_compress2+set}" = set; then
9636   echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638   ac_check_lib_save_LIBS=$LIBS
9639 LIBS="-lz  $LIBS"
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h.  */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h.  */
9646
9647 /* Override any GCC internal prototype to avoid an error.
9648    Use char because int might match the return type of a GCC
9649    builtin and then its argument prototype would still apply.  */
9650 #ifdef __cplusplus
9651 extern "C"
9652 #endif
9653 char compress2 ();
9654 int
9655 main ()
9656 {
9657 return compress2 ();
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9664 case "(($ac_try" in
9665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666   *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669   (eval "$ac_link") 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } &&
9676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677   { (case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_try") 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; } &&
9686          { ac_try='test -s conftest$ac_exeext'
9687   { (case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692   (eval "$ac_try") 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_lib_z_compress2=yes
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701         ac_cv_lib_z_compress2=no
9702 fi
9703
9704 rm -f core conftest.err conftest.$ac_objext \
9705       conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9707 fi
9708 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9709 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9710 if test $ac_cv_lib_z_compress2 = yes; then
9711   cat >>confdefs.h <<_ACEOF
9712 #define HAVE_LIBZ 1
9713 _ACEOF
9714
9715   LIBS="-lz $LIBS"
9716
9717 fi
9718
9719 fi
9720
9721
9722 # Check whether --with-oprofile was given.
9723 if test "${with_oprofile+set}" = set; then
9724   withval=$with_oprofile;
9725       USE_OPROFILE=1
9726
9727       case "$withval" in
9728         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9729         no) llvm_cv_oppath=
9730             USE_OPROFILE=0
9731  ;;
9732         *) llvm_cv_oppath="${withval}/lib/oprofile"
9733            CPPFLAGS="-I${withval}/include";;
9734       esac
9735       case $llvm_cv_os_type in
9736         Linux)
9737           if test -n "$llvm_cv_oppath" ; then
9738             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9739                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9740 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9741 if test "${ac_cv_search_bfd_init+set}" = set; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744   ac_func_search_save_LIBS=$LIBS
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751
9752 /* Override any GCC internal prototype to avoid an error.
9753    Use char because int might match the return type of a GCC
9754    builtin and then its argument prototype would still apply.  */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 char bfd_init ();
9759 int
9760 main ()
9761 {
9762 return bfd_init ();
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 for ac_lib in '' bfd; do
9768   if test -z "$ac_lib"; then
9769     ac_res="none required"
9770   else
9771     ac_res=-l$ac_lib
9772     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9773   fi
9774   rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9776 case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_link") 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789   { (case "(($ac_try" in
9790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791   *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794   (eval "$ac_try") 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; } &&
9798          { ac_try='test -s conftest$ac_exeext'
9799   { (case "(($ac_try" in
9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801   *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804   (eval "$ac_try") 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; }; then
9808   ac_cv_search_bfd_init=$ac_res
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813
9814 fi
9815
9816 rm -f core conftest.err conftest.$ac_objext \
9817       conftest$ac_exeext
9818   if test "${ac_cv_search_bfd_init+set}" = set; then
9819   break
9820 fi
9821 done
9822 if test "${ac_cv_search_bfd_init+set}" = set; then
9823   :
9824 else
9825   ac_cv_search_bfd_init=no
9826 fi
9827 rm conftest.$ac_ext
9828 LIBS=$ac_func_search_save_LIBS
9829 fi
9830 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9831 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9832 ac_res=$ac_cv_search_bfd_init
9833 if test "$ac_res" != no; then
9834   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9835
9836 fi
9837
9838             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9839 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9840 if test "${ac_cv_search_op_open_agent+set}" = set; then
9841   echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843   ac_func_search_save_LIBS=$LIBS
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850
9851 /* Override any GCC internal prototype to avoid an error.
9852    Use char because int might match the return type of a GCC
9853    builtin and then its argument prototype would still apply.  */
9854 #ifdef __cplusplus
9855 extern "C"
9856 #endif
9857 char op_open_agent ();
9858 int
9859 main ()
9860 {
9861 return op_open_agent ();
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 for ac_lib in '' opagent; do
9867   if test -z "$ac_lib"; then
9868     ac_res="none required"
9869   else
9870     ac_res=-l$ac_lib
9871     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9872   fi
9873   rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9875 case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_link") 2>conftest.er1
9881   ac_status=$?
9882   grep -v '^ *+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } &&
9887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9888   { (case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_try") 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; } &&
9897          { ac_try='test -s conftest$ac_exeext'
9898   { (case "(($ac_try" in
9899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900   *) ac_try_echo=$ac_try;;
9901 esac
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903   (eval "$ac_try") 2>&5
9904   ac_status=$?
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); }; }; then
9907   ac_cv_search_op_open_agent=$ac_res
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912
9913 fi
9914
9915 rm -f core conftest.err conftest.$ac_objext \
9916       conftest$ac_exeext
9917   if test "${ac_cv_search_op_open_agent+set}" = set; then
9918   break
9919 fi
9920 done
9921 if test "${ac_cv_search_op_open_agent+set}" = set; then
9922   :
9923 else
9924   ac_cv_search_op_open_agent=no
9925 fi
9926 rm conftest.$ac_ext
9927 LIBS=$ac_func_search_save_LIBS
9928 fi
9929 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9930 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9931 ac_res=$ac_cv_search_op_open_agent
9932 if test "$ac_res" != no; then
9933   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9934
9935 else
9936
9937               echo "Error! You need to have libopagent around."
9938               exit -1
9939
9940 fi
9941
9942             if test "${ac_cv_header_opagent_h+set}" = set; then
9943   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9944 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9945 if test "${ac_cv_header_opagent_h+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 fi
9948 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9949 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9950 else
9951   # Is the header compilable?
9952 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9953 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9954 cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h.  */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h.  */
9960 $ac_includes_default
9961 #include <opagent.h>
9962 _ACEOF
9963 rm -f conftest.$ac_objext
9964 if { (ac_try="$ac_compile"
9965 case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970   (eval "$ac_compile") 2>conftest.er1
9971   ac_status=$?
9972   grep -v '^ *+' conftest.er1 >conftest.err
9973   rm -f conftest.er1
9974   cat conftest.err >&5
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); } &&
9977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9978   { (case "(($ac_try" in
9979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980   *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983   (eval "$ac_try") 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; } &&
9987          { ac_try='test -s conftest.$ac_objext'
9988   { (case "(($ac_try" in
9989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990   *) ac_try_echo=$ac_try;;
9991 esac
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993   (eval "$ac_try") 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; }; then
9997   ac_header_compiler=yes
9998 else
9999   echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002         ac_header_compiler=no
10003 fi
10004
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10007 echo "${ECHO_T}$ac_header_compiler" >&6; }
10008
10009 # Is the header present?
10010 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10011 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h.  */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h.  */
10018 #include <opagent.h>
10019 _ACEOF
10020 if { (ac_try="$ac_cpp conftest.$ac_ext"
10021 case "(($ac_try" in
10022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023   *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10027   ac_status=$?
10028   grep -v '^ *+' conftest.er1 >conftest.err
10029   rm -f conftest.er1
10030   cat conftest.err >&5
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); } >/dev/null; then
10033   if test -s conftest.err; then
10034     ac_cpp_err=$ac_c_preproc_warn_flag
10035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10036   else
10037     ac_cpp_err=
10038   fi
10039 else
10040   ac_cpp_err=yes
10041 fi
10042 if test -z "$ac_cpp_err"; then
10043   ac_header_preproc=yes
10044 else
10045   echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048   ac_header_preproc=no
10049 fi
10050
10051 rm -f conftest.err conftest.$ac_ext
10052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10053 echo "${ECHO_T}$ac_header_preproc" >&6; }
10054
10055 # So?  What about this header?
10056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10057   yes:no: )
10058     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10059 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10060     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10061 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10062     ac_header_preproc=yes
10063     ;;
10064   no:yes:* )
10065     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10066 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10067     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10068 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10069     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10070 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10071     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10072 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10073     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10074 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10075     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10076 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10077     ( cat <<\_ASBOX
10078 ## ------------------------------------ ##
10079 ## Report this to http://llvm.org/bugs/ ##
10080 ## ------------------------------------ ##
10081 _ASBOX
10082      ) | sed "s/^/$as_me: WARNING:     /" >&2
10083     ;;
10084 esac
10085 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10086 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10087 if test "${ac_cv_header_opagent_h+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   ac_cv_header_opagent_h=$ac_header_preproc
10091 fi
10092 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10093 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10094
10095 fi
10096 if test $ac_cv_header_opagent_h = yes; then
10097   :
10098 else
10099
10100               echo "Error! You need to have opagent.h around."
10101               exit -1
10102
10103 fi
10104
10105
10106           fi ;;
10107         *)
10108           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10109 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10110    { (exit 1); exit 1; }; } ;;
10111       esac
10112
10113 else
10114
10115       USE_OPROFILE=0
10116
10117
10118 fi
10119
10120
10121 cat >>confdefs.h <<_ACEOF
10122 #define LLVM_USE_OPROFILE $USE_OPROFILE
10123 _ACEOF
10124
10125
10126
10127 # Check whether --with-intel-jitevents was given.
10128 if test "${with_intel_jitevents+set}" = set; then
10129   withval=$with_intel_jitevents;
10130        case "$withval" in
10131           yes) USE_INTEL_JITEVENTS=1
10132 ;;
10133           no)  USE_INTEL_JITEVENTS=0
10134 ;;
10135           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10136 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10137    { (exit 1); exit 1; }; };;
10138        esac
10139
10140       case $llvm_cv_os_type in
10141         Linux|Win32|Cygwin|MingW) ;;
10142         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10143 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10144    { (exit 1); exit 1; }; };;
10145       esac
10146
10147       case "$llvm_cv_target_arch" in
10148         x86|x86_64) ;;
10149         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10150 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10151    { (exit 1); exit 1; }; };;
10152       esac
10153
10154 else
10155
10156       USE_INTEL_JITEVENTS=0
10157
10158
10159 fi
10160
10161
10162 cat >>confdefs.h <<_ACEOF
10163 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10164 _ACEOF
10165
10166
10167 for ac_prog in xml2-config
10168 do
10169   # Extract the first word of "$ac_prog", so it can be a program name with args.
10170 set dummy $ac_prog; ac_word=$2
10171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10173 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10174   echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176   if test -n "$XML2CONFIG"; then
10177   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10178 else
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10181 do
10182   IFS=$as_save_IFS
10183   test -z "$as_dir" && as_dir=.
10184   for ac_exec_ext in '' $ac_executable_extensions; do
10185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10186     ac_cv_prog_XML2CONFIG="$ac_prog"
10187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10188     break 2
10189   fi
10190 done
10191 done
10192 IFS=$as_save_IFS
10193
10194 fi
10195 fi
10196 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10197 if test -n "$XML2CONFIG"; then
10198   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10199 echo "${ECHO_T}$XML2CONFIG" >&6; }
10200 else
10201   { echo "$as_me:$LINENO: result: no" >&5
10202 echo "${ECHO_T}no" >&6; }
10203 fi
10204
10205
10206   test -n "$XML2CONFIG" && break
10207 done
10208
10209
10210 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10211 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10212 if test "x$XML2CONFIG" = "x"; then
10213  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10214 echo "${ECHO_T}xml2-config not found" >&6; }
10215 else
10216  LIBXML2_INC=`$XML2CONFIG --cflags`
10217  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10218 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10219  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10220 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10221 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10222   echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224   ac_check_lib_save_LIBS=$LIBS
10225 LIBS="-lxml2  $LIBS"
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232
10233 /* Override any GCC internal prototype to avoid an error.
10234    Use char because int might match the return type of a GCC
10235    builtin and then its argument prototype would still apply.  */
10236 #ifdef __cplusplus
10237 extern "C"
10238 #endif
10239 char xmlReadFile ();
10240 int
10241 main ()
10242 {
10243 return xmlReadFile ();
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252   *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255   (eval "$ac_link") 2>conftest.er1
10256   ac_status=$?
10257   grep -v '^ *+' conftest.er1 >conftest.err
10258   rm -f conftest.er1
10259   cat conftest.err >&5
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } &&
10262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10263   { (case "(($ac_try" in
10264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265   *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268   (eval "$ac_try") 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; } &&
10272          { ac_try='test -s conftest$ac_exeext'
10273   { (case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_try") 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; }; then
10282   ac_cv_lib_xml2_xmlReadFile=yes
10283 else
10284   echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10286
10287         ac_cv_lib_xml2_xmlReadFile=no
10288 fi
10289
10290 rm -f core conftest.err conftest.$ac_objext \
10291       conftest$ac_exeext conftest.$ac_ext
10292 LIBS=$ac_check_lib_save_LIBS
10293 fi
10294 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10295 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10296 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10297
10298 cat >>confdefs.h <<\_ACEOF
10299 #define CLANG_HAVE_LIBXML 1
10300 _ACEOF
10301
10302                                 LIBXML2_LIBS="-lxml2"
10303 fi
10304
10305 fi
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315 ac_header_dirent=no
10316 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10317   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10318 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10319 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10321   echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323   cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h.  */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h.  */
10329 #include <sys/types.h>
10330 #include <$ac_hdr>
10331
10332 int
10333 main ()
10334 {
10335 if ((DIR *) 0)
10336 return 0;
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 rm -f conftest.$ac_objext
10342 if { (ac_try="$ac_compile"
10343 case "(($ac_try" in
10344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345   *) ac_try_echo=$ac_try;;
10346 esac
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348   (eval "$ac_compile") 2>conftest.er1
10349   ac_status=$?
10350   grep -v '^ *+' conftest.er1 >conftest.err
10351   rm -f conftest.er1
10352   cat conftest.err >&5
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } &&
10355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10356   { (case "(($ac_try" in
10357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358   *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361   (eval "$ac_try") 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; } &&
10365          { ac_try='test -s conftest.$ac_objext'
10366   { (case "(($ac_try" in
10367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368   *) ac_try_echo=$ac_try;;
10369 esac
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371   (eval "$ac_try") 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; }; then
10375   eval "$as_ac_Header=yes"
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380         eval "$as_ac_Header=no"
10381 fi
10382
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 fi
10385 ac_res=`eval echo '${'$as_ac_Header'}'`
10386                { echo "$as_me:$LINENO: result: $ac_res" >&5
10387 echo "${ECHO_T}$ac_res" >&6; }
10388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10389   cat >>confdefs.h <<_ACEOF
10390 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10391 _ACEOF
10392
10393 ac_header_dirent=$ac_hdr; break
10394 fi
10395
10396 done
10397 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10398 if test $ac_header_dirent = dirent.h; then
10399   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10401 if test "${ac_cv_search_opendir+set}" = set; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404   ac_func_search_save_LIBS=$LIBS
10405 cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h.  */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h.  */
10411
10412 /* Override any GCC internal prototype to avoid an error.
10413    Use char because int might match the return type of a GCC
10414    builtin and then its argument prototype would still apply.  */
10415 #ifdef __cplusplus
10416 extern "C"
10417 #endif
10418 char opendir ();
10419 int
10420 main ()
10421 {
10422 return opendir ();
10423   ;
10424   return 0;
10425 }
10426 _ACEOF
10427 for ac_lib in '' dir; do
10428   if test -z "$ac_lib"; then
10429     ac_res="none required"
10430   else
10431     ac_res=-l$ac_lib
10432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10433   fi
10434   rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (ac_try="$ac_link"
10436 case "(($ac_try" in
10437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438   *) ac_try_echo=$ac_try;;
10439 esac
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441   (eval "$ac_link") 2>conftest.er1
10442   ac_status=$?
10443   grep -v '^ *+' conftest.er1 >conftest.err
10444   rm -f conftest.er1
10445   cat conftest.err >&5
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); } &&
10448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10449   { (case "(($ac_try" in
10450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451   *) ac_try_echo=$ac_try;;
10452 esac
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454   (eval "$ac_try") 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; } &&
10458          { ac_try='test -s conftest$ac_exeext'
10459   { (case "(($ac_try" in
10460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461   *) ac_try_echo=$ac_try;;
10462 esac
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464   (eval "$ac_try") 2>&5
10465   ac_status=$?
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); }; }; then
10468   ac_cv_search_opendir=$ac_res
10469 else
10470   echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10472
10473
10474 fi
10475
10476 rm -f core conftest.err conftest.$ac_objext \
10477       conftest$ac_exeext
10478   if test "${ac_cv_search_opendir+set}" = set; then
10479   break
10480 fi
10481 done
10482 if test "${ac_cv_search_opendir+set}" = set; then
10483   :
10484 else
10485   ac_cv_search_opendir=no
10486 fi
10487 rm conftest.$ac_ext
10488 LIBS=$ac_func_search_save_LIBS
10489 fi
10490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10492 ac_res=$ac_cv_search_opendir
10493 if test "$ac_res" != no; then
10494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10495
10496 fi
10497
10498 else
10499   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10500 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10501 if test "${ac_cv_search_opendir+set}" = set; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504   ac_func_search_save_LIBS=$LIBS
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h.  */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h.  */
10511
10512 /* Override any GCC internal prototype to avoid an error.
10513    Use char because int might match the return type of a GCC
10514    builtin and then its argument prototype would still apply.  */
10515 #ifdef __cplusplus
10516 extern "C"
10517 #endif
10518 char opendir ();
10519 int
10520 main ()
10521 {
10522 return opendir ();
10523   ;
10524   return 0;
10525 }
10526 _ACEOF
10527 for ac_lib in '' x; do
10528   if test -z "$ac_lib"; then
10529     ac_res="none required"
10530   else
10531     ac_res=-l$ac_lib
10532     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10533   fi
10534   rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538   *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541   (eval "$ac_link") 2>conftest.er1
10542   ac_status=$?
10543   grep -v '^ *+' conftest.er1 >conftest.err
10544   rm -f conftest.er1
10545   cat conftest.err >&5
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549   { (case "(($ac_try" in
10550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551   *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554   (eval "$ac_try") 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; } &&
10558          { ac_try='test -s conftest$ac_exeext'
10559   { (case "(($ac_try" in
10560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561   *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564   (eval "$ac_try") 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); }; }; then
10568   ac_cv_search_opendir=$ac_res
10569 else
10570   echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573
10574 fi
10575
10576 rm -f core conftest.err conftest.$ac_objext \
10577       conftest$ac_exeext
10578   if test "${ac_cv_search_opendir+set}" = set; then
10579   break
10580 fi
10581 done
10582 if test "${ac_cv_search_opendir+set}" = set; then
10583   :
10584 else
10585   ac_cv_search_opendir=no
10586 fi
10587 rm conftest.$ac_ext
10588 LIBS=$ac_func_search_save_LIBS
10589 fi
10590 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10591 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10592 ac_res=$ac_cv_search_opendir
10593 if test "$ac_res" != no; then
10594   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10595
10596 fi
10597
10598 fi
10599
10600 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10601 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10602 if test "${ac_cv_header_mmap_anon+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605    ac_ext=c
10606 ac_cpp='$CPP $CPPFLAGS'
10607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10610
10611   cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h.  */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h.  */
10617 #include <sys/mman.h>
10618 #include <unistd.h>
10619 #include <fcntl.h>
10620 int
10621 main ()
10622 {
10623 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10624   ;
10625   return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_compile") 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } &&
10642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643   { (case "(($ac_try" in
10644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645   *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648   (eval "$ac_try") 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; } &&
10652          { ac_try='test -s conftest.$ac_objext'
10653   { (case "(($ac_try" in
10654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655   *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658   (eval "$ac_try") 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; }; then
10662   ac_cv_header_mmap_anon=yes
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667         ac_cv_header_mmap_anon=no
10668 fi
10669
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671   ac_ext=c
10672 ac_cpp='$CPP $CPPFLAGS'
10673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10676
10677
10678 fi
10679 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10680 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10681 if test "$ac_cv_header_mmap_anon" = yes; then
10682
10683 cat >>confdefs.h <<\_ACEOF
10684 #define HAVE_MMAP_ANONYMOUS 1
10685 _ACEOF
10686
10687 fi
10688
10689 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10690 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10691 if test "${ac_cv_header_stat_broken+set}" = set; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h.  */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h.  */
10700 #include <sys/types.h>
10701 #include <sys/stat.h>
10702
10703 #if defined S_ISBLK && defined S_IFDIR
10704 # if S_ISBLK (S_IFDIR)
10705 You lose.
10706 # endif
10707 #endif
10708
10709 #if defined S_ISBLK && defined S_IFCHR
10710 # if S_ISBLK (S_IFCHR)
10711 You lose.
10712 # endif
10713 #endif
10714
10715 #if defined S_ISLNK && defined S_IFREG
10716 # if S_ISLNK (S_IFREG)
10717 You lose.
10718 # endif
10719 #endif
10720
10721 #if defined S_ISSOCK && defined S_IFREG
10722 # if S_ISSOCK (S_IFREG)
10723 You lose.
10724 # endif
10725 #endif
10726
10727 _ACEOF
10728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10729   $EGREP "You lose" >/dev/null 2>&1; then
10730   ac_cv_header_stat_broken=yes
10731 else
10732   ac_cv_header_stat_broken=no
10733 fi
10734 rm -f conftest*
10735
10736 fi
10737 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10738 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10739 if test $ac_cv_header_stat_broken = yes; then
10740
10741 cat >>confdefs.h <<\_ACEOF
10742 #define STAT_MACROS_BROKEN 1
10743 _ACEOF
10744
10745 fi
10746
10747 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10748 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10749 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752   cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758 #include <sys/types.h>
10759 #include <sys/wait.h>
10760 #ifndef WEXITSTATUS
10761 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10762 #endif
10763 #ifndef WIFEXITED
10764 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10765 #endif
10766
10767 int
10768 main ()
10769 {
10770   int s;
10771   wait (&s);
10772   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10773   ;
10774   return 0;
10775 }
10776 _ACEOF
10777 rm -f conftest.$ac_objext
10778 if { (ac_try="$ac_compile"
10779 case "(($ac_try" in
10780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781   *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784   (eval "$ac_compile") 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } &&
10791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10792   { (case "(($ac_try" in
10793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794   *) ac_try_echo=$ac_try;;
10795 esac
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797   (eval "$ac_try") 2>&5
10798   ac_status=$?
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); }; } &&
10801          { ac_try='test -s conftest.$ac_objext'
10802   { (case "(($ac_try" in
10803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804   *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807   (eval "$ac_try") 2>&5
10808   ac_status=$?
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); }; }; then
10811   ac_cv_header_sys_wait_h=yes
10812 else
10813   echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10815
10816         ac_cv_header_sys_wait_h=no
10817 fi
10818
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 fi
10821 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10822 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10823 if test $ac_cv_header_sys_wait_h = yes; then
10824
10825 cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_SYS_WAIT_H 1
10827 _ACEOF
10828
10829 fi
10830
10831 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10832 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10833 if test "${ac_cv_header_time+set}" = set; then
10834   echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836   cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842 #include <sys/types.h>
10843 #include <sys/time.h>
10844 #include <time.h>
10845
10846 int
10847 main ()
10848 {
10849 if ((struct tm *) 0)
10850 return 0;
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext
10856 if { (ac_try="$ac_compile"
10857 case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862   (eval "$ac_compile") 2>conftest.er1
10863   ac_status=$?
10864   grep -v '^ *+' conftest.er1 >conftest.err
10865   rm -f conftest.er1
10866   cat conftest.err >&5
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); } &&
10869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870   { (case "(($ac_try" in
10871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872   *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875   (eval "$ac_try") 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); }; } &&
10879          { ac_try='test -s conftest.$ac_objext'
10880   { (case "(($ac_try" in
10881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882   *) ac_try_echo=$ac_try;;
10883 esac
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885   (eval "$ac_try") 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); }; }; then
10889   ac_cv_header_time=yes
10890 else
10891   echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10893
10894         ac_cv_header_time=no
10895 fi
10896
10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898 fi
10899 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10900 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10901 if test $ac_cv_header_time = yes; then
10902
10903 cat >>confdefs.h <<\_ACEOF
10904 #define TIME_WITH_SYS_TIME 1
10905 _ACEOF
10906
10907 fi
10908
10909
10910 ac_ext=cpp
10911 ac_cpp='$CXXCPP $CPPFLAGS'
10912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10915
10916 ac_ext=cpp
10917 ac_cpp='$CXXCPP $CPPFLAGS'
10918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10921 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10922 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10923 if test -z "$CXXCPP"; then
10924   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10925   echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927       # Double quotes because CXXCPP needs to be expanded
10928     for CXXCPP in "$CXX -E" "/lib/cpp"
10929     do
10930       ac_preproc_ok=false
10931 for ac_cxx_preproc_warn_flag in '' yes
10932 do
10933   # Use a header file that comes with gcc, so configuring glibc
10934   # with a fresh cross-compiler works.
10935   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10936   # <limits.h> exists even on freestanding compilers.
10937   # On the NeXT, cc -E runs the code through the compiler's parser,
10938   # not just through cpp. "Syntax error" is here to catch this case.
10939   cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h.  */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h.  */
10945 #ifdef __STDC__
10946 # include <limits.h>
10947 #else
10948 # include <assert.h>
10949 #endif
10950                      Syntax error
10951 _ACEOF
10952 if { (ac_try="$ac_cpp conftest.$ac_ext"
10953 case "(($ac_try" in
10954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955   *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10959   ac_status=$?
10960   grep -v '^ *+' conftest.er1 >conftest.err
10961   rm -f conftest.er1
10962   cat conftest.err >&5
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } >/dev/null; then
10965   if test -s conftest.err; then
10966     ac_cpp_err=$ac_cxx_preproc_warn_flag
10967     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10968   else
10969     ac_cpp_err=
10970   fi
10971 else
10972   ac_cpp_err=yes
10973 fi
10974 if test -z "$ac_cpp_err"; then
10975   :
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980   # Broken: fails on valid input.
10981 continue
10982 fi
10983
10984 rm -f conftest.err conftest.$ac_ext
10985
10986   # OK, works on sane cases.  Now check whether nonexistent headers
10987   # can be detected and how.
10988   cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994 #include <ac_nonexistent.h>
10995 _ACEOF
10996 if { (ac_try="$ac_cpp conftest.$ac_ext"
10997 case "(($ac_try" in
10998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999   *) ac_try_echo=$ac_try;;
11000 esac
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11003   ac_status=$?
11004   grep -v '^ *+' conftest.er1 >conftest.err
11005   rm -f conftest.er1
11006   cat conftest.err >&5
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); } >/dev/null; then
11009   if test -s conftest.err; then
11010     ac_cpp_err=$ac_cxx_preproc_warn_flag
11011     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11012   else
11013     ac_cpp_err=
11014   fi
11015 else
11016   ac_cpp_err=yes
11017 fi
11018 if test -z "$ac_cpp_err"; then
11019   # Broken: success on invalid input.
11020 continue
11021 else
11022   echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025   # Passes both tests.
11026 ac_preproc_ok=:
11027 break
11028 fi
11029
11030 rm -f conftest.err conftest.$ac_ext
11031
11032 done
11033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11034 rm -f conftest.err conftest.$ac_ext
11035 if $ac_preproc_ok; then
11036   break
11037 fi
11038
11039     done
11040     ac_cv_prog_CXXCPP=$CXXCPP
11041
11042 fi
11043   CXXCPP=$ac_cv_prog_CXXCPP
11044 else
11045   ac_cv_prog_CXXCPP=$CXXCPP
11046 fi
11047 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11048 echo "${ECHO_T}$CXXCPP" >&6; }
11049 ac_preproc_ok=false
11050 for ac_cxx_preproc_warn_flag in '' yes
11051 do
11052   # Use a header file that comes with gcc, so configuring glibc
11053   # with a fresh cross-compiler works.
11054   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055   # <limits.h> exists even on freestanding compilers.
11056   # On the NeXT, cc -E runs the code through the compiler's parser,
11057   # not just through cpp. "Syntax error" is here to catch this case.
11058   cat >conftest.$ac_ext <<_ACEOF
11059 /* confdefs.h.  */
11060 _ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h.  */
11064 #ifdef __STDC__
11065 # include <limits.h>
11066 #else
11067 # include <assert.h>
11068 #endif
11069                      Syntax error
11070 _ACEOF
11071 if { (ac_try="$ac_cpp conftest.$ac_ext"
11072 case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } >/dev/null; then
11084   if test -s conftest.err; then
11085     ac_cpp_err=$ac_cxx_preproc_warn_flag
11086     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11087   else
11088     ac_cpp_err=
11089   fi
11090 else
11091   ac_cpp_err=yes
11092 fi
11093 if test -z "$ac_cpp_err"; then
11094   :
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099   # Broken: fails on valid input.
11100 continue
11101 fi
11102
11103 rm -f conftest.err conftest.$ac_ext
11104
11105   # OK, works on sane cases.  Now check whether nonexistent headers
11106   # can be detected and how.
11107   cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113 #include <ac_nonexistent.h>
11114 _ACEOF
11115 if { (ac_try="$ac_cpp conftest.$ac_ext"
11116 case "(($ac_try" in
11117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118   *) ac_try_echo=$ac_try;;
11119 esac
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11122   ac_status=$?
11123   grep -v '^ *+' conftest.er1 >conftest.err
11124   rm -f conftest.er1
11125   cat conftest.err >&5
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } >/dev/null; then
11128   if test -s conftest.err; then
11129     ac_cpp_err=$ac_cxx_preproc_warn_flag
11130     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11131   else
11132     ac_cpp_err=
11133   fi
11134 else
11135   ac_cpp_err=yes
11136 fi
11137 if test -z "$ac_cpp_err"; then
11138   # Broken: success on invalid input.
11139 continue
11140 else
11141   echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11143
11144   # Passes both tests.
11145 ac_preproc_ok=:
11146 break
11147 fi
11148
11149 rm -f conftest.err conftest.$ac_ext
11150
11151 done
11152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11153 rm -f conftest.err conftest.$ac_ext
11154 if $ac_preproc_ok; then
11155   :
11156 else
11157   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11158 See \`config.log' for more details." >&5
11159 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11160 See \`config.log' for more details." >&2;}
11161    { (exit 1); exit 1; }; }
11162 fi
11163
11164 ac_ext=cpp
11165 ac_cpp='$CXXCPP $CPPFLAGS'
11166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11169
11170
11171
11172 for ac_header in cxxabi.h
11173 do
11174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179   echo $ECHO_N "(cached) $ECHO_C" >&6
11180 fi
11181 ac_res=`eval echo '${'$as_ac_Header'}'`
11182                { echo "$as_me:$LINENO: result: $ac_res" >&5
11183 echo "${ECHO_T}$ac_res" >&6; }
11184 else
11185   # Is the header compilable?
11186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11188 cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h.  */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h.  */
11194 $ac_includes_default
11195 #include <$ac_header>
11196 _ACEOF
11197 rm -f conftest.$ac_objext
11198 if { (ac_try="$ac_compile"
11199 case "(($ac_try" in
11200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201   *) ac_try_echo=$ac_try;;
11202 esac
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204   (eval "$ac_compile") 2>conftest.er1
11205   ac_status=$?
11206   grep -v '^ *+' conftest.er1 >conftest.err
11207   rm -f conftest.er1
11208   cat conftest.err >&5
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); } &&
11211          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11212   { (case "(($ac_try" in
11213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214   *) ac_try_echo=$ac_try;;
11215 esac
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217   (eval "$ac_try") 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; } &&
11221          { ac_try='test -s conftest.$ac_objext'
11222   { (case "(($ac_try" in
11223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224   *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227   (eval "$ac_try") 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   ac_header_compiler=yes
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236         ac_header_compiler=no
11237 fi
11238
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11241 echo "${ECHO_T}$ac_header_compiler" >&6; }
11242
11243 # Is the header present?
11244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252 #include <$ac_header>
11253 _ACEOF
11254 if { (ac_try="$ac_cpp conftest.$ac_ext"
11255 case "(($ac_try" in
11256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257   *) ac_try_echo=$ac_try;;
11258 esac
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11261   ac_status=$?
11262   grep -v '^ *+' conftest.er1 >conftest.err
11263   rm -f conftest.er1
11264   cat conftest.err >&5
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); } >/dev/null; then
11267   if test -s conftest.err; then
11268     ac_cpp_err=$ac_cxx_preproc_warn_flag
11269     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11270   else
11271     ac_cpp_err=
11272   fi
11273 else
11274   ac_cpp_err=yes
11275 fi
11276 if test -z "$ac_cpp_err"; then
11277   ac_header_preproc=yes
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282   ac_header_preproc=no
11283 fi
11284
11285 rm -f conftest.err conftest.$ac_ext
11286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11287 echo "${ECHO_T}$ac_header_preproc" >&6; }
11288
11289 # So?  What about this header?
11290 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11291   yes:no: )
11292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11296     ac_header_preproc=yes
11297     ;;
11298   no:yes:* )
11299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11311     ( cat <<\_ASBOX
11312 ## ------------------------------------ ##
11313 ## Report this to http://llvm.org/bugs/ ##
11314 ## ------------------------------------ ##
11315 _ASBOX
11316      ) | sed "s/^/$as_me: WARNING:     /" >&2
11317     ;;
11318 esac
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   eval "$as_ac_Header=\$ac_header_preproc"
11325 fi
11326 ac_res=`eval echo '${'$as_ac_Header'}'`
11327                { echo "$as_me:$LINENO: result: $ac_res" >&5
11328 echo "${ECHO_T}$ac_res" >&6; }
11329
11330 fi
11331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11332   cat >>confdefs.h <<_ACEOF
11333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11334 _ACEOF
11335
11336 fi
11337
11338 done
11339
11340 ac_ext=c
11341 ac_cpp='$CPP $CPPFLAGS'
11342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11345
11346
11347
11348
11349
11350
11351 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11352 do
11353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 fi
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361                { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11363 else
11364   # Is the header compilable?
11365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h.  */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h.  */
11373 $ac_includes_default
11374 #include <$ac_header>
11375 _ACEOF
11376 rm -f conftest.$ac_objext
11377 if { (ac_try="$ac_compile"
11378 case "(($ac_try" in
11379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380   *) ac_try_echo=$ac_try;;
11381 esac
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383   (eval "$ac_compile") 2>conftest.er1
11384   ac_status=$?
11385   grep -v '^ *+' conftest.er1 >conftest.err
11386   rm -f conftest.er1
11387   cat conftest.err >&5
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); } &&
11390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11391   { (case "(($ac_try" in
11392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393   *) ac_try_echo=$ac_try;;
11394 esac
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396   (eval "$ac_try") 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); }; } &&
11400          { ac_try='test -s conftest.$ac_objext'
11401   { (case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406   (eval "$ac_try") 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); }; }; then
11410   ac_header_compiler=yes
11411 else
11412   echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415         ac_header_compiler=no
11416 fi
11417
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420 echo "${ECHO_T}$ac_header_compiler" >&6; }
11421
11422 # Is the header present?
11423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431 #include <$ac_header>
11432 _ACEOF
11433 if { (ac_try="$ac_cpp conftest.$ac_ext"
11434 case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } >/dev/null; then
11446   if test -s conftest.err; then
11447     ac_cpp_err=$ac_c_preproc_warn_flag
11448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11449   else
11450     ac_cpp_err=
11451   fi
11452 else
11453   ac_cpp_err=yes
11454 fi
11455 if test -z "$ac_cpp_err"; then
11456   ac_header_preproc=yes
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461   ac_header_preproc=no
11462 fi
11463
11464 rm -f conftest.err conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11466 echo "${ECHO_T}$ac_header_preproc" >&6; }
11467
11468 # So?  What about this header?
11469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11470   yes:no: )
11471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11475     ac_header_preproc=yes
11476     ;;
11477   no:yes:* )
11478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11490     ( cat <<\_ASBOX
11491 ## ------------------------------------ ##
11492 ## Report this to http://llvm.org/bugs/ ##
11493 ## ------------------------------------ ##
11494 _ASBOX
11495      ) | sed "s/^/$as_me: WARNING:     /" >&2
11496     ;;
11497 esac
11498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501   echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503   eval "$as_ac_Header=\$ac_header_preproc"
11504 fi
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506                { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11508
11509 fi
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511   cat >>confdefs.h <<_ACEOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513 _ACEOF
11514
11515 fi
11516
11517 done
11518
11519
11520
11521
11522
11523
11524
11525 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11526 do
11527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11529   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11532   echo $ECHO_N "(cached) $ECHO_C" >&6
11533 fi
11534 ac_res=`eval echo '${'$as_ac_Header'}'`
11535                { echo "$as_me:$LINENO: result: $ac_res" >&5
11536 echo "${ECHO_T}$ac_res" >&6; }
11537 else
11538   # Is the header compilable?
11539 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 $ac_includes_default
11548 #include <$ac_header>
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11558   ac_status=$?
11559   grep -v '^ *+' conftest.er1 >conftest.err
11560   rm -f conftest.er1
11561   cat conftest.err >&5
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } &&
11564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11565   { (case "(($ac_try" in
11566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567   *) ac_try_echo=$ac_try;;
11568 esac
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570   (eval "$ac_try") 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; } &&
11574          { ac_try='test -s conftest.$ac_objext'
11575   { (case "(($ac_try" in
11576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577   *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580   (eval "$ac_try") 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); }; }; then
11584   ac_header_compiler=yes
11585 else
11586   echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11588
11589         ac_header_compiler=no
11590 fi
11591
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11594 echo "${ECHO_T}$ac_header_compiler" >&6; }
11595
11596 # Is the header present?
11597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h.  */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h.  */
11605 #include <$ac_header>
11606 _ACEOF
11607 if { (ac_try="$ac_cpp conftest.$ac_ext"
11608 case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11614   ac_status=$?
11615   grep -v '^ *+' conftest.er1 >conftest.err
11616   rm -f conftest.er1
11617   cat conftest.err >&5
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); } >/dev/null; then
11620   if test -s conftest.err; then
11621     ac_cpp_err=$ac_c_preproc_warn_flag
11622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11623   else
11624     ac_cpp_err=
11625   fi
11626 else
11627   ac_cpp_err=yes
11628 fi
11629 if test -z "$ac_cpp_err"; then
11630   ac_header_preproc=yes
11631 else
11632   echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11634
11635   ac_header_preproc=no
11636 fi
11637
11638 rm -f conftest.err conftest.$ac_ext
11639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11640 echo "${ECHO_T}$ac_header_preproc" >&6; }
11641
11642 # So?  What about this header?
11643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11644   yes:no: )
11645     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11649     ac_header_preproc=yes
11650     ;;
11651   no:yes:* )
11652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11654     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11655 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11656     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11658     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11659 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11662     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11664     ( cat <<\_ASBOX
11665 ## ------------------------------------ ##
11666 ## Report this to http://llvm.org/bugs/ ##
11667 ## ------------------------------------ ##
11668 _ASBOX
11669      ) | sed "s/^/$as_me: WARNING:     /" >&2
11670     ;;
11671 esac
11672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675   echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677   eval "$as_ac_Header=\$ac_header_preproc"
11678 fi
11679 ac_res=`eval echo '${'$as_ac_Header'}'`
11680                { echo "$as_me:$LINENO: result: $ac_res" >&5
11681 echo "${ECHO_T}$ac_res" >&6; }
11682
11683 fi
11684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11685   cat >>confdefs.h <<_ACEOF
11686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11687 _ACEOF
11688
11689 fi
11690
11691 done
11692
11693
11694 for ac_header in utime.h
11695 do
11696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11698   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11701   echo $ECHO_N "(cached) $ECHO_C" >&6
11702 fi
11703 ac_res=`eval echo '${'$as_ac_Header'}'`
11704                { echo "$as_me:$LINENO: result: $ac_res" >&5
11705 echo "${ECHO_T}$ac_res" >&6; }
11706 else
11707   # Is the header compilable?
11708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11710 cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h.  */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h.  */
11716 $ac_includes_default
11717 #include <$ac_header>
11718 _ACEOF
11719 rm -f conftest.$ac_objext
11720 if { (ac_try="$ac_compile"
11721 case "(($ac_try" in
11722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723   *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726   (eval "$ac_compile") 2>conftest.er1
11727   ac_status=$?
11728   grep -v '^ *+' conftest.er1 >conftest.err
11729   rm -f conftest.er1
11730   cat conftest.err >&5
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); } &&
11733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11734   { (case "(($ac_try" in
11735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736   *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739   (eval "$ac_try") 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; } &&
11743          { ac_try='test -s conftest.$ac_objext'
11744   { (case "(($ac_try" in
11745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746   *) ac_try_echo=$ac_try;;
11747 esac
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749   (eval "$ac_try") 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); }; }; then
11753   ac_header_compiler=yes
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758         ac_header_compiler=no
11759 fi
11760
11761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11763 echo "${ECHO_T}$ac_header_compiler" >&6; }
11764
11765 # Is the header present?
11766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11768 cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h.  */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h.  */
11774 #include <$ac_header>
11775 _ACEOF
11776 if { (ac_try="$ac_cpp conftest.$ac_ext"
11777 case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11783   ac_status=$?
11784   grep -v '^ *+' conftest.er1 >conftest.err
11785   rm -f conftest.er1
11786   cat conftest.err >&5
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); } >/dev/null; then
11789   if test -s conftest.err; then
11790     ac_cpp_err=$ac_c_preproc_warn_flag
11791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11792   else
11793     ac_cpp_err=
11794   fi
11795 else
11796   ac_cpp_err=yes
11797 fi
11798 if test -z "$ac_cpp_err"; then
11799   ac_header_preproc=yes
11800 else
11801   echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11803
11804   ac_header_preproc=no
11805 fi
11806
11807 rm -f conftest.err conftest.$ac_ext
11808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11809 echo "${ECHO_T}$ac_header_preproc" >&6; }
11810
11811 # So?  What about this header?
11812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11813   yes:no: )
11814     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11818     ac_header_preproc=yes
11819     ;;
11820   no:yes:* )
11821     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11823     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11824 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11825     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11827     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11828 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11831     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11833     ( cat <<\_ASBOX
11834 ## ------------------------------------ ##
11835 ## Report this to http://llvm.org/bugs/ ##
11836 ## ------------------------------------ ##
11837 _ASBOX
11838      ) | sed "s/^/$as_me: WARNING:     /" >&2
11839     ;;
11840 esac
11841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   eval "$as_ac_Header=\$ac_header_preproc"
11847 fi
11848 ac_res=`eval echo '${'$as_ac_Header'}'`
11849                { echo "$as_me:$LINENO: result: $ac_res" >&5
11850 echo "${ECHO_T}$ac_res" >&6; }
11851
11852 fi
11853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11854   cat >>confdefs.h <<_ACEOF
11855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11856 _ACEOF
11857
11858 fi
11859
11860 done
11861
11862
11863
11864
11865
11866
11867 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11868 do
11869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 fi
11876 ac_res=`eval echo '${'$as_ac_Header'}'`
11877                { echo "$as_me:$LINENO: result: $ac_res" >&5
11878 echo "${ECHO_T}$ac_res" >&6; }
11879 else
11880   # Is the header compilable?
11881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11883 cat >conftest.$ac_ext <<_ACEOF
11884 /* confdefs.h.  */
11885 _ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h.  */
11889 $ac_includes_default
11890 #include <$ac_header>
11891 _ACEOF
11892 rm -f conftest.$ac_objext
11893 if { (ac_try="$ac_compile"
11894 case "(($ac_try" in
11895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896   *) ac_try_echo=$ac_try;;
11897 esac
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899   (eval "$ac_compile") 2>conftest.er1
11900   ac_status=$?
11901   grep -v '^ *+' conftest.er1 >conftest.err
11902   rm -f conftest.er1
11903   cat conftest.err >&5
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); } &&
11906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11907   { (case "(($ac_try" in
11908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909   *) ac_try_echo=$ac_try;;
11910 esac
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912   (eval "$ac_try") 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; } &&
11916          { ac_try='test -s conftest.$ac_objext'
11917   { (case "(($ac_try" in
11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919   *) ac_try_echo=$ac_try;;
11920 esac
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922   (eval "$ac_try") 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; }; then
11926   ac_header_compiler=yes
11927 else
11928   echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931         ac_header_compiler=no
11932 fi
11933
11934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11936 echo "${ECHO_T}$ac_header_compiler" >&6; }
11937
11938 # Is the header present?
11939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947 #include <$ac_header>
11948 _ACEOF
11949 if { (ac_try="$ac_cpp conftest.$ac_ext"
11950 case "(($ac_try" in
11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952   *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11956   ac_status=$?
11957   grep -v '^ *+' conftest.er1 >conftest.err
11958   rm -f conftest.er1
11959   cat conftest.err >&5
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } >/dev/null; then
11962   if test -s conftest.err; then
11963     ac_cpp_err=$ac_c_preproc_warn_flag
11964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11965   else
11966     ac_cpp_err=
11967   fi
11968 else
11969   ac_cpp_err=yes
11970 fi
11971 if test -z "$ac_cpp_err"; then
11972   ac_header_preproc=yes
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977   ac_header_preproc=no
11978 fi
11979
11980 rm -f conftest.err conftest.$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982 echo "${ECHO_T}$ac_header_preproc" >&6; }
11983
11984 # So?  What about this header?
11985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11986   yes:no: )
11987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991     ac_header_preproc=yes
11992     ;;
11993   no:yes:* )
11994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11996     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11997 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12001 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12006     ( cat <<\_ASBOX
12007 ## ------------------------------------ ##
12008 ## Report this to http://llvm.org/bugs/ ##
12009 ## ------------------------------------ ##
12010 _ASBOX
12011      ) | sed "s/^/$as_me: WARNING:     /" >&2
12012     ;;
12013 esac
12014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12017   echo $ECHO_N "(cached) $ECHO_C" >&6
12018 else
12019   eval "$as_ac_Header=\$ac_header_preproc"
12020 fi
12021 ac_res=`eval echo '${'$as_ac_Header'}'`
12022                { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12024
12025 fi
12026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12027   cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12029 _ACEOF
12030
12031 fi
12032
12033 done
12034
12035
12036
12037
12038 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12039 do
12040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12042   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 fi
12047 ac_res=`eval echo '${'$as_ac_Header'}'`
12048                { echo "$as_me:$LINENO: result: $ac_res" >&5
12049 echo "${ECHO_T}$ac_res" >&6; }
12050 else
12051   # Is the header compilable?
12052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060 $ac_includes_default
12061 #include <$ac_header>
12062 _ACEOF
12063 rm -f conftest.$ac_objext
12064 if { (ac_try="$ac_compile"
12065 case "(($ac_try" in
12066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067   *) ac_try_echo=$ac_try;;
12068 esac
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070   (eval "$ac_compile") 2>conftest.er1
12071   ac_status=$?
12072   grep -v '^ *+' conftest.er1 >conftest.err
12073   rm -f conftest.er1
12074   cat conftest.err >&5
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } &&
12077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12078   { (case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_try") 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; } &&
12087          { ac_try='test -s conftest.$ac_objext'
12088   { (case "(($ac_try" in
12089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090   *) ac_try_echo=$ac_try;;
12091 esac
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093   (eval "$ac_try") 2>&5
12094   ac_status=$?
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); }; }; then
12097   ac_header_compiler=yes
12098 else
12099   echo "$as_me: failed program was:" >&5
12100 sed 's/^/| /' conftest.$ac_ext >&5
12101
12102         ac_header_compiler=no
12103 fi
12104
12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12107 echo "${ECHO_T}$ac_header_compiler" >&6; }
12108
12109 # Is the header present?
12110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12112 cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h.  */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h.  */
12118 #include <$ac_header>
12119 _ACEOF
12120 if { (ac_try="$ac_cpp conftest.$ac_ext"
12121 case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12127   ac_status=$?
12128   grep -v '^ *+' conftest.er1 >conftest.err
12129   rm -f conftest.er1
12130   cat conftest.err >&5
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } >/dev/null; then
12133   if test -s conftest.err; then
12134     ac_cpp_err=$ac_c_preproc_warn_flag
12135     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12136   else
12137     ac_cpp_err=
12138   fi
12139 else
12140   ac_cpp_err=yes
12141 fi
12142 if test -z "$ac_cpp_err"; then
12143   ac_header_preproc=yes
12144 else
12145   echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148   ac_header_preproc=no
12149 fi
12150
12151 rm -f conftest.err conftest.$ac_ext
12152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12153 echo "${ECHO_T}$ac_header_preproc" >&6; }
12154
12155 # So?  What about this header?
12156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12157   yes:no: )
12158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12162     ac_header_preproc=yes
12163     ;;
12164   no:yes:* )
12165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12167     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12168 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12169     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12171     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12172 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12175     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12177     ( cat <<\_ASBOX
12178 ## ------------------------------------ ##
12179 ## Report this to http://llvm.org/bugs/ ##
12180 ## ------------------------------------ ##
12181 _ASBOX
12182      ) | sed "s/^/$as_me: WARNING:     /" >&2
12183     ;;
12184 esac
12185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12188   echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190   eval "$as_ac_Header=\$ac_header_preproc"
12191 fi
12192 ac_res=`eval echo '${'$as_ac_Header'}'`
12193                { echo "$as_me:$LINENO: result: $ac_res" >&5
12194 echo "${ECHO_T}$ac_res" >&6; }
12195
12196 fi
12197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12198   cat >>confdefs.h <<_ACEOF
12199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12200 _ACEOF
12201
12202 fi
12203
12204 done
12205
12206
12207 for ac_header in valgrind/valgrind.h
12208 do
12209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12211   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214   echo $ECHO_N "(cached) $ECHO_C" >&6
12215 fi
12216 ac_res=`eval echo '${'$as_ac_Header'}'`
12217                { echo "$as_me:$LINENO: result: $ac_res" >&5
12218 echo "${ECHO_T}$ac_res" >&6; }
12219 else
12220   # Is the header compilable?
12221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12223 cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h.  */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h.  */
12229 $ac_includes_default
12230 #include <$ac_header>
12231 _ACEOF
12232 rm -f conftest.$ac_objext
12233 if { (ac_try="$ac_compile"
12234 case "(($ac_try" in
12235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236   *) ac_try_echo=$ac_try;;
12237 esac
12238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239   (eval "$ac_compile") 2>conftest.er1
12240   ac_status=$?
12241   grep -v '^ *+' conftest.er1 >conftest.err
12242   rm -f conftest.er1
12243   cat conftest.err >&5
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); } &&
12246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12247   { (case "(($ac_try" in
12248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249   *) ac_try_echo=$ac_try;;
12250 esac
12251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12252   (eval "$ac_try") 2>&5
12253   ac_status=$?
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); }; } &&
12256          { ac_try='test -s conftest.$ac_objext'
12257   { (case "(($ac_try" in
12258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259   *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262   (eval "$ac_try") 2>&5
12263   ac_status=$?
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); }; }; then
12266   ac_header_compiler=yes
12267 else
12268   echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271         ac_header_compiler=no
12272 fi
12273
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12276 echo "${ECHO_T}$ac_header_compiler" >&6; }
12277
12278 # Is the header present?
12279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12281 cat >conftest.$ac_ext <<_ACEOF
12282 /* confdefs.h.  */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h.  */
12287 #include <$ac_header>
12288 _ACEOF
12289 if { (ac_try="$ac_cpp conftest.$ac_ext"
12290 case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12296   ac_status=$?
12297   grep -v '^ *+' conftest.er1 >conftest.err
12298   rm -f conftest.er1
12299   cat conftest.err >&5
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } >/dev/null; then
12302   if test -s conftest.err; then
12303     ac_cpp_err=$ac_c_preproc_warn_flag
12304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12305   else
12306     ac_cpp_err=
12307   fi
12308 else
12309   ac_cpp_err=yes
12310 fi
12311 if test -z "$ac_cpp_err"; then
12312   ac_header_preproc=yes
12313 else
12314   echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317   ac_header_preproc=no
12318 fi
12319
12320 rm -f conftest.err conftest.$ac_ext
12321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12322 echo "${ECHO_T}$ac_header_preproc" >&6; }
12323
12324 # So?  What about this header?
12325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12326   yes:no: )
12327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12331     ac_header_preproc=yes
12332     ;;
12333   no:yes:* )
12334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12346     ( cat <<\_ASBOX
12347 ## ------------------------------------ ##
12348 ## Report this to http://llvm.org/bugs/ ##
12349 ## ------------------------------------ ##
12350 _ASBOX
12351      ) | sed "s/^/$as_me: WARNING:     /" >&2
12352     ;;
12353 esac
12354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12357   echo $ECHO_N "(cached) $ECHO_C" >&6
12358 else
12359   eval "$as_ac_Header=\$ac_header_preproc"
12360 fi
12361 ac_res=`eval echo '${'$as_ac_Header'}'`
12362                { echo "$as_me:$LINENO: result: $ac_res" >&5
12363 echo "${ECHO_T}$ac_res" >&6; }
12364
12365 fi
12366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12367   cat >>confdefs.h <<_ACEOF
12368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12369 _ACEOF
12370
12371 fi
12372
12373 done
12374
12375
12376 for ac_header in fenv.h
12377 do
12378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12380   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383   echo $ECHO_N "(cached) $ECHO_C" >&6
12384 fi
12385 ac_res=`eval echo '${'$as_ac_Header'}'`
12386                { echo "$as_me:$LINENO: result: $ac_res" >&5
12387 echo "${ECHO_T}$ac_res" >&6; }
12388 else
12389   # Is the header compilable?
12390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398 $ac_includes_default
12399 #include <$ac_header>
12400 _ACEOF
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12409   ac_status=$?
12410   grep -v '^ *+' conftest.er1 >conftest.err
12411   rm -f conftest.er1
12412   cat conftest.err >&5
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); } &&
12415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416   { (case "(($ac_try" in
12417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418   *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421   (eval "$ac_try") 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; } &&
12425          { ac_try='test -s conftest.$ac_objext'
12426   { (case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_try") 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_header_compiler=yes
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440         ac_header_compiler=no
12441 fi
12442
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12445 echo "${ECHO_T}$ac_header_compiler" >&6; }
12446
12447 # Is the header present?
12448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12456 #include <$ac_header>
12457 _ACEOF
12458 if { (ac_try="$ac_cpp conftest.$ac_ext"
12459 case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12465   ac_status=$?
12466   grep -v '^ *+' conftest.er1 >conftest.err
12467   rm -f conftest.er1
12468   cat conftest.err >&5
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } >/dev/null; then
12471   if test -s conftest.err; then
12472     ac_cpp_err=$ac_c_preproc_warn_flag
12473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12474   else
12475     ac_cpp_err=
12476   fi
12477 else
12478   ac_cpp_err=yes
12479 fi
12480 if test -z "$ac_cpp_err"; then
12481   ac_header_preproc=yes
12482 else
12483   echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12485
12486   ac_header_preproc=no
12487 fi
12488
12489 rm -f conftest.err conftest.$ac_ext
12490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12491 echo "${ECHO_T}$ac_header_preproc" >&6; }
12492
12493 # So?  What about this header?
12494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12495   yes:no: )
12496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12500     ac_header_preproc=yes
12501     ;;
12502   no:yes:* )
12503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12515     ( cat <<\_ASBOX
12516 ## ------------------------------------ ##
12517 ## Report this to http://llvm.org/bugs/ ##
12518 ## ------------------------------------ ##
12519 _ASBOX
12520      ) | sed "s/^/$as_me: WARNING:     /" >&2
12521     ;;
12522 esac
12523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12526   echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528   eval "$as_ac_Header=\$ac_header_preproc"
12529 fi
12530 ac_res=`eval echo '${'$as_ac_Header'}'`
12531                { echo "$as_me:$LINENO: result: $ac_res" >&5
12532 echo "${ECHO_T}$ac_res" >&6; }
12533
12534 fi
12535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12536   cat >>confdefs.h <<_ACEOF
12537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12538 _ACEOF
12539
12540 fi
12541
12542 done
12543
12544 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12545 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12546 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12547   echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549   cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h.  */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h.  */
12555 #include <fenv.h>
12556
12557 int
12558 main ()
12559 {
12560 #ifndef FE_ALL_EXCEPT
12561   char *p = (char *) FE_ALL_EXCEPT;
12562   return !p;
12563 #endif
12564
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584   { (case "(($ac_try" in
12585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586   *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589   (eval "$ac_try") 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; } &&
12593          { ac_try='test -s conftest.$ac_objext'
12594   { (case "(($ac_try" in
12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596   *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599   (eval "$ac_try") 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608         ac_cv_have_decl_FE_ALL_EXCEPT=no
12609 fi
12610
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 fi
12613 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12614 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12615 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12616
12617 cat >>confdefs.h <<_ACEOF
12618 #define HAVE_DECL_FE_ALL_EXCEPT 1
12619 _ACEOF
12620
12621
12622 else
12623   cat >>confdefs.h <<_ACEOF
12624 #define HAVE_DECL_FE_ALL_EXCEPT 0
12625 _ACEOF
12626
12627
12628 fi
12629 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12630 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12631 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12632   echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634   cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640 #include <fenv.h>
12641
12642 int
12643 main ()
12644 {
12645 #ifndef FE_INEXACT
12646   char *p = (char *) FE_INEXACT;
12647   return !p;
12648 #endif
12649
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext
12655 if { (ac_try="$ac_compile"
12656 case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_compile") 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } &&
12668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12669   { (case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674   (eval "$ac_try") 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; } &&
12678          { ac_try='test -s conftest.$ac_objext'
12679   { (case "(($ac_try" in
12680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681   *) ac_try_echo=$ac_try;;
12682 esac
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684   (eval "$ac_try") 2>&5
12685   ac_status=$?
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); }; }; then
12688   ac_cv_have_decl_FE_INEXACT=yes
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693         ac_cv_have_decl_FE_INEXACT=no
12694 fi
12695
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12699 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12700 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12701
12702 cat >>confdefs.h <<_ACEOF
12703 #define HAVE_DECL_FE_INEXACT 1
12704 _ACEOF
12705
12706
12707 else
12708   cat >>confdefs.h <<_ACEOF
12709 #define HAVE_DECL_FE_INEXACT 0
12710 _ACEOF
12711
12712
12713 fi
12714
12715
12716 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12717
12718 for ac_header in pthread.h
12719 do
12720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12725   echo $ECHO_N "(cached) $ECHO_C" >&6
12726 fi
12727 ac_res=`eval echo '${'$as_ac_Header'}'`
12728                { echo "$as_me:$LINENO: result: $ac_res" >&5
12729 echo "${ECHO_T}$ac_res" >&6; }
12730 else
12731   # Is the header compilable?
12732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12734 cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740 $ac_includes_default
12741 #include <$ac_header>
12742 _ACEOF
12743 rm -f conftest.$ac_objext
12744 if { (ac_try="$ac_compile"
12745 case "(($ac_try" in
12746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747   *) ac_try_echo=$ac_try;;
12748 esac
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750   (eval "$ac_compile") 2>conftest.er1
12751   ac_status=$?
12752   grep -v '^ *+' conftest.er1 >conftest.err
12753   rm -f conftest.er1
12754   cat conftest.err >&5
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); } &&
12757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12758   { (case "(($ac_try" in
12759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760   *) ac_try_echo=$ac_try;;
12761 esac
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763   (eval "$ac_try") 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; } &&
12767          { ac_try='test -s conftest.$ac_objext'
12768   { (case "(($ac_try" in
12769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770   *) ac_try_echo=$ac_try;;
12771 esac
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773   (eval "$ac_try") 2>&5
12774   ac_status=$?
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); }; }; then
12777   ac_header_compiler=yes
12778 else
12779   echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782         ac_header_compiler=no
12783 fi
12784
12785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12787 echo "${ECHO_T}$ac_header_compiler" >&6; }
12788
12789 # Is the header present?
12790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h.  */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h.  */
12798 #include <$ac_header>
12799 _ACEOF
12800 if { (ac_try="$ac_cpp conftest.$ac_ext"
12801 case "(($ac_try" in
12802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803   *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12807   ac_status=$?
12808   grep -v '^ *+' conftest.er1 >conftest.err
12809   rm -f conftest.er1
12810   cat conftest.err >&5
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); } >/dev/null; then
12813   if test -s conftest.err; then
12814     ac_cpp_err=$ac_c_preproc_warn_flag
12815     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12816   else
12817     ac_cpp_err=
12818   fi
12819 else
12820   ac_cpp_err=yes
12821 fi
12822 if test -z "$ac_cpp_err"; then
12823   ac_header_preproc=yes
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828   ac_header_preproc=no
12829 fi
12830
12831 rm -f conftest.err conftest.$ac_ext
12832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12833 echo "${ECHO_T}$ac_header_preproc" >&6; }
12834
12835 # So?  What about this header?
12836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12837   yes:no: )
12838     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12842     ac_header_preproc=yes
12843     ;;
12844   no:yes:* )
12845     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12847     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12848 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12849     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12851     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12852 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12855     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12857     ( cat <<\_ASBOX
12858 ## ------------------------------------ ##
12859 ## Report this to http://llvm.org/bugs/ ##
12860 ## ------------------------------------ ##
12861 _ASBOX
12862      ) | sed "s/^/$as_me: WARNING:     /" >&2
12863     ;;
12864 esac
12865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12868   echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870   eval "$as_ac_Header=\$ac_header_preproc"
12871 fi
12872 ac_res=`eval echo '${'$as_ac_Header'}'`
12873                { echo "$as_me:$LINENO: result: $ac_res" >&5
12874 echo "${ECHO_T}$ac_res" >&6; }
12875
12876 fi
12877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12878   cat >>confdefs.h <<_ACEOF
12879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12880 _ACEOF
12881  HAVE_PTHREAD=1
12882
12883 else
12884   HAVE_PTHREAD=0
12885
12886 fi
12887
12888 done
12889
12890 else
12891   HAVE_PTHREAD=0
12892
12893 fi
12894 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12895
12896 for ac_header in zlib.h
12897 do
12898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12900   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12903   echo $ECHO_N "(cached) $ECHO_C" >&6
12904 fi
12905 ac_res=`eval echo '${'$as_ac_Header'}'`
12906                { echo "$as_me:$LINENO: result: $ac_res" >&5
12907 echo "${ECHO_T}$ac_res" >&6; }
12908 else
12909   # Is the header compilable?
12910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12912 cat >conftest.$ac_ext <<_ACEOF
12913 /* confdefs.h.  */
12914 _ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h.  */
12918 $ac_includes_default
12919 #include <$ac_header>
12920 _ACEOF
12921 rm -f conftest.$ac_objext
12922 if { (ac_try="$ac_compile"
12923 case "(($ac_try" in
12924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925   *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928   (eval "$ac_compile") 2>conftest.er1
12929   ac_status=$?
12930   grep -v '^ *+' conftest.er1 >conftest.err
12931   rm -f conftest.er1
12932   cat conftest.err >&5
12933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934   (exit $ac_status); } &&
12935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12936   { (case "(($ac_try" in
12937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938   *) ac_try_echo=$ac_try;;
12939 esac
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941   (eval "$ac_try") 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; } &&
12945          { ac_try='test -s conftest.$ac_objext'
12946   { (case "(($ac_try" in
12947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948   *) ac_try_echo=$ac_try;;
12949 esac
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951   (eval "$ac_try") 2>&5
12952   ac_status=$?
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); }; }; then
12955   ac_header_compiler=yes
12956 else
12957   echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960         ac_header_compiler=no
12961 fi
12962
12963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12965 echo "${ECHO_T}$ac_header_compiler" >&6; }
12966
12967 # Is the header present?
12968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12970 cat >conftest.$ac_ext <<_ACEOF
12971 /* confdefs.h.  */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h.  */
12976 #include <$ac_header>
12977 _ACEOF
12978 if { (ac_try="$ac_cpp conftest.$ac_ext"
12979 case "(($ac_try" in
12980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981   *) ac_try_echo=$ac_try;;
12982 esac
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12985   ac_status=$?
12986   grep -v '^ *+' conftest.er1 >conftest.err
12987   rm -f conftest.er1
12988   cat conftest.err >&5
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); } >/dev/null; then
12991   if test -s conftest.err; then
12992     ac_cpp_err=$ac_c_preproc_warn_flag
12993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12994   else
12995     ac_cpp_err=
12996   fi
12997 else
12998   ac_cpp_err=yes
12999 fi
13000 if test -z "$ac_cpp_err"; then
13001   ac_header_preproc=yes
13002 else
13003   echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006   ac_header_preproc=no
13007 fi
13008
13009 rm -f conftest.err conftest.$ac_ext
13010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13011 echo "${ECHO_T}$ac_header_preproc" >&6; }
13012
13013 # So?  What about this header?
13014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13015   yes:no: )
13016     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13020     ac_header_preproc=yes
13021     ;;
13022   no:yes:* )
13023     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13025     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13026 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13027     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13029     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13030 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13033     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13035     ( cat <<\_ASBOX
13036 ## ------------------------------------ ##
13037 ## Report this to http://llvm.org/bugs/ ##
13038 ## ------------------------------------ ##
13039 _ASBOX
13040      ) | sed "s/^/$as_me: WARNING:     /" >&2
13041     ;;
13042 esac
13043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13046   echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048   eval "$as_ac_Header=\$ac_header_preproc"
13049 fi
13050 ac_res=`eval echo '${'$as_ac_Header'}'`
13051                { echo "$as_me:$LINENO: result: $ac_res" >&5
13052 echo "${ECHO_T}$ac_res" >&6; }
13053
13054 fi
13055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13056   cat >>confdefs.h <<_ACEOF
13057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13058 _ACEOF
13059  HAVE_LIBZ=1
13060
13061 else
13062   HAVE_LIBZ=0
13063
13064 fi
13065
13066 done
13067
13068 else
13069   HAVE_LIBZ=0
13070
13071 fi
13072
13073 if test "$llvm_cv_enable_libffi" = "yes" ; then
13074
13075
13076 for ac_header in ffi.h ffi/ffi.h
13077 do
13078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13080   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 fi
13085 ac_res=`eval echo '${'$as_ac_Header'}'`
13086                { echo "$as_me:$LINENO: result: $ac_res" >&5
13087 echo "${ECHO_T}$ac_res" >&6; }
13088 else
13089   # Is the header compilable?
13090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h.  */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h.  */
13098 $ac_includes_default
13099 #include <$ac_header>
13100 _ACEOF
13101 rm -f conftest.$ac_objext
13102 if { (ac_try="$ac_compile"
13103 case "(($ac_try" in
13104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105   *) ac_try_echo=$ac_try;;
13106 esac
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108   (eval "$ac_compile") 2>conftest.er1
13109   ac_status=$?
13110   grep -v '^ *+' conftest.er1 >conftest.err
13111   rm -f conftest.er1
13112   cat conftest.err >&5
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); } &&
13115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13116   { (case "(($ac_try" in
13117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118   *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121   (eval "$ac_try") 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); }; } &&
13125          { ac_try='test -s conftest.$ac_objext'
13126   { (case "(($ac_try" in
13127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128   *) ac_try_echo=$ac_try;;
13129 esac
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131   (eval "$ac_try") 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; }; then
13135   ac_header_compiler=yes
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140         ac_header_compiler=no
13141 fi
13142
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13145 echo "${ECHO_T}$ac_header_compiler" >&6; }
13146
13147 # Is the header present?
13148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13150 cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 #include <$ac_header>
13157 _ACEOF
13158 if { (ac_try="$ac_cpp conftest.$ac_ext"
13159 case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13165   ac_status=$?
13166   grep -v '^ *+' conftest.er1 >conftest.err
13167   rm -f conftest.er1
13168   cat conftest.err >&5
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } >/dev/null; then
13171   if test -s conftest.err; then
13172     ac_cpp_err=$ac_c_preproc_warn_flag
13173     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13174   else
13175     ac_cpp_err=
13176   fi
13177 else
13178   ac_cpp_err=yes
13179 fi
13180 if test -z "$ac_cpp_err"; then
13181   ac_header_preproc=yes
13182 else
13183   echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13185
13186   ac_header_preproc=no
13187 fi
13188
13189 rm -f conftest.err conftest.$ac_ext
13190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13191 echo "${ECHO_T}$ac_header_preproc" >&6; }
13192
13193 # So?  What about this header?
13194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13195   yes:no: )
13196     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13200     ac_header_preproc=yes
13201     ;;
13202   no:yes:* )
13203     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13205     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13206 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13207     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13209     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13210 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13213     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13215     ( cat <<\_ASBOX
13216 ## ------------------------------------ ##
13217 ## Report this to http://llvm.org/bugs/ ##
13218 ## ------------------------------------ ##
13219 _ASBOX
13220      ) | sed "s/^/$as_me: WARNING:     /" >&2
13221     ;;
13222 esac
13223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13226   echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228   eval "$as_ac_Header=\$ac_header_preproc"
13229 fi
13230 ac_res=`eval echo '${'$as_ac_Header'}'`
13231                { echo "$as_me:$LINENO: result: $ac_res" >&5
13232 echo "${ECHO_T}$ac_res" >&6; }
13233
13234 fi
13235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13236   cat >>confdefs.h <<_ACEOF
13237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13238 _ACEOF
13239
13240 fi
13241
13242 done
13243
13244 fi
13245
13246
13247 for ac_header in CrashReporterClient.h
13248 do
13249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13251   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13254   echo $ECHO_N "(cached) $ECHO_C" >&6
13255 fi
13256 ac_res=`eval echo '${'$as_ac_Header'}'`
13257                { echo "$as_me:$LINENO: result: $ac_res" >&5
13258 echo "${ECHO_T}$ac_res" >&6; }
13259 else
13260   # Is the header compilable?
13261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h.  */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h.  */
13269 $ac_includes_default
13270 #include <$ac_header>
13271 _ACEOF
13272 rm -f conftest.$ac_objext
13273 if { (ac_try="$ac_compile"
13274 case "(($ac_try" in
13275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276   *) ac_try_echo=$ac_try;;
13277 esac
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279   (eval "$ac_compile") 2>conftest.er1
13280   ac_status=$?
13281   grep -v '^ *+' conftest.er1 >conftest.err
13282   rm -f conftest.er1
13283   cat conftest.err >&5
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); } &&
13286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13287   { (case "(($ac_try" in
13288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289   *) ac_try_echo=$ac_try;;
13290 esac
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292   (eval "$ac_try") 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }; } &&
13296          { ac_try='test -s conftest.$ac_objext'
13297   { (case "(($ac_try" in
13298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299   *) ac_try_echo=$ac_try;;
13300 esac
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302   (eval "$ac_try") 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; }; then
13306   ac_header_compiler=yes
13307 else
13308   echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311         ac_header_compiler=no
13312 fi
13313
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13316 echo "${ECHO_T}$ac_header_compiler" >&6; }
13317
13318 # Is the header present?
13319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h.  */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h.  */
13327 #include <$ac_header>
13328 _ACEOF
13329 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
13336   ac_status=$?
13337   grep -v '^ *+' conftest.er1 >conftest.err
13338   rm -f conftest.er1
13339   cat conftest.err >&5
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } >/dev/null; then
13342   if test -s conftest.err; then
13343     ac_cpp_err=$ac_c_preproc_warn_flag
13344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13345   else
13346     ac_cpp_err=
13347   fi
13348 else
13349   ac_cpp_err=yes
13350 fi
13351 if test -z "$ac_cpp_err"; then
13352   ac_header_preproc=yes
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357   ac_header_preproc=no
13358 fi
13359
13360 rm -f conftest.err conftest.$ac_ext
13361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13362 echo "${ECHO_T}$ac_header_preproc" >&6; }
13363
13364 # So?  What about this header?
13365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13366   yes:no: )
13367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13371     ac_header_preproc=yes
13372     ;;
13373   no:yes:* )
13374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13376     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13377 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13378     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13380     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13381 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13384     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13386     ( cat <<\_ASBOX
13387 ## ------------------------------------ ##
13388 ## Report this to http://llvm.org/bugs/ ##
13389 ## ------------------------------------ ##
13390 _ASBOX
13391      ) | sed "s/^/$as_me: WARNING:     /" >&2
13392     ;;
13393 esac
13394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399   eval "$as_ac_Header=\$ac_header_preproc"
13400 fi
13401 ac_res=`eval echo '${'$as_ac_Header'}'`
13402                { echo "$as_me:$LINENO: result: $ac_res" >&5
13403 echo "${ECHO_T}$ac_res" >&6; }
13404
13405 fi
13406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13407   cat >>confdefs.h <<_ACEOF
13408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13409 _ACEOF
13410
13411 fi
13412
13413 done
13414
13415
13416 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13417 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13418 cat >conftest.$ac_ext <<_ACEOF
13419
13420   /* confdefs.h.  */
13421 _ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h.  */
13425
13426     extern const char *__crashreporter_info__;
13427     int main() {
13428       __crashreporter_info__ = "test";
13429       return 0;
13430     }
13431
13432
13433 _ACEOF
13434 rm -f conftest.$ac_objext conftest$ac_exeext
13435 if { (ac_try="$ac_link"
13436 case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_link") 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } &&
13448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449   { (case "(($ac_try" in
13450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451   *) ac_try_echo=$ac_try;;
13452 esac
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454   (eval "$ac_try") 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; } &&
13458          { ac_try='test -s conftest$ac_exeext'
13459   { (case "(($ac_try" in
13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461   *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464   (eval "$ac_try") 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468
13469   { echo "$as_me:$LINENO: result: yes" >&5
13470 echo "${ECHO_T}yes" >&6; }
13471
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_CRASHREPORTER_INFO 1
13474 _ACEOF
13475
13476
13477 else
13478   echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481
13482   { echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6; }
13484
13485 cat >>confdefs.h <<\_ACEOF
13486 #define HAVE_CRASHREPORTER_INFO 0
13487 _ACEOF
13488
13489
13490 fi
13491
13492 rm -f core conftest.err conftest.$ac_objext \
13493       conftest$ac_exeext conftest.$ac_ext
13494
13495
13496
13497   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13498 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13499 if test "${ac_cv_huge_val_sanity+set}" = set; then
13500   echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502
13503     ac_ext=cpp
13504 ac_cpp='$CXXCPP $CPPFLAGS'
13505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13508
13509     ac_save_CXXFLAGS=$CXXFLAGS
13510     CXXFLAGS="$CXXFLAGS -pedantic"
13511     if test "$cross_compiling" = yes; then
13512   ac_cv_huge_val_sanity=yes
13513 else
13514   cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h.  */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h.  */
13520 #include <math.h>
13521 int
13522 main ()
13523 {
13524 double x = HUGE_VAL; return x != x;
13525   ;
13526   return 0;
13527 }
13528 _ACEOF
13529 rm -f conftest$ac_exeext
13530 if { (ac_try="$ac_link"
13531 case "(($ac_try" in
13532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533   *) ac_try_echo=$ac_try;;
13534 esac
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536   (eval "$ac_link") 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13540   { (case "(($ac_try" in
13541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542   *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545   (eval "$ac_try") 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); }; }; then
13549   ac_cv_huge_val_sanity=yes
13550 else
13551   echo "$as_me: program exited with status $ac_status" >&5
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 ( exit $ac_status )
13556 ac_cv_huge_val_sanity=no
13557 fi
13558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13559 fi
13560
13561
13562     CXXFLAGS=$ac_save_CXXFLAGS
13563     ac_ext=c
13564 ac_cpp='$CPP $CPPFLAGS'
13565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13568
13569
13570 fi
13571 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13572 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13573   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13574
13575
13576 { echo "$as_me:$LINENO: checking for pid_t" >&5
13577 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13578 if test "${ac_cv_type_pid_t+set}" = set; then
13579   echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581   cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h.  */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h.  */
13587 $ac_includes_default
13588 typedef pid_t ac__type_new_;
13589 int
13590 main ()
13591 {
13592 if ((ac__type_new_ *) 0)
13593   return 0;
13594 if (sizeof (ac__type_new_))
13595   return 0;
13596   ;
13597   return 0;
13598 }
13599 _ACEOF
13600 rm -f conftest.$ac_objext
13601 if { (ac_try="$ac_compile"
13602 case "(($ac_try" in
13603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604   *) ac_try_echo=$ac_try;;
13605 esac
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607   (eval "$ac_compile") 2>conftest.er1
13608   ac_status=$?
13609   grep -v '^ *+' conftest.er1 >conftest.err
13610   rm -f conftest.er1
13611   cat conftest.err >&5
13612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613   (exit $ac_status); } &&
13614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13615   { (case "(($ac_try" in
13616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617   *) ac_try_echo=$ac_try;;
13618 esac
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620   (eval "$ac_try") 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } &&
13624          { ac_try='test -s conftest.$ac_objext'
13625   { (case "(($ac_try" in
13626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627   *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630   (eval "$ac_try") 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; }; then
13634   ac_cv_type_pid_t=yes
13635 else
13636   echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13638
13639         ac_cv_type_pid_t=no
13640 fi
13641
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 fi
13644 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13645 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13646 if test $ac_cv_type_pid_t = yes; then
13647   :
13648 else
13649
13650 cat >>confdefs.h <<_ACEOF
13651 #define pid_t int
13652 _ACEOF
13653
13654 fi
13655
13656 { echo "$as_me:$LINENO: checking for size_t" >&5
13657 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13658 if test "${ac_cv_type_size_t+set}" = set; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661   cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667 $ac_includes_default
13668 typedef size_t ac__type_new_;
13669 int
13670 main ()
13671 {
13672 if ((ac__type_new_ *) 0)
13673   return 0;
13674 if (sizeof (ac__type_new_))
13675   return 0;
13676   ;
13677   return 0;
13678 }
13679 _ACEOF
13680 rm -f conftest.$ac_objext
13681 if { (ac_try="$ac_compile"
13682 case "(($ac_try" in
13683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684   *) ac_try_echo=$ac_try;;
13685 esac
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687   (eval "$ac_compile") 2>conftest.er1
13688   ac_status=$?
13689   grep -v '^ *+' conftest.er1 >conftest.err
13690   rm -f conftest.er1
13691   cat conftest.err >&5
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); } &&
13694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13695   { (case "(($ac_try" in
13696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697   *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700   (eval "$ac_try") 2>&5
13701   ac_status=$?
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); }; } &&
13704          { ac_try='test -s conftest.$ac_objext'
13705   { (case "(($ac_try" in
13706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707   *) ac_try_echo=$ac_try;;
13708 esac
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710   (eval "$ac_try") 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; }; then
13714   ac_cv_type_size_t=yes
13715 else
13716   echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13718
13719         ac_cv_type_size_t=no
13720 fi
13721
13722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 fi
13724 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13725 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13726 if test $ac_cv_type_size_t = yes; then
13727   :
13728 else
13729
13730 cat >>confdefs.h <<_ACEOF
13731 #define size_t unsigned int
13732 _ACEOF
13733
13734 fi
13735
13736
13737 cat >>confdefs.h <<_ACEOF
13738 #define RETSIGTYPE void
13739 _ACEOF
13740
13741 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13742 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13743 if test "${ac_cv_struct_tm+set}" = set; then
13744   echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746   cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h.  */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h.  */
13752 #include <sys/types.h>
13753 #include <time.h>
13754
13755 int
13756 main ()
13757 {
13758 struct tm *tp; tp->tm_sec;
13759   ;
13760   return 0;
13761 }
13762 _ACEOF
13763 rm -f conftest.$ac_objext
13764 if { (ac_try="$ac_compile"
13765 case "(($ac_try" in
13766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767   *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770   (eval "$ac_compile") 2>conftest.er1
13771   ac_status=$?
13772   grep -v '^ *+' conftest.er1 >conftest.err
13773   rm -f conftest.er1
13774   cat conftest.err >&5
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } &&
13777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778   { (case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783   (eval "$ac_try") 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); }; } &&
13787          { ac_try='test -s conftest.$ac_objext'
13788   { (case "(($ac_try" in
13789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790   *) ac_try_echo=$ac_try;;
13791 esac
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793   (eval "$ac_try") 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); }; }; then
13797   ac_cv_struct_tm=time.h
13798 else
13799   echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13801
13802         ac_cv_struct_tm=sys/time.h
13803 fi
13804
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806 fi
13807 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13808 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13809 if test $ac_cv_struct_tm = sys/time.h; then
13810
13811 cat >>confdefs.h <<\_ACEOF
13812 #define TM_IN_SYS_TIME 1
13813 _ACEOF
13814
13815 fi
13816
13817 { echo "$as_me:$LINENO: checking for int64_t" >&5
13818 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13819 if test "${ac_cv_type_int64_t+set}" = set; then
13820   echo $ECHO_N "(cached) $ECHO_C" >&6
13821 else
13822   cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828 $ac_includes_default
13829 typedef int64_t ac__type_new_;
13830 int
13831 main ()
13832 {
13833 if ((ac__type_new_ *) 0)
13834   return 0;
13835 if (sizeof (ac__type_new_))
13836   return 0;
13837   ;
13838   return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest.$ac_objext
13842 if { (ac_try="$ac_compile"
13843 case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_compile") 2>conftest.er1
13849   ac_status=$?
13850   grep -v '^ *+' conftest.er1 >conftest.err
13851   rm -f conftest.er1
13852   cat conftest.err >&5
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); } &&
13855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856   { (case "(($ac_try" in
13857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858   *) ac_try_echo=$ac_try;;
13859 esac
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861   (eval "$ac_try") 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; } &&
13865          { ac_try='test -s conftest.$ac_objext'
13866   { (case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_try") 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); }; }; then
13875   ac_cv_type_int64_t=yes
13876 else
13877   echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13879
13880         ac_cv_type_int64_t=no
13881 fi
13882
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 fi
13885 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13886 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13887 if test $ac_cv_type_int64_t = yes; then
13888
13889 cat >>confdefs.h <<_ACEOF
13890 #define HAVE_INT64_T 1
13891 _ACEOF
13892
13893
13894 else
13895   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13896 echo "$as_me: error: Type int64_t required but not found" >&2;}
13897    { (exit 1); exit 1; }; }
13898 fi
13899
13900 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13901 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13902 if test "${ac_cv_type_uint64_t+set}" = set; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h.  */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h.  */
13911 $ac_includes_default
13912 typedef uint64_t ac__type_new_;
13913 int
13914 main ()
13915 {
13916 if ((ac__type_new_ *) 0)
13917   return 0;
13918 if (sizeof (ac__type_new_))
13919   return 0;
13920   ;
13921   return 0;
13922 }
13923 _ACEOF
13924 rm -f conftest.$ac_objext
13925 if { (ac_try="$ac_compile"
13926 case "(($ac_try" in
13927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928   *) ac_try_echo=$ac_try;;
13929 esac
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931   (eval "$ac_compile") 2>conftest.er1
13932   ac_status=$?
13933   grep -v '^ *+' conftest.er1 >conftest.err
13934   rm -f conftest.er1
13935   cat conftest.err >&5
13936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937   (exit $ac_status); } &&
13938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13939   { (case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944   (eval "$ac_try") 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; } &&
13948          { ac_try='test -s conftest.$ac_objext'
13949   { (case "(($ac_try" in
13950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951   *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954   (eval "$ac_try") 2>&5
13955   ac_status=$?
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); }; }; then
13958   ac_cv_type_uint64_t=yes
13959 else
13960   echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13962
13963         ac_cv_type_uint64_t=no
13964 fi
13965
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967 fi
13968 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13969 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13970 if test $ac_cv_type_uint64_t = yes; then
13971
13972 cat >>confdefs.h <<_ACEOF
13973 #define HAVE_UINT64_T 1
13974 _ACEOF
13975
13976
13977 else
13978   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13979 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13980 if test "${ac_cv_type_u_int64_t+set}" = set; then
13981   echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983   cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989 $ac_includes_default
13990 typedef u_int64_t ac__type_new_;
13991 int
13992 main ()
13993 {
13994 if ((ac__type_new_ *) 0)
13995   return 0;
13996 if (sizeof (ac__type_new_))
13997   return 0;
13998   ;
13999   return 0;
14000 }
14001 _ACEOF
14002 rm -f conftest.$ac_objext
14003 if { (ac_try="$ac_compile"
14004 case "(($ac_try" in
14005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006   *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009   (eval "$ac_compile") 2>conftest.er1
14010   ac_status=$?
14011   grep -v '^ *+' conftest.er1 >conftest.err
14012   rm -f conftest.er1
14013   cat conftest.err >&5
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); } &&
14016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14017   { (case "(($ac_try" in
14018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019   *) ac_try_echo=$ac_try;;
14020 esac
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022   (eval "$ac_try") 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; } &&
14026          { ac_try='test -s conftest.$ac_objext'
14027   { (case "(($ac_try" in
14028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029   *) ac_try_echo=$ac_try;;
14030 esac
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032   (eval "$ac_try") 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); }; }; then
14036   ac_cv_type_u_int64_t=yes
14037 else
14038   echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041         ac_cv_type_u_int64_t=no
14042 fi
14043
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 fi
14046 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14047 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14048 if test $ac_cv_type_u_int64_t = yes; then
14049
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_U_INT64_T 1
14052 _ACEOF
14053
14054
14055 else
14056   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14057 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14058    { (exit 1); exit 1; }; }
14059 fi
14060
14061 fi
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14073 do
14074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080   cat >conftest.$ac_ext <<_ACEOF
14081 /* confdefs.h.  */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h.  */
14086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14088 #define $ac_func innocuous_$ac_func
14089
14090 /* System header to define __stub macros and hopefully few prototypes,
14091     which can conflict with char $ac_func (); below.
14092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14093     <limits.h> exists even on freestanding compilers.  */
14094
14095 #ifdef __STDC__
14096 # include <limits.h>
14097 #else
14098 # include <assert.h>
14099 #endif
14100
14101 #undef $ac_func
14102
14103 /* Override any GCC internal prototype to avoid an error.
14104    Use char because int might match the return type of a GCC
14105    builtin and then its argument prototype would still apply.  */
14106 #ifdef __cplusplus
14107 extern "C"
14108 #endif
14109 char $ac_func ();
14110 /* The GNU C library defines this for functions which it implements
14111     to always fail with ENOSYS.  Some functions are actually named
14112     something starting with __ and the normal name is an alias.  */
14113 #if defined __stub_$ac_func || defined __stub___$ac_func
14114 choke me
14115 #endif
14116
14117 int
14118 main ()
14119 {
14120 return $ac_func ();
14121   ;
14122   return 0;
14123 }
14124 _ACEOF
14125 rm -f conftest.$ac_objext conftest$ac_exeext
14126 if { (ac_try="$ac_link"
14127 case "(($ac_try" in
14128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129   *) ac_try_echo=$ac_try;;
14130 esac
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132   (eval "$ac_link") 2>conftest.er1
14133   ac_status=$?
14134   grep -v '^ *+' conftest.er1 >conftest.err
14135   rm -f conftest.er1
14136   cat conftest.err >&5
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } &&
14139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14140   { (case "(($ac_try" in
14141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142   *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145   (eval "$ac_try") 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; } &&
14149          { ac_try='test -s conftest$ac_exeext'
14150   { (case "(($ac_try" in
14151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152   *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155   (eval "$ac_try") 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; }; then
14159   eval "$as_ac_var=yes"
14160 else
14161   echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14163
14164         eval "$as_ac_var=no"
14165 fi
14166
14167 rm -f core conftest.err conftest.$ac_objext \
14168       conftest$ac_exeext conftest.$ac_ext
14169 fi
14170 ac_res=`eval echo '${'$as_ac_var'}'`
14171                { echo "$as_me:$LINENO: result: $ac_res" >&5
14172 echo "${ECHO_T}$ac_res" >&6; }
14173 if test `eval echo '${'$as_ac_var'}'` = yes; then
14174   cat >>confdefs.h <<_ACEOF
14175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14176 _ACEOF
14177
14178 fi
14179 done
14180
14181
14182
14183
14184
14185 for ac_func in powf fmodf strtof round
14186 do
14187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14201 #define $ac_func innocuous_$ac_func
14202
14203 /* System header to define __stub macros and hopefully few prototypes,
14204     which can conflict with char $ac_func (); below.
14205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14206     <limits.h> exists even on freestanding compilers.  */
14207
14208 #ifdef __STDC__
14209 # include <limits.h>
14210 #else
14211 # include <assert.h>
14212 #endif
14213
14214 #undef $ac_func
14215
14216 /* Override any GCC internal prototype to avoid an error.
14217    Use char because int might match the return type of a GCC
14218    builtin and then its argument prototype would still apply.  */
14219 #ifdef __cplusplus
14220 extern "C"
14221 #endif
14222 char $ac_func ();
14223 /* The GNU C library defines this for functions which it implements
14224     to always fail with ENOSYS.  Some functions are actually named
14225     something starting with __ and the normal name is an alias.  */
14226 #if defined __stub_$ac_func || defined __stub___$ac_func
14227 choke me
14228 #endif
14229
14230 int
14231 main ()
14232 {
14233 return $ac_func ();
14234   ;
14235   return 0;
14236 }
14237 _ACEOF
14238 rm -f conftest.$ac_objext conftest$ac_exeext
14239 if { (ac_try="$ac_link"
14240 case "(($ac_try" in
14241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242   *) ac_try_echo=$ac_try;;
14243 esac
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245   (eval "$ac_link") 2>conftest.er1
14246   ac_status=$?
14247   grep -v '^ *+' conftest.er1 >conftest.err
14248   rm -f conftest.er1
14249   cat conftest.err >&5
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); } &&
14252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14253   { (case "(($ac_try" in
14254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255   *) ac_try_echo=$ac_try;;
14256 esac
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258   (eval "$ac_try") 2>&5
14259   ac_status=$?
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); }; } &&
14262          { ac_try='test -s conftest$ac_exeext'
14263   { (case "(($ac_try" in
14264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265   *) ac_try_echo=$ac_try;;
14266 esac
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268   (eval "$ac_try") 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; }; then
14272   eval "$as_ac_var=yes"
14273 else
14274   echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276
14277         eval "$as_ac_var=no"
14278 fi
14279
14280 rm -f core conftest.err conftest.$ac_objext \
14281       conftest$ac_exeext conftest.$ac_ext
14282 fi
14283 ac_res=`eval echo '${'$as_ac_var'}'`
14284                { echo "$as_me:$LINENO: result: $ac_res" >&5
14285 echo "${ECHO_T}$ac_res" >&6; }
14286 if test `eval echo '${'$as_ac_var'}'` = yes; then
14287   cat >>confdefs.h <<_ACEOF
14288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14289 _ACEOF
14290
14291 fi
14292 done
14293
14294
14295
14296
14297
14298
14299 for ac_func in log log2 log10 exp exp2
14300 do
14301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14305   echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307   cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h.  */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h.  */
14313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14315 #define $ac_func innocuous_$ac_func
14316
14317 /* System header to define __stub macros and hopefully few prototypes,
14318     which can conflict with char $ac_func (); below.
14319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14320     <limits.h> exists even on freestanding compilers.  */
14321
14322 #ifdef __STDC__
14323 # include <limits.h>
14324 #else
14325 # include <assert.h>
14326 #endif
14327
14328 #undef $ac_func
14329
14330 /* Override any GCC internal prototype to avoid an error.
14331    Use char because int might match the return type of a GCC
14332    builtin and then its argument prototype would still apply.  */
14333 #ifdef __cplusplus
14334 extern "C"
14335 #endif
14336 char $ac_func ();
14337 /* The GNU C library defines this for functions which it implements
14338     to always fail with ENOSYS.  Some functions are actually named
14339     something starting with __ and the normal name is an alias.  */
14340 #if defined __stub_$ac_func || defined __stub___$ac_func
14341 choke me
14342 #endif
14343
14344 int
14345 main ()
14346 {
14347 return $ac_func ();
14348   ;
14349   return 0;
14350 }
14351 _ACEOF
14352 rm -f conftest.$ac_objext conftest$ac_exeext
14353 if { (ac_try="$ac_link"
14354 case "(($ac_try" in
14355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356   *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359   (eval "$ac_link") 2>conftest.er1
14360   ac_status=$?
14361   grep -v '^ *+' conftest.er1 >conftest.err
14362   rm -f conftest.er1
14363   cat conftest.err >&5
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); } &&
14366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14367   { (case "(($ac_try" in
14368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369   *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372   (eval "$ac_try") 2>&5
14373   ac_status=$?
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); }; } &&
14376          { ac_try='test -s conftest$ac_exeext'
14377   { (case "(($ac_try" in
14378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379   *) ac_try_echo=$ac_try;;
14380 esac
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382   (eval "$ac_try") 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; }; then
14386   eval "$as_ac_var=yes"
14387 else
14388   echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391         eval "$as_ac_var=no"
14392 fi
14393
14394 rm -f core conftest.err conftest.$ac_objext \
14395       conftest$ac_exeext conftest.$ac_ext
14396 fi
14397 ac_res=`eval echo '${'$as_ac_var'}'`
14398                { echo "$as_me:$LINENO: result: $ac_res" >&5
14399 echo "${ECHO_T}$ac_res" >&6; }
14400 if test `eval echo '${'$as_ac_var'}'` = yes; then
14401   cat >>confdefs.h <<_ACEOF
14402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14403 _ACEOF
14404
14405 fi
14406 done
14407
14408
14409
14410
14411
14412
14413 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14414 do
14415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14419   echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421   cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h.  */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h.  */
14427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14429 #define $ac_func innocuous_$ac_func
14430
14431 /* System header to define __stub macros and hopefully few prototypes,
14432     which can conflict with char $ac_func (); below.
14433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14434     <limits.h> exists even on freestanding compilers.  */
14435
14436 #ifdef __STDC__
14437 # include <limits.h>
14438 #else
14439 # include <assert.h>
14440 #endif
14441
14442 #undef $ac_func
14443
14444 /* Override any GCC internal prototype to avoid an error.
14445    Use char because int might match the return type of a GCC
14446    builtin and then its argument prototype would still apply.  */
14447 #ifdef __cplusplus
14448 extern "C"
14449 #endif
14450 char $ac_func ();
14451 /* The GNU C library defines this for functions which it implements
14452     to always fail with ENOSYS.  Some functions are actually named
14453     something starting with __ and the normal name is an alias.  */
14454 #if defined __stub_$ac_func || defined __stub___$ac_func
14455 choke me
14456 #endif
14457
14458 int
14459 main ()
14460 {
14461 return $ac_func ();
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (ac_try="$ac_link"
14468 case "(($ac_try" in
14469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470   *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473   (eval "$ac_link") 2>conftest.er1
14474   ac_status=$?
14475   grep -v '^ *+' conftest.er1 >conftest.err
14476   rm -f conftest.er1
14477   cat conftest.err >&5
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); } &&
14480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14481   { (case "(($ac_try" in
14482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483   *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486   (eval "$ac_try") 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; } &&
14490          { ac_try='test -s conftest$ac_exeext'
14491   { (case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496   (eval "$ac_try") 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; }; then
14500   eval "$as_ac_var=yes"
14501 else
14502   echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505         eval "$as_ac_var=no"
14506 fi
14507
14508 rm -f core conftest.err conftest.$ac_objext \
14509       conftest$ac_exeext conftest.$ac_ext
14510 fi
14511 ac_res=`eval echo '${'$as_ac_var'}'`
14512                { echo "$as_me:$LINENO: result: $ac_res" >&5
14513 echo "${ECHO_T}$ac_res" >&6; }
14514 if test `eval echo '${'$as_ac_var'}'` = yes; then
14515   cat >>confdefs.h <<_ACEOF
14516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14517 _ACEOF
14518
14519 fi
14520 done
14521
14522
14523
14524
14525 for ac_func in isatty mkdtemp mkstemp
14526 do
14527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14531   echo $ECHO_N "(cached) $ECHO_C" >&6
14532 else
14533   cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h.  */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h.  */
14539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14541 #define $ac_func innocuous_$ac_func
14542
14543 /* System header to define __stub macros and hopefully few prototypes,
14544     which can conflict with char $ac_func (); below.
14545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14546     <limits.h> exists even on freestanding compilers.  */
14547
14548 #ifdef __STDC__
14549 # include <limits.h>
14550 #else
14551 # include <assert.h>
14552 #endif
14553
14554 #undef $ac_func
14555
14556 /* Override any GCC internal prototype to avoid an error.
14557    Use char because int might match the return type of a GCC
14558    builtin and then its argument prototype would still apply.  */
14559 #ifdef __cplusplus
14560 extern "C"
14561 #endif
14562 char $ac_func ();
14563 /* The GNU C library defines this for functions which it implements
14564     to always fail with ENOSYS.  Some functions are actually named
14565     something starting with __ and the normal name is an alias.  */
14566 #if defined __stub_$ac_func || defined __stub___$ac_func
14567 choke me
14568 #endif
14569
14570 int
14571 main ()
14572 {
14573 return $ac_func ();
14574   ;
14575   return 0;
14576 }
14577 _ACEOF
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (ac_try="$ac_link"
14580 case "(($ac_try" in
14581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582   *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585   (eval "$ac_link") 2>conftest.er1
14586   ac_status=$?
14587   grep -v '^ *+' conftest.er1 >conftest.err
14588   rm -f conftest.er1
14589   cat conftest.err >&5
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); } &&
14592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14593   { (case "(($ac_try" in
14594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595   *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598   (eval "$ac_try") 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; } &&
14602          { ac_try='test -s conftest$ac_exeext'
14603   { (case "(($ac_try" in
14604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605   *) ac_try_echo=$ac_try;;
14606 esac
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608   (eval "$ac_try") 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; }; then
14612   eval "$as_ac_var=yes"
14613 else
14614   echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14616
14617         eval "$as_ac_var=no"
14618 fi
14619
14620 rm -f core conftest.err conftest.$ac_objext \
14621       conftest$ac_exeext conftest.$ac_ext
14622 fi
14623 ac_res=`eval echo '${'$as_ac_var'}'`
14624                { echo "$as_me:$LINENO: result: $ac_res" >&5
14625 echo "${ECHO_T}$ac_res" >&6; }
14626 if test `eval echo '${'$as_ac_var'}'` = yes; then
14627   cat >>confdefs.h <<_ACEOF
14628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14629 _ACEOF
14630
14631 fi
14632 done
14633
14634
14635
14636
14637
14638
14639
14640 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14641 do
14642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14646   echo $ECHO_N "(cached) $ECHO_C" >&6
14647 else
14648   cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14656 #define $ac_func innocuous_$ac_func
14657
14658 /* System header to define __stub macros and hopefully few prototypes,
14659     which can conflict with char $ac_func (); below.
14660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14661     <limits.h> exists even on freestanding compilers.  */
14662
14663 #ifdef __STDC__
14664 # include <limits.h>
14665 #else
14666 # include <assert.h>
14667 #endif
14668
14669 #undef $ac_func
14670
14671 /* Override any GCC internal prototype to avoid an error.
14672    Use char because int might match the return type of a GCC
14673    builtin and then its argument prototype would still apply.  */
14674 #ifdef __cplusplus
14675 extern "C"
14676 #endif
14677 char $ac_func ();
14678 /* The GNU C library defines this for functions which it implements
14679     to always fail with ENOSYS.  Some functions are actually named
14680     something starting with __ and the normal name is an alias.  */
14681 #if defined __stub_$ac_func || defined __stub___$ac_func
14682 choke me
14683 #endif
14684
14685 int
14686 main ()
14687 {
14688 return $ac_func ();
14689   ;
14690   return 0;
14691 }
14692 _ACEOF
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697   *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700   (eval "$ac_link") 2>conftest.er1
14701   ac_status=$?
14702   grep -v '^ *+' conftest.er1 >conftest.err
14703   rm -f conftest.er1
14704   cat conftest.err >&5
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); } &&
14707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14708   { (case "(($ac_try" in
14709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710   *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713   (eval "$ac_try") 2>&5
14714   ac_status=$?
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); }; } &&
14717          { ac_try='test -s conftest$ac_exeext'
14718   { (case "(($ac_try" in
14719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720   *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723   (eval "$ac_try") 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; }; then
14727   eval "$as_ac_var=yes"
14728 else
14729   echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14731
14732         eval "$as_ac_var=no"
14733 fi
14734
14735 rm -f core conftest.err conftest.$ac_objext \
14736       conftest$ac_exeext conftest.$ac_ext
14737 fi
14738 ac_res=`eval echo '${'$as_ac_var'}'`
14739                { echo "$as_me:$LINENO: result: $ac_res" >&5
14740 echo "${ECHO_T}$ac_res" >&6; }
14741 if test `eval echo '${'$as_ac_var'}'` = yes; then
14742   cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14744 _ACEOF
14745
14746 fi
14747 done
14748
14749
14750
14751
14752 for ac_func in strerror strerror_r setenv
14753 do
14754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14758   echo $ECHO_N "(cached) $ECHO_C" >&6
14759 else
14760   cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h.  */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h.  */
14766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14768 #define $ac_func innocuous_$ac_func
14769
14770 /* System header to define __stub macros and hopefully few prototypes,
14771     which can conflict with char $ac_func (); below.
14772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14773     <limits.h> exists even on freestanding compilers.  */
14774
14775 #ifdef __STDC__
14776 # include <limits.h>
14777 #else
14778 # include <assert.h>
14779 #endif
14780
14781 #undef $ac_func
14782
14783 /* Override any GCC internal prototype to avoid an error.
14784    Use char because int might match the return type of a GCC
14785    builtin and then its argument prototype would still apply.  */
14786 #ifdef __cplusplus
14787 extern "C"
14788 #endif
14789 char $ac_func ();
14790 /* The GNU C library defines this for functions which it implements
14791     to always fail with ENOSYS.  Some functions are actually named
14792     something starting with __ and the normal name is an alias.  */
14793 #if defined __stub_$ac_func || defined __stub___$ac_func
14794 choke me
14795 #endif
14796
14797 int
14798 main ()
14799 {
14800 return $ac_func ();
14801   ;
14802   return 0;
14803 }
14804 _ACEOF
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (ac_try="$ac_link"
14807 case "(($ac_try" in
14808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14809   *) ac_try_echo=$ac_try;;
14810 esac
14811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14812   (eval "$ac_link") 2>conftest.er1
14813   ac_status=$?
14814   grep -v '^ *+' conftest.er1 >conftest.err
14815   rm -f conftest.er1
14816   cat conftest.err >&5
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } &&
14819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14820   { (case "(($ac_try" in
14821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14822   *) ac_try_echo=$ac_try;;
14823 esac
14824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14825   (eval "$ac_try") 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; } &&
14829          { ac_try='test -s conftest$ac_exeext'
14830   { (case "(($ac_try" in
14831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832   *) ac_try_echo=$ac_try;;
14833 esac
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835   (eval "$ac_try") 2>&5
14836   ac_status=$?
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); }; }; then
14839   eval "$as_ac_var=yes"
14840 else
14841   echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14843
14844         eval "$as_ac_var=no"
14845 fi
14846
14847 rm -f core conftest.err conftest.$ac_objext \
14848       conftest$ac_exeext conftest.$ac_ext
14849 fi
14850 ac_res=`eval echo '${'$as_ac_var'}'`
14851                { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14853 if test `eval echo '${'$as_ac_var'}'` = yes; then
14854   cat >>confdefs.h <<_ACEOF
14855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14856 _ACEOF
14857
14858 fi
14859 done
14860
14861
14862
14863
14864
14865 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14866 do
14867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14871   echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873   cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h.  */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h.  */
14879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14881 #define $ac_func innocuous_$ac_func
14882
14883 /* System header to define __stub macros and hopefully few prototypes,
14884     which can conflict with char $ac_func (); below.
14885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14886     <limits.h> exists even on freestanding compilers.  */
14887
14888 #ifdef __STDC__
14889 # include <limits.h>
14890 #else
14891 # include <assert.h>
14892 #endif
14893
14894 #undef $ac_func
14895
14896 /* Override any GCC internal prototype to avoid an error.
14897    Use char because int might match the return type of a GCC
14898    builtin and then its argument prototype would still apply.  */
14899 #ifdef __cplusplus
14900 extern "C"
14901 #endif
14902 char $ac_func ();
14903 /* The GNU C library defines this for functions which it implements
14904     to always fail with ENOSYS.  Some functions are actually named
14905     something starting with __ and the normal name is an alias.  */
14906 #if defined __stub_$ac_func || defined __stub___$ac_func
14907 choke me
14908 #endif
14909
14910 int
14911 main ()
14912 {
14913 return $ac_func ();
14914   ;
14915   return 0;
14916 }
14917 _ACEOF
14918 rm -f conftest.$ac_objext conftest$ac_exeext
14919 if { (ac_try="$ac_link"
14920 case "(($ac_try" in
14921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922   *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925   (eval "$ac_link") 2>conftest.er1
14926   ac_status=$?
14927   grep -v '^ *+' conftest.er1 >conftest.err
14928   rm -f conftest.er1
14929   cat conftest.err >&5
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); } &&
14932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14933   { (case "(($ac_try" in
14934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935   *) ac_try_echo=$ac_try;;
14936 esac
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938   (eval "$ac_try") 2>&5
14939   ac_status=$?
14940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941   (exit $ac_status); }; } &&
14942          { ac_try='test -s conftest$ac_exeext'
14943   { (case "(($ac_try" in
14944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945   *) ac_try_echo=$ac_try;;
14946 esac
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948   (eval "$ac_try") 2>&5
14949   ac_status=$?
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); }; }; then
14952   eval "$as_ac_var=yes"
14953 else
14954   echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14956
14957         eval "$as_ac_var=no"
14958 fi
14959
14960 rm -f core conftest.err conftest.$ac_objext \
14961       conftest$ac_exeext conftest.$ac_ext
14962 fi
14963 ac_res=`eval echo '${'$as_ac_var'}'`
14964                { echo "$as_me:$LINENO: result: $ac_res" >&5
14965 echo "${ECHO_T}$ac_res" >&6; }
14966 if test `eval echo '${'$as_ac_var'}'` = yes; then
14967   cat >>confdefs.h <<_ACEOF
14968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14969 _ACEOF
14970
14971 fi
14972 done
14973
14974
14975
14976
14977
14978
14979 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14980 do
14981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987   cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h.  */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h.  */
14993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14995 #define $ac_func innocuous_$ac_func
14996
14997 /* System header to define __stub macros and hopefully few prototypes,
14998     which can conflict with char $ac_func (); below.
14999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15000     <limits.h> exists even on freestanding compilers.  */
15001
15002 #ifdef __STDC__
15003 # include <limits.h>
15004 #else
15005 # include <assert.h>
15006 #endif
15007
15008 #undef $ac_func
15009
15010 /* Override any GCC internal prototype to avoid an error.
15011    Use char because int might match the return type of a GCC
15012    builtin and then its argument prototype would still apply.  */
15013 #ifdef __cplusplus
15014 extern "C"
15015 #endif
15016 char $ac_func ();
15017 /* The GNU C library defines this for functions which it implements
15018     to always fail with ENOSYS.  Some functions are actually named
15019     something starting with __ and the normal name is an alias.  */
15020 #if defined __stub_$ac_func || defined __stub___$ac_func
15021 choke me
15022 #endif
15023
15024 int
15025 main ()
15026 {
15027 return $ac_func ();
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 rm -f conftest.$ac_objext conftest$ac_exeext
15033 if { (ac_try="$ac_link"
15034 case "(($ac_try" in
15035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036   *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039   (eval "$ac_link") 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } &&
15046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15047   { (case "(($ac_try" in
15048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049   *) ac_try_echo=$ac_try;;
15050 esac
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052   (eval "$ac_try") 2>&5
15053   ac_status=$?
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); }; } &&
15056          { ac_try='test -s conftest$ac_exeext'
15057   { (case "(($ac_try" in
15058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059   *) ac_try_echo=$ac_try;;
15060 esac
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062   (eval "$ac_try") 2>&5
15063   ac_status=$?
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); }; }; then
15066   eval "$as_ac_var=yes"
15067 else
15068   echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071         eval "$as_ac_var=no"
15072 fi
15073
15074 rm -f core conftest.err conftest.$ac_objext \
15075       conftest$ac_exeext conftest.$ac_ext
15076 fi
15077 ac_res=`eval echo '${'$as_ac_var'}'`
15078                { echo "$as_me:$LINENO: result: $ac_res" >&5
15079 echo "${ECHO_T}$ac_res" >&6; }
15080 if test `eval echo '${'$as_ac_var'}'` = yes; then
15081   cat >>confdefs.h <<_ACEOF
15082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15083 _ACEOF
15084
15085 fi
15086 done
15087
15088
15089
15090 for ac_func in futimes futimens
15091 do
15092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15096   echo $ECHO_N "(cached) $ECHO_C" >&6
15097 else
15098   cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h.  */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h.  */
15104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15106 #define $ac_func innocuous_$ac_func
15107
15108 /* System header to define __stub macros and hopefully few prototypes,
15109     which can conflict with char $ac_func (); below.
15110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15111     <limits.h> exists even on freestanding compilers.  */
15112
15113 #ifdef __STDC__
15114 # include <limits.h>
15115 #else
15116 # include <assert.h>
15117 #endif
15118
15119 #undef $ac_func
15120
15121 /* Override any GCC internal prototype to avoid an error.
15122    Use char because int might match the return type of a GCC
15123    builtin and then its argument prototype would still apply.  */
15124 #ifdef __cplusplus
15125 extern "C"
15126 #endif
15127 char $ac_func ();
15128 /* The GNU C library defines this for functions which it implements
15129     to always fail with ENOSYS.  Some functions are actually named
15130     something starting with __ and the normal name is an alias.  */
15131 #if defined __stub_$ac_func || defined __stub___$ac_func
15132 choke me
15133 #endif
15134
15135 int
15136 main ()
15137 {
15138 return $ac_func ();
15139   ;
15140   return 0;
15141 }
15142 _ACEOF
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (ac_try="$ac_link"
15145 case "(($ac_try" in
15146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147   *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150   (eval "$ac_link") 2>conftest.er1
15151   ac_status=$?
15152   grep -v '^ *+' conftest.er1 >conftest.err
15153   rm -f conftest.er1
15154   cat conftest.err >&5
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); } &&
15157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15158   { (case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_try") 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; } &&
15167          { ac_try='test -s conftest$ac_exeext'
15168   { (case "(($ac_try" in
15169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170   *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173   (eval "$ac_try") 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; }; then
15177   eval "$as_ac_var=yes"
15178 else
15179   echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182         eval "$as_ac_var=no"
15183 fi
15184
15185 rm -f core conftest.err conftest.$ac_objext \
15186       conftest$ac_exeext conftest.$ac_ext
15187 fi
15188 ac_res=`eval echo '${'$as_ac_var'}'`
15189                { echo "$as_me:$LINENO: result: $ac_res" >&5
15190 echo "${ECHO_T}$ac_res" >&6; }
15191 if test `eval echo '${'$as_ac_var'}'` = yes; then
15192   cat >>confdefs.h <<_ACEOF
15193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15194 _ACEOF
15195
15196 fi
15197 done
15198
15199 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15200 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15201 if test "${llvm_cv_c_printf_a+set}" = set; then
15202   echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204   ac_ext=c
15205 ac_cpp='$CPP $CPPFLAGS'
15206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15209
15210  if test "$cross_compiling" = yes; then
15211   llvmac_cv_c_printf_a=no
15212 else
15213   cat >conftest.$ac_ext <<_ACEOF
15214
15215   /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220
15221 #include <stdio.h>
15222 #include <stdlib.h>
15223
15224 int
15225 main ()
15226 {
15227
15228 volatile double A, B;
15229 char Buffer[100];
15230 A = 1;
15231 A /= 10.0;
15232 sprintf(Buffer, "%a", A);
15233 B = atof(Buffer);
15234 if (A != B)
15235   return (1);
15236 if (A != 0x1.999999999999ap-4)
15237   return (1);
15238 return (0);
15239   ;
15240   return 0;
15241 }
15242 _ACEOF
15243 rm -f conftest$ac_exeext
15244 if { (ac_try="$ac_link"
15245 case "(($ac_try" in
15246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247   *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250   (eval "$ac_link") 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15254   { (case "(($ac_try" in
15255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256   *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259   (eval "$ac_try") 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   llvm_cv_c_printf_a=yes
15264 else
15265   echo "$as_me: program exited with status $ac_status" >&5
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269 ( exit $ac_status )
15270 llvmac_cv_c_printf_a=no
15271 fi
15272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15273 fi
15274
15275
15276  ac_ext=c
15277 ac_cpp='$CPP $CPPFLAGS'
15278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15281
15282 fi
15283 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15284 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15285  if test "$llvm_cv_c_printf_a" = "yes"; then
15286
15287 cat >>confdefs.h <<\_ACEOF
15288 #define HAVE_PRINTF_A 1
15289 _ACEOF
15290
15291  fi
15292
15293
15294
15295   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15296 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15297 if test "${ac_cv_func_rand48+set}" = set; then
15298   echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300
15301     ac_ext=cpp
15302 ac_cpp='$CXXCPP $CPPFLAGS'
15303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15306
15307     cat >conftest.$ac_ext <<_ACEOF
15308 /* confdefs.h.  */
15309 _ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h.  */
15313 #include <stdlib.h>
15314 int
15315 main ()
15316 {
15317 srand48(0);lrand48();drand48();
15318   ;
15319   return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest.$ac_objext
15323 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15330   ac_status=$?
15331   grep -v '^ *+' conftest.er1 >conftest.err
15332   rm -f conftest.er1
15333   cat conftest.err >&5
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } &&
15336          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15337   { (case "(($ac_try" in
15338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339   *) ac_try_echo=$ac_try;;
15340 esac
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342   (eval "$ac_try") 2>&5
15343   ac_status=$?
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); }; } &&
15346          { ac_try='test -s conftest.$ac_objext'
15347   { (case "(($ac_try" in
15348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349   *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352   (eval "$ac_try") 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; }; then
15356   ac_cv_func_rand48=yes
15357 else
15358   echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15360
15361         ac_cv_func_rand48=no
15362 fi
15363
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365     ac_ext=c
15366 ac_cpp='$CPP $CPPFLAGS'
15367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15370
15371
15372 fi
15373 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15374 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15375
15376 if test "$ac_cv_func_rand48" = "yes" ; then
15377
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_RAND48 1
15380 _ACEOF
15381
15382 fi
15383
15384
15385 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15386 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15387 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15388   echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390   cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h.  */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h.  */
15396 $ac_includes_default
15397 int
15398 main ()
15399 {
15400 #ifndef arc4random
15401   char *p = (char *) arc4random;
15402   return !p;
15403 #endif
15404
15405   ;
15406   return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413   *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416   (eval "$ac_compile") 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424   { (case "(($ac_try" in
15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426   *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429   (eval "$ac_try") 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; } &&
15433          { ac_try='test -s conftest.$ac_objext'
15434   { (case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439   (eval "$ac_try") 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443   ac_cv_have_decl_arc4random=yes
15444 else
15445   echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15447
15448         ac_cv_have_decl_arc4random=no
15449 fi
15450
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 fi
15453 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15454 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15455 if test $ac_cv_have_decl_arc4random = yes; then
15456
15457 cat >>confdefs.h <<_ACEOF
15458 #define HAVE_DECL_ARC4RANDOM 1
15459 _ACEOF
15460
15461
15462 else
15463   cat >>confdefs.h <<_ACEOF
15464 #define HAVE_DECL_ARC4RANDOM 0
15465 _ACEOF
15466
15467
15468 fi
15469
15470
15471
15472 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15473 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15474 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15475   echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477   cat >conftest.$ac_ext <<_ACEOF
15478 /* confdefs.h.  */
15479 _ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h.  */
15483 $ac_includes_default
15484 int
15485 main ()
15486 {
15487 #ifndef strerror_s
15488   char *p = (char *) strerror_s;
15489   return !p;
15490 #endif
15491
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest.$ac_objext
15497 if { (ac_try="$ac_compile"
15498 case "(($ac_try" in
15499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500   *) ac_try_echo=$ac_try;;
15501 esac
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503   (eval "$ac_compile") 2>conftest.er1
15504   ac_status=$?
15505   grep -v '^ *+' conftest.er1 >conftest.err
15506   rm -f conftest.er1
15507   cat conftest.err >&5
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); } &&
15510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15511   { (case "(($ac_try" in
15512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513   *) ac_try_echo=$ac_try;;
15514 esac
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516   (eval "$ac_try") 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; } &&
15520          { ac_try='test -s conftest.$ac_objext'
15521   { (case "(($ac_try" in
15522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523   *) ac_try_echo=$ac_try;;
15524 esac
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526   (eval "$ac_try") 2>&5
15527   ac_status=$?
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); }; }; then
15530   ac_cv_have_decl_strerror_s=yes
15531 else
15532   echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535         ac_cv_have_decl_strerror_s=no
15536 fi
15537
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 fi
15540 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15541 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15542 if test $ac_cv_have_decl_strerror_s = yes; then
15543
15544 cat >>confdefs.h <<_ACEOF
15545 #define HAVE_DECL_STRERROR_S 1
15546 _ACEOF
15547
15548
15549 else
15550   cat >>confdefs.h <<_ACEOF
15551 #define HAVE_DECL_STRERROR_S 0
15552 _ACEOF
15553
15554
15555 fi
15556
15557
15558
15559 if test "$llvm_cv_os_type" = "MingW" ; then
15560   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15561 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15562 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15563   echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565   ac_check_lib_save_LIBS=$LIBS
15566 LIBS="-lgcc  $LIBS"
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h.  */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h.  */
15573
15574 /* Override any GCC internal prototype to avoid an error.
15575    Use char because int might match the return type of a GCC
15576    builtin and then its argument prototype would still apply.  */
15577 #ifdef __cplusplus
15578 extern "C"
15579 #endif
15580 char _alloca ();
15581 int
15582 main ()
15583 {
15584 return _alloca ();
15585   ;
15586   return 0;
15587 }
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593   *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596   (eval "$ac_link") 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } &&
15603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15604   { (case "(($ac_try" in
15605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606   *) ac_try_echo=$ac_try;;
15607 esac
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609   (eval "$ac_try") 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; } &&
15613          { ac_try='test -s conftest$ac_exeext'
15614   { (case "(($ac_try" in
15615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616   *) ac_try_echo=$ac_try;;
15617 esac
15618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15619   (eval "$ac_try") 2>&5
15620   ac_status=$?
15621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622   (exit $ac_status); }; }; then
15623   ac_cv_lib_gcc__alloca=yes
15624 else
15625   echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15627
15628         ac_cv_lib_gcc__alloca=no
15629 fi
15630
15631 rm -f core conftest.err conftest.$ac_objext \
15632       conftest$ac_exeext conftest.$ac_ext
15633 LIBS=$ac_check_lib_save_LIBS
15634 fi
15635 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15636 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15637 if test $ac_cv_lib_gcc__alloca = yes; then
15638
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAVE__ALLOCA 1
15641 _ACEOF
15642
15643 fi
15644
15645   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15646 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15647 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15648   echo $ECHO_N "(cached) $ECHO_C" >&6
15649 else
15650   ac_check_lib_save_LIBS=$LIBS
15651 LIBS="-lgcc  $LIBS"
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658
15659 /* Override any GCC internal prototype to avoid an error.
15660    Use char because int might match the return type of a GCC
15661    builtin and then its argument prototype would still apply.  */
15662 #ifdef __cplusplus
15663 extern "C"
15664 #endif
15665 char __alloca ();
15666 int
15667 main ()
15668 {
15669 return __alloca ();
15670   ;
15671   return 0;
15672 }
15673 _ACEOF
15674 rm -f conftest.$ac_objext conftest$ac_exeext
15675 if { (ac_try="$ac_link"
15676 case "(($ac_try" in
15677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678   *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681   (eval "$ac_link") 2>conftest.er1
15682   ac_status=$?
15683   grep -v '^ *+' conftest.er1 >conftest.err
15684   rm -f conftest.er1
15685   cat conftest.err >&5
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); } &&
15688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15689   { (case "(($ac_try" in
15690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691   *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694   (eval "$ac_try") 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; } &&
15698          { ac_try='test -s conftest$ac_exeext'
15699   { (case "(($ac_try" in
15700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701   *) ac_try_echo=$ac_try;;
15702 esac
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704   (eval "$ac_try") 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; }; then
15708   ac_cv_lib_gcc___alloca=yes
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713         ac_cv_lib_gcc___alloca=no
15714 fi
15715
15716 rm -f core conftest.err conftest.$ac_objext \
15717       conftest$ac_exeext conftest.$ac_ext
15718 LIBS=$ac_check_lib_save_LIBS
15719 fi
15720 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15721 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15722 if test $ac_cv_lib_gcc___alloca = yes; then
15723
15724 cat >>confdefs.h <<\_ACEOF
15725 #define HAVE___ALLOCA 1
15726 _ACEOF
15727
15728 fi
15729
15730   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15731 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15732 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   ac_check_lib_save_LIBS=$LIBS
15736 LIBS="-lgcc  $LIBS"
15737 cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743
15744 /* Override any GCC internal prototype to avoid an error.
15745    Use char because int might match the return type of a GCC
15746    builtin and then its argument prototype would still apply.  */
15747 #ifdef __cplusplus
15748 extern "C"
15749 #endif
15750 char __chkstk ();
15751 int
15752 main ()
15753 {
15754 return __chkstk ();
15755   ;
15756   return 0;
15757 }
15758 _ACEOF
15759 rm -f conftest.$ac_objext conftest$ac_exeext
15760 if { (ac_try="$ac_link"
15761 case "(($ac_try" in
15762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763   *) ac_try_echo=$ac_try;;
15764 esac
15765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766   (eval "$ac_link") 2>conftest.er1
15767   ac_status=$?
15768   grep -v '^ *+' conftest.er1 >conftest.err
15769   rm -f conftest.er1
15770   cat conftest.err >&5
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } &&
15773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15774   { (case "(($ac_try" in
15775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776   *) ac_try_echo=$ac_try;;
15777 esac
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779   (eval "$ac_try") 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }; } &&
15783          { ac_try='test -s conftest$ac_exeext'
15784   { (case "(($ac_try" in
15785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786   *) ac_try_echo=$ac_try;;
15787 esac
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789   (eval "$ac_try") 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; }; then
15793   ac_cv_lib_gcc___chkstk=yes
15794 else
15795   echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15797
15798         ac_cv_lib_gcc___chkstk=no
15799 fi
15800
15801 rm -f core conftest.err conftest.$ac_objext \
15802       conftest$ac_exeext conftest.$ac_ext
15803 LIBS=$ac_check_lib_save_LIBS
15804 fi
15805 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15806 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15807 if test $ac_cv_lib_gcc___chkstk = yes; then
15808
15809 cat >>confdefs.h <<\_ACEOF
15810 #define HAVE___CHKSTK 1
15811 _ACEOF
15812
15813 fi
15814
15815   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15816 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15817 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15818   echo $ECHO_N "(cached) $ECHO_C" >&6
15819 else
15820   ac_check_lib_save_LIBS=$LIBS
15821 LIBS="-lgcc  $LIBS"
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828
15829 /* Override any GCC internal prototype to avoid an error.
15830    Use char because int might match the return type of a GCC
15831    builtin and then its argument prototype would still apply.  */
15832 #ifdef __cplusplus
15833 extern "C"
15834 #endif
15835 char ___chkstk ();
15836 int
15837 main ()
15838 {
15839 return ___chkstk ();
15840   ;
15841   return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext conftest$ac_exeext
15845 if { (ac_try="$ac_link"
15846 case "(($ac_try" in
15847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848   *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851   (eval "$ac_link") 2>conftest.er1
15852   ac_status=$?
15853   grep -v '^ *+' conftest.er1 >conftest.err
15854   rm -f conftest.er1
15855   cat conftest.err >&5
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); } &&
15858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15859   { (case "(($ac_try" in
15860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861   *) ac_try_echo=$ac_try;;
15862 esac
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864   (eval "$ac_try") 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; } &&
15868          { ac_try='test -s conftest$ac_exeext'
15869   { (case "(($ac_try" in
15870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871   *) ac_try_echo=$ac_try;;
15872 esac
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874   (eval "$ac_try") 2>&5
15875   ac_status=$?
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); }; }; then
15878   ac_cv_lib_gcc____chkstk=yes
15879 else
15880   echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883         ac_cv_lib_gcc____chkstk=no
15884 fi
15885
15886 rm -f core conftest.err conftest.$ac_objext \
15887       conftest$ac_exeext conftest.$ac_ext
15888 LIBS=$ac_check_lib_save_LIBS
15889 fi
15890 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15891 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15892 if test $ac_cv_lib_gcc____chkstk = yes; then
15893
15894 cat >>confdefs.h <<\_ACEOF
15895 #define HAVE____CHKSTK 1
15896 _ACEOF
15897
15898 fi
15899
15900
15901   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15902 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15903 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15904   echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906   ac_check_lib_save_LIBS=$LIBS
15907 LIBS="-lgcc  $LIBS"
15908 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914
15915 /* Override any GCC internal prototype to avoid an error.
15916    Use char because int might match the return type of a GCC
15917    builtin and then its argument prototype would still apply.  */
15918 #ifdef __cplusplus
15919 extern "C"
15920 #endif
15921 char __ashldi3 ();
15922 int
15923 main ()
15924 {
15925 return __ashldi3 ();
15926   ;
15927   return 0;
15928 }
15929 _ACEOF
15930 rm -f conftest.$ac_objext conftest$ac_exeext
15931 if { (ac_try="$ac_link"
15932 case "(($ac_try" in
15933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934   *) ac_try_echo=$ac_try;;
15935 esac
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937   (eval "$ac_link") 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } &&
15944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15945   { (case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950   (eval "$ac_try") 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; } &&
15954          { ac_try='test -s conftest$ac_exeext'
15955   { (case "(($ac_try" in
15956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957   *) ac_try_echo=$ac_try;;
15958 esac
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960   (eval "$ac_try") 2>&5
15961   ac_status=$?
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); }; }; then
15964   ac_cv_lib_gcc___ashldi3=yes
15965 else
15966   echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969         ac_cv_lib_gcc___ashldi3=no
15970 fi
15971
15972 rm -f core conftest.err conftest.$ac_objext \
15973       conftest$ac_exeext conftest.$ac_ext
15974 LIBS=$ac_check_lib_save_LIBS
15975 fi
15976 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15977 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15978 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15979
15980 cat >>confdefs.h <<\_ACEOF
15981 #define HAVE___ASHLDI3 1
15982 _ACEOF
15983
15984 fi
15985
15986   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15987 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15988 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15989   echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991   ac_check_lib_save_LIBS=$LIBS
15992 LIBS="-lgcc  $LIBS"
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h.  */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h.  */
15999
16000 /* Override any GCC internal prototype to avoid an error.
16001    Use char because int might match the return type of a GCC
16002    builtin and then its argument prototype would still apply.  */
16003 #ifdef __cplusplus
16004 extern "C"
16005 #endif
16006 char __ashrdi3 ();
16007 int
16008 main ()
16009 {
16010 return __ashrdi3 ();
16011   ;
16012   return 0;
16013 }
16014 _ACEOF
16015 rm -f conftest.$ac_objext conftest$ac_exeext
16016 if { (ac_try="$ac_link"
16017 case "(($ac_try" in
16018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019   *) ac_try_echo=$ac_try;;
16020 esac
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022   (eval "$ac_link") 2>conftest.er1
16023   ac_status=$?
16024   grep -v '^ *+' conftest.er1 >conftest.err
16025   rm -f conftest.er1
16026   cat conftest.err >&5
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } &&
16029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16030   { (case "(($ac_try" in
16031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032   *) ac_try_echo=$ac_try;;
16033 esac
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035   (eval "$ac_try") 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; } &&
16039          { ac_try='test -s conftest$ac_exeext'
16040   { (case "(($ac_try" in
16041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042   *) ac_try_echo=$ac_try;;
16043 esac
16044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16045   (eval "$ac_try") 2>&5
16046   ac_status=$?
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); }; }; then
16049   ac_cv_lib_gcc___ashrdi3=yes
16050 else
16051   echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054         ac_cv_lib_gcc___ashrdi3=no
16055 fi
16056
16057 rm -f core conftest.err conftest.$ac_objext \
16058       conftest$ac_exeext conftest.$ac_ext
16059 LIBS=$ac_check_lib_save_LIBS
16060 fi
16061 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16062 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16063 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16064
16065 cat >>confdefs.h <<\_ACEOF
16066 #define HAVE___ASHRDI3 1
16067 _ACEOF
16068
16069 fi
16070
16071   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16072 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16073 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   ac_check_lib_save_LIBS=$LIBS
16077 LIBS="-lgcc  $LIBS"
16078 cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h.  */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h.  */
16084
16085 /* Override any GCC internal prototype to avoid an error.
16086    Use char because int might match the return type of a GCC
16087    builtin and then its argument prototype would still apply.  */
16088 #ifdef __cplusplus
16089 extern "C"
16090 #endif
16091 char __divdi3 ();
16092 int
16093 main ()
16094 {
16095 return __divdi3 ();
16096   ;
16097   return 0;
16098 }
16099 _ACEOF
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104   *) ac_try_echo=$ac_try;;
16105 esac
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107   (eval "$ac_link") 2>conftest.er1
16108   ac_status=$?
16109   grep -v '^ *+' conftest.er1 >conftest.err
16110   rm -f conftest.er1
16111   cat conftest.err >&5
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); } &&
16114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16115   { (case "(($ac_try" in
16116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16117   *) ac_try_echo=$ac_try;;
16118 esac
16119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16120   (eval "$ac_try") 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; } &&
16124          { ac_try='test -s conftest$ac_exeext'
16125   { (case "(($ac_try" in
16126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127   *) ac_try_echo=$ac_try;;
16128 esac
16129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130   (eval "$ac_try") 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; }; then
16134   ac_cv_lib_gcc___divdi3=yes
16135 else
16136   echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139         ac_cv_lib_gcc___divdi3=no
16140 fi
16141
16142 rm -f core conftest.err conftest.$ac_objext \
16143       conftest$ac_exeext conftest.$ac_ext
16144 LIBS=$ac_check_lib_save_LIBS
16145 fi
16146 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16147 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16148 if test $ac_cv_lib_gcc___divdi3 = yes; then
16149
16150 cat >>confdefs.h <<\_ACEOF
16151 #define HAVE___DIVDI3 1
16152 _ACEOF
16153
16154 fi
16155
16156   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16157 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16158 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16159   echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161   ac_check_lib_save_LIBS=$LIBS
16162 LIBS="-lgcc  $LIBS"
16163 cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h.  */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h.  */
16169
16170 /* Override any GCC internal prototype to avoid an error.
16171    Use char because int might match the return type of a GCC
16172    builtin and then its argument prototype would still apply.  */
16173 #ifdef __cplusplus
16174 extern "C"
16175 #endif
16176 char __fixdfdi ();
16177 int
16178 main ()
16179 {
16180 return __fixdfdi ();
16181   ;
16182   return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (ac_try="$ac_link"
16187 case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_link") 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } &&
16199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16200   { (case "(($ac_try" in
16201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202   *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205   (eval "$ac_try") 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; } &&
16209          { ac_try='test -s conftest$ac_exeext'
16210   { (case "(($ac_try" in
16211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212   *) ac_try_echo=$ac_try;;
16213 esac
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215   (eval "$ac_try") 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); }; }; then
16219   ac_cv_lib_gcc___fixdfdi=yes
16220 else
16221   echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16223
16224         ac_cv_lib_gcc___fixdfdi=no
16225 fi
16226
16227 rm -f core conftest.err conftest.$ac_objext \
16228       conftest$ac_exeext conftest.$ac_ext
16229 LIBS=$ac_check_lib_save_LIBS
16230 fi
16231 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16232 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16233 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16234
16235 cat >>confdefs.h <<\_ACEOF
16236 #define HAVE___FIXDFDI 1
16237 _ACEOF
16238
16239 fi
16240
16241   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16242 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16243 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16244   echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246   ac_check_lib_save_LIBS=$LIBS
16247 LIBS="-lgcc  $LIBS"
16248 cat >conftest.$ac_ext <<_ACEOF
16249 /* confdefs.h.  */
16250 _ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h.  */
16254
16255 /* Override any GCC internal prototype to avoid an error.
16256    Use char because int might match the return type of a GCC
16257    builtin and then its argument prototype would still apply.  */
16258 #ifdef __cplusplus
16259 extern "C"
16260 #endif
16261 char __fixsfdi ();
16262 int
16263 main ()
16264 {
16265 return __fixsfdi ();
16266   ;
16267   return 0;
16268 }
16269 _ACEOF
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (ac_try="$ac_link"
16272 case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277   (eval "$ac_link") 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } &&
16284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16285   { (case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290   (eval "$ac_try") 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; } &&
16294          { ac_try='test -s conftest$ac_exeext'
16295   { (case "(($ac_try" in
16296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297   *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300   (eval "$ac_try") 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); }; }; then
16304   ac_cv_lib_gcc___fixsfdi=yes
16305 else
16306   echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16308
16309         ac_cv_lib_gcc___fixsfdi=no
16310 fi
16311
16312 rm -f core conftest.err conftest.$ac_objext \
16313       conftest$ac_exeext conftest.$ac_ext
16314 LIBS=$ac_check_lib_save_LIBS
16315 fi
16316 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16317 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16318 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16319
16320 cat >>confdefs.h <<\_ACEOF
16321 #define HAVE___FIXSFDI 1
16322 _ACEOF
16323
16324 fi
16325
16326   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16327 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16328 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16329   echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331   ac_check_lib_save_LIBS=$LIBS
16332 LIBS="-lgcc  $LIBS"
16333 cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339
16340 /* Override any GCC internal prototype to avoid an error.
16341    Use char because int might match the return type of a GCC
16342    builtin and then its argument prototype would still apply.  */
16343 #ifdef __cplusplus
16344 extern "C"
16345 #endif
16346 char __floatdidf ();
16347 int
16348 main ()
16349 {
16350 return __floatdidf ();
16351   ;
16352   return 0;
16353 }
16354 _ACEOF
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359   *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362   (eval "$ac_link") 2>conftest.er1
16363   ac_status=$?
16364   grep -v '^ *+' conftest.er1 >conftest.err
16365   rm -f conftest.er1
16366   cat conftest.err >&5
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); } &&
16369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16370   { (case "(($ac_try" in
16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372   *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375   (eval "$ac_try") 2>&5
16376   ac_status=$?
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); }; } &&
16379          { ac_try='test -s conftest$ac_exeext'
16380   { (case "(($ac_try" in
16381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382   *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385   (eval "$ac_try") 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); }; }; then
16389   ac_cv_lib_gcc___floatdidf=yes
16390 else
16391   echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394         ac_cv_lib_gcc___floatdidf=no
16395 fi
16396
16397 rm -f core conftest.err conftest.$ac_objext \
16398       conftest$ac_exeext conftest.$ac_ext
16399 LIBS=$ac_check_lib_save_LIBS
16400 fi
16401 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16402 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16403 if test $ac_cv_lib_gcc___floatdidf = yes; then
16404
16405 cat >>confdefs.h <<\_ACEOF
16406 #define HAVE___FLOATDIDF 1
16407 _ACEOF
16408
16409 fi
16410
16411   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16412 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16413 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16414   echo $ECHO_N "(cached) $ECHO_C" >&6
16415 else
16416   ac_check_lib_save_LIBS=$LIBS
16417 LIBS="-lgcc  $LIBS"
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h.  */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h.  */
16424
16425 /* Override any GCC internal prototype to avoid an error.
16426    Use char because int might match the return type of a GCC
16427    builtin and then its argument prototype would still apply.  */
16428 #ifdef __cplusplus
16429 extern "C"
16430 #endif
16431 char __lshrdi3 ();
16432 int
16433 main ()
16434 {
16435 return __lshrdi3 ();
16436   ;
16437   return 0;
16438 }
16439 _ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444   *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447   (eval "$ac_link") 2>conftest.er1
16448   ac_status=$?
16449   grep -v '^ *+' conftest.er1 >conftest.err
16450   rm -f conftest.er1
16451   cat conftest.err >&5
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); } &&
16454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455   { (case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_try") 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; } &&
16464          { ac_try='test -s conftest$ac_exeext'
16465   { (case "(($ac_try" in
16466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467   *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470   (eval "$ac_try") 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   ac_cv_lib_gcc___lshrdi3=yes
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479         ac_cv_lib_gcc___lshrdi3=no
16480 fi
16481
16482 rm -f core conftest.err conftest.$ac_objext \
16483       conftest$ac_exeext conftest.$ac_ext
16484 LIBS=$ac_check_lib_save_LIBS
16485 fi
16486 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16487 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16488 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16489
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE___LSHRDI3 1
16492 _ACEOF
16493
16494 fi
16495
16496   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16497 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16498 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16499   echo $ECHO_N "(cached) $ECHO_C" >&6
16500 else
16501   ac_check_lib_save_LIBS=$LIBS
16502 LIBS="-lgcc  $LIBS"
16503 cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509
16510 /* Override any GCC internal prototype to avoid an error.
16511    Use char because int might match the return type of a GCC
16512    builtin and then its argument prototype would still apply.  */
16513 #ifdef __cplusplus
16514 extern "C"
16515 #endif
16516 char __moddi3 ();
16517 int
16518 main ()
16519 {
16520 return __moddi3 ();
16521   ;
16522   return 0;
16523 }
16524 _ACEOF
16525 rm -f conftest.$ac_objext conftest$ac_exeext
16526 if { (ac_try="$ac_link"
16527 case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532   (eval "$ac_link") 2>conftest.er1
16533   ac_status=$?
16534   grep -v '^ *+' conftest.er1 >conftest.err
16535   rm -f conftest.er1
16536   cat conftest.err >&5
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } &&
16539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16540   { (case "(($ac_try" in
16541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542   *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545   (eval "$ac_try") 2>&5
16546   ac_status=$?
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); }; } &&
16549          { ac_try='test -s conftest$ac_exeext'
16550   { (case "(($ac_try" in
16551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552   *) ac_try_echo=$ac_try;;
16553 esac
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555   (eval "$ac_try") 2>&5
16556   ac_status=$?
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); }; }; then
16559   ac_cv_lib_gcc___moddi3=yes
16560 else
16561   echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564         ac_cv_lib_gcc___moddi3=no
16565 fi
16566
16567 rm -f core conftest.err conftest.$ac_objext \
16568       conftest$ac_exeext conftest.$ac_ext
16569 LIBS=$ac_check_lib_save_LIBS
16570 fi
16571 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16572 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16573 if test $ac_cv_lib_gcc___moddi3 = yes; then
16574
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE___MODDI3 1
16577 _ACEOF
16578
16579 fi
16580
16581   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16582 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16583 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16584   echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586   ac_check_lib_save_LIBS=$LIBS
16587 LIBS="-lgcc  $LIBS"
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h.  */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h.  */
16594
16595 /* Override any GCC internal prototype to avoid an error.
16596    Use char because int might match the return type of a GCC
16597    builtin and then its argument prototype would still apply.  */
16598 #ifdef __cplusplus
16599 extern "C"
16600 #endif
16601 char __udivdi3 ();
16602 int
16603 main ()
16604 {
16605 return __udivdi3 ();
16606   ;
16607   return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (ac_try="$ac_link"
16612 case "(($ac_try" in
16613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614   *) ac_try_echo=$ac_try;;
16615 esac
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617   (eval "$ac_link") 2>conftest.er1
16618   ac_status=$?
16619   grep -v '^ *+' conftest.er1 >conftest.err
16620   rm -f conftest.er1
16621   cat conftest.err >&5
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } &&
16624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16625   { (case "(($ac_try" in
16626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627   *) ac_try_echo=$ac_try;;
16628 esac
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630   (eval "$ac_try") 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; } &&
16634          { ac_try='test -s conftest$ac_exeext'
16635   { (case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_try") 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }; }; then
16644   ac_cv_lib_gcc___udivdi3=yes
16645 else
16646   echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16648
16649         ac_cv_lib_gcc___udivdi3=no
16650 fi
16651
16652 rm -f core conftest.err conftest.$ac_objext \
16653       conftest$ac_exeext conftest.$ac_ext
16654 LIBS=$ac_check_lib_save_LIBS
16655 fi
16656 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16657 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16658 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16659
16660 cat >>confdefs.h <<\_ACEOF
16661 #define HAVE___UDIVDI3 1
16662 _ACEOF
16663
16664 fi
16665
16666   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16667 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16668 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16669   echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671   ac_check_lib_save_LIBS=$LIBS
16672 LIBS="-lgcc  $LIBS"
16673 cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h.  */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h.  */
16679
16680 /* Override any GCC internal prototype to avoid an error.
16681    Use char because int might match the return type of a GCC
16682    builtin and then its argument prototype would still apply.  */
16683 #ifdef __cplusplus
16684 extern "C"
16685 #endif
16686 char __umoddi3 ();
16687 int
16688 main ()
16689 {
16690 return __umoddi3 ();
16691   ;
16692   return 0;
16693 }
16694 _ACEOF
16695 rm -f conftest.$ac_objext conftest$ac_exeext
16696 if { (ac_try="$ac_link"
16697 case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_link") 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710   { (case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715   (eval "$ac_try") 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; } &&
16719          { ac_try='test -s conftest$ac_exeext'
16720   { (case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725   (eval "$ac_try") 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; }; then
16729   ac_cv_lib_gcc___umoddi3=yes
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734         ac_cv_lib_gcc___umoddi3=no
16735 fi
16736
16737 rm -f core conftest.err conftest.$ac_objext \
16738       conftest$ac_exeext conftest.$ac_ext
16739 LIBS=$ac_check_lib_save_LIBS
16740 fi
16741 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16742 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16743 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16744
16745 cat >>confdefs.h <<\_ACEOF
16746 #define HAVE___UMODDI3 1
16747 _ACEOF
16748
16749 fi
16750
16751
16752   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16753 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16754 if test "${ac_cv_lib_gcc___main+set}" = set; then
16755   echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757   ac_check_lib_save_LIBS=$LIBS
16758 LIBS="-lgcc  $LIBS"
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765
16766 /* Override any GCC internal prototype to avoid an error.
16767    Use char because int might match the return type of a GCC
16768    builtin and then its argument prototype would still apply.  */
16769 #ifdef __cplusplus
16770 extern "C"
16771 #endif
16772 char __main ();
16773 int
16774 main ()
16775 {
16776 return __main ();
16777   ;
16778   return 0;
16779 }
16780 _ACEOF
16781 rm -f conftest.$ac_objext conftest$ac_exeext
16782 if { (ac_try="$ac_link"
16783 case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_link") 2>conftest.er1
16789   ac_status=$?
16790   grep -v '^ *+' conftest.er1 >conftest.err
16791   rm -f conftest.er1
16792   cat conftest.err >&5
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); } &&
16795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16796   { (case "(($ac_try" in
16797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798   *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801   (eval "$ac_try") 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); }; } &&
16805          { ac_try='test -s conftest$ac_exeext'
16806   { (case "(($ac_try" in
16807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808   *) ac_try_echo=$ac_try;;
16809 esac
16810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811   (eval "$ac_try") 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }; }; then
16815   ac_cv_lib_gcc___main=yes
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820         ac_cv_lib_gcc___main=no
16821 fi
16822
16823 rm -f core conftest.err conftest.$ac_objext \
16824       conftest$ac_exeext conftest.$ac_ext
16825 LIBS=$ac_check_lib_save_LIBS
16826 fi
16827 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16828 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16829 if test $ac_cv_lib_gcc___main = yes; then
16830
16831 cat >>confdefs.h <<\_ACEOF
16832 #define HAVE___MAIN 1
16833 _ACEOF
16834
16835 fi
16836
16837   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16838 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16839 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16840   echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842   ac_check_lib_save_LIBS=$LIBS
16843 LIBS="-lgcc  $LIBS"
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850
16851 /* Override any GCC internal prototype to avoid an error.
16852    Use char because int might match the return type of a GCC
16853    builtin and then its argument prototype would still apply.  */
16854 #ifdef __cplusplus
16855 extern "C"
16856 #endif
16857 char __cmpdi2 ();
16858 int
16859 main ()
16860 {
16861 return __cmpdi2 ();
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 rm -f conftest.$ac_objext conftest$ac_exeext
16867 if { (ac_try="$ac_link"
16868 case "(($ac_try" in
16869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870   *) ac_try_echo=$ac_try;;
16871 esac
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873   (eval "$ac_link") 2>conftest.er1
16874   ac_status=$?
16875   grep -v '^ *+' conftest.er1 >conftest.err
16876   rm -f conftest.er1
16877   cat conftest.err >&5
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } &&
16880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16881   { (case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_try") 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; } &&
16890          { ac_try='test -s conftest$ac_exeext'
16891   { (case "(($ac_try" in
16892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893   *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896   (eval "$ac_try") 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); }; }; then
16900   ac_cv_lib_gcc___cmpdi2=yes
16901 else
16902   echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16904
16905         ac_cv_lib_gcc___cmpdi2=no
16906 fi
16907
16908 rm -f core conftest.err conftest.$ac_objext \
16909       conftest$ac_exeext conftest.$ac_ext
16910 LIBS=$ac_check_lib_save_LIBS
16911 fi
16912 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16913 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16914 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16915
16916 cat >>confdefs.h <<\_ACEOF
16917 #define HAVE___CMPDI2 1
16918 _ACEOF
16919
16920 fi
16921
16922 fi
16923
16924 if test "$llvm_cv_os_type" = "MingW" ; then
16925   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16926 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16927   cat >conftest.$ac_ext <<_ACEOF
16928
16929   /* confdefs.h.  */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h.  */
16934
16935     #include <windows.h>
16936     #include <imagehlp.h>
16937     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16938     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16939
16940
16941 _ACEOF
16942 rm -f conftest.$ac_objext
16943 if { (ac_try="$ac_compile"
16944 case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_compile") 2>conftest.er1
16950   ac_status=$?
16951   grep -v '^ *+' conftest.er1 >conftest.err
16952   rm -f conftest.er1
16953   cat conftest.err >&5
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } &&
16956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16957   { (case "(($ac_try" in
16958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959   *) ac_try_echo=$ac_try;;
16960 esac
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962   (eval "$ac_try") 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); }; } &&
16966          { ac_try='test -s conftest.$ac_objext'
16967   { (case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972   (eval "$ac_try") 2>&5
16973   ac_status=$?
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); }; }; then
16976
16977   { echo "$as_me:$LINENO: result: yes" >&5
16978 echo "${ECHO_T}yes" >&6; }
16979   llvm_cv_win32_elmcb_pcstr="PCSTR"
16980
16981 else
16982   echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16984
16985
16986   { echo "$as_me:$LINENO: result: no" >&5
16987 echo "${ECHO_T}no" >&6; }
16988   llvm_cv_win32_elmcb_pcstr="PSTR"
16989
16990 fi
16991
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993
16994 cat >>confdefs.h <<_ACEOF
16995 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16996 _ACEOF
16997
16998 fi
16999
17000
17001
17002   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17003 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17004 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17005   echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007
17008     ac_ext=cpp
17009 ac_cpp='$CXXCPP $CPPFLAGS'
17010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17013
17014     cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h.  */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h.  */
17020 #include <math.h>
17021 int
17022 main ()
17023 {
17024 float f; isnan(f);
17025   ;
17026   return 0;
17027 }
17028 _ACEOF
17029 rm -f conftest.$ac_objext
17030 if { (ac_try="$ac_compile"
17031 case "(($ac_try" in
17032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033   *) ac_try_echo=$ac_try;;
17034 esac
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036   (eval "$ac_compile") 2>conftest.er1
17037   ac_status=$?
17038   grep -v '^ *+' conftest.er1 >conftest.err
17039   rm -f conftest.er1
17040   cat conftest.err >&5
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); } &&
17043          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17044   { (case "(($ac_try" in
17045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046   *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049   (eval "$ac_try") 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; } &&
17053          { ac_try='test -s conftest.$ac_objext'
17054   { (case "(($ac_try" in
17055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056   *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059   (eval "$ac_try") 2>&5
17060   ac_status=$?
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); }; }; then
17063   ac_cv_func_isnan_in_math_h=yes
17064 else
17065   echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17067
17068         ac_cv_func_isnan_in_math_h=no
17069 fi
17070
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072     ac_ext=c
17073 ac_cpp='$CPP $CPPFLAGS'
17074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17077
17078
17079 fi
17080 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17081 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17082
17083
17084 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17085
17086 cat >>confdefs.h <<\_ACEOF
17087 #define HAVE_ISNAN_IN_MATH_H 1
17088 _ACEOF
17089
17090 fi
17091
17092
17093   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17094 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17095 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17096   echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098
17099     ac_ext=cpp
17100 ac_cpp='$CXXCPP $CPPFLAGS'
17101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17104
17105     cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111 #include <cmath>
17112 int
17113 main ()
17114 {
17115 float f; isnan(f);
17116   ;
17117   return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext
17121 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17128   ac_status=$?
17129   grep -v '^ *+' conftest.er1 >conftest.err
17130   rm -f conftest.er1
17131   cat conftest.err >&5
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17135   { (case "(($ac_try" in
17136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137   *) ac_try_echo=$ac_try;;
17138 esac
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140   (eval "$ac_try") 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; } &&
17144          { ac_try='test -s conftest.$ac_objext'
17145   { (case "(($ac_try" in
17146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147   *) ac_try_echo=$ac_try;;
17148 esac
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150   (eval "$ac_try") 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); }; }; then
17154   ac_cv_func_isnan_in_cmath=yes
17155 else
17156   echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159         ac_cv_func_isnan_in_cmath=no
17160 fi
17161
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17163     ac_ext=c
17164 ac_cpp='$CPP $CPPFLAGS'
17165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17168
17169
17170 fi
17171 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17172 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17173
17174 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17175
17176 cat >>confdefs.h <<\_ACEOF
17177 #define HAVE_ISNAN_IN_CMATH 1
17178 _ACEOF
17179
17180 fi
17181
17182
17183   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17184 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17185 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17186   echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188
17189     ac_ext=cpp
17190 ac_cpp='$CXXCPP $CPPFLAGS'
17191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17194
17195     cat >conftest.$ac_ext <<_ACEOF
17196 /* confdefs.h.  */
17197 _ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h.  */
17201 #include <cmath>
17202 int
17203 main ()
17204 {
17205 float f; std::isnan(f);
17206   ;
17207   return 0;
17208 }
17209 _ACEOF
17210 rm -f conftest.$ac_objext
17211 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17218   ac_status=$?
17219   grep -v '^ *+' conftest.er1 >conftest.err
17220   rm -f conftest.er1
17221   cat conftest.err >&5
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); } &&
17224          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17225   { (case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230   (eval "$ac_try") 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; } &&
17234          { ac_try='test -s conftest.$ac_objext'
17235   { (case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240   (eval "$ac_try") 2>&5
17241   ac_status=$?
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); }; }; then
17244   ac_cv_func_std_isnan_in_cmath=yes
17245 else
17246   echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249         ac_cv_func_std_isnan_in_cmath=no
17250 fi
17251
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253     ac_ext=c
17254 ac_cpp='$CPP $CPPFLAGS'
17255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17258
17259
17260 fi
17261 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17262 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17263
17264 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17265
17266 cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_STD_ISNAN_IN_CMATH 1
17268 _ACEOF
17269
17270 fi
17271
17272
17273
17274
17275   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17276 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17277 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280
17281     ac_ext=cpp
17282 ac_cpp='$CXXCPP $CPPFLAGS'
17283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17286
17287     cat >conftest.$ac_ext <<_ACEOF
17288 /* confdefs.h.  */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h.  */
17293 #include <math.h>
17294 int
17295 main ()
17296 {
17297 float f; isinf(f);
17298   ;
17299   return 0;
17300 }
17301 _ACEOF
17302 rm -f conftest.$ac_objext
17303 if { (ac_try="$ac_compile"
17304 case "(($ac_try" in
17305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306   *) ac_try_echo=$ac_try;;
17307 esac
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309   (eval "$ac_compile") 2>conftest.er1
17310   ac_status=$?
17311   grep -v '^ *+' conftest.er1 >conftest.err
17312   rm -f conftest.er1
17313   cat conftest.err >&5
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); } &&
17316          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17317   { (case "(($ac_try" in
17318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319   *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322   (eval "$ac_try") 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; } &&
17326          { ac_try='test -s conftest.$ac_objext'
17327   { (case "(($ac_try" in
17328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329   *) ac_try_echo=$ac_try;;
17330 esac
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332   (eval "$ac_try") 2>&5
17333   ac_status=$?
17334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335   (exit $ac_status); }; }; then
17336   ac_cv_func_isinf_in_math_h=yes
17337 else
17338   echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341         ac_cv_func_isinf_in_math_h=no
17342 fi
17343
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345     ac_ext=c
17346 ac_cpp='$CPP $CPPFLAGS'
17347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17350
17351
17352 fi
17353 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17354 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17355
17356 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17357
17358 cat >>confdefs.h <<\_ACEOF
17359 #define HAVE_ISINF_IN_MATH_H 1
17360 _ACEOF
17361
17362 fi
17363
17364
17365   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17366 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17367 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370
17371     ac_ext=cpp
17372 ac_cpp='$CXXCPP $CPPFLAGS'
17373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17376
17377     cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h.  */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h.  */
17383 #include <cmath>
17384 int
17385 main ()
17386 {
17387 float f; isinf(f);
17388   ;
17389   return 0;
17390 }
17391 _ACEOF
17392 rm -f conftest.$ac_objext
17393 if { (ac_try="$ac_compile"
17394 case "(($ac_try" in
17395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396   *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399   (eval "$ac_compile") 2>conftest.er1
17400   ac_status=$?
17401   grep -v '^ *+' conftest.er1 >conftest.err
17402   rm -f conftest.er1
17403   cat conftest.err >&5
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); } &&
17406          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17407   { (case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412   (eval "$ac_try") 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; } &&
17416          { ac_try='test -s conftest.$ac_objext'
17417   { (case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_try") 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); }; }; then
17426   ac_cv_func_isinf_in_cmath=yes
17427 else
17428   echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431         ac_cv_func_isinf_in_cmath=no
17432 fi
17433
17434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17435     ac_ext=c
17436 ac_cpp='$CPP $CPPFLAGS'
17437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17440
17441
17442 fi
17443 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17444 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17445
17446 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17447
17448 cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_ISINF_IN_CMATH 1
17450 _ACEOF
17451
17452 fi
17453
17454
17455   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17456 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17457 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17458   echo $ECHO_N "(cached) $ECHO_C" >&6
17459 else
17460
17461     ac_ext=cpp
17462 ac_cpp='$CXXCPP $CPPFLAGS'
17463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17466
17467     cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h.  */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h.  */
17473 #include <cmath>
17474 int
17475 main ()
17476 {
17477 float f; std::isinf(f);
17478   ;
17479   return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17490   ac_status=$?
17491   grep -v '^ *+' conftest.er1 >conftest.err
17492   rm -f conftest.er1
17493   cat conftest.err >&5
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); } &&
17496          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17497   { (case "(($ac_try" in
17498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499   *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502   (eval "$ac_try") 2>&5
17503   ac_status=$?
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); }; } &&
17506          { ac_try='test -s conftest.$ac_objext'
17507   { (case "(($ac_try" in
17508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509   *) ac_try_echo=$ac_try;;
17510 esac
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512   (eval "$ac_try") 2>&5
17513   ac_status=$?
17514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515   (exit $ac_status); }; }; then
17516   ac_cv_func_std_isinf_in_cmath=yes
17517 else
17518   echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521         ac_cv_func_std_isinf_in_cmath=no
17522 fi
17523
17524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525     ac_ext=c
17526 ac_cpp='$CPP $CPPFLAGS'
17527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17530
17531
17532 fi
17533 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17534 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17535
17536 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17537
17538 cat >>confdefs.h <<\_ACEOF
17539 #define HAVE_STD_ISINF_IN_CMATH 1
17540 _ACEOF
17541
17542 fi
17543
17544
17545   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17546 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17547 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17548   echo $ECHO_N "(cached) $ECHO_C" >&6
17549 else
17550
17551     ac_ext=cpp
17552 ac_cpp='$CXXCPP $CPPFLAGS'
17553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17556
17557     cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h.  */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h.  */
17563 #include <ieeefp.h>
17564 int
17565 main ()
17566 {
17567 float f; finite(f);
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext
17573 if { (ac_try="$ac_compile"
17574 case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_compile") 2>conftest.er1
17580   ac_status=$?
17581   grep -v '^ *+' conftest.er1 >conftest.err
17582   rm -f conftest.er1
17583   cat conftest.err >&5
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); } &&
17586          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17587   { (case "(($ac_try" in
17588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589   *) ac_try_echo=$ac_try;;
17590 esac
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592   (eval "$ac_try") 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); }; } &&
17596          { ac_try='test -s conftest.$ac_objext'
17597   { (case "(($ac_try" in
17598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599   *) ac_try_echo=$ac_try;;
17600 esac
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602   (eval "$ac_try") 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); }; }; then
17606   ac_cv_func_finite_in_ieeefp_h=yes
17607 else
17608   echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611         ac_cv_func_finite_in_ieeefp_h=no
17612 fi
17613
17614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615     ac_ext=c
17616 ac_cpp='$CPP $CPPFLAGS'
17617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17620
17621
17622 fi
17623 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17624 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17625
17626 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17627
17628 cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_FINITE_IN_IEEEFP_H 1
17630 _ACEOF
17631
17632 fi
17633
17634
17635
17636 if test "$llvm_cv_platform_type" = "Unix" ; then
17637
17638
17639 for ac_header in stdlib.h unistd.h
17640 do
17641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17643   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17646   echo $ECHO_N "(cached) $ECHO_C" >&6
17647 fi
17648 ac_res=`eval echo '${'$as_ac_Header'}'`
17649                { echo "$as_me:$LINENO: result: $ac_res" >&5
17650 echo "${ECHO_T}$ac_res" >&6; }
17651 else
17652   # Is the header compilable?
17653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17655 cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h.  */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h.  */
17661 $ac_includes_default
17662 #include <$ac_header>
17663 _ACEOF
17664 rm -f conftest.$ac_objext
17665 if { (ac_try="$ac_compile"
17666 case "(($ac_try" in
17667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668   *) ac_try_echo=$ac_try;;
17669 esac
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671   (eval "$ac_compile") 2>conftest.er1
17672   ac_status=$?
17673   grep -v '^ *+' conftest.er1 >conftest.err
17674   rm -f conftest.er1
17675   cat conftest.err >&5
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); } &&
17678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17679   { (case "(($ac_try" in
17680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681   *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684   (eval "$ac_try") 2>&5
17685   ac_status=$?
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); }; } &&
17688          { ac_try='test -s conftest.$ac_objext'
17689   { (case "(($ac_try" in
17690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691   *) ac_try_echo=$ac_try;;
17692 esac
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694   (eval "$ac_try") 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; }; then
17698   ac_header_compiler=yes
17699 else
17700   echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703         ac_header_compiler=no
17704 fi
17705
17706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17708 echo "${ECHO_T}$ac_header_compiler" >&6; }
17709
17710 # Is the header present?
17711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17713 cat >conftest.$ac_ext <<_ACEOF
17714 /* confdefs.h.  */
17715 _ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h.  */
17719 #include <$ac_header>
17720 _ACEOF
17721 if { (ac_try="$ac_cpp conftest.$ac_ext"
17722 case "(($ac_try" in
17723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724   *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17728   ac_status=$?
17729   grep -v '^ *+' conftest.er1 >conftest.err
17730   rm -f conftest.er1
17731   cat conftest.err >&5
17732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); } >/dev/null; then
17734   if test -s conftest.err; then
17735     ac_cpp_err=$ac_c_preproc_warn_flag
17736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17737   else
17738     ac_cpp_err=
17739   fi
17740 else
17741   ac_cpp_err=yes
17742 fi
17743 if test -z "$ac_cpp_err"; then
17744   ac_header_preproc=yes
17745 else
17746   echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17748
17749   ac_header_preproc=no
17750 fi
17751
17752 rm -f conftest.err conftest.$ac_ext
17753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17754 echo "${ECHO_T}$ac_header_preproc" >&6; }
17755
17756 # So?  What about this header?
17757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17758   yes:no: )
17759     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17763     ac_header_preproc=yes
17764     ;;
17765   no:yes:* )
17766     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17768     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17769 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17770     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17772     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17773 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17776     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17778     ( cat <<\_ASBOX
17779 ## ------------------------------------ ##
17780 ## Report this to http://llvm.org/bugs/ ##
17781 ## ------------------------------------ ##
17782 _ASBOX
17783      ) | sed "s/^/$as_me: WARNING:     /" >&2
17784     ;;
17785 esac
17786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791   eval "$as_ac_Header=\$ac_header_preproc"
17792 fi
17793 ac_res=`eval echo '${'$as_ac_Header'}'`
17794                { echo "$as_me:$LINENO: result: $ac_res" >&5
17795 echo "${ECHO_T}$ac_res" >&6; }
17796
17797 fi
17798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17799   cat >>confdefs.h <<_ACEOF
17800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17801 _ACEOF
17802
17803 fi
17804
17805 done
17806
17807
17808 for ac_func in getpagesize
17809 do
17810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h.  */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h.  */
17822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17824 #define $ac_func innocuous_$ac_func
17825
17826 /* System header to define __stub macros and hopefully few prototypes,
17827     which can conflict with char $ac_func (); below.
17828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17829     <limits.h> exists even on freestanding compilers.  */
17830
17831 #ifdef __STDC__
17832 # include <limits.h>
17833 #else
17834 # include <assert.h>
17835 #endif
17836
17837 #undef $ac_func
17838
17839 /* Override any GCC internal prototype to avoid an error.
17840    Use char because int might match the return type of a GCC
17841    builtin and then its argument prototype would still apply.  */
17842 #ifdef __cplusplus
17843 extern "C"
17844 #endif
17845 char $ac_func ();
17846 /* The GNU C library defines this for functions which it implements
17847     to always fail with ENOSYS.  Some functions are actually named
17848     something starting with __ and the normal name is an alias.  */
17849 #if defined __stub_$ac_func || defined __stub___$ac_func
17850 choke me
17851 #endif
17852
17853 int
17854 main ()
17855 {
17856 return $ac_func ();
17857   ;
17858   return 0;
17859 }
17860 _ACEOF
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (ac_try="$ac_link"
17863 case "(($ac_try" in
17864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865   *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868   (eval "$ac_link") 2>conftest.er1
17869   ac_status=$?
17870   grep -v '^ *+' conftest.er1 >conftest.err
17871   rm -f conftest.er1
17872   cat conftest.err >&5
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); } &&
17875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17876   { (case "(($ac_try" in
17877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878   *) ac_try_echo=$ac_try;;
17879 esac
17880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17881   (eval "$ac_try") 2>&5
17882   ac_status=$?
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); }; } &&
17885          { ac_try='test -s conftest$ac_exeext'
17886   { (case "(($ac_try" in
17887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888   *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891   (eval "$ac_try") 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); }; }; then
17895   eval "$as_ac_var=yes"
17896 else
17897   echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17899
17900         eval "$as_ac_var=no"
17901 fi
17902
17903 rm -f core conftest.err conftest.$ac_objext \
17904       conftest$ac_exeext conftest.$ac_ext
17905 fi
17906 ac_res=`eval echo '${'$as_ac_var'}'`
17907                { echo "$as_me:$LINENO: result: $ac_res" >&5
17908 echo "${ECHO_T}$ac_res" >&6; }
17909 if test `eval echo '${'$as_ac_var'}'` = yes; then
17910   cat >>confdefs.h <<_ACEOF
17911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17912 _ACEOF
17913
17914 fi
17915 done
17916
17917 { echo "$as_me:$LINENO: checking for working mmap" >&5
17918 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17919 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17920   echo $ECHO_N "(cached) $ECHO_C" >&6
17921 else
17922   if test "$cross_compiling" = yes; then
17923   ac_cv_func_mmap_fixed_mapped=no
17924 else
17925   cat >conftest.$ac_ext <<_ACEOF
17926 /* confdefs.h.  */
17927 _ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h.  */
17931 $ac_includes_default
17932 /* malloc might have been renamed as rpl_malloc. */
17933 #undef malloc
17934
17935 /* Thanks to Mike Haertel and Jim Avera for this test.
17936    Here is a matrix of mmap possibilities:
17937         mmap private not fixed
17938         mmap private fixed at somewhere currently unmapped
17939         mmap private fixed at somewhere already mapped
17940         mmap shared not fixed
17941         mmap shared fixed at somewhere currently unmapped
17942         mmap shared fixed at somewhere already mapped
17943    For private mappings, we should verify that changes cannot be read()
17944    back from the file, nor mmap's back from the file at a different
17945    address.  (There have been systems where private was not correctly
17946    implemented like the infamous i386 svr4.0, and systems where the
17947    VM page cache was not coherent with the file system buffer cache
17948    like early versions of FreeBSD and possibly contemporary NetBSD.)
17949    For shared mappings, we should conversely verify that changes get
17950    propagated back to all the places they're supposed to be.
17951
17952    Grep wants private fixed already mapped.
17953    The main things grep needs to know about mmap are:
17954    * does it exist and is it safe to write into the mmap'd area
17955    * how to use it (BSD variants)  */
17956
17957 #include <fcntl.h>
17958 #include <sys/mman.h>
17959
17960 #if !STDC_HEADERS && !HAVE_STDLIB_H
17961 char *malloc ();
17962 #endif
17963
17964 /* This mess was copied from the GNU getpagesize.h.  */
17965 #if !HAVE_GETPAGESIZE
17966 /* Assume that all systems that can run configure have sys/param.h.  */
17967 # if !HAVE_SYS_PARAM_H
17968 #  define HAVE_SYS_PARAM_H 1
17969 # endif
17970
17971 # ifdef _SC_PAGESIZE
17972 #  define getpagesize() sysconf(_SC_PAGESIZE)
17973 # else /* no _SC_PAGESIZE */
17974 #  if HAVE_SYS_PARAM_H
17975 #   include <sys/param.h>
17976 #   ifdef EXEC_PAGESIZE
17977 #    define getpagesize() EXEC_PAGESIZE
17978 #   else /* no EXEC_PAGESIZE */
17979 #    ifdef NBPG
17980 #     define getpagesize() NBPG * CLSIZE
17981 #     ifndef CLSIZE
17982 #      define CLSIZE 1
17983 #     endif /* no CLSIZE */
17984 #    else /* no NBPG */
17985 #     ifdef NBPC
17986 #      define getpagesize() NBPC
17987 #     else /* no NBPC */
17988 #      ifdef PAGESIZE
17989 #       define getpagesize() PAGESIZE
17990 #      endif /* PAGESIZE */
17991 #     endif /* no NBPC */
17992 #    endif /* no NBPG */
17993 #   endif /* no EXEC_PAGESIZE */
17994 #  else /* no HAVE_SYS_PARAM_H */
17995 #   define getpagesize() 8192   /* punt totally */
17996 #  endif /* no HAVE_SYS_PARAM_H */
17997 # endif /* no _SC_PAGESIZE */
17998
17999 #endif /* no HAVE_GETPAGESIZE */
18000
18001 int
18002 main ()
18003 {
18004   char *data, *data2, *data3;
18005   int i, pagesize;
18006   int fd;
18007
18008   pagesize = getpagesize ();
18009
18010   /* First, make a file with some known garbage in it. */
18011   data = (char *) malloc (pagesize);
18012   if (!data)
18013     return 1;
18014   for (i = 0; i < pagesize; ++i)
18015     *(data + i) = rand ();
18016   umask (0);
18017   fd = creat ("conftest.mmap", 0600);
18018   if (fd < 0)
18019     return 1;
18020   if (write (fd, data, pagesize) != pagesize)
18021     return 1;
18022   close (fd);
18023
18024   /* Next, try to mmap the file at a fixed address which already has
18025      something else allocated at it.  If we can, also make sure that
18026      we see the same garbage.  */
18027   fd = open ("conftest.mmap", O_RDWR);
18028   if (fd < 0)
18029     return 1;
18030   data2 = (char *) malloc (2 * pagesize);
18031   if (!data2)
18032     return 1;
18033   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18034   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18035                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18036     return 1;
18037   for (i = 0; i < pagesize; ++i)
18038     if (*(data + i) != *(data2 + i))
18039       return 1;
18040
18041   /* Finally, make sure that changes to the mapped area do not
18042      percolate back to the file as seen by read().  (This is a bug on
18043      some variants of i386 svr4.0.)  */
18044   for (i = 0; i < pagesize; ++i)
18045     *(data2 + i) = *(data2 + i) + 1;
18046   data3 = (char *) malloc (pagesize);
18047   if (!data3)
18048     return 1;
18049   if (read (fd, data3, pagesize) != pagesize)
18050     return 1;
18051   for (i = 0; i < pagesize; ++i)
18052     if (*(data + i) != *(data3 + i))
18053       return 1;
18054   close (fd);
18055   return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest$ac_exeext
18059 if { (ac_try="$ac_link"
18060 case "(($ac_try" in
18061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062   *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065   (eval "$ac_link") 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18069   { (case "(($ac_try" in
18070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071   *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074   (eval "$ac_try") 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); }; }; then
18078   ac_cv_func_mmap_fixed_mapped=yes
18079 else
18080   echo "$as_me: program exited with status $ac_status" >&5
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084 ( exit $ac_status )
18085 ac_cv_func_mmap_fixed_mapped=no
18086 fi
18087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18088 fi
18089
18090
18091 fi
18092 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18093 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18094 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18095
18096 cat >>confdefs.h <<\_ACEOF
18097 #define HAVE_MMAP 1
18098 _ACEOF
18099
18100 fi
18101 rm -f conftest.mmap
18102
18103   { echo "$as_me:$LINENO: checking for mmap of files" >&5
18104 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18105 if test "${ac_cv_func_mmap_file+set}" = set; then
18106   echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108    ac_ext=c
18109 ac_cpp='$CPP $CPPFLAGS'
18110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18113
18114   if test "$cross_compiling" = yes; then
18115   ac_cv_func_mmap_file=no
18116 else
18117   cat >conftest.$ac_ext <<_ACEOF
18118
18119     /* confdefs.h.  */
18120 _ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h.  */
18124
18125 #include <sys/types.h>
18126 #include <sys/mman.h>
18127 #include <fcntl.h>
18128
18129 int
18130 main ()
18131 {
18132
18133   int fd;
18134   fd = creat ("foo",0777);
18135   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18136   unlink ("foo");
18137   return (fd != (int) MAP_FAILED);
18138   ;
18139   return 0;
18140 }
18141 _ACEOF
18142 rm -f conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146   *) ac_try_echo=$ac_try;;
18147 esac
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149   (eval "$ac_link") 2>&5
18150   ac_status=$?
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18153   { (case "(($ac_try" in
18154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155   *) ac_try_echo=$ac_try;;
18156 esac
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158   (eval "$ac_try") 2>&5
18159   ac_status=$?
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); }; }; then
18162   ac_cv_func_mmap_file=yes
18163 else
18164   echo "$as_me: program exited with status $ac_status" >&5
18165 echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18167
18168 ( exit $ac_status )
18169 ac_cv_func_mmap_file=no
18170 fi
18171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18172 fi
18173
18174
18175   ac_ext=c
18176 ac_cpp='$CPP $CPPFLAGS'
18177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18180
18181
18182 fi
18183 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18184 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18185 if test "$ac_cv_func_mmap_file" = yes; then
18186
18187 cat >>confdefs.h <<\_ACEOF
18188 #define HAVE_MMAP_FILE
18189 _ACEOF
18190
18191    MMAP_FILE=yes
18192
18193 fi
18194
18195   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18196 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18197 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200   if test "$llvm_cv_os_type" = "Interix" ; then
18201    ac_cv_need_dev_zero_for_mmap=yes
18202  else
18203    ac_cv_need_dev_zero_for_mmap=no
18204  fi
18205
18206 fi
18207 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18208 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18209 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18210
18211 cat >>confdefs.h <<\_ACEOF
18212 #define NEED_DEV_ZERO_FOR_MMAP 1
18213 _ACEOF
18214
18215 fi
18216
18217   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18218   then
18219     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18220 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18221   fi
18222   if test "$ac_cv_func_mmap_file" = "no"
18223   then
18224     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18225 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18226   fi
18227 fi
18228
18229 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18230 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18231 ac_ext=cpp
18232 ac_cpp='$CXXCPP $CPPFLAGS'
18233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18236
18237 cat >conftest.$ac_ext <<_ACEOF
18238
18239   /* confdefs.h.  */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h.  */
18244
18245     int main() {
18246       volatile unsigned long val = 1;
18247       __sync_synchronize();
18248       __sync_val_compare_and_swap(&val, 1, 0);
18249       __sync_add_and_fetch(&val, 1);
18250       __sync_sub_and_fetch(&val, 1);
18251       return 0;
18252     }
18253
18254
18255 _ACEOF
18256 rm -f conftest.$ac_objext conftest$ac_exeext
18257 if { (ac_try="$ac_link"
18258 case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263   (eval "$ac_link") 2>conftest.er1
18264   ac_status=$?
18265   grep -v '^ *+' conftest.er1 >conftest.err
18266   rm -f conftest.er1
18267   cat conftest.err >&5
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); } &&
18270          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18271   { (case "(($ac_try" in
18272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273   *) ac_try_echo=$ac_try;;
18274 esac
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276   (eval "$ac_try") 2>&5
18277   ac_status=$?
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); }; } &&
18280          { ac_try='test -s conftest$ac_exeext'
18281   { (case "(($ac_try" in
18282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283   *) ac_try_echo=$ac_try;;
18284 esac
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286   (eval "$ac_try") 2>&5
18287   ac_status=$?
18288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); }; }; then
18290
18291   { echo "$as_me:$LINENO: result: yes" >&5
18292 echo "${ECHO_T}yes" >&6; }
18293
18294 cat >>confdefs.h <<\_ACEOF
18295 #define LLVM_HAS_ATOMICS 1
18296 _ACEOF
18297
18298
18299 else
18300   echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303
18304   { echo "$as_me:$LINENO: result: no" >&5
18305 echo "${ECHO_T}no" >&6; }
18306
18307 cat >>confdefs.h <<\_ACEOF
18308 #define LLVM_HAS_ATOMICS 0
18309 _ACEOF
18310
18311   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18312 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18313
18314 fi
18315
18316 rm -f core conftest.err conftest.$ac_objext \
18317       conftest$ac_exeext conftest.$ac_ext
18318 ac_ext=c
18319 ac_cpp='$CPP $CPPFLAGS'
18320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18323
18324
18325
18326 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18327   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18328 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18329 if test "${llvm_cv_linux_mixed+set}" = set; then
18330   echo $ECHO_N "(cached) $ECHO_C" >&6
18331 else
18332    ac_ext=c
18333 ac_cpp='$CPP $CPPFLAGS'
18334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18337
18338   cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h.  */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h.  */
18344 #ifndef __x86_64__
18345        error: Not x86-64 even if uname says so!
18346       #endif
18347
18348 int
18349 main ()
18350 {
18351
18352   ;
18353   return 0;
18354 }
18355 _ACEOF
18356 rm -f conftest.$ac_objext
18357 if { (ac_try="$ac_compile"
18358 case "(($ac_try" in
18359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360   *) ac_try_echo=$ac_try;;
18361 esac
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363   (eval "$ac_compile") 2>conftest.er1
18364   ac_status=$?
18365   grep -v '^ *+' conftest.er1 >conftest.err
18366   rm -f conftest.er1
18367   cat conftest.err >&5
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); } &&
18370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18371   { (case "(($ac_try" in
18372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373   *) ac_try_echo=$ac_try;;
18374 esac
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376   (eval "$ac_try") 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; } &&
18380          { ac_try='test -s conftest.$ac_objext'
18381   { (case "(($ac_try" in
18382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383   *) ac_try_echo=$ac_try;;
18384 esac
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386   (eval "$ac_try") 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   llvm_cv_linux_mixed=no
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395         llvm_cv_linux_mixed=yes
18396 fi
18397
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399   ac_ext=c
18400 ac_cpp='$CPP $CPPFLAGS'
18401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18404
18405
18406 fi
18407 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18408 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18409
18410   if test "$llvm_cv_linux_mixed" = "yes"; then
18411     llvm_cv_target_arch="x86"
18412     ARCH="x86"
18413   fi
18414 fi
18415
18416
18417 for ac_func in __dso_handle
18418 do
18419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18423   echo $ECHO_N "(cached) $ECHO_C" >&6
18424 else
18425   cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h.  */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h.  */
18431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18433 #define $ac_func innocuous_$ac_func
18434
18435 /* System header to define __stub macros and hopefully few prototypes,
18436     which can conflict with char $ac_func (); below.
18437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18438     <limits.h> exists even on freestanding compilers.  */
18439
18440 #ifdef __STDC__
18441 # include <limits.h>
18442 #else
18443 # include <assert.h>
18444 #endif
18445
18446 #undef $ac_func
18447
18448 /* Override any GCC internal prototype to avoid an error.
18449    Use char because int might match the return type of a GCC
18450    builtin and then its argument prototype would still apply.  */
18451 #ifdef __cplusplus
18452 extern "C"
18453 #endif
18454 char $ac_func ();
18455 /* The GNU C library defines this for functions which it implements
18456     to always fail with ENOSYS.  Some functions are actually named
18457     something starting with __ and the normal name is an alias.  */
18458 #if defined __stub_$ac_func || defined __stub___$ac_func
18459 choke me
18460 #endif
18461
18462 int
18463 main ()
18464 {
18465 return $ac_func ();
18466   ;
18467   return 0;
18468 }
18469 _ACEOF
18470 rm -f conftest.$ac_objext conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474   *) ac_try_echo=$ac_try;;
18475 esac
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477   (eval "$ac_link") 2>conftest.er1
18478   ac_status=$?
18479   grep -v '^ *+' conftest.er1 >conftest.err
18480   rm -f conftest.er1
18481   cat conftest.err >&5
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); } &&
18484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18485   { (case "(($ac_try" in
18486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487   *) ac_try_echo=$ac_try;;
18488 esac
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490   (eval "$ac_try") 2>&5
18491   ac_status=$?
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); }; } &&
18494          { ac_try='test -s conftest$ac_exeext'
18495   { (case "(($ac_try" in
18496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497   *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500   (eval "$ac_try") 2>&5
18501   ac_status=$?
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); }; }; then
18504   eval "$as_ac_var=yes"
18505 else
18506   echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18508
18509         eval "$as_ac_var=no"
18510 fi
18511
18512 rm -f core conftest.err conftest.$ac_objext \
18513       conftest$ac_exeext conftest.$ac_ext
18514 fi
18515 ac_res=`eval echo '${'$as_ac_var'}'`
18516                { echo "$as_me:$LINENO: result: $ac_res" >&5
18517 echo "${ECHO_T}$ac_res" >&6; }
18518 if test `eval echo '${'$as_ac_var'}'` = yes; then
18519   cat >>confdefs.h <<_ACEOF
18520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18521 _ACEOF
18522
18523 fi
18524 done
18525
18526
18527 SHLIBEXT=$llvm_shlib_ext
18528
18529
18530 if test "${prefix}" = "NONE" ; then
18531   prefix="/usr/local"
18532 fi
18533 eval LLVM_PREFIX="${prefix}";
18534 eval LLVM_BINDIR="${prefix}/bin";
18535 eval LLVM_DATADIR="${prefix}/share/llvm";
18536 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18537 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18538 eval LLVM_INCLUDEDIR="${prefix}/include";
18539 eval LLVM_INFODIR="${prefix}/info";
18540 eval LLVM_MANDIR="${prefix}/man";
18541 LLVM_CONFIGTIME=`date`
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18553   LLVM_CONFIGTIME="(timestamp not enabled)"
18554 fi
18555
18556
18557 cat >>confdefs.h <<_ACEOF
18558 #define LLVM_PREFIX "$LLVM_PREFIX"
18559 _ACEOF
18560
18561
18562 cat >>confdefs.h <<_ACEOF
18563 #define LLVM_BINDIR "$LLVM_BINDIR"
18564 _ACEOF
18565
18566
18567 cat >>confdefs.h <<_ACEOF
18568 #define LLVM_DATADIR "$LLVM_DATADIR"
18569 _ACEOF
18570
18571
18572 cat >>confdefs.h <<_ACEOF
18573 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18574 _ACEOF
18575
18576
18577 cat >>confdefs.h <<_ACEOF
18578 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18579 _ACEOF
18580
18581
18582 cat >>confdefs.h <<_ACEOF
18583 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18584 _ACEOF
18585
18586
18587 cat >>confdefs.h <<_ACEOF
18588 #define LLVM_INFODIR "$LLVM_INFODIR"
18589 _ACEOF
18590
18591
18592 cat >>confdefs.h <<_ACEOF
18593 #define LLVM_MANDIR "$LLVM_MANDIR"
18594 _ACEOF
18595
18596
18597 cat >>confdefs.h <<_ACEOF
18598 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18599 _ACEOF
18600
18601
18602 cat >>confdefs.h <<_ACEOF
18603 #define LLVM_HOST_TRIPLE "$host"
18604 _ACEOF
18605
18606
18607 cat >>confdefs.h <<_ACEOF
18608 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18609 _ACEOF
18610
18611
18612 if test "$BINDINGS_TO_BUILD" = auto ; then
18613   BINDINGS_TO_BUILD=""
18614   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18615     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18616   fi
18617 fi
18618 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18619
18620
18621 ALL_BINDINGS=ocaml
18622
18623
18624 binding_prereqs_failed=0
18625 for a_binding in $BINDINGS_TO_BUILD ; do
18626   case "$a_binding" in
18627   ocaml)
18628     if test "x$OCAMLC" = x ; then
18629       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18630 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18631       binding_prereqs_failed=1
18632     fi
18633     if test "x$OCAMLDEP" = x ; then
18634       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18635 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18636       binding_prereqs_failed=1
18637     fi
18638     if test "x$OCAMLOPT" = x ; then
18639       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18640 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18641           fi
18642     if test "x$with_ocaml_libdir" != xauto ; then
18643       OCAML_LIBDIR=$with_ocaml_libdir
18644
18645     else
18646       ocaml_stdlib="`"$OCAMLC" -where`"
18647       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18648       then
18649         # ocaml stdlib is beneath our prefix; use stdlib
18650         OCAML_LIBDIR=$ocaml_stdlib
18651
18652       else
18653         # ocaml stdlib is outside our prefix; use libdir/ocaml
18654         OCAML_LIBDIR=${prefix}/lib/ocaml
18655
18656       fi
18657     fi
18658     ;;
18659   esac
18660 done
18661 if test "$binding_prereqs_failed" = 1 ; then
18662   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18663 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18664    { (exit 1); exit 1; }; }
18665 fi
18666
18667 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18668 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18669 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18670   echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672    ac_ext=cpp
18673 ac_cpp='$CXXCPP $CPPFLAGS'
18674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18677
18678   oldcxxflags="$CXXFLAGS"
18679   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18680   cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h.  */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h.  */
18686 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18687 int
18688 main ()
18689 {
18690 X<int>().f();
18691   ;
18692   return 0;
18693 }
18694 _ACEOF
18695 rm -f conftest.$ac_objext
18696 if { (ac_try="$ac_compile"
18697 case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702   (eval "$ac_compile") 2>conftest.er1
18703   ac_status=$?
18704   grep -v '^ *+' conftest.er1 >conftest.err
18705   rm -f conftest.er1
18706   cat conftest.err >&5
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); } &&
18709          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18710   { (case "(($ac_try" in
18711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712   *) ac_try_echo=$ac_try;;
18713 esac
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715   (eval "$ac_try") 2>&5
18716   ac_status=$?
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); }; } &&
18719          { ac_try='test -s conftest.$ac_objext'
18720   { (case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_try") 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; }; then
18729   llvm_cv_cxx_visibility_inlines_hidden=yes
18730 else
18731   echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734         llvm_cv_cxx_visibility_inlines_hidden=no
18735 fi
18736
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18738   CXXFLAGS="$oldcxxflags"
18739   ac_ext=c
18740 ac_cpp='$CPP $CPPFLAGS'
18741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18744
18745
18746 fi
18747 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18748 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18749 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18750   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18751
18752 else
18753   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18754
18755 fi
18756
18757
18758 if test "$llvm_cv_link_use_r" = "yes" ; then
18759   RPATH="-Wl,-R"
18760 else
18761   RPATH="-Wl,-rpath"
18762 fi
18763
18764
18765 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18766   RDYNAMIC="-rdynamic"
18767 else
18768   RDYNAMIC=""
18769 fi
18770
18771
18772
18773 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18774
18775
18776
18777
18778
18779
18780 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18781
18782 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18783
18784 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18785
18786 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18787
18788 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18789
18790
18791 ac_config_files="$ac_config_files Makefile.config"
18792
18793
18794 ac_config_files="$ac_config_files llvm.spec"
18795
18796
18797 ac_config_files="$ac_config_files docs/doxygen.cfg"
18798
18799
18800 if test "${clang_src_root}" = ""; then
18801   clang_src_root="$srcdir/tools/clang"
18802 fi
18803 if test -f ${clang_src_root}/README.txt; then
18804     configh="include/clang/Config/config.h"
18805   doxy="docs/doxygen.cfg"
18806   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18807
18808   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18809
18810 fi
18811
18812 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18813
18814
18815 test "x$program_prefix" = "xNONE" && program_prefix=""
18816
18817
18818
18819 ac_config_commands="$ac_config_commands setup"
18820
18821 ac_config_commands="$ac_config_commands Makefile"
18822
18823
18824 ac_config_commands="$ac_config_commands Makefile.common"
18825
18826
18827 ac_config_commands="$ac_config_commands examples/Makefile"
18828
18829
18830 ac_config_commands="$ac_config_commands lib/Makefile"
18831
18832
18833 ac_config_commands="$ac_config_commands test/Makefile"
18834
18835
18836 ac_config_commands="$ac_config_commands test/Makefile.tests"
18837
18838
18839 ac_config_commands="$ac_config_commands unittests/Makefile"
18840
18841
18842 ac_config_commands="$ac_config_commands tools/Makefile"
18843
18844
18845 ac_config_commands="$ac_config_commands utils/Makefile"
18846
18847
18848 ac_config_commands="$ac_config_commands projects/Makefile"
18849
18850
18851 ac_config_commands="$ac_config_commands bindings/Makefile"
18852
18853
18854 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18855
18856
18857
18858 cat >confcache <<\_ACEOF
18859 # This file is a shell script that caches the results of configure
18860 # tests run on this system so they can be shared between configure
18861 # scripts and configure runs, see configure's option --config-cache.
18862 # It is not useful on other systems.  If it contains results you don't
18863 # want to keep, you may remove or edit it.
18864 #
18865 # config.status only pays attention to the cache file if you give it
18866 # the --recheck option to rerun configure.
18867 #
18868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18870 # following values.
18871
18872 _ACEOF
18873
18874 # The following way of writing the cache mishandles newlines in values,
18875 # but we know of no workaround that is simple, portable, and efficient.
18876 # So, we kill variables containing newlines.
18877 # Ultrix sh set writes to stderr and can't be redirected directly,
18878 # and sets the high bit in the cache file unless we assign to the vars.
18879 (
18880   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18881     eval ac_val=\$$ac_var
18882     case $ac_val in #(
18883     *${as_nl}*)
18884       case $ac_var in #(
18885       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18886 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18887       esac
18888       case $ac_var in #(
18889       _ | IFS | as_nl) ;; #(
18890       *) $as_unset $ac_var ;;
18891       esac ;;
18892     esac
18893   done
18894
18895   (set) 2>&1 |
18896     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18897     *${as_nl}ac_space=\ *)
18898       # `set' does not quote correctly, so add quotes (double-quote
18899       # substitution turns \\\\ into \\, and sed turns \\ into \).
18900       sed -n \
18901         "s/'/'\\\\''/g;
18902           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18903       ;; #(
18904     *)
18905       # `set' quotes correctly as required by POSIX, so do not add quotes.
18906       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18907       ;;
18908     esac |
18909     sort
18910 ) |
18911   sed '
18912      /^ac_cv_env_/b end
18913      t clear
18914      :clear
18915      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18916      t end
18917      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18918      :end' >>confcache
18919 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18920   if test -w "$cache_file"; then
18921     test "x$cache_file" != "x/dev/null" &&
18922       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18923 echo "$as_me: updating cache $cache_file" >&6;}
18924     cat confcache >$cache_file
18925   else
18926     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18927 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18928   fi
18929 fi
18930 rm -f confcache
18931
18932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18933 # Let make expand exec_prefix.
18934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18935
18936 DEFS=-DHAVE_CONFIG_H
18937
18938 ac_libobjs=
18939 ac_ltlibobjs=
18940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18941   # 1. Remove the extension, and $U if already installed.
18942   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18943   ac_i=`echo "$ac_i" | sed "$ac_script"`
18944   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18945   #    will be set to the directory where LIBOBJS objects are built.
18946   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18947   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18948 done
18949 LIBOBJS=$ac_libobjs
18950
18951 LTLIBOBJS=$ac_ltlibobjs
18952
18953
18954
18955 : ${CONFIG_STATUS=./config.status}
18956 ac_clean_files_save=$ac_clean_files
18957 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18958 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18959 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18960 cat >$CONFIG_STATUS <<_ACEOF
18961 #! $SHELL
18962 # Generated by $as_me.
18963 # Run this file to recreate the current configuration.
18964 # Compiler output produced by configure, useful for debugging
18965 # configure, is in config.log if it exists.
18966
18967 debug=false
18968 ac_cs_recheck=false
18969 ac_cs_silent=false
18970 SHELL=\${CONFIG_SHELL-$SHELL}
18971 _ACEOF
18972
18973 cat >>$CONFIG_STATUS <<\_ACEOF
18974 ## --------------------- ##
18975 ## M4sh Initialization.  ##
18976 ## --------------------- ##
18977
18978 # Be Bourne compatible
18979 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18980   emulate sh
18981   NULLCMD=:
18982   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18983   # is contrary to our usage.  Disable this feature.
18984   alias -g '${1+"$@"}'='"$@"'
18985   setopt NO_GLOB_SUBST
18986 else
18987   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18988 fi
18989 BIN_SH=xpg4; export BIN_SH # for Tru64
18990 DUALCASE=1; export DUALCASE # for MKS sh
18991
18992
18993 # PATH needs CR
18994 # Avoid depending upon Character Ranges.
18995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18998 as_cr_digits='0123456789'
18999 as_cr_alnum=$as_cr_Letters$as_cr_digits
19000
19001 # The user is always right.
19002 if test "${PATH_SEPARATOR+set}" != set; then
19003   echo "#! /bin/sh" >conf$$.sh
19004   echo  "exit 0"   >>conf$$.sh
19005   chmod +x conf$$.sh
19006   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19007     PATH_SEPARATOR=';'
19008   else
19009     PATH_SEPARATOR=:
19010   fi
19011   rm -f conf$$.sh
19012 fi
19013
19014 # Support unset when possible.
19015 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19016   as_unset=unset
19017 else
19018   as_unset=false
19019 fi
19020
19021
19022 # IFS
19023 # We need space, tab and new line, in precisely that order.  Quoting is
19024 # there to prevent editors from complaining about space-tab.
19025 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19026 # splitting by setting IFS to empty value.)
19027 as_nl='
19028 '
19029 IFS=" ""        $as_nl"
19030
19031 # Find who we are.  Look in the path if we contain no directory separator.
19032 case $0 in
19033   *[\\/]* ) as_myself=$0 ;;
19034   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19035 for as_dir in $PATH
19036 do
19037   IFS=$as_save_IFS
19038   test -z "$as_dir" && as_dir=.
19039   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19040 done
19041 IFS=$as_save_IFS
19042
19043      ;;
19044 esac
19045 # We did not find ourselves, most probably we were run as `sh COMMAND'
19046 # in which case we are not to be found in the path.
19047 if test "x$as_myself" = x; then
19048   as_myself=$0
19049 fi
19050 if test ! -f "$as_myself"; then
19051   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19052   { (exit 1); exit 1; }
19053 fi
19054
19055 # Work around bugs in pre-3.0 UWIN ksh.
19056 for as_var in ENV MAIL MAILPATH
19057 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19058 done
19059 PS1='$ '
19060 PS2='> '
19061 PS4='+ '
19062
19063 # NLS nuisances.
19064 for as_var in \
19065   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19066   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19067   LC_TELEPHONE LC_TIME
19068 do
19069   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19070     eval $as_var=C; export $as_var
19071   else
19072     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19073   fi
19074 done
19075
19076 # Required to use basename.
19077 if expr a : '\(a\)' >/dev/null 2>&1 &&
19078    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19079   as_expr=expr
19080 else
19081   as_expr=false
19082 fi
19083
19084 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19085   as_basename=basename
19086 else
19087   as_basename=false
19088 fi
19089
19090
19091 # Name of the executable.
19092 as_me=`$as_basename -- "$0" ||
19093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19094          X"$0" : 'X\(//\)$' \| \
19095          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19096 echo X/"$0" |
19097     sed '/^.*\/\([^/][^/]*\)\/*$/{
19098             s//\1/
19099             q
19100           }
19101           /^X\/\(\/\/\)$/{
19102             s//\1/
19103             q
19104           }
19105           /^X\/\(\/\).*/{
19106             s//\1/
19107             q
19108           }
19109           s/.*/./; q'`
19110
19111 # CDPATH.
19112 $as_unset CDPATH
19113
19114
19115
19116   as_lineno_1=$LINENO
19117   as_lineno_2=$LINENO
19118   test "x$as_lineno_1" != "x$as_lineno_2" &&
19119   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19120
19121   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19122   # uniformly replaced by the line number.  The first 'sed' inserts a
19123   # line-number line after each line using $LINENO; the second 'sed'
19124   # does the real work.  The second script uses 'N' to pair each
19125   # line-number line with the line containing $LINENO, and appends
19126   # trailing '-' during substitution so that $LINENO is not a special
19127   # case at line end.
19128   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19129   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19130   # E. McMahon (1931-1989) for sed's syntax.  :-)
19131   sed -n '
19132     p
19133     /[$]LINENO/=
19134   ' <$as_myself |
19135     sed '
19136       s/[$]LINENO.*/&-/
19137       t lineno
19138       b
19139       :lineno
19140       N
19141       :loop
19142       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19143       t loop
19144       s/-\n.*//
19145     ' >$as_me.lineno &&
19146   chmod +x "$as_me.lineno" ||
19147     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19148    { (exit 1); exit 1; }; }
19149
19150   # Don't try to exec as it changes $[0], causing all sort of problems
19151   # (the dirname of $[0] is not the place where we might find the
19152   # original and so on.  Autoconf is especially sensitive to this).
19153   . "./$as_me.lineno"
19154   # Exit status is that of the last command.
19155   exit
19156 }
19157
19158
19159 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19160   as_dirname=dirname
19161 else
19162   as_dirname=false
19163 fi
19164
19165 ECHO_C= ECHO_N= ECHO_T=
19166 case `echo -n x` in
19167 -n*)
19168   case `echo 'x\c'` in
19169   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19170   *)   ECHO_C='\c';;
19171   esac;;
19172 *)
19173   ECHO_N='-n';;
19174 esac
19175
19176 if expr a : '\(a\)' >/dev/null 2>&1 &&
19177    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19178   as_expr=expr
19179 else
19180   as_expr=false
19181 fi
19182
19183 rm -f conf$$ conf$$.exe conf$$.file
19184 if test -d conf$$.dir; then
19185   rm -f conf$$.dir/conf$$.file
19186 else
19187   rm -f conf$$.dir
19188   mkdir conf$$.dir
19189 fi
19190 echo >conf$$.file
19191 if ln -s conf$$.file conf$$ 2>/dev/null; then
19192   as_ln_s='ln -s'
19193   # ... but there are two gotchas:
19194   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19195   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19196   # In both cases, we have to default to `cp -p'.
19197   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19198     as_ln_s='cp -p'
19199 elif ln conf$$.file conf$$ 2>/dev/null; then
19200   as_ln_s=ln
19201 else
19202   as_ln_s='cp -p'
19203 fi
19204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19205 rmdir conf$$.dir 2>/dev/null
19206
19207 if mkdir -p . 2>/dev/null; then
19208   as_mkdir_p=:
19209 else
19210   test -d ./-p && rmdir ./-p
19211   as_mkdir_p=false
19212 fi
19213
19214 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19215 # systems may use methods other than mode bits to determine executability.
19216 cat >conf$$.file <<_ASEOF
19217 #! /bin/sh
19218 exit 0
19219 _ASEOF
19220 chmod +x conf$$.file
19221 if test -x conf$$.file >/dev/null 2>&1; then
19222   as_executable_p="test -x"
19223 else
19224   as_executable_p=:
19225 fi
19226 rm -f conf$$.file
19227
19228 # Sed expression to map a string onto a valid CPP name.
19229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19230
19231 # Sed expression to map a string onto a valid variable name.
19232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19233
19234
19235 exec 6>&1
19236
19237 # Save the log message, to keep $[0] and so on meaningful, and to
19238 # report actual input values of CONFIG_FILES etc. instead of their
19239 # values after options handling.
19240 ac_log="
19241 This file was extended by LLVM $as_me 3.6.0svn, which was
19242 generated by GNU Autoconf 2.60.  Invocation command line was
19243
19244   CONFIG_FILES    = $CONFIG_FILES
19245   CONFIG_HEADERS  = $CONFIG_HEADERS
19246   CONFIG_LINKS    = $CONFIG_LINKS
19247   CONFIG_COMMANDS = $CONFIG_COMMANDS
19248   $ $0 $@
19249
19250 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19251 "
19252
19253 _ACEOF
19254
19255 cat >>$CONFIG_STATUS <<_ACEOF
19256 # Files that config.status was made for.
19257 config_files="$ac_config_files"
19258 config_headers="$ac_config_headers"
19259 config_commands="$ac_config_commands"
19260
19261 _ACEOF
19262
19263 cat >>$CONFIG_STATUS <<\_ACEOF
19264 ac_cs_usage="\
19265 \`$as_me' instantiates files from templates according to the
19266 current configuration.
19267
19268 Usage: $0 [OPTIONS] [FILE]...
19269
19270   -h, --help       print this help, then exit
19271   -V, --version    print version number, then exit
19272   -q, --quiet      do not print progress messages
19273   -d, --debug      don't remove temporary files
19274       --recheck    update $as_me by reconfiguring in the same conditions
19275   --file=FILE[:TEMPLATE]
19276                    instantiate the configuration file FILE
19277   --header=FILE[:TEMPLATE]
19278                    instantiate the configuration header FILE
19279
19280 Configuration files:
19281 $config_files
19282
19283 Configuration headers:
19284 $config_headers
19285
19286 Configuration commands:
19287 $config_commands
19288
19289 Report bugs to <bug-autoconf@gnu.org>."
19290
19291 _ACEOF
19292 cat >>$CONFIG_STATUS <<_ACEOF
19293 ac_cs_version="\\
19294 LLVM config.status 3.6.0svn
19295 configured by $0, generated by GNU Autoconf 2.60,
19296   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19297
19298 Copyright (C) 2006 Free Software Foundation, Inc.
19299 This config.status script is free software; the Free Software Foundation
19300 gives unlimited permission to copy, distribute and modify it."
19301
19302 ac_pwd='$ac_pwd'
19303 srcdir='$srcdir'
19304 INSTALL='$INSTALL'
19305 _ACEOF
19306
19307 cat >>$CONFIG_STATUS <<\_ACEOF
19308 # If no file are specified by the user, then we need to provide default
19309 # value.  By we need to know if files were specified by the user.
19310 ac_need_defaults=:
19311 while test $# != 0
19312 do
19313   case $1 in
19314   --*=*)
19315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19316     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19317     ac_shift=:
19318     ;;
19319   *)
19320     ac_option=$1
19321     ac_optarg=$2
19322     ac_shift=shift
19323     ;;
19324   esac
19325
19326   case $ac_option in
19327   # Handling of the options.
19328   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19329     ac_cs_recheck=: ;;
19330   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19331     echo "$ac_cs_version"; exit ;;
19332   --debug | --debu | --deb | --de | --d | -d )
19333     debug=: ;;
19334   --file | --fil | --fi | --f )
19335     $ac_shift
19336     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19337     ac_need_defaults=false;;
19338   --header | --heade | --head | --hea )
19339     $ac_shift
19340     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19341     ac_need_defaults=false;;
19342   --he | --h)
19343     # Conflict between --help and --header
19344     { echo "$as_me: error: ambiguous option: $1
19345 Try \`$0 --help' for more information." >&2
19346    { (exit 1); exit 1; }; };;
19347   --help | --hel | -h )
19348     echo "$ac_cs_usage"; exit ;;
19349   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19350   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19351     ac_cs_silent=: ;;
19352
19353   # This is an error.
19354   -*) { echo "$as_me: error: unrecognized option: $1
19355 Try \`$0 --help' for more information." >&2
19356    { (exit 1); exit 1; }; } ;;
19357
19358   *) ac_config_targets="$ac_config_targets $1"
19359      ac_need_defaults=false ;;
19360
19361   esac
19362   shift
19363 done
19364
19365 ac_configure_extra_args=
19366
19367 if $ac_cs_silent; then
19368   exec 6>/dev/null
19369   ac_configure_extra_args="$ac_configure_extra_args --silent"
19370 fi
19371
19372 _ACEOF
19373 cat >>$CONFIG_STATUS <<_ACEOF
19374 if \$ac_cs_recheck; then
19375   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19376   CONFIG_SHELL=$SHELL
19377   export CONFIG_SHELL
19378   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19379 fi
19380
19381 _ACEOF
19382 cat >>$CONFIG_STATUS <<\_ACEOF
19383 exec 5>>config.log
19384 {
19385   echo
19386   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19387 ## Running $as_me. ##
19388 _ASBOX
19389   echo "$ac_log"
19390 } >&5
19391
19392 _ACEOF
19393 cat >>$CONFIG_STATUS <<_ACEOF
19394 #
19395 # INIT-COMMANDS
19396 #
19397 llvm_src="${srcdir}"
19398
19399 _ACEOF
19400
19401 cat >>$CONFIG_STATUS <<\_ACEOF
19402
19403 # Handling of arguments.
19404 for ac_config_target in $ac_config_targets
19405 do
19406   case $ac_config_target in
19407     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19408     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19409     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19410     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19411     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19412     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19413     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19414     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19415     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19416     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19417     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19418     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19419     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19420     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19421     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19422     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19423     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19424     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19425     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19426     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19427     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19428     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19429     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19430     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19431     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19432     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19433
19434   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19435 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19436    { (exit 1); exit 1; }; };;
19437   esac
19438 done
19439
19440
19441 # If the user did not use the arguments to specify the items to instantiate,
19442 # then the envvar interface is used.  Set only those that are not.
19443 # We use the long form for the default assignment because of an extremely
19444 # bizarre bug on SunOS 4.1.3.
19445 if $ac_need_defaults; then
19446   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19447   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19448   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19449 fi
19450
19451 # Have a temporary directory for convenience.  Make it in the build tree
19452 # simply because there is no reason against having it here, and in addition,
19453 # creating and moving files from /tmp can sometimes cause problems.
19454 # Hook for its removal unless debugging.
19455 # Note that there is a small window in which the directory will not be cleaned:
19456 # after its creation but before its name has been assigned to `$tmp'.
19457 $debug ||
19458 {
19459   tmp=
19460   trap 'exit_status=$?
19461   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19462 ' 0
19463   trap '{ (exit 1); exit 1; }' 1 2 13 15
19464 }
19465 # Create a (secure) tmp directory for tmp files.
19466
19467 {
19468   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19469   test -n "$tmp" && test -d "$tmp"
19470 }  ||
19471 {
19472   tmp=./conf$$-$RANDOM
19473   (umask 077 && mkdir "$tmp")
19474 } ||
19475 {
19476    echo "$me: cannot create a temporary directory in ." >&2
19477    { (exit 1); exit 1; }
19478 }
19479
19480 #
19481 # Set up the sed scripts for CONFIG_FILES section.
19482 #
19483
19484 # No need to generate the scripts if there are no CONFIG_FILES.
19485 # This happens for instance when ./config.status config.h
19486 if test -n "$CONFIG_FILES"; then
19487
19488 _ACEOF
19489
19490
19491
19492 ac_delim='%!_!# '
19493 for ac_last_try in false false false false false :; do
19494   cat >conf$$subs.sed <<_ACEOF
19495 SHELL!$SHELL$ac_delim
19496 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19497 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19498 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19499 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19500 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19501 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19502 exec_prefix!$exec_prefix$ac_delim
19503 prefix!$prefix$ac_delim
19504 program_transform_name!$program_transform_name$ac_delim
19505 bindir!$bindir$ac_delim
19506 sbindir!$sbindir$ac_delim
19507 libexecdir!$libexecdir$ac_delim
19508 datarootdir!$datarootdir$ac_delim
19509 datadir!$datadir$ac_delim
19510 sysconfdir!$sysconfdir$ac_delim
19511 sharedstatedir!$sharedstatedir$ac_delim
19512 localstatedir!$localstatedir$ac_delim
19513 includedir!$includedir$ac_delim
19514 oldincludedir!$oldincludedir$ac_delim
19515 docdir!$docdir$ac_delim
19516 infodir!$infodir$ac_delim
19517 htmldir!$htmldir$ac_delim
19518 dvidir!$dvidir$ac_delim
19519 pdfdir!$pdfdir$ac_delim
19520 psdir!$psdir$ac_delim
19521 libdir!$libdir$ac_delim
19522 localedir!$localedir$ac_delim
19523 mandir!$mandir$ac_delim
19524 DEFS!$DEFS$ac_delim
19525 ECHO_C!$ECHO_C$ac_delim
19526 ECHO_N!$ECHO_N$ac_delim
19527 ECHO_T!$ECHO_T$ac_delim
19528 LIBS!$LIBS$ac_delim
19529 build_alias!$build_alias$ac_delim
19530 host_alias!$host_alias$ac_delim
19531 target_alias!$target_alias$ac_delim
19532 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19533 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19534 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19535 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19536 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19537 CC!$CC$ac_delim
19538 CFLAGS!$CFLAGS$ac_delim
19539 LDFLAGS!$LDFLAGS$ac_delim
19540 CPPFLAGS!$CPPFLAGS$ac_delim
19541 ac_ct_CC!$ac_ct_CC$ac_delim
19542 EXEEXT!$EXEEXT$ac_delim
19543 OBJEXT!$OBJEXT$ac_delim
19544 CXX!$CXX$ac_delim
19545 CXXFLAGS!$CXXFLAGS$ac_delim
19546 ac_ct_CXX!$ac_ct_CXX$ac_delim
19547 CPP!$CPP$ac_delim
19548 subdirs!$subdirs$ac_delim
19549 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19550 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19551 build!$build$ac_delim
19552 build_cpu!$build_cpu$ac_delim
19553 build_vendor!$build_vendor$ac_delim
19554 build_os!$build_os$ac_delim
19555 host!$host$ac_delim
19556 host_cpu!$host_cpu$ac_delim
19557 host_vendor!$host_vendor$ac_delim
19558 host_os!$host_os$ac_delim
19559 target!$target$ac_delim
19560 target_cpu!$target_cpu$ac_delim
19561 target_vendor!$target_vendor$ac_delim
19562 target_os!$target_os$ac_delim
19563 OS!$OS$ac_delim
19564 HOST_OS!$HOST_OS$ac_delim
19565 TARGET_OS!$TARGET_OS$ac_delim
19566 LINKALL!$LINKALL$ac_delim
19567 NOLINKALL!$NOLINKALL$ac_delim
19568 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19569 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19570 ARCH!$ARCH$ac_delim
19571 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19572 HOST_ARCH!$HOST_ARCH$ac_delim
19573 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19574 BUILD_CC!$BUILD_CC$ac_delim
19575 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19576 BUILD_CXX!$BUILD_CXX$ac_delim
19577 CVSBUILD!$CVSBUILD$ac_delim
19578 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19579 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19580 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19581 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19582 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19583 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19584 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19585 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19586 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19587 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19588 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19589 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19590 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19591 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19592 _ACEOF
19593
19594   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19595     break
19596   elif $ac_last_try; then
19597     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19598 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19599    { (exit 1); exit 1; }; }
19600   else
19601     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19602   fi
19603 done
19604
19605 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19606 if test -n "$ac_eof"; then
19607   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19608   ac_eof=`expr $ac_eof + 1`
19609 fi
19610
19611 cat >>$CONFIG_STATUS <<_ACEOF
19612 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19614 _ACEOF
19615 sed '
19616 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19617 s/^/s,@/; s/!/@,|#_!!_#|/
19618 :n
19619 t n
19620 s/'"$ac_delim"'$/,g/; t
19621 s/$/\\/; p
19622 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19623 ' >>$CONFIG_STATUS <conf$$subs.sed
19624 rm -f conf$$subs.sed
19625 cat >>$CONFIG_STATUS <<_ACEOF
19626 CEOF$ac_eof
19627 _ACEOF
19628
19629
19630 ac_delim='%!_!# '
19631 for ac_last_try in false false false false false :; do
19632   cat >conf$$subs.sed <<_ACEOF
19633 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19634 JIT!$JIT$ac_delim
19635 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19636 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19637 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19638 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19639 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19640 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19641 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19642 ENABLE_PIC!$ENABLE_PIC$ac_delim
19643 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19644 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19645 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19646 ALL_TARGETS!$ALL_TARGETS$ac_delim
19647 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19648 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19649 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19650 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19651 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19652 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19653 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19654 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19655 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19656 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19657 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19658 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19659 ifGNUmake!$ifGNUmake$ac_delim
19660 LN_S!$LN_S$ac_delim
19661 NM!$NM$ac_delim
19662 CMP!$CMP$ac_delim
19663 CP!$CP$ac_delim
19664 DATE!$DATE$ac_delim
19665 FIND!$FIND$ac_delim
19666 GREP!$GREP$ac_delim
19667 MKDIR!$MKDIR$ac_delim
19668 MV!$MV$ac_delim
19669 RANLIB!$RANLIB$ac_delim
19670 AR!$AR$ac_delim
19671 RM!$RM$ac_delim
19672 SED!$SED$ac_delim
19673 TAR!$TAR$ac_delim
19674 BINPWD!$BINPWD$ac_delim
19675 DOT!$DOT$ac_delim
19676 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19677 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19678 INSTALL_DATA!$INSTALL_DATA$ac_delim
19679 BZIP2!$BZIP2$ac_delim
19680 CAT!$CAT$ac_delim
19681 DOXYGEN!$DOXYGEN$ac_delim
19682 GROFF!$GROFF$ac_delim
19683 GZIPBIN!$GZIPBIN$ac_delim
19684 PDFROFF!$PDFROFF$ac_delim
19685 ZIP!$ZIP$ac_delim
19686 OCAMLC!$OCAMLC$ac_delim
19687 OCAMLOPT!$OCAMLOPT$ac_delim
19688 OCAMLDEP!$OCAMLDEP$ac_delim
19689 OCAMLDOC!$OCAMLDOC$ac_delim
19690 GAS!$GAS$ac_delim
19691 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19692 EGREP!$EGREP$ac_delim
19693 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19694 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19695 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19696 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19697 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19698 PYTHON!$PYTHON$ac_delim
19699 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19700 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19701 USE_OPROFILE!$USE_OPROFILE$ac_delim
19702 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19703 XML2CONFIG!$XML2CONFIG$ac_delim
19704 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19705 LIBXML2_INC!$LIBXML2_INC$ac_delim
19706 CXXCPP!$CXXCPP$ac_delim
19707 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19708 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19709 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19710 MMAP_FILE!$MMAP_FILE$ac_delim
19711 SHLIBEXT!$SHLIBEXT$ac_delim
19712 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19713 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19714 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19715 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19716 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19717 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19718 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19719 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19720 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19721 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19722 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
19723 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19724 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19725 RPATH!$RPATH$ac_delim
19726 RDYNAMIC!$RDYNAMIC$ac_delim
19727 program_prefix!$program_prefix$ac_delim
19728 LIBOBJS!$LIBOBJS$ac_delim
19729 LTLIBOBJS!$LTLIBOBJS$ac_delim
19730 _ACEOF
19731
19732   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19733     break
19734   elif $ac_last_try; then
19735     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19736 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19737    { (exit 1); exit 1; }; }
19738   else
19739     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19740   fi
19741 done
19742
19743 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19744 if test -n "$ac_eof"; then
19745   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19746   ac_eof=`expr $ac_eof + 1`
19747 fi
19748
19749 cat >>$CONFIG_STATUS <<_ACEOF
19750 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19752 _ACEOF
19753 sed '
19754 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19755 s/^/s,@/; s/!/@,|#_!!_#|/
19756 :n
19757 t n
19758 s/'"$ac_delim"'$/,g/; t
19759 s/$/\\/; p
19760 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19761 ' >>$CONFIG_STATUS <conf$$subs.sed
19762 rm -f conf$$subs.sed
19763 cat >>$CONFIG_STATUS <<_ACEOF
19764 CEOF$ac_eof
19765 _ACEOF
19766
19767
19768 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19769 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19770 # trailing colons and then remove the whole line if VPATH becomes empty
19771 # (actually we leave an empty line to preserve line numbers).
19772 if test "x$srcdir" = x.; then
19773   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19774 s/:*\$(srcdir):*/:/
19775 s/:*\${srcdir}:*/:/
19776 s/:*@srcdir@:*/:/
19777 s/^\([^=]*=[     ]*\):*/\1/
19778 s/:*$//
19779 s/^[^=]*=[       ]*$//
19780 }'
19781 fi
19782
19783 cat >>$CONFIG_STATUS <<\_ACEOF
19784 fi # test -n "$CONFIG_FILES"
19785
19786
19787 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19788 do
19789   case $ac_tag in
19790   :[FHLC]) ac_mode=$ac_tag; continue;;
19791   esac
19792   case $ac_mode$ac_tag in
19793   :[FHL]*:*);;
19794   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19795 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19796    { (exit 1); exit 1; }; };;
19797   :[FH]-) ac_tag=-:-;;
19798   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19799   esac
19800   ac_save_IFS=$IFS
19801   IFS=:
19802   set x $ac_tag
19803   IFS=$ac_save_IFS
19804   shift
19805   ac_file=$1
19806   shift
19807
19808   case $ac_mode in
19809   :L) ac_source=$1;;
19810   :[FH])
19811     ac_file_inputs=
19812     for ac_f
19813     do
19814       case $ac_f in
19815       -) ac_f="$tmp/stdin";;
19816       *) # Look for the file first in the build tree, then in the source tree
19817          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19818          # because $ac_f cannot contain `:'.
19819          test -f "$ac_f" ||
19820            case $ac_f in
19821            [\\/$]*) false;;
19822            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19823            esac ||
19824            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19825 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19826    { (exit 1); exit 1; }; };;
19827       esac
19828       ac_file_inputs="$ac_file_inputs $ac_f"
19829     done
19830
19831     # Let's still pretend it is `configure' which instantiates (i.e., don't
19832     # use $as_me), people would be surprised to read:
19833     #    /* config.h.  Generated by config.status.  */
19834     configure_input="Generated from "`IFS=:
19835           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19836     if test x"$ac_file" != x-; then
19837       configure_input="$ac_file.  $configure_input"
19838       { echo "$as_me:$LINENO: creating $ac_file" >&5
19839 echo "$as_me: creating $ac_file" >&6;}
19840     fi
19841
19842     case $ac_tag in
19843     *:-:* | *:-) cat >"$tmp/stdin";;
19844     esac
19845     ;;
19846   esac
19847
19848   ac_dir=`$as_dirname -- "$ac_file" ||
19849 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19850          X"$ac_file" : 'X\(//\)[^/]' \| \
19851          X"$ac_file" : 'X\(//\)$' \| \
19852          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19853 echo X"$ac_file" |
19854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19855             s//\1/
19856             q
19857           }
19858           /^X\(\/\/\)[^/].*/{
19859             s//\1/
19860             q
19861           }
19862           /^X\(\/\/\)$/{
19863             s//\1/
19864             q
19865           }
19866           /^X\(\/\).*/{
19867             s//\1/
19868             q
19869           }
19870           s/.*/./; q'`
19871   { as_dir="$ac_dir"
19872   case $as_dir in #(
19873   -*) as_dir=./$as_dir;;
19874   esac
19875   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19876     as_dirs=
19877     while :; do
19878       case $as_dir in #(
19879       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19880       *) as_qdir=$as_dir;;
19881       esac
19882       as_dirs="'$as_qdir' $as_dirs"
19883       as_dir=`$as_dirname -- "$as_dir" ||
19884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19885          X"$as_dir" : 'X\(//\)[^/]' \| \
19886          X"$as_dir" : 'X\(//\)$' \| \
19887          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19888 echo X"$as_dir" |
19889     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19890             s//\1/
19891             q
19892           }
19893           /^X\(\/\/\)[^/].*/{
19894             s//\1/
19895             q
19896           }
19897           /^X\(\/\/\)$/{
19898             s//\1/
19899             q
19900           }
19901           /^X\(\/\).*/{
19902             s//\1/
19903             q
19904           }
19905           s/.*/./; q'`
19906       test -d "$as_dir" && break
19907     done
19908     test -z "$as_dirs" || eval "mkdir $as_dirs"
19909   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19910 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19911    { (exit 1); exit 1; }; }; }
19912   ac_builddir=.
19913
19914 case "$ac_dir" in
19915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19916 *)
19917   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19918   # A ".." for each directory in $ac_dir_suffix.
19919   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19920   case $ac_top_builddir_sub in
19921   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19922   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19923   esac ;;
19924 esac
19925 ac_abs_top_builddir=$ac_pwd
19926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19927 # for backward compatibility:
19928 ac_top_builddir=$ac_top_build_prefix
19929
19930 case $srcdir in
19931   .)  # We are building in place.
19932     ac_srcdir=.
19933     ac_top_srcdir=$ac_top_builddir_sub
19934     ac_abs_top_srcdir=$ac_pwd ;;
19935   [\\/]* | ?:[\\/]* )  # Absolute name.
19936     ac_srcdir=$srcdir$ac_dir_suffix;
19937     ac_top_srcdir=$srcdir
19938     ac_abs_top_srcdir=$srcdir ;;
19939   *) # Relative name.
19940     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19941     ac_top_srcdir=$ac_top_build_prefix$srcdir
19942     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19943 esac
19944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19945
19946
19947   case $ac_mode in
19948   :F)
19949   #
19950   # CONFIG_FILE
19951   #
19952
19953   case $INSTALL in
19954   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19955   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19956   esac
19957 _ACEOF
19958
19959 cat >>$CONFIG_STATUS <<\_ACEOF
19960 # If the template does not know about datarootdir, expand it.
19961 # FIXME: This hack should be removed a few years after 2.60.
19962 ac_datarootdir_hack=; ac_datarootdir_seen=
19963
19964 case `sed -n '/datarootdir/ {
19965   p
19966   q
19967 }
19968 /@datadir@/p
19969 /@docdir@/p
19970 /@infodir@/p
19971 /@localedir@/p
19972 /@mandir@/p
19973 ' $ac_file_inputs` in
19974 *datarootdir*) ac_datarootdir_seen=yes;;
19975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19976   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19977 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19978 _ACEOF
19979 cat >>$CONFIG_STATUS <<_ACEOF
19980   ac_datarootdir_hack='
19981   s&@datadir@&$datadir&g
19982   s&@docdir@&$docdir&g
19983   s&@infodir@&$infodir&g
19984   s&@localedir@&$localedir&g
19985   s&@mandir@&$mandir&g
19986     s&\\\${datarootdir}&$datarootdir&g' ;;
19987 esac
19988 _ACEOF
19989
19990 # Neutralize VPATH when `$srcdir' = `.'.
19991 # Shell code in configure.ac might set extrasub.
19992 # FIXME: do we really want to maintain this feature?
19993 cat >>$CONFIG_STATUS <<_ACEOF
19994   sed "$ac_vpsub
19995 $extrasub
19996 _ACEOF
19997 cat >>$CONFIG_STATUS <<\_ACEOF
19998 :t
19999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20000 s&@configure_input@&$configure_input&;t t
20001 s&@top_builddir@&$ac_top_builddir_sub&;t t
20002 s&@srcdir@&$ac_srcdir&;t t
20003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20004 s&@top_srcdir@&$ac_top_srcdir&;t t
20005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20006 s&@builddir@&$ac_builddir&;t t
20007 s&@abs_builddir@&$ac_abs_builddir&;t t
20008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20009 s&@INSTALL@&$ac_INSTALL&;t t
20010 $ac_datarootdir_hack
20011 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
20012
20013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20014   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20015   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20016   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20017 which seems to be undefined.  Please make sure it is defined." >&5
20018 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20019 which seems to be undefined.  Please make sure it is defined." >&2;}
20020
20021   rm -f "$tmp/stdin"
20022   case $ac_file in
20023   -) cat "$tmp/out"; rm -f "$tmp/out";;
20024   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20025   esac
20026  ;;
20027   :H)
20028   #
20029   # CONFIG_HEADER
20030   #
20031 _ACEOF
20032
20033 # Transform confdefs.h into a sed script `conftest.defines', that
20034 # substitutes the proper values into config.h.in to produce config.h.
20035 rm -f conftest.defines conftest.tail
20036 # First, append a space to every undef/define line, to ease matching.
20037 echo 's/$/ /' >conftest.defines
20038 # Then, protect against being on the right side of a sed subst, or in
20039 # an unquoted here document, in config.status.  If some macros were
20040 # called several times there might be several #defines for the same
20041 # symbol, which is useless.  But do not sort them, since the last
20042 # AC_DEFINE must be honored.
20043 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20044 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20045 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20046 # PARAMS is the parameter list in the macro definition--in most cases, it's
20047 # just an empty string.
20048 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20049 ac_dB='\\)[      (].*,\\1define\\2'
20050 ac_dC=' '
20051 ac_dD=' ,'
20052
20053 uniq confdefs.h |
20054   sed -n '
20055         t rset
20056         :rset
20057         s/^[     ]*#[    ]*define[       ][      ]*//
20058         t ok
20059         d
20060         :ok
20061         s/[\\&,]/\\&/g
20062         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20063         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20064   ' >>conftest.defines
20065
20066 # Remove the space that was appended to ease matching.
20067 # Then replace #undef with comments.  This is necessary, for
20068 # example, in the case of _POSIX_SOURCE, which is predefined and required
20069 # on some systems where configure will not decide to define it.
20070 # (The regexp can be short, since the line contains either #define or #undef.)
20071 echo 's/ $//
20072 s,^[     #]*u.*,/* & */,' >>conftest.defines
20073
20074 # Break up conftest.defines:
20075 ac_max_sed_lines=50
20076
20077 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20078 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20079 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20080 # et cetera.
20081 ac_in='$ac_file_inputs'
20082 ac_out='"$tmp/out1"'
20083 ac_nxt='"$tmp/out2"'
20084
20085 while :
20086 do
20087   # Write a here document:
20088     cat >>$CONFIG_STATUS <<_ACEOF
20089     # First, check the format of the line:
20090     cat >"\$tmp/defines.sed" <<\\CEOF
20091 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20092 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20093 b
20094 :def
20095 _ACEOF
20096   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20097   echo 'CEOF
20098     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20099   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20100   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20101   grep . conftest.tail >/dev/null || break
20102   rm -f conftest.defines
20103   mv conftest.tail conftest.defines
20104 done
20105 rm -f conftest.defines conftest.tail
20106
20107 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20108 cat >>$CONFIG_STATUS <<\_ACEOF
20109   if test x"$ac_file" != x-; then
20110     echo "/* $configure_input  */" >"$tmp/config.h"
20111     cat "$ac_result" >>"$tmp/config.h"
20112     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20113       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20114 echo "$as_me: $ac_file is unchanged" >&6;}
20115     else
20116       rm -f $ac_file
20117       mv "$tmp/config.h" $ac_file
20118     fi
20119   else
20120     echo "/* $configure_input  */"
20121     cat "$ac_result"
20122   fi
20123   rm -f "$tmp/out12"
20124  ;;
20125
20126   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20127 echo "$as_me: executing $ac_file commands" >&6;}
20128  ;;
20129   esac
20130
20131
20132   case $ac_file$ac_mode in
20133     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20134    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20135     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20136    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20137     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20138    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20139     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20140    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20141     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20142    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20143     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20144    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20145     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20146    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20147     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20148    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20149     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20150    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20151     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20152    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20153     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20154    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20155     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20156    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20157
20158   esac
20159 done # for ac_tag
20160
20161
20162 { (exit 0); exit 0; }
20163 _ACEOF
20164 chmod +x $CONFIG_STATUS
20165 ac_clean_files=$ac_clean_files_save
20166
20167
20168 # configure is writing to config.log, and then calls config.status.
20169 # config.status does its own redirection, appending to config.log.
20170 # Unfortunately, on DOS this fails, as config.log is still kept open
20171 # by configure, so config.status won't be able to write to it; its
20172 # output is simply discarded.  So we exec the FD to /dev/null,
20173 # effectively closing config.log, so it can be properly (re)opened and
20174 # appended to by config.status.  When coming back to configure, we
20175 # need to make the FD available again.
20176 if test "$no_create" != yes; then
20177   ac_cs_success=:
20178   ac_config_status_args=
20179   test "$silent" = yes &&
20180     ac_config_status_args="$ac_config_status_args --quiet"
20181   exec 5>/dev/null
20182   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20183   exec 5>>config.log
20184   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20185   # would make configure fail if this is the last instruction.
20186   $ac_cs_success || { (exit 1); exit 1; }
20187 fi
20188
20189 #
20190 # CONFIG_SUBDIRS section.
20191 #
20192 if test "$no_recursion" != yes; then
20193
20194   # Remove --cache-file and --srcdir arguments so they do not pile up.
20195   ac_sub_configure_args=
20196   ac_prev=
20197   eval "set x $ac_configure_args"
20198   shift
20199   for ac_arg
20200   do
20201     if test -n "$ac_prev"; then
20202       ac_prev=
20203       continue
20204     fi
20205     case $ac_arg in
20206     -cache-file | --cache-file | --cache-fil | --cache-fi \
20207     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20208       ac_prev=cache_file ;;
20209     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20210     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20211     | --c=*)
20212       ;;
20213     --config-cache | -C)
20214       ;;
20215     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20216       ac_prev=srcdir ;;
20217     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20218       ;;
20219     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20220       ac_prev=prefix ;;
20221     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20222       ;;
20223     *)
20224       case $ac_arg in
20225       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20226       esac
20227       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20228     esac
20229   done
20230
20231   # Always prepend --prefix to ensure using the same prefix
20232   # in subdir configurations.
20233   ac_arg="--prefix=$prefix"
20234   case $ac_arg in
20235   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20236   esac
20237   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20238
20239   ac_popdir=`pwd`
20240   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20241
20242     # Do not complain, so a configure script can configure whichever
20243     # parts of a large source tree are present.
20244     test -d "$srcdir/$ac_dir" || continue
20245
20246     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20247     echo "$as_me:$LINENO: $ac_msg" >&5
20248     echo "$ac_msg" >&6
20249     { as_dir="$ac_dir"
20250   case $as_dir in #(
20251   -*) as_dir=./$as_dir;;
20252   esac
20253   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20254     as_dirs=
20255     while :; do
20256       case $as_dir in #(
20257       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20258       *) as_qdir=$as_dir;;
20259       esac
20260       as_dirs="'$as_qdir' $as_dirs"
20261       as_dir=`$as_dirname -- "$as_dir" ||
20262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20263          X"$as_dir" : 'X\(//\)[^/]' \| \
20264          X"$as_dir" : 'X\(//\)$' \| \
20265          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20266 echo X"$as_dir" |
20267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20268             s//\1/
20269             q
20270           }
20271           /^X\(\/\/\)[^/].*/{
20272             s//\1/
20273             q
20274           }
20275           /^X\(\/\/\)$/{
20276             s//\1/
20277             q
20278           }
20279           /^X\(\/\).*/{
20280             s//\1/
20281             q
20282           }
20283           s/.*/./; q'`
20284       test -d "$as_dir" && break
20285     done
20286     test -z "$as_dirs" || eval "mkdir $as_dirs"
20287   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20288 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20289    { (exit 1); exit 1; }; }; }
20290     ac_builddir=.
20291
20292 case "$ac_dir" in
20293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20294 *)
20295   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20296   # A ".." for each directory in $ac_dir_suffix.
20297   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20298   case $ac_top_builddir_sub in
20299   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20300   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20301   esac ;;
20302 esac
20303 ac_abs_top_builddir=$ac_pwd
20304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20305 # for backward compatibility:
20306 ac_top_builddir=$ac_top_build_prefix
20307
20308 case $srcdir in
20309   .)  # We are building in place.
20310     ac_srcdir=.
20311     ac_top_srcdir=$ac_top_builddir_sub
20312     ac_abs_top_srcdir=$ac_pwd ;;
20313   [\\/]* | ?:[\\/]* )  # Absolute name.
20314     ac_srcdir=$srcdir$ac_dir_suffix;
20315     ac_top_srcdir=$srcdir
20316     ac_abs_top_srcdir=$srcdir ;;
20317   *) # Relative name.
20318     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20319     ac_top_srcdir=$ac_top_build_prefix$srcdir
20320     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20321 esac
20322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20323
20324
20325     cd "$ac_dir"
20326
20327     # Check for guested configure; otherwise get Cygnus style configure.
20328     if test -f "$ac_srcdir/configure.gnu"; then
20329       ac_sub_configure=$ac_srcdir/configure.gnu
20330     elif test -f "$ac_srcdir/configure"; then
20331       ac_sub_configure=$ac_srcdir/configure
20332     elif test -f "$ac_srcdir/configure.in"; then
20333       # This should be Cygnus configure.
20334       ac_sub_configure=$ac_aux_dir/configure
20335     else
20336       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20337 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20338       ac_sub_configure=
20339     fi
20340
20341     # The recursion is here.
20342     if test -n "$ac_sub_configure"; then
20343       # Make the cache file name correct relative to the subdirectory.
20344       case $cache_file in
20345       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20346       *) # Relative name.
20347         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20348       esac
20349
20350       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20351 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20352       # The eval makes quoting arguments work.
20353       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20354            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20355         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20356 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20357    { (exit 1); exit 1; }; }
20358     fi
20359
20360     cd "$ac_popdir"
20361   done
20362 fi
20363